2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for sqlite 3.7.15.
5 # Report bugs to <http://www.sqlite.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
191 test -z "$as_dir" && as_dir=.
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 *v*x* | *x*v* ) as_opts=-vx ;;
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: http://www.sqlite.org about your system, including any
243 $0: error possibly output before this message. Then install
244 $0: a modern shell, or manually run the script under such a
245 $0: shell if you do have one."
251 SHELL=${CONFIG_SHELL-/bin/sh}
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
262 # Portably unset VAR.
265 { eval $1=; unset $1;}
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 # Create "$as_dir" as a directory, including parents if necessary.
294 -*) as_dir=./$as_dir;;
296 test -d "$as_dir" || eval $as_mkdir_p || {
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
327 test -d "$as_dir" && break
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
365 as_val=`expr "$@" || test $? -eq 1`
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
377 as_status=$1; test $as_status -eq 0 && as_status=1
379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 $as_echo "$as_me: error: $2" >&2
383 as_fn_exit $as_status
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 chmod +x "$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
466 case `echo 'xy\c'` in
467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
481 mkdir conf$$.dir 2>/dev/null
483 if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492 elif ln conf$$.file conf$$ 2>/dev/null; then
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
503 if mkdir -p . 2>/dev/null; then
504 as_mkdir_p='mkdir -p "$as_dir"'
506 test -d ./-p && rmdir ./-p
510 if test -x / >/dev/null 2>&1; then
513 if ls -dL / >/dev/null 2>&1; then
520 if test -d "$1"; then
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
531 as_executable_p=$as_test_x
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 # Check that we are running under the correct shell.
542 SHELL=${CONFIG_SHELL-/bin/sh}
546 # Remove one level of quotation (which was required for Make).
547 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
552 if test "X$1" = X--no-reexec; then
553 # Discard the --no-reexec flag, and continue.
555 elif test "X$1" = X--fallback-echo; then
556 # Avoid inline document here, it may be left over
558 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
559 # Yippee, $echo works!
562 # Restart under the correct shell.
563 exec $SHELL "$0" --no-reexec ${1+"$@"}
566 if test "X$1" = X--fallback-echo; then
567 # used as fallback echo
575 # The HP-UX ksh and POSIX shell print the target directory to stdout
577 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
579 if test -z "$ECHO"; then
580 if test "X${echo_test_string+set}" != Xset; then
581 # find a string as large as possible, as long as the shell can cope with it
582 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
583 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
584 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
585 echo_test_string=`eval $cmd` &&
586 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
593 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
594 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
595 test "X$echo_testing_string" = "X$echo_test_string"; then
598 # The Solaris, AIX, and Digital Unix default echo programs unquote
599 # backslashes. This makes it impossible to quote backslashes using
600 # echo "$something" | sed 's/\\/\\\\/g'
602 # So, first we look for a working echo in the user's PATH.
604 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
605 for dir in $PATH /usr/ucb; do
607 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
608 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
609 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
610 test "X$echo_testing_string" = "X$echo_test_string"; then
617 if test "X$echo" = Xecho; then
618 # We didn't find a better echo, so look for alternatives.
619 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
620 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
621 test "X$echo_testing_string" = "X$echo_test_string"; then
622 # This shell has a builtin print -r that does the trick.
624 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
625 test "X$CONFIG_SHELL" != X/bin/ksh; then
626 # If we have ksh, try running configure again with it.
627 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
628 export ORIGINAL_CONFIG_SHELL
629 CONFIG_SHELL=/bin/ksh
631 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
635 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
636 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
637 test "X$echo_testing_string" = "X$echo_test_string"; then
640 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641 test "X$echo_testing_string" = 'X\t' &&
642 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646 SHELL="$CONFIG_SHELL"
648 echo="$CONFIG_SHELL $0 --fallback-echo"
649 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
650 test "X$echo_testing_string" = 'X\t' &&
651 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
652 test "X$echo_testing_string" = "X$echo_test_string"; then
653 echo="$CONFIG_SHELL $0 --fallback-echo"
655 # maybe with a smaller string...
658 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
659 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
666 if test "$prev" != 'sed 50q "$0"'; then
667 echo_test_string=`eval $prev`
668 export echo_test_string
669 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671 # Oops. We lost completely, so just stick with echo.
680 # Copy echo and quote the copy suitably for passing to libtool from
681 # the Makefile, instead of quoting the original, which is used later.
683 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
684 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
690 tagnames=${tagnames+${tagnames},}CXX
692 tagnames=${tagnames+${tagnames},}F77
694 test -n "$DJDIR" || exec 7<&0 </dev/null
698 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
699 # so uname gets run too.
700 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
705 ac_default_prefix=/usr/local
707 ac_config_libobj_dir=.
714 # Identity of this package.
715 PACKAGE_NAME='sqlite'
716 PACKAGE_TARNAME='sqlite'
717 PACKAGE_VERSION='3.7.15'
718 PACKAGE_STRING='sqlite 3.7.15'
719 PACKAGE_BUGREPORT='http://www.sqlite.org'
722 ac_unique_file="sqlite3.c"
723 # Factoring default headers for most tests.
724 ac_includes_default="\
726 #ifdef HAVE_SYS_TYPES_H
727 # include <sys/types.h>
729 #ifdef HAVE_SYS_STAT_H
730 # include <sys/stat.h>
736 # ifdef HAVE_STDLIB_H
741 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
746 #ifdef HAVE_STRINGS_H
747 # include <strings.h>
749 #ifdef HAVE_INTTYPES_H
750 # include <inttypes.h>
759 ac_subst_vars='LTLIBOBJS
761 DYNAMIC_EXTENSION_FLAGS
815 INSTALL_STRIP_PROGRAM
856 program_transform_name
869 enable_option_checking
871 enable_dependency_tracking
881 enable_dynamic_extensions
883 ac_precious_vars='build_alias
900 # Initialize some variables set by options.
902 ac_init_version=false
903 ac_unrecognized_opts=
905 # The variables have the same names as the options, with
906 # dashes changed to underlines.
914 program_transform_name=s,x,x,
922 # Installation directory options.
923 # These are left unexpanded so users can "make install exec_prefix=/foo"
924 # and all the variables that are supposed to be based on exec_prefix
925 # by default will actually change.
926 # Use braces instead of parens because sh, perl, etc. also accept them.
927 # (The list follows the same order as the GNU Coding Standards.)
928 bindir='${exec_prefix}/bin'
929 sbindir='${exec_prefix}/sbin'
930 libexecdir='${exec_prefix}/libexec'
931 datarootdir='${prefix}/share'
932 datadir='${datarootdir}'
933 sysconfdir='${prefix}/etc'
934 sharedstatedir='${prefix}/com'
935 localstatedir='${prefix}/var'
936 includedir='${prefix}/include'
937 oldincludedir='/usr/include'
938 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
939 infodir='${datarootdir}/info'
944 libdir='${exec_prefix}/lib'
945 localedir='${datarootdir}/locale'
946 mandir='${datarootdir}/man'
952 # If the previous option needs an argument, assign it.
953 if test -n "$ac_prev"; then
954 eval $ac_prev=\$ac_option
960 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
965 # Accept the important Cygnus configure options, so we can diagnose typos.
967 case $ac_dashdash$ac_option in
971 -bindir | --bindir | --bindi | --bind | --bin | --bi)
973 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
976 -build | --build | --buil | --bui | --bu)
977 ac_prev=build_alias ;;
978 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
979 build_alias=$ac_optarg ;;
981 -cache-file | --cache-file | --cache-fil | --cache-fi \
982 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
983 ac_prev=cache_file ;;
984 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
985 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
986 cache_file=$ac_optarg ;;
989 cache_file=config.cache ;;
991 -datadir | --datadir | --datadi | --datad)
993 -datadir=* | --datadir=* | --datadi=* | --datad=*)
994 datadir=$ac_optarg ;;
996 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
997 | --dataroo | --dataro | --datar)
998 ac_prev=datarootdir ;;
999 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1000 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1001 datarootdir=$ac_optarg ;;
1003 -disable-* | --disable-*)
1004 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1005 # Reject names that are not valid shell variable names.
1006 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1007 as_fn_error $? "invalid feature name: $ac_useropt"
1008 ac_useropt_orig=$ac_useropt
1009 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1010 case $ac_user_opts in
1012 "enable_$ac_useropt"
1014 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1015 ac_unrecognized_sep=', ';;
1017 eval enable_$ac_useropt=no ;;
1019 -docdir | --docdir | --docdi | --doc | --do)
1021 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1022 docdir=$ac_optarg ;;
1024 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1026 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1027 dvidir=$ac_optarg ;;
1029 -enable-* | --enable-*)
1030 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1031 # Reject names that are not valid shell variable names.
1032 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1033 as_fn_error $? "invalid feature name: $ac_useropt"
1034 ac_useropt_orig=$ac_useropt
1035 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1036 case $ac_user_opts in
1038 "enable_$ac_useropt"
1040 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1041 ac_unrecognized_sep=', ';;
1043 eval enable_$ac_useropt=\$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_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1235 # Reject names that are not valid shell variable names.
1236 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1237 as_fn_error $? "invalid package name: $ac_useropt"
1238 ac_useropt_orig=$ac_useropt
1239 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1240 case $ac_user_opts in
1244 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1245 ac_unrecognized_sep=', ';;
1247 eval with_$ac_useropt=\$ac_optarg ;;
1249 -without-* | --without-*)
1250 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1251 # Reject names that are not valid shell variable names.
1252 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1253 as_fn_error $? "invalid package name: $ac_useropt"
1254 ac_useropt_orig=$ac_useropt
1255 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1256 case $ac_user_opts in
1260 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1261 ac_unrecognized_sep=', ';;
1263 eval with_$ac_useropt=no ;;
1266 # Obsolete; use --with-x.
1269 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1270 | --x-incl | --x-inc | --x-in | --x-i)
1271 ac_prev=x_includes ;;
1272 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1273 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1274 x_includes=$ac_optarg ;;
1276 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1277 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1278 ac_prev=x_libraries ;;
1279 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1280 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1281 x_libraries=$ac_optarg ;;
1283 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1284 Try \`$0 --help' for more information"
1288 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1289 # Reject names that are not valid shell variable names.
1290 case $ac_envvar in #(
1291 '' | [0-9]* | *[!_$as_cr_alnum]* )
1292 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1294 eval $ac_envvar=\$ac_optarg
1295 export $ac_envvar ;;
1298 # FIXME: should be removed in autoconf 3.0.
1299 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1300 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1301 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1302 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1308 if test -n "$ac_prev"; then
1309 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1310 as_fn_error $? "missing argument to $ac_option"
1313 if test -n "$ac_unrecognized_opts"; then
1314 case $enable_option_checking in
1316 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1317 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1321 # Check all directory arguments for consistency.
1322 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1323 datadir sysconfdir sharedstatedir localstatedir includedir \
1324 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1325 libdir localedir mandir
1327 eval ac_val=\$$ac_var
1328 # Remove trailing slashes.
1331 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1332 eval $ac_var=\$ac_val;;
1334 # Be sure to have absolute directory names.
1336 [\\/$]* | ?:[\\/]* ) continue;;
1337 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1339 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1342 # There might be people who depend on the old broken behavior: `$host'
1343 # used to hold the argument of --host etc.
1344 # FIXME: To remove some day.
1347 target=$target_alias
1349 # FIXME: To remove some day.
1350 if test "x$host_alias" != x; then
1351 if test "x$build_alias" = x; then
1352 cross_compiling=maybe
1353 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1354 If a cross compiler is detected then cross compile mode will be used" >&2
1355 elif test "x$build_alias" != "x$host_alias"; then
1361 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1363 test "$silent" = yes && exec 6>/dev/null
1366 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1367 ac_ls_di=`ls -di .` &&
1368 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1369 as_fn_error $? "working directory cannot be determined"
1370 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1371 as_fn_error $? "pwd does not report name of working directory"
1374 # Find the source files, if location was not specified.
1375 if test -z "$srcdir"; then
1376 ac_srcdir_defaulted=yes
1377 # Try the directory containing this script, then the parent directory.
1378 ac_confdir=`$as_dirname -- "$as_myself" ||
1379 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1380 X"$as_myself" : 'X\(//\)[^/]' \| \
1381 X"$as_myself" : 'X\(//\)$' \| \
1382 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1383 $as_echo X"$as_myself" |
1384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1402 if test ! -r "$srcdir/$ac_unique_file"; then
1406 ac_srcdir_defaulted=no
1408 if test ! -r "$srcdir/$ac_unique_file"; then
1409 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1410 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1412 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1414 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1416 # When building in place, set srcdir=.
1417 if test "$ac_abs_confdir" = "$ac_pwd"; then
1420 # Remove unnecessary trailing slashes from srcdir.
1421 # Double slashes in file names in object file debugging info
1422 # mess up M-x gdb in Emacs.
1424 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1426 for ac_var in $ac_precious_vars; do
1427 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1428 eval ac_env_${ac_var}_value=\$${ac_var}
1429 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1430 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1434 # Report the --help message.
1436 if test "$ac_init_help" = "long"; then
1437 # Omit some internal or obsolete options to make the list less imposing.
1438 # This message is too long to be a string in the A/UX 3.1 sh.
1440 \`configure' configures sqlite 3.7.15 to adapt to many kinds of systems.
1442 Usage: $0 [OPTION]... [VAR=VALUE]...
1444 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1445 VAR=VALUE. See below for descriptions of some of the useful variables.
1447 Defaults for the options are specified in brackets.
1450 -h, --help display this help and exit
1451 --help=short display options specific to this package
1452 --help=recursive display the short help of all the included packages
1453 -V, --version display version information and exit
1454 -q, --quiet, --silent do not print \`checking ...' messages
1455 --cache-file=FILE cache test results in FILE [disabled]
1456 -C, --config-cache alias for \`--cache-file=config.cache'
1457 -n, --no-create do not create output files
1458 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1460 Installation directories:
1461 --prefix=PREFIX install architecture-independent files in PREFIX
1462 [$ac_default_prefix]
1463 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1466 By default, \`make install' will install all the files in
1467 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1468 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1469 for instance \`--prefix=\$HOME'.
1471 For better control, use the options below.
1473 Fine tuning of the installation directories:
1474 --bindir=DIR user executables [EPREFIX/bin]
1475 --sbindir=DIR system admin executables [EPREFIX/sbin]
1476 --libexecdir=DIR program executables [EPREFIX/libexec]
1477 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1478 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1479 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1480 --libdir=DIR object code libraries [EPREFIX/lib]
1481 --includedir=DIR C header files [PREFIX/include]
1482 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1483 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1484 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1485 --infodir=DIR info documentation [DATAROOTDIR/info]
1486 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1487 --mandir=DIR man documentation [DATAROOTDIR/man]
1488 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
1489 --htmldir=DIR html documentation [DOCDIR]
1490 --dvidir=DIR dvi documentation [DOCDIR]
1491 --pdfdir=DIR pdf documentation [DOCDIR]
1492 --psdir=DIR ps documentation [DOCDIR]
1498 --program-prefix=PREFIX prepend PREFIX to installed program names
1499 --program-suffix=SUFFIX append SUFFIX to installed program names
1500 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1503 --build=BUILD configure for building on BUILD [guessed]
1504 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1508 if test -n "$ac_init_help"; then
1509 case $ac_init_help in
1510 short | recursive ) echo "Configuration of sqlite 3.7.15:";;
1515 --disable-option-checking ignore unrecognized --enable/--with options
1516 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1517 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1518 --disable-largefile omit support for large files
1519 --disable-dependency-tracking speeds up one-time build
1520 --enable-dependency-tracking do not reject slow dependency extractors
1521 --enable-shared[=PKGS] build shared libraries [default=yes]
1522 --enable-static[=PKGS] build static libraries [default=yes]
1523 --enable-fast-install[=PKGS]
1524 optimize for fast installation [default=yes]
1525 --disable-libtool-lock avoid locking (might break parallel builds)
1526 --enable-readline use readline in shell tool (yes, no) [default=yes]
1527 --enable-threadsafe build a thread-safe library [default=yes]
1528 --enable-dynamic-extensions
1529 support loadable extensions [default=yes]
1532 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1533 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1534 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1535 --with-pic try to use only PIC/non-PIC objects [default=use
1537 --with-tags[=TAGS] include additional configurations [automatic]
1539 Some influential environment variables:
1540 CC C compiler command
1541 CFLAGS C compiler flags
1542 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1543 nonstandard directory <lib dir>
1544 LIBS libraries to pass to the linker, e.g. -l<library>
1545 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1546 you have headers in a nonstandard directory <include dir>
1548 CXX C++ compiler command
1549 CXXFLAGS C++ compiler flags
1550 CXXCPP C++ preprocessor
1551 F77 Fortran 77 compiler command
1552 FFLAGS Fortran 77 compiler flags
1554 Use these variables to override the choices made by `configure' or to help
1555 it to find libraries and programs with nonstandard names/locations.
1557 Report bugs to <http://www.sqlite.org>.
1562 if test "$ac_init_help" = "recursive"; then
1563 # If there are subdirs, report their specific --help.
1564 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1565 test -d "$ac_dir" ||
1566 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1571 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1573 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1574 # A ".." for each directory in $ac_dir_suffix.
1575 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1576 case $ac_top_builddir_sub in
1577 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1578 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1581 ac_abs_top_builddir=$ac_pwd
1582 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1583 # for backward compatibility:
1584 ac_top_builddir=$ac_top_build_prefix
1587 .) # We are building in place.
1589 ac_top_srcdir=$ac_top_builddir_sub
1590 ac_abs_top_srcdir=$ac_pwd ;;
1591 [\\/]* | ?:[\\/]* ) # Absolute name.
1592 ac_srcdir=$srcdir$ac_dir_suffix;
1593 ac_top_srcdir=$srcdir
1594 ac_abs_top_srcdir=$srcdir ;;
1596 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1597 ac_top_srcdir=$ac_top_build_prefix$srcdir
1598 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1600 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1602 cd "$ac_dir" || { ac_status=$?; continue; }
1603 # Check for guested configure.
1604 if test -f "$ac_srcdir/configure.gnu"; then
1606 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1607 elif test -f "$ac_srcdir/configure"; then
1609 $SHELL "$ac_srcdir/configure" --help=recursive
1611 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1613 cd "$ac_pwd" || { ac_status=$?; break; }
1617 test -n "$ac_init_help" && exit $ac_status
1618 if $ac_init_version; then
1620 sqlite configure 3.7.15
1621 generated by GNU Autoconf 2.68
1623 Copyright (C) 2010 Free Software Foundation, Inc.
1624 This configure script is free software; the Free Software Foundation
1625 gives unlimited permission to copy, distribute and modify it.
1630 ## ------------------------ ##
1631 ## Autoconf initialization. ##
1632 ## ------------------------ ##
1634 # ac_fn_c_try_compile LINENO
1635 # --------------------------
1636 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1637 ac_fn_c_try_compile ()
1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640 rm -f conftest.$ac_objext
1641 if { { ac_try="$ac_compile"
1643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1644 *) ac_try_echo=$ac_try;;
1646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1647 $as_echo "$ac_try_echo"; } >&5
1648 (eval "$ac_compile") 2>conftest.err
1650 if test -s conftest.err; then
1651 grep -v '^ *+' conftest.err >conftest.er1
1652 cat conftest.er1 >&5
1653 mv -f conftest.er1 conftest.err
1655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1656 test $ac_status = 0; } && {
1657 test -z "$ac_c_werror_flag" ||
1658 test ! -s conftest.err
1659 } && test -s conftest.$ac_objext; then :
1662 $as_echo "$as_me: failed program was:" >&5
1663 sed 's/^/| /' conftest.$ac_ext >&5
1667 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1668 as_fn_set_status $ac_retval
1670 } # ac_fn_c_try_compile
1672 # ac_fn_c_try_link LINENO
1673 # -----------------------
1674 # Try to link conftest.$ac_ext, and return whether this succeeded.
1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678 rm -f conftest.$ac_objext conftest$ac_exeext
1679 if { { ac_try="$ac_link"
1681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682 *) ac_try_echo=$ac_try;;
1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685 $as_echo "$ac_try_echo"; } >&5
1686 (eval "$ac_link") 2>conftest.err
1688 if test -s conftest.err; then
1689 grep -v '^ *+' conftest.err >conftest.er1
1690 cat conftest.er1 >&5
1691 mv -f conftest.er1 conftest.err
1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; } && {
1695 test -z "$ac_c_werror_flag" ||
1696 test ! -s conftest.err
1697 } && test -s conftest$ac_exeext && {
1698 test "$cross_compiling" = yes ||
1699 $as_test_x conftest$ac_exeext
1703 $as_echo "$as_me: failed program was:" >&5
1704 sed 's/^/| /' conftest.$ac_ext >&5
1708 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1709 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1710 # interfere with the next link command; also delete a directory that is
1711 # left behind by Apple's compiler. We do this before executing the actions.
1712 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714 as_fn_set_status $ac_retval
1716 } # ac_fn_c_try_link
1718 # ac_fn_c_try_cpp LINENO
1719 # ----------------------
1720 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 if { { ac_try="$ac_cpp conftest.$ac_ext"
1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727 *) ac_try_echo=$ac_try;;
1729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730 $as_echo "$ac_try_echo"; } >&5
1731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1733 if test -s conftest.err; then
1734 grep -v '^ *+' conftest.err >conftest.er1
1735 cat conftest.er1 >&5
1736 mv -f conftest.er1 conftest.err
1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739 test $ac_status = 0; } > conftest.i && {
1740 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1741 test ! -s conftest.err
1745 $as_echo "$as_me: failed program was:" >&5
1746 sed 's/^/| /' conftest.$ac_ext >&5
1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751 as_fn_set_status $ac_retval
1755 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1756 # -------------------------------------------------------
1757 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1758 # the include files in INCLUDES and setting the cache variable VAR
1760 ac_fn_c_check_header_mongrel ()
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 if eval \${$3+:} false; then :
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1765 $as_echo_n "checking for $2... " >&6; }
1766 if eval \${$3+:} false; then :
1767 $as_echo_n "(cached) " >&6
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1771 $as_echo "$ac_res" >&6; }
1773 # Is the header compilable?
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1775 $as_echo_n "checking $2 usability... " >&6; }
1776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777 /* end confdefs.h. */
1781 if ac_fn_c_try_compile "$LINENO"; then :
1782 ac_header_compiler=yes
1784 ac_header_compiler=no
1786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1788 $as_echo "$ac_header_compiler" >&6; }
1790 # Is the header present?
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1792 $as_echo_n "checking $2 presence... " >&6; }
1793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1794 /* end confdefs.h. */
1797 if ac_fn_c_try_cpp "$LINENO"; then :
1798 ac_header_preproc=yes
1800 ac_header_preproc=no
1802 rm -f conftest.err conftest.i conftest.$ac_ext
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1804 $as_echo "$ac_header_preproc" >&6; }
1806 # So? What about this header?
1807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1810 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1812 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1816 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1818 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1820 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1822 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1824 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1825 ( $as_echo "## ------------------------------------ ##
1826 ## Report this to http://www.sqlite.org ##
1827 ## ------------------------------------ ##"
1828 ) | sed "s/^/$as_me: WARNING: /" >&2
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1832 $as_echo_n "checking for $2... " >&6; }
1833 if eval \${$3+:} false; then :
1834 $as_echo_n "(cached) " >&6
1836 eval "$3=\$ac_header_compiler"
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1840 $as_echo "$ac_res" >&6; }
1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1844 } # ac_fn_c_check_header_mongrel
1846 # ac_fn_c_try_run LINENO
1847 # ----------------------
1848 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1849 # that executables *can* be run.
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 if { { ac_try="$ac_link"
1855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856 *) ac_try_echo=$ac_try;;
1858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859 $as_echo "$ac_try_echo"; } >&5
1860 (eval "$ac_link") 2>&5
1862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1864 { { case "(($ac_try" in
1865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1866 *) ac_try_echo=$ac_try;;
1868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869 $as_echo "$ac_try_echo"; } >&5
1870 (eval "$ac_try") 2>&5
1872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873 test $ac_status = 0; }; }; then :
1876 $as_echo "$as_me: program exited with status $ac_status" >&5
1877 $as_echo "$as_me: failed program was:" >&5
1878 sed 's/^/| /' conftest.$ac_ext >&5
1880 ac_retval=$ac_status
1882 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1883 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1884 as_fn_set_status $ac_retval
1888 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1889 # -------------------------------------------------------
1890 # Tests whether HEADER exists and can be compiled using the include files in
1891 # INCLUDES, setting the cache variable VAR accordingly.
1892 ac_fn_c_check_header_compile ()
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1896 $as_echo_n "checking for $2... " >&6; }
1897 if eval \${$3+:} false; then :
1898 $as_echo_n "(cached) " >&6
1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901 /* end confdefs.h. */
1905 if ac_fn_c_try_compile "$LINENO"; then :
1910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1914 $as_echo "$ac_res" >&6; }
1915 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917 } # ac_fn_c_check_header_compile
1919 # ac_fn_c_check_func LINENO FUNC VAR
1920 # ----------------------------------
1921 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1922 ac_fn_c_check_func ()
1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1926 $as_echo_n "checking for $2... " >&6; }
1927 if eval \${$3+:} false; then :
1928 $as_echo_n "(cached) " >&6
1930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931 /* end confdefs.h. */
1932 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1934 #define $2 innocuous_$2
1936 /* System header to define __stub macros and hopefully few prototypes,
1937 which can conflict with char $2 (); below.
1938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1939 <limits.h> exists even on freestanding compilers. */
1942 # include <limits.h>
1944 # include <assert.h>
1949 /* Override any GCC internal prototype to avoid an error.
1950 Use char because int might match the return type of a GCC
1951 builtin and then its argument prototype would still apply. */
1956 /* The GNU C library defines this for functions which it implements
1957 to always fail with ENOSYS. Some functions are actually named
1958 something starting with __ and the normal name is an alias. */
1959 #if defined __stub_$2 || defined __stub___$2
1971 if ac_fn_c_try_link "$LINENO"; then :
1976 rm -f core conftest.err conftest.$ac_objext \
1977 conftest$ac_exeext conftest.$ac_ext
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1981 $as_echo "$ac_res" >&6; }
1982 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1984 } # ac_fn_c_check_func
1986 # ac_fn_cxx_try_compile LINENO
1987 # ----------------------------
1988 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1989 ac_fn_cxx_try_compile ()
1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992 rm -f conftest.$ac_objext
1993 if { { ac_try="$ac_compile"
1995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1996 *) ac_try_echo=$ac_try;;
1998 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1999 $as_echo "$ac_try_echo"; } >&5
2000 (eval "$ac_compile") 2>conftest.err
2002 if test -s conftest.err; then
2003 grep -v '^ *+' conftest.err >conftest.er1
2004 cat conftest.er1 >&5
2005 mv -f conftest.er1 conftest.err
2007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2008 test $ac_status = 0; } && {
2009 test -z "$ac_cxx_werror_flag" ||
2010 test ! -s conftest.err
2011 } && test -s conftest.$ac_objext; then :
2014 $as_echo "$as_me: failed program was:" >&5
2015 sed 's/^/| /' conftest.$ac_ext >&5
2019 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2020 as_fn_set_status $ac_retval
2022 } # ac_fn_cxx_try_compile
2024 # ac_fn_cxx_try_cpp LINENO
2025 # ------------------------
2026 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2027 ac_fn_cxx_try_cpp ()
2029 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2030 if { { ac_try="$ac_cpp conftest.$ac_ext"
2032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2033 *) ac_try_echo=$ac_try;;
2035 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2036 $as_echo "$ac_try_echo"; } >&5
2037 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2039 if test -s conftest.err; then
2040 grep -v '^ *+' conftest.err >conftest.er1
2041 cat conftest.er1 >&5
2042 mv -f conftest.er1 conftest.err
2044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2045 test $ac_status = 0; } > conftest.i && {
2046 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2047 test ! -s conftest.err
2051 $as_echo "$as_me: failed program was:" >&5
2052 sed 's/^/| /' conftest.$ac_ext >&5
2056 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2057 as_fn_set_status $ac_retval
2059 } # ac_fn_cxx_try_cpp
2061 # ac_fn_cxx_try_link LINENO
2062 # -------------------------
2063 # Try to link conftest.$ac_ext, and return whether this succeeded.
2064 ac_fn_cxx_try_link ()
2066 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2067 rm -f conftest.$ac_objext conftest$ac_exeext
2068 if { { ac_try="$ac_link"
2070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2071 *) ac_try_echo=$ac_try;;
2073 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2074 $as_echo "$ac_try_echo"; } >&5
2075 (eval "$ac_link") 2>conftest.err
2077 if test -s conftest.err; then
2078 grep -v '^ *+' conftest.err >conftest.er1
2079 cat conftest.er1 >&5
2080 mv -f conftest.er1 conftest.err
2082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2083 test $ac_status = 0; } && {
2084 test -z "$ac_cxx_werror_flag" ||
2085 test ! -s conftest.err
2086 } && test -s conftest$ac_exeext && {
2087 test "$cross_compiling" = yes ||
2088 $as_test_x conftest$ac_exeext
2092 $as_echo "$as_me: failed program was:" >&5
2093 sed 's/^/| /' conftest.$ac_ext >&5
2097 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2098 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2099 # interfere with the next link command; also delete a directory that is
2100 # left behind by Apple's compiler. We do this before executing the actions.
2101 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2102 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2103 as_fn_set_status $ac_retval
2105 } # ac_fn_cxx_try_link
2107 # ac_fn_f77_try_compile LINENO
2108 # ----------------------------
2109 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2110 ac_fn_f77_try_compile ()
2112 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2113 rm -f conftest.$ac_objext
2114 if { { ac_try="$ac_compile"
2116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2117 *) ac_try_echo=$ac_try;;
2119 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2120 $as_echo "$ac_try_echo"; } >&5
2121 (eval "$ac_compile") 2>conftest.err
2123 if test -s conftest.err; then
2124 grep -v '^ *+' conftest.err >conftest.er1
2125 cat conftest.er1 >&5
2126 mv -f conftest.er1 conftest.err
2128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2129 test $ac_status = 0; } && {
2130 test -z "$ac_f77_werror_flag" ||
2131 test ! -s conftest.err
2132 } && test -s conftest.$ac_objext; then :
2135 $as_echo "$as_me: failed program was:" >&5
2136 sed 's/^/| /' conftest.$ac_ext >&5
2140 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2141 as_fn_set_status $ac_retval
2143 } # ac_fn_f77_try_compile
2145 # ac_fn_f77_try_link LINENO
2146 # -------------------------
2147 # Try to link conftest.$ac_ext, and return whether this succeeded.
2148 ac_fn_f77_try_link ()
2150 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2151 rm -f conftest.$ac_objext conftest$ac_exeext
2152 if { { ac_try="$ac_link"
2154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2155 *) ac_try_echo=$ac_try;;
2157 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2158 $as_echo "$ac_try_echo"; } >&5
2159 (eval "$ac_link") 2>conftest.err
2161 if test -s conftest.err; then
2162 grep -v '^ *+' conftest.err >conftest.er1
2163 cat conftest.er1 >&5
2164 mv -f conftest.er1 conftest.err
2166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2167 test $ac_status = 0; } && {
2168 test -z "$ac_f77_werror_flag" ||
2169 test ! -s conftest.err
2170 } && test -s conftest$ac_exeext && {
2171 test "$cross_compiling" = yes ||
2172 $as_test_x conftest$ac_exeext
2176 $as_echo "$as_me: failed program was:" >&5
2177 sed 's/^/| /' conftest.$ac_ext >&5
2181 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2182 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2183 # interfere with the next link command; also delete a directory that is
2184 # left behind by Apple's compiler. We do this before executing the actions.
2185 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2186 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2187 as_fn_set_status $ac_retval
2189 } # ac_fn_f77_try_link
2191 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2192 # ---------------------------------------------
2193 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2195 ac_fn_c_check_decl ()
2197 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2198 as_decl_name=`echo $2|sed 's/ *(.*//'`
2199 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2201 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2202 if eval \${$3+:} false; then :
2203 $as_echo_n "(cached) " >&6
2205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2206 /* end confdefs.h. */
2211 #ifndef $as_decl_name
2213 (void) $as_decl_use;
2215 (void) $as_decl_name;
2223 if ac_fn_c_try_compile "$LINENO"; then :
2228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2232 $as_echo "$ac_res" >&6; }
2233 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2235 } # ac_fn_c_check_decl
2236 cat >config.log <<_ACEOF
2237 This file contains any messages produced by compilers while
2238 running configure, to aid debugging if configure makes a mistake.
2240 It was created by sqlite $as_me 3.7.15, which was
2241 generated by GNU Autoconf 2.68. Invocation command line was
2253 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2254 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2255 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2256 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2257 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2259 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2260 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2262 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2263 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2264 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2265 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2266 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2267 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2268 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2276 test -z "$as_dir" && as_dir=.
2277 $as_echo "PATH: $as_dir"
2293 # Keep a trace of the command line.
2294 # Strip out --no-create and --no-recursion so they do not pile up.
2295 # Strip out --silent because we don't want to record it for future runs.
2296 # Also quote any args containing shell meta-characters.
2297 # Make two passes to allow for proper duplicate-argument suppression.
2301 ac_must_keep_next=false
2307 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2308 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2309 | -silent | --silent | --silen | --sile | --sil)
2312 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2315 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2317 as_fn_append ac_configure_args1 " '$ac_arg'"
2318 if test $ac_must_keep_next = true; then
2319 ac_must_keep_next=false # Got value, back to normal.
2322 *=* | --config-cache | -C | -disable-* | --disable-* \
2323 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2324 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2325 | -with-* | --with-* | -without-* | --without-* | --x)
2326 case "$ac_configure_args0 " in
2327 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2330 -* ) ac_must_keep_next=true ;;
2333 as_fn_append ac_configure_args " '$ac_arg'"
2338 { ac_configure_args0=; unset ac_configure_args0;}
2339 { ac_configure_args1=; unset ac_configure_args1;}
2341 # When interrupted or exit'd, cleanup temporary files, and complete
2342 # config.log. We remove comments because anyway the quotes in there
2343 # would cause problems or look ugly.
2344 # WARNING: Use '\'' to represent an apostrophe within the trap.
2345 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2346 trap 'exit_status=$?
2347 # Save into config.log some information that might help in debugging.
2351 $as_echo "## ---------------- ##
2352 ## Cache variables. ##
2353 ## ---------------- ##"
2355 # The following way of writing the cache mishandles newlines in values,
2357 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2358 eval ac_val=\$$ac_var
2362 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2363 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2366 _ | IFS | as_nl) ;; #(
2367 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2368 *) { eval $ac_var=; unset $ac_var;} ;;
2373 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2374 *${as_nl}ac_space=\ *)
2376 "s/'\''/'\''\\\\'\'''\''/g;
2377 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2380 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2387 $as_echo "## ----------------- ##
2388 ## Output variables. ##
2389 ## ----------------- ##"
2391 for ac_var in $ac_subst_vars
2393 eval ac_val=\$$ac_var
2395 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2397 $as_echo "$ac_var='\''$ac_val'\''"
2401 if test -n "$ac_subst_files"; then
2402 $as_echo "## ------------------- ##
2403 ## File substitutions. ##
2404 ## ------------------- ##"
2406 for ac_var in $ac_subst_files
2408 eval ac_val=\$$ac_var
2410 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2412 $as_echo "$ac_var='\''$ac_val'\''"
2417 if test -s confdefs.h; then
2418 $as_echo "## ----------- ##
2425 test "$ac_signal" != 0 &&
2426 $as_echo "$as_me: caught signal $ac_signal"
2427 $as_echo "$as_me: exit $exit_status"
2429 rm -f core *.core core.conftest.* &&
2430 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2433 for ac_signal in 1 2 13 15; do
2434 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2438 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2439 rm -f -r conftest* confdefs.h
2441 $as_echo "/* confdefs.h */" > confdefs.h
2443 # Predefined preprocessor variables.
2445 cat >>confdefs.h <<_ACEOF
2446 #define PACKAGE_NAME "$PACKAGE_NAME"
2449 cat >>confdefs.h <<_ACEOF
2450 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2453 cat >>confdefs.h <<_ACEOF
2454 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2457 cat >>confdefs.h <<_ACEOF
2458 #define PACKAGE_STRING "$PACKAGE_STRING"
2461 cat >>confdefs.h <<_ACEOF
2462 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2465 cat >>confdefs.h <<_ACEOF
2466 #define PACKAGE_URL "$PACKAGE_URL"
2470 # Let the site file select an alternate cache file if it wants to.
2471 # Prefer an explicitly selected file to automatically selected ones.
2474 if test -n "$CONFIG_SITE"; then
2475 # We do not want a PATH search for config.site.
2476 case $CONFIG_SITE in #((
2477 -*) ac_site_file1=./$CONFIG_SITE;;
2478 */*) ac_site_file1=$CONFIG_SITE;;
2479 *) ac_site_file1=./$CONFIG_SITE;;
2481 elif test "x$prefix" != xNONE; then
2482 ac_site_file1=$prefix/share/config.site
2483 ac_site_file2=$prefix/etc/config.site
2485 ac_site_file1=$ac_default_prefix/share/config.site
2486 ac_site_file2=$ac_default_prefix/etc/config.site
2488 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2490 test "x$ac_site_file" = xNONE && continue
2491 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2493 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2494 sed 's/^/| /' "$ac_site_file" >&5
2496 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2498 as_fn_error $? "failed to load site script $ac_site_file
2499 See \`config.log' for more details" "$LINENO" 5; }
2503 if test -r "$cache_file"; then
2504 # Some versions of bash will fail to source /dev/null (special files
2505 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2506 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2508 $as_echo "$as_me: loading cache $cache_file" >&6;}
2510 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2511 *) . "./$cache_file";;
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2516 $as_echo "$as_me: creating cache $cache_file" >&6;}
2520 # Check that the precious variables saved in the cache have kept the same
2522 ac_cache_corrupted=false
2523 for ac_var in $ac_precious_vars; do
2524 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2525 eval ac_new_set=\$ac_env_${ac_var}_set
2526 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2527 eval ac_new_val=\$ac_env_${ac_var}_value
2528 case $ac_old_set,$ac_new_set in
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2531 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2532 ac_cache_corrupted=: ;;
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2535 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2536 ac_cache_corrupted=: ;;
2539 if test "x$ac_old_val" != "x$ac_new_val"; then
2540 # differences in whitespace do not lead to failure.
2541 ac_old_val_w=`echo x $ac_old_val`
2542 ac_new_val_w=`echo x $ac_new_val`
2543 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2545 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2546 ac_cache_corrupted=:
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2549 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2550 eval $ac_var=\$ac_old_val
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2553 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2555 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2558 # Pass precious variables to config.status.
2559 if test "$ac_new_set" = set; then
2561 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2562 *) ac_arg=$ac_var=$ac_new_val ;;
2564 case " $ac_configure_args " in
2565 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2566 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2570 if $ac_cache_corrupted; then
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2574 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2575 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2577 ## -------------------- ##
2578 ## Main body of script. ##
2579 ## -------------------- ##
2582 ac_cpp='$CPP $CPPFLAGS'
2583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2591 am__api_version="1.9"
2593 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2594 if test -f "$ac_dir/install-sh"; then
2596 ac_install_sh="$ac_aux_dir/install-sh -c"
2598 elif test -f "$ac_dir/install.sh"; then
2600 ac_install_sh="$ac_aux_dir/install.sh -c"
2602 elif test -f "$ac_dir/shtool"; then
2604 ac_install_sh="$ac_aux_dir/shtool install -c"
2608 if test -z "$ac_aux_dir"; then
2609 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2612 # These three variables are undocumented and unsupported,
2613 # and are intended to be withdrawn in a future Autoconf release.
2614 # They can cause serious problems if a builder's source tree is in a directory
2615 # whose full name contains unusual characters.
2616 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2617 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2618 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2621 # Find a good install program. We prefer a C program (faster),
2622 # so one script is as good as another. But avoid the broken or
2623 # incompatible versions:
2624 # SysV /etc/install, /usr/sbin/install
2625 # SunOS /usr/etc/install
2626 # IRIX /sbin/install
2628 # AmigaOS /C/install, which installs bootblocks on floppy discs
2629 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2630 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2631 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2632 # OS/2's system install, which has a completely different semantic
2633 # ./install, which can be erroneously created by make from ./install.sh.
2634 # Reject install programs that cannot install multiple files.
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2636 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2637 if test -z "$INSTALL"; then
2638 if ${ac_cv_path_install+:} false; then :
2639 $as_echo_n "(cached) " >&6
2641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 test -z "$as_dir" && as_dir=.
2646 # Account for people who put trailing slashes in PATH elements.
2647 case $as_dir/ in #((
2648 ./ | .// | /[cC]/* | \
2649 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2650 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2653 # OSF1 and SCO ODT 3.0 have their own names for install.
2654 # Don't use installbsd from OSF since it installs stuff as root
2656 for ac_prog in ginstall scoinst install; do
2657 for ac_exec_ext in '' $ac_executable_extensions; do
2658 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2659 if test $ac_prog = install &&
2660 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2661 # AIX install. It has an incompatible calling convention.
2663 elif test $ac_prog = install &&
2664 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2665 # program-specific install script used by HP pwplus--don't use.
2668 rm -rf conftest.one conftest.two conftest.dir
2669 echo one > conftest.one
2670 echo two > conftest.two
2672 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2673 test -s conftest.one && test -s conftest.two &&
2674 test -s conftest.dir/conftest.one &&
2675 test -s conftest.dir/conftest.two
2677 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2690 rm -rf conftest.one conftest.two conftest.dir
2693 if test "${ac_cv_path_install+set}" = set; then
2694 INSTALL=$ac_cv_path_install
2696 # As a last resort, use the slow shell script. Don't cache a
2697 # value for INSTALL within a source directory, because that will
2698 # break other packages using the cache if that directory is
2699 # removed, or if the value is a relative name.
2700 INSTALL=$ac_install_sh
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2704 $as_echo "$INSTALL" >&6; }
2706 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2707 # It thinks the first close brace ends the variable substitution.
2708 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2710 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2712 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2715 $as_echo_n "checking whether build environment is sane... " >&6; }
2718 echo timestamp > conftest.file
2719 # Do `set' in a subshell so we don't clobber the current shell's
2720 # arguments. Must try -L first in case configure is actually a
2721 # symlink; some systems play weird games with the mod time of symlinks
2722 # (eg FreeBSD returns the mod time of the symlink's containing
2725 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2726 if test "$*" = "X"; then
2728 set X `ls -t $srcdir/configure conftest.file`
2731 if test "$*" != "X $srcdir/configure conftest.file" \
2732 && test "$*" != "X conftest.file $srcdir/configure"; then
2734 # If neither matched, then we have a broken ls. This can happen
2735 # if, for instance, CONFIG_SHELL is bash and it inherits a
2736 # broken ls alias from the environment. This has actually
2737 # happened. Such a system could not be considered "sane".
2738 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2739 alias in your environment" "$LINENO" 5
2742 test "$2" = conftest.file
2748 as_fn_error $? "newly created file is older than distributed files!
2749 Check your system clock" "$LINENO" 5
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2752 $as_echo "yes" >&6; }
2753 test "$program_prefix" != NONE &&
2754 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2755 # Use a double $ so make ignores it.
2756 test "$program_suffix" != NONE &&
2757 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2758 # Double any \ or $.
2759 # By default was `s,x,x', remove it if useless.
2760 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2761 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2763 # expand $ac_aux_dir to an absolute path
2764 am_aux_dir=`cd $ac_aux_dir && pwd`
2766 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2767 # Use eval to expand $SHELL
2768 if eval "$MISSING --run true"; then
2769 am_missing_run="$MISSING --run "
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2773 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2776 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2777 # We used to keeping the `.' as first argument, in order to
2778 # allow $(mkdir_p) to be used without argument. As in
2779 # $(mkdir_p) $(somedir)
2780 # where $(somedir) is conditionally defined. However this is wrong
2782 # 1. if the package is installed by a user who cannot write `.'
2783 # make install will fail,
2784 # 2. the above comment should most certainly read
2785 # $(mkdir_p) $(DESTDIR)$(somedir)
2786 # so it does not work when $(somedir) is undefined and
2787 # $(DESTDIR) is not.
2788 # To support the latter case, we have to write
2789 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2790 # so the `.' trick is pointless.
2791 mkdir_p='mkdir -p --'
2793 # On NextStep and OpenStep, the `mkdir' command does not
2794 # recognize any option. It will interpret all options as
2795 # directories to create, and then abort because `.' already
2797 for d in ./-p ./--version;
2799 test -d $d && rmdir $d
2801 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2802 if test -f "$ac_aux_dir/mkinstalldirs"; then
2803 mkdir_p='$(mkinstalldirs)'
2805 mkdir_p='$(install_sh) -d'
2809 for ac_prog in gawk mawk nawk awk
2811 # Extract the first word of "$ac_prog", so it can be a program name with args.
2812 set dummy $ac_prog; ac_word=$2
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2814 $as_echo_n "checking for $ac_word... " >&6; }
2815 if ${ac_cv_prog_AWK+:} false; then :
2816 $as_echo_n "(cached) " >&6
2818 if test -n "$AWK"; then
2819 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2828 ac_cv_prog_AWK="$ac_prog"
2829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2839 if test -n "$AWK"; then
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2841 $as_echo "$AWK" >&6; }
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2844 $as_echo "no" >&6; }
2848 test -n "$AWK" && break
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2852 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2854 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2855 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2856 $as_echo_n "(cached) " >&6
2858 cat >conftest.make <<\_ACEOF
2861 @echo '@@@%%%=$(MAKE)=@@@%%%'
2863 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2864 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2866 eval ac_cv_prog_make_${ac_make}_set=yes;;
2868 eval ac_cv_prog_make_${ac_make}_set=no;;
2872 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2874 $as_echo "yes" >&6; }
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2878 $as_echo "no" >&6; }
2879 SET_MAKE="MAKE=${MAKE-make}"
2882 rm -rf .tst 2>/dev/null
2883 mkdir .tst 2>/dev/null
2884 if test -d .tst; then
2889 rmdir .tst 2>/dev/null
2891 # test to see if srcdir already configured
2892 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2893 test -f $srcdir/config.status; then
2894 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2897 # test whether we have cygpath
2898 if test -z "$CYGPATH_W"; then
2899 if (cygpath --version) >/dev/null 2>/dev/null; then
2900 CYGPATH_W='cygpath -w'
2907 # Define the identity of the package.
2912 cat >>confdefs.h <<_ACEOF
2913 #define PACKAGE "$PACKAGE"
2917 cat >>confdefs.h <<_ACEOF
2918 #define VERSION "$VERSION"
2921 # Some tools Automake needs.
2923 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2926 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2929 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2932 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2935 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2937 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2939 # Installed binaries are usually stripped using `strip' when the user
2940 # run `make install-strip'. However `strip' might not be the right
2941 # tool to use in cross-compilation environments, therefore Automake
2942 # will honor the `STRIP' environment variable to overrule this program.
2943 if test "$cross_compiling" != no; then
2944 if test -n "$ac_tool_prefix"; then
2945 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2946 set dummy ${ac_tool_prefix}strip; ac_word=$2
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2948 $as_echo_n "checking for $ac_word... " >&6; }
2949 if ${ac_cv_prog_STRIP+:} false; then :
2950 $as_echo_n "(cached) " >&6
2952 if test -n "$STRIP"; then
2953 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959 test -z "$as_dir" && as_dir=.
2960 for ac_exec_ext in '' $ac_executable_extensions; do
2961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2962 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2972 STRIP=$ac_cv_prog_STRIP
2973 if test -n "$STRIP"; then
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2975 $as_echo "$STRIP" >&6; }
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978 $as_echo "no" >&6; }
2983 if test -z "$ac_cv_prog_STRIP"; then
2985 # Extract the first word of "strip", so it can be a program name with args.
2986 set dummy strip; ac_word=$2
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2988 $as_echo_n "checking for $ac_word... " >&6; }
2989 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2990 $as_echo_n "(cached) " >&6
2992 if test -n "$ac_ct_STRIP"; then
2993 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 test -z "$as_dir" && as_dir=.
3000 for ac_exec_ext in '' $ac_executable_extensions; do
3001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3002 ac_cv_prog_ac_ct_STRIP="strip"
3003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3012 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3013 if test -n "$ac_ct_STRIP"; then
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3015 $as_echo "$ac_ct_STRIP" >&6; }
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018 $as_echo "no" >&6; }
3021 if test "x$ac_ct_STRIP" = x; then
3024 case $cross_compiling:$ac_tool_warned in
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3028 ac_tool_warned=yes ;;
3033 STRIP="$ac_cv_prog_STRIP"
3037 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3039 # We need awk for the "check" target. The system "awk" is bad on
3041 # Always define AMTAR for backward compatibility.
3043 AMTAR=${AMTAR-"${am_missing_run}tar"}
3045 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3052 DEPDIR="${am__leading_dot}deps"
3054 ac_config_commands="$ac_config_commands depfiles"
3057 am_make=${MAKE-make}
3058 cat > confinc << 'END'
3063 # If we don't find an include directive, just comment out the code.
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3065 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3069 # First try GNU make style include.
3070 echo "include confinc" > confmf
3071 # We grep out `Entering directory' and `Leaving directory'
3072 # messages which can occur if `w' ends up in MAKEFLAGS.
3073 # In particular we don't look at `^make:' because GNU make might
3074 # be invoked under some other name (usually "gmake"), in which
3075 # case it prints its new name instead of `make'.
3076 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3081 # Now try BSD make style include.
3082 if test "$am__include" = "#"; then
3083 echo '.include "confinc"' > confmf
3084 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3085 am__include=.include
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3093 $as_echo "$_am_result" >&6; }
3094 rm -f confinc confmf
3096 # Check whether --enable-dependency-tracking was given.
3097 if test "${enable_dependency_tracking+set}" = set; then :
3098 enableval=$enable_dependency_tracking;
3101 if test "x$enable_dependency_tracking" != xno; then
3102 am_depcomp="$ac_aux_dir/depcomp"
3107 if test "x$enable_dependency_tracking" != xno; then
3118 ac_cpp='$CPP $CPPFLAGS'
3119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3122 if test -n "$ac_tool_prefix"; then
3123 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3124 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3126 $as_echo_n "checking for $ac_word... " >&6; }
3127 if ${ac_cv_prog_CC+:} false; then :
3128 $as_echo_n "(cached) " >&6
3130 if test -n "$CC"; then
3131 ac_cv_prog_CC="$CC" # Let the user override the test.
3133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137 test -z "$as_dir" && as_dir=.
3138 for ac_exec_ext in '' $ac_executable_extensions; do
3139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3140 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3151 if test -n "$CC"; then
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3153 $as_echo "$CC" >&6; }
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3156 $as_echo "no" >&6; }
3161 if test -z "$ac_cv_prog_CC"; then
3163 # Extract the first word of "gcc", so it can be a program name with args.
3164 set dummy gcc; ac_word=$2
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3166 $as_echo_n "checking for $ac_word... " >&6; }
3167 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3168 $as_echo_n "(cached) " >&6
3170 if test -n "$ac_ct_CC"; then
3171 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177 test -z "$as_dir" && as_dir=.
3178 for ac_exec_ext in '' $ac_executable_extensions; do
3179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3180 ac_cv_prog_ac_ct_CC="gcc"
3181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3190 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3191 if test -n "$ac_ct_CC"; then
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3193 $as_echo "$ac_ct_CC" >&6; }
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196 $as_echo "no" >&6; }
3199 if test "x$ac_ct_CC" = x; then
3202 case $cross_compiling:$ac_tool_warned in
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3205 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3206 ac_tool_warned=yes ;;
3214 if test -z "$CC"; then
3215 if test -n "$ac_tool_prefix"; then
3216 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3217 set dummy ${ac_tool_prefix}cc; ac_word=$2
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3219 $as_echo_n "checking for $ac_word... " >&6; }
3220 if ${ac_cv_prog_CC+:} false; then :
3221 $as_echo_n "(cached) " >&6
3223 if test -n "$CC"; then
3224 ac_cv_prog_CC="$CC" # Let the user override the test.
3226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230 test -z "$as_dir" && as_dir=.
3231 for ac_exec_ext in '' $ac_executable_extensions; do
3232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3233 ac_cv_prog_CC="${ac_tool_prefix}cc"
3234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3244 if test -n "$CC"; then
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3246 $as_echo "$CC" >&6; }
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3249 $as_echo "no" >&6; }
3255 if test -z "$CC"; then
3256 # Extract the first word of "cc", so it can be a program name with args.
3257 set dummy cc; ac_word=$2
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3259 $as_echo_n "checking for $ac_word... " >&6; }
3260 if ${ac_cv_prog_CC+:} false; then :
3261 $as_echo_n "(cached) " >&6
3263 if test -n "$CC"; then
3264 ac_cv_prog_CC="$CC" # Let the user override the test.
3267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271 test -z "$as_dir" && as_dir=.
3272 for ac_exec_ext in '' $ac_executable_extensions; do
3273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3274 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3275 ac_prog_rejected=yes
3279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3286 if test $ac_prog_rejected = yes; then
3287 # We found a bogon in the path, so make sure we never use it.
3288 set dummy $ac_cv_prog_CC
3290 if test $# != 0; then
3291 # We chose a different compiler from the bogus one.
3292 # However, it has the same basename, so the bogon will be chosen
3293 # first if we set CC to just the basename; use the full file name.
3295 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3301 if test -n "$CC"; then
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3303 $as_echo "$CC" >&6; }
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 $as_echo "no" >&6; }
3311 if test -z "$CC"; then
3312 if test -n "$ac_tool_prefix"; then
3313 for ac_prog in cl.exe
3315 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3316 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3318 $as_echo_n "checking for $ac_word... " >&6; }
3319 if ${ac_cv_prog_CC+:} false; then :
3320 $as_echo_n "(cached) " >&6
3322 if test -n "$CC"; then
3323 ac_cv_prog_CC="$CC" # Let the user override the test.
3325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3329 test -z "$as_dir" && as_dir=.
3330 for ac_exec_ext in '' $ac_executable_extensions; do
3331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3332 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3343 if test -n "$CC"; then
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3345 $as_echo "$CC" >&6; }
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348 $as_echo "no" >&6; }
3352 test -n "$CC" && break
3355 if test -z "$CC"; then
3357 for ac_prog in cl.exe
3359 # Extract the first word of "$ac_prog", so it can be a program name with args.
3360 set dummy $ac_prog; ac_word=$2
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3362 $as_echo_n "checking for $ac_word... " >&6; }
3363 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3364 $as_echo_n "(cached) " >&6
3366 if test -n "$ac_ct_CC"; then
3367 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373 test -z "$as_dir" && as_dir=.
3374 for ac_exec_ext in '' $ac_executable_extensions; do
3375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3376 ac_cv_prog_ac_ct_CC="$ac_prog"
3377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3386 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3387 if test -n "$ac_ct_CC"; then
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3389 $as_echo "$ac_ct_CC" >&6; }
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3392 $as_echo "no" >&6; }
3396 test -n "$ac_ct_CC" && break
3399 if test "x$ac_ct_CC" = x; then
3402 case $cross_compiling:$ac_tool_warned in
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3405 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3406 ac_tool_warned=yes ;;
3415 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3416 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3417 as_fn_error $? "no acceptable C compiler found in \$PATH
3418 See \`config.log' for more details" "$LINENO" 5; }
3420 # Provide some information about the compiler.
3421 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3424 for ac_option in --version -v -V -qversion; do
3425 { { ac_try="$ac_compiler $ac_option >&5"
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3430 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3431 $as_echo "$ac_try_echo"; } >&5
3432 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3434 if test -s conftest.err; then
3436 ... rest of stderr output deleted ...
3437 10q' conftest.err >conftest.er1
3438 cat conftest.er1 >&5
3440 rm -f conftest.er1 conftest.err
3441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3442 test $ac_status = 0; }
3445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3446 /* end confdefs.h. */
3456 ac_clean_files_save=$ac_clean_files
3457 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3458 # Try to create an executable without -o first, disregard a.out.
3459 # It will help us diagnose broken compilers, and finding out an intuition
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3462 $as_echo_n "checking whether the C compiler works... " >&6; }
3463 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3465 # The possible output files:
3466 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3469 for ac_file in $ac_files
3472 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3473 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3478 if { { ac_try="$ac_link_default"
3480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481 *) ac_try_echo=$ac_try;;
3483 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3484 $as_echo "$ac_try_echo"; } >&5
3485 (eval "$ac_link_default") 2>&5
3487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3488 test $ac_status = 0; }; then :
3489 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3490 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3491 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3492 # so that the user can short-circuit this test for compilers unknown to
3494 for ac_file in $ac_files ''
3496 test -f "$ac_file" || continue
3498 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3501 # We found the default executable, but exeext='' is most
3505 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3507 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3509 # We set ac_cv_exeext here because the later test for it is not
3510 # safe: cross compilers may not add the suffix if given an `-o'
3511 # argument, so we may need to know it at that point already.
3512 # Even if this section looks crufty: it has the advantage of
3519 test "$ac_cv_exeext" = no && ac_cv_exeext=
3524 if test -z "$ac_file"; then :
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3526 $as_echo "no" >&6; }
3527 $as_echo "$as_me: failed program was:" >&5
3528 sed 's/^/| /' conftest.$ac_ext >&5
3530 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3532 as_fn_error 77 "C compiler cannot create executables
3533 See \`config.log' for more details" "$LINENO" 5; }
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3536 $as_echo "yes" >&6; }
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3539 $as_echo_n "checking for C compiler default output file name... " >&6; }
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3541 $as_echo "$ac_file" >&6; }
3542 ac_exeext=$ac_cv_exeext
3544 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3545 ac_clean_files=$ac_clean_files_save
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3547 $as_echo_n "checking for suffix of executables... " >&6; }
3548 if { { ac_try="$ac_link"
3550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3551 *) ac_try_echo=$ac_try;;
3553 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3554 $as_echo "$ac_try_echo"; } >&5
3555 (eval "$ac_link") 2>&5
3557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3558 test $ac_status = 0; }; then :
3559 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3560 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3561 # work properly (i.e., refer to `conftest.exe'), while it won't with
3563 for ac_file in conftest.exe conftest conftest.*; do
3564 test -f "$ac_file" || continue
3566 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3567 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3575 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3576 See \`config.log' for more details" "$LINENO" 5; }
3578 rm -f conftest conftest$ac_cv_exeext
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3580 $as_echo "$ac_cv_exeext" >&6; }
3582 rm -f conftest.$ac_ext
3583 EXEEXT=$ac_cv_exeext
3585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586 /* end confdefs.h. */
3591 FILE *f = fopen ("conftest.out", "w");
3592 return ferror (f) || fclose (f) != 0;
3598 ac_clean_files="$ac_clean_files conftest.out"
3599 # Check that the compiler produces executables we can run. If not, either
3600 # the compiler is broken, or we cross compile.
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3602 $as_echo_n "checking whether we are cross compiling... " >&6; }
3603 if test "$cross_compiling" != yes; then
3604 { { ac_try="$ac_link"
3606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3607 *) ac_try_echo=$ac_try;;
3609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3610 $as_echo "$ac_try_echo"; } >&5
3611 (eval "$ac_link") 2>&5
3613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3614 test $ac_status = 0; }
3615 if { ac_try='./conftest$ac_cv_exeext'
3616 { { case "(($ac_try" in
3617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3621 $as_echo "$ac_try_echo"; } >&5
3622 (eval "$ac_try") 2>&5
3624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3625 test $ac_status = 0; }; }; then
3628 if test "$cross_compiling" = maybe; then
3631 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3632 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3633 as_fn_error $? "cannot run C compiled programs.
3634 If you meant to cross compile, use \`--host'.
3635 See \`config.log' for more details" "$LINENO" 5; }
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3640 $as_echo "$cross_compiling" >&6; }
3642 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3643 ac_clean_files=$ac_clean_files_save
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3645 $as_echo_n "checking for suffix of object files... " >&6; }
3646 if ${ac_cv_objext+:} false; then :
3647 $as_echo_n "(cached) " >&6
3649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650 /* end confdefs.h. */
3660 rm -f conftest.o conftest.obj
3661 if { { ac_try="$ac_compile"
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3667 $as_echo "$ac_try_echo"; } >&5
3668 (eval "$ac_compile") 2>&5
3670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3671 test $ac_status = 0; }; then :
3672 for ac_file in conftest.o conftest.obj conftest.*; do
3673 test -f "$ac_file" || continue;
3675 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3676 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3681 $as_echo "$as_me: failed program was:" >&5
3682 sed 's/^/| /' conftest.$ac_ext >&5
3684 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3686 as_fn_error $? "cannot compute suffix of object files: cannot compile
3687 See \`config.log' for more details" "$LINENO" 5; }
3689 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3692 $as_echo "$ac_cv_objext" >&6; }
3693 OBJEXT=$ac_cv_objext
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3696 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3697 if ${ac_cv_c_compiler_gnu+:} false; then :
3698 $as_echo_n "(cached) " >&6
3700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3701 /* end confdefs.h. */
3714 if ac_fn_c_try_compile "$LINENO"; then :
3719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3720 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3724 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3725 if test $ac_compiler_gnu = yes; then
3730 ac_test_CFLAGS=${CFLAGS+set}
3731 ac_save_CFLAGS=$CFLAGS
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3733 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3734 if ${ac_cv_prog_cc_g+:} false; then :
3735 $as_echo_n "(cached) " >&6
3737 ac_save_c_werror_flag=$ac_c_werror_flag
3738 ac_c_werror_flag=yes
3741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3742 /* end confdefs.h. */
3752 if ac_fn_c_try_compile "$LINENO"; then :
3756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757 /* end confdefs.h. */
3767 if ac_fn_c_try_compile "$LINENO"; then :
3770 ac_c_werror_flag=$ac_save_c_werror_flag
3772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773 /* end confdefs.h. */
3783 if ac_fn_c_try_compile "$LINENO"; then :
3786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3791 ac_c_werror_flag=$ac_save_c_werror_flag
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3794 $as_echo "$ac_cv_prog_cc_g" >&6; }
3795 if test "$ac_test_CFLAGS" = set; then
3796 CFLAGS=$ac_save_CFLAGS
3797 elif test $ac_cv_prog_cc_g = yes; then
3798 if test "$GCC" = yes; then
3804 if test "$GCC" = yes; then
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3811 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3812 if ${ac_cv_prog_cc_c89+:} false; then :
3813 $as_echo_n "(cached) " >&6
3815 ac_cv_prog_cc_c89=no
3817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818 /* end confdefs.h. */
3821 #include <sys/types.h>
3822 #include <sys/stat.h>
3823 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3824 struct buf { int x; };
3825 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3826 static char *e (p, i)
3832 static char *f (char * (*g) (char **, int), char **p, ...)
3837 s = g (p, va_arg (v,int));
3842 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3843 function prototypes and stuff, but not '\xHH' hex character constants.
3844 These don't provoke an error unfortunately, instead are silently treated
3845 as 'x'. The following induces an error, until -std is added to get
3846 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3847 array size at least. It's necessary to write '\x00'==0 to get something
3848 that's true only with -std. */
3849 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3851 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3852 inside strings and character constants. */
3854 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3856 int test (int i, double x);
3857 struct s1 {int (*f) (int a);};
3858 struct s2 {int (*f) (double a);};
3859 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3865 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3870 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3871 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3873 CC="$ac_save_CC $ac_arg"
3874 if ac_fn_c_try_compile "$LINENO"; then :
3875 ac_cv_prog_cc_c89=$ac_arg
3877 rm -f core conftest.err conftest.$ac_objext
3878 test "x$ac_cv_prog_cc_c89" != "xno" && break
3880 rm -f conftest.$ac_ext
3885 case "x$ac_cv_prog_cc_c89" in
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3888 $as_echo "none needed" >&6; } ;;
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3891 $as_echo "unsupported" >&6; } ;;
3893 CC="$CC $ac_cv_prog_cc_c89"
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3895 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3897 if test "x$ac_cv_prog_cc_c89" != xno; then :
3902 ac_cpp='$CPP $CPPFLAGS'
3903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3907 depcc="$CC" am_compiler_list=
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3910 $as_echo_n "checking dependency style of $depcc... " >&6; }
3911 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3912 $as_echo_n "(cached) " >&6
3914 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3915 # We make a subdir and do the tests there. Otherwise we can end up
3916 # making bogus files that we don't know about and never remove. For
3917 # instance it was reported that on HP-UX the gcc test will end up
3918 # making a dummy file named `D' -- because `-MD' means `put the output
3921 # Copy depcomp to subdir because otherwise we won't find it if we're
3922 # using a relative directory.
3923 cp "$am_depcomp" conftest.dir
3925 # We will build objects and dependencies in a subdirectory because
3926 # it helps to detect inapplicable dependency modes. For instance
3927 # both Tru64's cc and ICC support -MD to output dependencies as a
3928 # side effect of compilation, but ICC will put the dependencies in
3929 # the current directory while Tru64 will put them in the object
3933 am_cv_CC_dependencies_compiler_type=none
3934 if test "$am_compiler_list" = ""; then
3935 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3937 for depmode in $am_compiler_list; do
3938 # Setup a source with many dependencies, because some compilers
3939 # like to wrap large dependency lists on column 80 (with \), and
3940 # we should not choose a depcomp mode which is confused by this.
3942 # We need to recreate these files for each test, as the compiler may
3943 # overwrite some of them when testing with obscure command lines.
3944 # This happens at least with the AIX C compiler.
3946 for i in 1 2 3 4 5 6; do
3947 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3948 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3949 # Solaris 8's {/usr,}/bin/sh.
3950 touch sub/conftst$i.h
3952 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3956 # after this tag, mechanisms are not by side-effect, so they'll
3957 # only be used when explicitly requested
3958 if test "x$enable_dependency_tracking" = xyes; then
3966 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3967 # mode. It turns out that the SunPro C++ compiler does not properly
3968 # handle `-M -o', and we need to detect this.
3969 if depmode=$depmode \
3970 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3971 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3972 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3973 >/dev/null 2>conftest.err &&
3974 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3975 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3976 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3977 # icc doesn't choke on unknown options, it will just issue warnings
3978 # or remarks (even with -Werror). So we grep stderr for any message
3979 # that says an option was ignored or not supported.
3980 # When given -MP, icc 7.0 and 7.1 complain thusly:
3981 # icc: Command line warning: ignoring option '-M'; no argument required
3982 # The diagnosis changed in icc 8.0:
3983 # icc: Command line remark: option '-MP' not supported
3984 if (grep 'ignoring option' conftest.err ||
3985 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3986 am_cv_CC_dependencies_compiler_type=$depmode
3995 am_cv_CC_dependencies_compiler_type=none
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4000 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4001 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4006 test "x$enable_dependency_tracking" != xno \
4007 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4009 am__fastdepCC_FALSE='#'
4011 am__fastdepCC_TRUE='#'
4012 am__fastdepCC_FALSE=
4017 # Check whether --enable-largefile was given.
4018 if test "${enable_largefile+set}" = set; then :
4019 enableval=$enable_largefile;
4022 if test "$enable_largefile" != no; then
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4025 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4026 if ${ac_cv_sys_largefile_CC+:} false; then :
4027 $as_echo_n "(cached) " >&6
4029 ac_cv_sys_largefile_CC=no
4030 if test "$GCC" != yes; then
4033 # IRIX 6.2 and later do not support large files by default,
4034 # so use the C compiler's -n32 option if that helps.
4035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4036 /* end confdefs.h. */
4037 #include <sys/types.h>
4038 /* Check that off_t can represent 2**63 - 1 correctly.
4039 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4040 since some C++ compilers masquerading as C compilers
4041 incorrectly reject 9223372036854775807. */
4042 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4043 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4044 && LARGE_OFF_T % 2147483647 == 1)
4054 if ac_fn_c_try_compile "$LINENO"; then :
4057 rm -f core conftest.err conftest.$ac_objext
4059 if ac_fn_c_try_compile "$LINENO"; then :
4060 ac_cv_sys_largefile_CC=' -n32'; break
4062 rm -f core conftest.err conftest.$ac_objext
4066 rm -f conftest.$ac_ext
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4070 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4071 if test "$ac_cv_sys_largefile_CC" != no; then
4072 CC=$CC$ac_cv_sys_largefile_CC
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4076 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4077 if ${ac_cv_sys_file_offset_bits+:} false; then :
4078 $as_echo_n "(cached) " >&6
4081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4082 /* end confdefs.h. */
4083 #include <sys/types.h>
4084 /* Check that off_t can represent 2**63 - 1 correctly.
4085 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4086 since some C++ compilers masquerading as C compilers
4087 incorrectly reject 9223372036854775807. */
4088 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4089 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4090 && LARGE_OFF_T % 2147483647 == 1)
4100 if ac_fn_c_try_compile "$LINENO"; then :
4101 ac_cv_sys_file_offset_bits=no; break
4103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105 /* end confdefs.h. */
4106 #define _FILE_OFFSET_BITS 64
4107 #include <sys/types.h>
4108 /* Check that off_t can represent 2**63 - 1 correctly.
4109 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4110 since some C++ compilers masquerading as C compilers
4111 incorrectly reject 9223372036854775807. */
4112 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4113 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4114 && LARGE_OFF_T % 2147483647 == 1)
4124 if ac_fn_c_try_compile "$LINENO"; then :
4125 ac_cv_sys_file_offset_bits=64; break
4127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4128 ac_cv_sys_file_offset_bits=unknown
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4133 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4134 case $ac_cv_sys_file_offset_bits in #(
4137 cat >>confdefs.h <<_ACEOF
4138 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4143 if test $ac_cv_sys_file_offset_bits = unknown; then
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4145 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4146 if ${ac_cv_sys_large_files+:} false; then :
4147 $as_echo_n "(cached) " >&6
4150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4151 /* end confdefs.h. */
4152 #include <sys/types.h>
4153 /* Check that off_t can represent 2**63 - 1 correctly.
4154 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4155 since some C++ compilers masquerading as C compilers
4156 incorrectly reject 9223372036854775807. */
4157 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4158 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4159 && LARGE_OFF_T % 2147483647 == 1)
4169 if ac_fn_c_try_compile "$LINENO"; then :
4170 ac_cv_sys_large_files=no; break
4172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4174 /* end confdefs.h. */
4175 #define _LARGE_FILES 1
4176 #include <sys/types.h>
4177 /* Check that off_t can represent 2**63 - 1 correctly.
4178 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4179 since some C++ compilers masquerading as C compilers
4180 incorrectly reject 9223372036854775807. */
4181 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4182 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4183 && LARGE_OFF_T % 2147483647 == 1)
4193 if ac_fn_c_try_compile "$LINENO"; then :
4194 ac_cv_sys_large_files=1; break
4196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4197 ac_cv_sys_large_files=unknown
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4202 $as_echo "$ac_cv_sys_large_files" >&6; }
4203 case $ac_cv_sys_large_files in #(
4206 cat >>confdefs.h <<_ACEOF
4207 #define _LARGE_FILES $ac_cv_sys_large_files
4216 # Check for required programs.
4218 ac_cpp='$CPP $CPPFLAGS'
4219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4222 if test -n "$ac_tool_prefix"; then
4223 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4224 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4226 $as_echo_n "checking for $ac_word... " >&6; }
4227 if ${ac_cv_prog_CC+:} false; then :
4228 $as_echo_n "(cached) " >&6
4230 if test -n "$CC"; then
4231 ac_cv_prog_CC="$CC" # Let the user override the test.
4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237 test -z "$as_dir" && as_dir=.
4238 for ac_exec_ext in '' $ac_executable_extensions; do
4239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4240 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4251 if test -n "$CC"; then
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4253 $as_echo "$CC" >&6; }
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4256 $as_echo "no" >&6; }
4261 if test -z "$ac_cv_prog_CC"; then
4263 # Extract the first word of "gcc", so it can be a program name with args.
4264 set dummy gcc; ac_word=$2
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4266 $as_echo_n "checking for $ac_word... " >&6; }
4267 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4268 $as_echo_n "(cached) " >&6
4270 if test -n "$ac_ct_CC"; then
4271 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277 test -z "$as_dir" && as_dir=.
4278 for ac_exec_ext in '' $ac_executable_extensions; do
4279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4280 ac_cv_prog_ac_ct_CC="gcc"
4281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4290 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4291 if test -n "$ac_ct_CC"; then
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4293 $as_echo "$ac_ct_CC" >&6; }
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4296 $as_echo "no" >&6; }
4299 if test "x$ac_ct_CC" = x; then
4302 case $cross_compiling:$ac_tool_warned in
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4306 ac_tool_warned=yes ;;
4314 if test -z "$CC"; then
4315 if test -n "$ac_tool_prefix"; then
4316 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4317 set dummy ${ac_tool_prefix}cc; ac_word=$2
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4319 $as_echo_n "checking for $ac_word... " >&6; }
4320 if ${ac_cv_prog_CC+:} false; then :
4321 $as_echo_n "(cached) " >&6
4323 if test -n "$CC"; then
4324 ac_cv_prog_CC="$CC" # Let the user override the test.
4326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330 test -z "$as_dir" && as_dir=.
4331 for ac_exec_ext in '' $ac_executable_extensions; do
4332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4333 ac_cv_prog_CC="${ac_tool_prefix}cc"
4334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4344 if test -n "$CC"; then
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4346 $as_echo "$CC" >&6; }
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4349 $as_echo "no" >&6; }
4355 if test -z "$CC"; then
4356 # Extract the first word of "cc", so it can be a program name with args.
4357 set dummy cc; ac_word=$2
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4359 $as_echo_n "checking for $ac_word... " >&6; }
4360 if ${ac_cv_prog_CC+:} false; then :
4361 $as_echo_n "(cached) " >&6
4363 if test -n "$CC"; then
4364 ac_cv_prog_CC="$CC" # Let the user override the test.
4367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4371 test -z "$as_dir" && as_dir=.
4372 for ac_exec_ext in '' $ac_executable_extensions; do
4373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4374 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4375 ac_prog_rejected=yes
4379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4386 if test $ac_prog_rejected = yes; then
4387 # We found a bogon in the path, so make sure we never use it.
4388 set dummy $ac_cv_prog_CC
4390 if test $# != 0; then
4391 # We chose a different compiler from the bogus one.
4392 # However, it has the same basename, so the bogon will be chosen
4393 # first if we set CC to just the basename; use the full file name.
4395 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4401 if test -n "$CC"; then
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4403 $as_echo "$CC" >&6; }
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4406 $as_echo "no" >&6; }
4411 if test -z "$CC"; then
4412 if test -n "$ac_tool_prefix"; then
4413 for ac_prog in cl.exe
4415 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4416 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4418 $as_echo_n "checking for $ac_word... " >&6; }
4419 if ${ac_cv_prog_CC+:} false; then :
4420 $as_echo_n "(cached) " >&6
4422 if test -n "$CC"; then
4423 ac_cv_prog_CC="$CC" # Let the user override the test.
4425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429 test -z "$as_dir" && as_dir=.
4430 for ac_exec_ext in '' $ac_executable_extensions; do
4431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4432 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4443 if test -n "$CC"; then
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4445 $as_echo "$CC" >&6; }
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4448 $as_echo "no" >&6; }
4452 test -n "$CC" && break
4455 if test -z "$CC"; then
4457 for ac_prog in cl.exe
4459 # Extract the first word of "$ac_prog", so it can be a program name with args.
4460 set dummy $ac_prog; ac_word=$2
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4462 $as_echo_n "checking for $ac_word... " >&6; }
4463 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4464 $as_echo_n "(cached) " >&6
4466 if test -n "$ac_ct_CC"; then
4467 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473 test -z "$as_dir" && as_dir=.
4474 for ac_exec_ext in '' $ac_executable_extensions; do
4475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4476 ac_cv_prog_ac_ct_CC="$ac_prog"
4477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4486 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4487 if test -n "$ac_ct_CC"; then
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4489 $as_echo "$ac_ct_CC" >&6; }
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4492 $as_echo "no" >&6; }
4496 test -n "$ac_ct_CC" && break
4499 if test "x$ac_ct_CC" = x; then
4502 case $cross_compiling:$ac_tool_warned in
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4505 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4506 ac_tool_warned=yes ;;
4515 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4516 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4517 as_fn_error $? "no acceptable C compiler found in \$PATH
4518 See \`config.log' for more details" "$LINENO" 5; }
4520 # Provide some information about the compiler.
4521 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4524 for ac_option in --version -v -V -qversion; do
4525 { { ac_try="$ac_compiler $ac_option >&5"
4527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4528 *) ac_try_echo=$ac_try;;
4530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4531 $as_echo "$ac_try_echo"; } >&5
4532 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4534 if test -s conftest.err; then
4536 ... rest of stderr output deleted ...
4537 10q' conftest.err >conftest.er1
4538 cat conftest.er1 >&5
4540 rm -f conftest.er1 conftest.err
4541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4542 test $ac_status = 0; }
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4546 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4547 if ${ac_cv_c_compiler_gnu+:} false; then :
4548 $as_echo_n "(cached) " >&6
4550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4551 /* end confdefs.h. */
4564 if ac_fn_c_try_compile "$LINENO"; then :
4569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4570 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4574 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4575 if test $ac_compiler_gnu = yes; then
4580 ac_test_CFLAGS=${CFLAGS+set}
4581 ac_save_CFLAGS=$CFLAGS
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4583 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4584 if ${ac_cv_prog_cc_g+:} false; then :
4585 $as_echo_n "(cached) " >&6
4587 ac_save_c_werror_flag=$ac_c_werror_flag
4588 ac_c_werror_flag=yes
4591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592 /* end confdefs.h. */
4602 if ac_fn_c_try_compile "$LINENO"; then :
4606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4607 /* end confdefs.h. */
4617 if ac_fn_c_try_compile "$LINENO"; then :
4620 ac_c_werror_flag=$ac_save_c_werror_flag
4622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4623 /* end confdefs.h. */
4633 if ac_fn_c_try_compile "$LINENO"; then :
4636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4641 ac_c_werror_flag=$ac_save_c_werror_flag
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4644 $as_echo "$ac_cv_prog_cc_g" >&6; }
4645 if test "$ac_test_CFLAGS" = set; then
4646 CFLAGS=$ac_save_CFLAGS
4647 elif test $ac_cv_prog_cc_g = yes; then
4648 if test "$GCC" = yes; then
4654 if test "$GCC" = yes; then
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4661 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4662 if ${ac_cv_prog_cc_c89+:} false; then :
4663 $as_echo_n "(cached) " >&6
4665 ac_cv_prog_cc_c89=no
4667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4668 /* end confdefs.h. */
4671 #include <sys/types.h>
4672 #include <sys/stat.h>
4673 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4674 struct buf { int x; };
4675 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4676 static char *e (p, i)
4682 static char *f (char * (*g) (char **, int), char **p, ...)
4687 s = g (p, va_arg (v,int));
4692 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4693 function prototypes and stuff, but not '\xHH' hex character constants.
4694 These don't provoke an error unfortunately, instead are silently treated
4695 as 'x'. The following induces an error, until -std is added to get
4696 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4697 array size at least. It's necessary to write '\x00'==0 to get something
4698 that's true only with -std. */
4699 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4701 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4702 inside strings and character constants. */
4704 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4706 int test (int i, double x);
4707 struct s1 {int (*f) (int a);};
4708 struct s2 {int (*f) (double a);};
4709 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4715 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4720 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4721 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4723 CC="$ac_save_CC $ac_arg"
4724 if ac_fn_c_try_compile "$LINENO"; then :
4725 ac_cv_prog_cc_c89=$ac_arg
4727 rm -f core conftest.err conftest.$ac_objext
4728 test "x$ac_cv_prog_cc_c89" != "xno" && break
4730 rm -f conftest.$ac_ext
4735 case "x$ac_cv_prog_cc_c89" in
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4738 $as_echo "none needed" >&6; } ;;
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4741 $as_echo "unsupported" >&6; } ;;
4743 CC="$CC $ac_cv_prog_cc_c89"
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4745 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4747 if test "x$ac_cv_prog_cc_c89" != xno; then :
4752 ac_cpp='$CPP $CPPFLAGS'
4753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4757 depcc="$CC" am_compiler_list=
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4760 $as_echo_n "checking dependency style of $depcc... " >&6; }
4761 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4762 $as_echo_n "(cached) " >&6
4764 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4765 # We make a subdir and do the tests there. Otherwise we can end up
4766 # making bogus files that we don't know about and never remove. For
4767 # instance it was reported that on HP-UX the gcc test will end up
4768 # making a dummy file named `D' -- because `-MD' means `put the output
4771 # Copy depcomp to subdir because otherwise we won't find it if we're
4772 # using a relative directory.
4773 cp "$am_depcomp" conftest.dir
4775 # We will build objects and dependencies in a subdirectory because
4776 # it helps to detect inapplicable dependency modes. For instance
4777 # both Tru64's cc and ICC support -MD to output dependencies as a
4778 # side effect of compilation, but ICC will put the dependencies in
4779 # the current directory while Tru64 will put them in the object
4783 am_cv_CC_dependencies_compiler_type=none
4784 if test "$am_compiler_list" = ""; then
4785 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4787 for depmode in $am_compiler_list; do
4788 # Setup a source with many dependencies, because some compilers
4789 # like to wrap large dependency lists on column 80 (with \), and
4790 # we should not choose a depcomp mode which is confused by this.
4792 # We need to recreate these files for each test, as the compiler may
4793 # overwrite some of them when testing with obscure command lines.
4794 # This happens at least with the AIX C compiler.
4796 for i in 1 2 3 4 5 6; do
4797 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4798 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4799 # Solaris 8's {/usr,}/bin/sh.
4800 touch sub/conftst$i.h
4802 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4806 # after this tag, mechanisms are not by side-effect, so they'll
4807 # only be used when explicitly requested
4808 if test "x$enable_dependency_tracking" = xyes; then
4816 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4817 # mode. It turns out that the SunPro C++ compiler does not properly
4818 # handle `-M -o', and we need to detect this.
4819 if depmode=$depmode \
4820 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4821 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4822 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4823 >/dev/null 2>conftest.err &&
4824 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4825 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4826 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4827 # icc doesn't choke on unknown options, it will just issue warnings
4828 # or remarks (even with -Werror). So we grep stderr for any message
4829 # that says an option was ignored or not supported.
4830 # When given -MP, icc 7.0 and 7.1 complain thusly:
4831 # icc: Command line warning: ignoring option '-M'; no argument required
4832 # The diagnosis changed in icc 8.0:
4833 # icc: Command line remark: option '-MP' not supported
4834 if (grep 'ignoring option' conftest.err ||
4835 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4836 am_cv_CC_dependencies_compiler_type=$depmode
4845 am_cv_CC_dependencies_compiler_type=none
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4850 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4851 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4856 test "x$enable_dependency_tracking" != xno \
4857 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4859 am__fastdepCC_FALSE='#'
4861 am__fastdepCC_TRUE='#'
4862 am__fastdepCC_FALSE=
4866 if test -n "$ac_tool_prefix"; then
4867 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4868 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4870 $as_echo_n "checking for $ac_word... " >&6; }
4871 if ${ac_cv_prog_RANLIB+:} false; then :
4872 $as_echo_n "(cached) " >&6
4874 if test -n "$RANLIB"; then
4875 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881 test -z "$as_dir" && as_dir=.
4882 for ac_exec_ext in '' $ac_executable_extensions; do
4883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4884 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4894 RANLIB=$ac_cv_prog_RANLIB
4895 if test -n "$RANLIB"; then
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4897 $as_echo "$RANLIB" >&6; }
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4900 $as_echo "no" >&6; }
4905 if test -z "$ac_cv_prog_RANLIB"; then
4906 ac_ct_RANLIB=$RANLIB
4907 # Extract the first word of "ranlib", so it can be a program name with args.
4908 set dummy ranlib; ac_word=$2
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4910 $as_echo_n "checking for $ac_word... " >&6; }
4911 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4912 $as_echo_n "(cached) " >&6
4914 if test -n "$ac_ct_RANLIB"; then
4915 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921 test -z "$as_dir" && as_dir=.
4922 for ac_exec_ext in '' $ac_executable_extensions; do
4923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4924 ac_cv_prog_ac_ct_RANLIB="ranlib"
4925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4934 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4935 if test -n "$ac_ct_RANLIB"; then
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4937 $as_echo "$ac_ct_RANLIB" >&6; }
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4940 $as_echo "no" >&6; }
4943 if test "x$ac_ct_RANLIB" = x; then
4946 case $cross_compiling:$ac_tool_warned in
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4949 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4950 ac_tool_warned=yes ;;
4952 RANLIB=$ac_ct_RANLIB
4955 RANLIB="$ac_cv_prog_RANLIB"
4958 # Check whether --enable-shared was given.
4959 if test "${enable_shared+set}" = set; then :
4960 enableval=$enable_shared; p=${PACKAGE-default}
4962 yes) enable_shared=yes ;;
4963 no) enable_shared=no ;;
4966 # Look at the argument we got. We use all the common list separators.
4967 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4968 for pkg in $enableval; do
4970 if test "X$pkg" = "X$p"; then
4982 # Check whether --enable-static was given.
4983 if test "${enable_static+set}" = set; then :
4984 enableval=$enable_static; p=${PACKAGE-default}
4986 yes) enable_static=yes ;;
4987 no) enable_static=no ;;
4990 # Look at the argument we got. We use all the common list separators.
4991 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4992 for pkg in $enableval; do
4994 if test "X$pkg" = "X$p"; then
5006 # Check whether --enable-fast-install was given.
5007 if test "${enable_fast_install+set}" = set; then :
5008 enableval=$enable_fast_install; p=${PACKAGE-default}
5010 yes) enable_fast_install=yes ;;
5011 no) enable_fast_install=no ;;
5013 enable_fast_install=no
5014 # Look at the argument we got. We use all the common list separators.
5015 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5016 for pkg in $enableval; do
5018 if test "X$pkg" = "X$p"; then
5019 enable_fast_install=yes
5026 enable_fast_install=yes
5030 # Make sure we can run config.sub.
5031 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5032 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5035 $as_echo_n "checking build system type... " >&6; }
5036 if ${ac_cv_build+:} false; then :
5037 $as_echo_n "(cached) " >&6
5039 ac_build_alias=$build_alias
5040 test "x$ac_build_alias" = x &&
5041 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5042 test "x$ac_build_alias" = x &&
5043 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5044 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5045 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5049 $as_echo "$ac_cv_build" >&6; }
5050 case $ac_cv_build in
5052 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5055 ac_save_IFS=$IFS; IFS='-'
5061 # Remember, the first character of IFS is used to create $*,
5062 # except with old shells:
5065 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5069 $as_echo_n "checking host system type... " >&6; }
5070 if ${ac_cv_host+:} false; then :
5071 $as_echo_n "(cached) " >&6
5073 if test "x$host_alias" = x; then
5074 ac_cv_host=$ac_cv_build
5076 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5077 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5082 $as_echo "$ac_cv_host" >&6; }
5085 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5088 ac_save_IFS=$IFS; IFS='-'
5094 # Remember, the first character of IFS is used to create $*,
5095 # except with old shells:
5098 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5102 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5103 if ${lt_cv_path_SED+:} false; then :
5104 $as_echo_n "(cached) " >&6
5106 # Loop through the user's path and test for sed and gsed.
5107 # Then use that list of sed's as ones to test for truncation.
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112 test -z "$as_dir" && as_dir=.
5113 for lt_ac_prog in sed gsed; do
5114 for ac_exec_ext in '' $ac_executable_extensions; do
5115 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5116 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5123 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5124 # along with /bin/sed that truncates output.
5125 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5126 test ! -f $lt_ac_sed && continue
5127 cat /dev/null > conftest.in
5129 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5130 # Check for GNU sed and select it if it is found.
5131 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5132 lt_cv_path_SED=$lt_ac_sed
5136 cat conftest.in conftest.in >conftest.tmp
5137 mv conftest.tmp conftest.in
5138 cp conftest.in conftest.nl
5140 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5141 cmp -s conftest.out conftest.nl || break
5142 # 10000 chars as input seems more than enough
5143 test $lt_ac_count -gt 10 && break
5144 lt_ac_count=`expr $lt_ac_count + 1`
5145 if test $lt_ac_count -gt $lt_ac_max; then
5146 lt_ac_max=$lt_ac_count
5147 lt_cv_path_SED=$lt_ac_sed
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5156 $as_echo "$SED" >&6; }
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5159 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5160 if ${ac_cv_path_GREP+:} false; then :
5161 $as_echo_n "(cached) " >&6
5163 if test -z "$GREP"; then
5164 ac_path_GREP_found=false
5165 # Loop through the user's path and test for each of PROGNAME-LIST
5166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5170 test -z "$as_dir" && as_dir=.
5171 for ac_prog in grep ggrep; do
5172 for ac_exec_ext in '' $ac_executable_extensions; do
5173 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5174 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5175 # Check for GNU ac_path_GREP and select it if it is found.
5176 # Check for GNU $ac_path_GREP
5177 case `"$ac_path_GREP" --version 2>&1` in
5179 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5182 $as_echo_n 0123456789 >"conftest.in"
5185 cat "conftest.in" "conftest.in" >"conftest.tmp"
5186 mv "conftest.tmp" "conftest.in"
5187 cp "conftest.in" "conftest.nl"
5188 $as_echo 'GREP' >> "conftest.nl"
5189 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5190 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5191 as_fn_arith $ac_count + 1 && ac_count=$as_val
5192 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5193 # Best one so far, save it but keep looking for a better one
5194 ac_cv_path_GREP="$ac_path_GREP"
5195 ac_path_GREP_max=$ac_count
5197 # 10*(2^10) chars as input seems more than enough
5198 test $ac_count -gt 10 && break
5200 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5203 $ac_path_GREP_found && break 3
5208 if test -z "$ac_cv_path_GREP"; then
5209 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5212 ac_cv_path_GREP=$GREP
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5217 $as_echo "$ac_cv_path_GREP" >&6; }
5218 GREP="$ac_cv_path_GREP"
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5222 $as_echo_n "checking for egrep... " >&6; }
5223 if ${ac_cv_path_EGREP+:} false; then :
5224 $as_echo_n "(cached) " >&6
5226 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5227 then ac_cv_path_EGREP="$GREP -E"
5229 if test -z "$EGREP"; then
5230 ac_path_EGREP_found=false
5231 # Loop through the user's path and test for each of PROGNAME-LIST
5232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5236 test -z "$as_dir" && as_dir=.
5237 for ac_prog in egrep; do
5238 for ac_exec_ext in '' $ac_executable_extensions; do
5239 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5240 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5241 # Check for GNU ac_path_EGREP and select it if it is found.
5242 # Check for GNU $ac_path_EGREP
5243 case `"$ac_path_EGREP" --version 2>&1` in
5245 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5248 $as_echo_n 0123456789 >"conftest.in"
5251 cat "conftest.in" "conftest.in" >"conftest.tmp"
5252 mv "conftest.tmp" "conftest.in"
5253 cp "conftest.in" "conftest.nl"
5254 $as_echo 'EGREP' >> "conftest.nl"
5255 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5256 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5257 as_fn_arith $ac_count + 1 && ac_count=$as_val
5258 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5259 # Best one so far, save it but keep looking for a better one
5260 ac_cv_path_EGREP="$ac_path_EGREP"
5261 ac_path_EGREP_max=$ac_count
5263 # 10*(2^10) chars as input seems more than enough
5264 test $ac_count -gt 10 && break
5266 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5269 $ac_path_EGREP_found && break 3
5274 if test -z "$ac_cv_path_EGREP"; then
5275 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5278 ac_cv_path_EGREP=$EGREP
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5284 $as_echo "$ac_cv_path_EGREP" >&6; }
5285 EGREP="$ac_cv_path_EGREP"
5289 # Check whether --with-gnu-ld was given.
5290 if test "${with_gnu_ld+set}" = set; then :
5291 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5297 if test "$GCC" = yes; then
5298 # Check if gcc -print-prog-name=ld gives a path.
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5300 $as_echo_n "checking for ld used by $CC... " >&6; }
5303 # gcc leaves a trailing carriage return which upsets mingw
5304 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5306 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5309 # Accept absolute paths.
5311 re_direlt='/[^/][^/]*/\.\./'
5312 # Canonicalize the pathname of ld
5313 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5314 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5315 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5317 test -z "$LD" && LD="$ac_prog"
5320 # If it fails, then pretend we aren't using GCC.
5324 # If it is relative, then search for the first ld in PATH.
5328 elif test "$with_gnu_ld" = yes; then
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5330 $as_echo_n "checking for GNU ld... " >&6; }
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5333 $as_echo_n "checking for non-GNU ld... " >&6; }
5335 if ${lt_cv_path_LD+:} false; then :
5336 $as_echo_n "(cached) " >&6
5338 if test -z "$LD"; then
5339 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5340 for ac_dir in $PATH; do
5342 test -z "$ac_dir" && ac_dir=.
5343 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5344 lt_cv_path_LD="$ac_dir/$ac_prog"
5345 # Check to see if the program is GNU ld. I'd rather use --version,
5346 # but apparently some variants of GNU ld only accept -v.
5347 # Break only if it was the GNU/non-GNU ld that we prefer.
5348 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5349 *GNU* | *'with BFD'*)
5350 test "$with_gnu_ld" != no && break
5353 test "$with_gnu_ld" != yes && break
5360 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5365 if test -n "$LD"; then
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5367 $as_echo "$LD" >&6; }
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5370 $as_echo "no" >&6; }
5372 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5374 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5375 if ${lt_cv_prog_gnu_ld+:} false; then :
5376 $as_echo_n "(cached) " >&6
5378 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5379 case `$LD -v 2>&1 </dev/null` in
5380 *GNU* | *'with BFD'*)
5381 lt_cv_prog_gnu_ld=yes
5384 lt_cv_prog_gnu_ld=no
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5389 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5390 with_gnu_ld=$lt_cv_prog_gnu_ld
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5394 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5395 if ${lt_cv_ld_reload_flag+:} false; then :
5396 $as_echo_n "(cached) " >&6
5398 lt_cv_ld_reload_flag='-r'
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5401 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5402 reload_flag=$lt_cv_ld_reload_flag
5403 case $reload_flag in
5405 *) reload_flag=" $reload_flag" ;;
5407 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5410 if test "$GCC" = yes; then
5411 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5413 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
5419 $as_echo_n "checking for BSD-compatible nm... " >&6; }
5420 if ${lt_cv_path_NM+:} false; then :
5421 $as_echo_n "(cached) " >&6
5423 if test -n "$NM"; then
5424 # Let the user override the test.
5427 lt_nm_to_check="${ac_tool_prefix}nm"
5428 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5429 lt_nm_to_check="$lt_nm_to_check nm"
5431 for lt_tmp_nm in $lt_nm_to_check; do
5432 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5433 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5435 test -z "$ac_dir" && ac_dir=.
5436 tmp_nm="$ac_dir/$lt_tmp_nm"
5437 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5438 # Check to see if the nm accepts a BSD-compat flag.
5439 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5440 # nm: unknown option "B" ignored
5441 # Tru64's nm complains that /dev/null is an invalid object file
5442 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5443 */dev/null* | *'Invalid file or object type'*)
5444 lt_cv_path_NM="$tmp_nm -B"
5448 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5450 lt_cv_path_NM="$tmp_nm -p"
5454 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5455 continue # so that we can try to find one that supports BSD flags
5464 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5468 $as_echo "$lt_cv_path_NM" >&6; }
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5472 $as_echo_n "checking whether ln -s works... " >&6; }
5474 if test "$LN_S" = "ln -s"; then
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5476 $as_echo "yes" >&6; }
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5479 $as_echo "no, using $LN_S" >&6; }
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
5483 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
5484 if ${lt_cv_deplibs_check_method+:} false; then :
5485 $as_echo_n "(cached) " >&6
5487 lt_cv_file_magic_cmd='$MAGIC_CMD'
5488 lt_cv_file_magic_test_file=
5489 lt_cv_deplibs_check_method='unknown'
5490 # Need to set the preceding variable on all platforms that support
5491 # interlibrary dependencies.
5492 # 'none' -- dependencies not supported.
5493 # `unknown' -- same as none, but documents that we really don't know.
5494 # 'pass_all' -- all dependencies passed with no checks.
5495 # 'test_compile' -- check by making test program.
5496 # 'file_magic [[regex]]' -- check by looking for files in library path
5497 # which responds to the $file_magic_cmd with a given extended regex.
5498 # If you have `file' or equivalent on your system and you're not sure
5499 # whether `pass_all' will *always* work, you probably want this one.
5503 lt_cv_deplibs_check_method=pass_all
5507 lt_cv_deplibs_check_method=pass_all
5511 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5512 lt_cv_file_magic_cmd='/usr/bin/file -L'
5513 lt_cv_file_magic_test_file=/shlib/libc.so
5517 # func_win32_libid is a shell function defined in ltmain.sh
5518 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5519 lt_cv_file_magic_cmd='func_win32_libid'
5523 # Base MSYS/MinGW do not provide the 'file' command needed by
5524 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5525 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5526 lt_cv_file_magic_cmd='$OBJDUMP -f'
5529 darwin* | rhapsody*)
5530 lt_cv_deplibs_check_method=pass_all
5533 freebsd* | kfreebsd*-gnu | dragonfly*)
5534 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5537 # Not sure whether the presence of OpenBSD here was a mistake.
5538 # Let's accept both of them until this is cleared up.
5539 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5540 lt_cv_file_magic_cmd=/usr/bin/file
5541 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5545 lt_cv_deplibs_check_method=pass_all
5550 lt_cv_deplibs_check_method=pass_all
5553 hpux10.20* | hpux11*)
5554 lt_cv_file_magic_cmd=/usr/bin/file
5557 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5558 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5561 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]'
5562 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5565 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5566 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5572 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5573 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5576 irix5* | irix6* | nonstopux*)
5578 *-32|*"-32 ") libmagic=32-bit;;
5579 *-n32|*"-n32 ") libmagic=N32;;
5580 *-64|*"-64 ") libmagic=64-bit;;
5581 *) libmagic=never-match;;
5583 lt_cv_deplibs_check_method=pass_all
5586 # This must be Linux ELF.
5588 lt_cv_deplibs_check_method=pass_all
5592 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5593 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5595 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5600 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5601 lt_cv_file_magic_cmd=/usr/bin/file
5602 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5606 lt_cv_deplibs_check_method=unknown
5610 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5611 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5613 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5617 osf3* | osf4* | osf5*)
5618 lt_cv_deplibs_check_method=pass_all
5622 lt_cv_deplibs_check_method=pass_all
5626 case $host_vendor in
5628 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]'
5629 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5632 lt_cv_deplibs_check_method=pass_all
5635 lt_cv_file_magic_cmd='/bin/file'
5636 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5639 lt_cv_file_magic_cmd='/bin/file'
5640 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5641 lt_cv_file_magic_test_file=/lib/libc.so
5644 lt_cv_deplibs_check_method=pass_all
5647 lt_cv_deplibs_check_method=pass_all
5652 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5653 lt_cv_deplibs_check_method=pass_all
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5659 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5660 file_magic_cmd=$lt_cv_file_magic_cmd
5661 deplibs_check_method=$lt_cv_deplibs_check_method
5662 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5667 # If no C compiler was specified, use CC.
5670 # If no C compiler flags were specified, use CFLAGS.
5671 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5673 # Allow CC to be a program name with arguments.
5676 # Check whether --enable-libtool-lock was given.
5677 if test "${enable_libtool_lock+set}" = set; then :
5678 enableval=$enable_libtool_lock;
5681 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5683 # Some flags need to be propagated to the compiler or linker for good
5687 # Find out which ABI we are using.
5688 echo 'int i;' > conftest.$ac_ext
5689 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5690 (eval $ac_compile) 2>&5
5692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5693 test $ac_status = 0; }; then
5694 case `/usr/bin/file conftest.$ac_objext` in
5706 # Find out which ABI we are using.
5707 echo '#line 5707 "configure"' > conftest.$ac_ext
5708 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5709 (eval $ac_compile) 2>&5
5711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5712 test $ac_status = 0; }; then
5713 if test "$lt_cv_prog_gnu_ld" = yes; then
5714 case `/usr/bin/file conftest.$ac_objext` in
5716 LD="${LD-ld} -melf32bsmip"
5719 LD="${LD-ld} -melf32bmipn32"
5722 LD="${LD-ld} -melf64bmip"
5726 case `/usr/bin/file conftest.$ac_objext` in
5742 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5743 # Find out which ABI we are using.
5744 echo 'int i;' > conftest.$ac_ext
5745 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5746 (eval $ac_compile) 2>&5
5748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5749 test $ac_status = 0; }; then
5750 case `/usr/bin/file conftest.o` in
5754 LD="${LD-ld} -m elf_i386"
5756 ppc64-*linux*|powerpc64-*linux*)
5757 LD="${LD-ld} -m elf32ppclinux"
5760 LD="${LD-ld} -m elf_s390"
5763 LD="${LD-ld} -m elf32_sparc"
5770 LD="${LD-ld} -m elf_x86_64"
5772 ppc*-*linux*|powerpc*-*linux*)
5773 LD="${LD-ld} -m elf64ppc"
5776 LD="${LD-ld} -m elf64_s390"
5779 LD="${LD-ld} -m elf64_sparc"
5789 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5790 SAVE_CFLAGS="$CFLAGS"
5791 CFLAGS="$CFLAGS -belf"
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5793 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5794 if ${lt_cv_cc_needs_belf+:} false; then :
5795 $as_echo_n "(cached) " >&6
5798 ac_cpp='$CPP $CPPFLAGS'
5799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5804 /* end confdefs.h. */
5814 if ac_fn_c_try_link "$LINENO"; then :
5815 lt_cv_cc_needs_belf=yes
5817 lt_cv_cc_needs_belf=no
5819 rm -f core conftest.err conftest.$ac_objext \
5820 conftest$ac_exeext conftest.$ac_ext
5822 ac_cpp='$CPP $CPPFLAGS'
5823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5829 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5830 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5831 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5832 CFLAGS="$SAVE_CFLAGS"
5836 # Find out which ABI we are using.
5837 echo 'int i;' > conftest.$ac_ext
5838 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5839 (eval $ac_compile) 2>&5
5841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5842 test $ac_status = 0; }; then
5843 case `/usr/bin/file conftest.o` in
5845 case $lt_cv_prog_gnu_ld in
5846 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5847 *) LD="${LD-ld} -64" ;;
5858 need_locks="$enable_libtool_lock"
5862 ac_cpp='$CPP $CPPFLAGS'
5863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5867 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5868 # On Suns, sometimes $CPP names a directory.
5869 if test -n "$CPP" && test -d "$CPP"; then
5872 if test -z "$CPP"; then
5873 if ${ac_cv_prog_CPP+:} false; then :
5874 $as_echo_n "(cached) " >&6
5876 # Double quotes because CPP needs to be expanded
5877 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5880 for ac_c_preproc_warn_flag in '' yes
5882 # Use a header file that comes with gcc, so configuring glibc
5883 # with a fresh cross-compiler works.
5884 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5885 # <limits.h> exists even on freestanding compilers.
5886 # On the NeXT, cc -E runs the code through the compiler's parser,
5887 # not just through cpp. "Syntax error" is here to catch this case.
5888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5889 /* end confdefs.h. */
5891 # include <limits.h>
5893 # include <assert.h>
5897 if ac_fn_c_try_cpp "$LINENO"; then :
5900 # Broken: fails on valid input.
5903 rm -f conftest.err conftest.i conftest.$ac_ext
5905 # OK, works on sane cases. Now check whether nonexistent headers
5906 # can be detected and how.
5907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5908 /* end confdefs.h. */
5909 #include <ac_nonexistent.h>
5911 if ac_fn_c_try_cpp "$LINENO"; then :
5912 # Broken: success on invalid input.
5915 # Passes both tests.
5919 rm -f conftest.err conftest.i conftest.$ac_ext
5922 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5923 rm -f conftest.i conftest.err conftest.$ac_ext
5924 if $ac_preproc_ok; then :
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5937 $as_echo "$CPP" >&6; }
5939 for ac_c_preproc_warn_flag in '' yes
5941 # Use a header file that comes with gcc, so configuring glibc
5942 # with a fresh cross-compiler works.
5943 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5944 # <limits.h> exists even on freestanding compilers.
5945 # On the NeXT, cc -E runs the code through the compiler's parser,
5946 # not just through cpp. "Syntax error" is here to catch this case.
5947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5948 /* end confdefs.h. */
5950 # include <limits.h>
5952 # include <assert.h>
5956 if ac_fn_c_try_cpp "$LINENO"; then :
5959 # Broken: fails on valid input.
5962 rm -f conftest.err conftest.i conftest.$ac_ext
5964 # OK, works on sane cases. Now check whether nonexistent headers
5965 # can be detected and how.
5966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5967 /* end confdefs.h. */
5968 #include <ac_nonexistent.h>
5970 if ac_fn_c_try_cpp "$LINENO"; then :
5971 # Broken: success on invalid input.
5974 # Passes both tests.
5978 rm -f conftest.err conftest.i conftest.$ac_ext
5981 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5982 rm -f conftest.i conftest.err conftest.$ac_ext
5983 if $ac_preproc_ok; then :
5986 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5988 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5989 See \`config.log' for more details" "$LINENO" 5; }
5993 ac_cpp='$CPP $CPPFLAGS'
5994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6000 $as_echo_n "checking for ANSI C header files... " >&6; }
6001 if ${ac_cv_header_stdc+:} false; then :
6002 $as_echo_n "(cached) " >&6
6004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6005 /* end confdefs.h. */
6019 if ac_fn_c_try_compile "$LINENO"; then :
6020 ac_cv_header_stdc=yes
6022 ac_cv_header_stdc=no
6024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6026 if test $ac_cv_header_stdc = yes; then
6027 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6029 /* end confdefs.h. */
6033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6034 $EGREP "memchr" >/dev/null 2>&1; then :
6037 ac_cv_header_stdc=no
6043 if test $ac_cv_header_stdc = yes; then
6044 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6046 /* end confdefs.h. */
6050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6051 $EGREP "free" >/dev/null 2>&1; then :
6054 ac_cv_header_stdc=no
6060 if test $ac_cv_header_stdc = yes; then
6061 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6062 if test "$cross_compiling" = yes; then :
6065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6066 /* end confdefs.h. */
6069 #if ((' ' & 0x0FF) == 0x020)
6070 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6071 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6073 # define ISLOWER(c) \
6074 (('a' <= (c) && (c) <= 'i') \
6075 || ('j' <= (c) && (c) <= 'r') \
6076 || ('s' <= (c) && (c) <= 'z'))
6077 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6080 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6085 for (i = 0; i < 256; i++)
6086 if (XOR (islower (i), ISLOWER (i))
6087 || toupper (i) != TOUPPER (i))
6092 if ac_fn_c_try_run "$LINENO"; then :
6095 ac_cv_header_stdc=no
6097 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6098 conftest.$ac_objext conftest.beam conftest.$ac_ext
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6104 $as_echo "$ac_cv_header_stdc" >&6; }
6105 if test $ac_cv_header_stdc = yes; then
6107 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6111 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6112 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6113 inttypes.h stdint.h unistd.h
6115 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6116 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6118 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6119 cat >>confdefs.h <<_ACEOF
6120 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6128 for ac_header in dlfcn.h
6130 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
6131 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6132 cat >>confdefs.h <<_ACEOF
6133 #define HAVE_DLFCN_H 1
6141 ac_cpp='$CXXCPP $CPPFLAGS'
6142 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6143 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6144 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6145 if test -z "$CXX"; then
6146 if test -n "$CCC"; then
6149 if test -n "$ac_tool_prefix"; then
6150 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6152 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6153 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6155 $as_echo_n "checking for $ac_word... " >&6; }
6156 if ${ac_cv_prog_CXX+:} false; then :
6157 $as_echo_n "(cached) " >&6
6159 if test -n "$CXX"; then
6160 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6166 test -z "$as_dir" && as_dir=.
6167 for ac_exec_ext in '' $ac_executable_extensions; do
6168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6169 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6180 if test -n "$CXX"; then
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6182 $as_echo "$CXX" >&6; }
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6185 $as_echo "no" >&6; }
6189 test -n "$CXX" && break
6192 if test -z "$CXX"; then
6194 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6196 # Extract the first word of "$ac_prog", so it can be a program name with args.
6197 set dummy $ac_prog; ac_word=$2
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6199 $as_echo_n "checking for $ac_word... " >&6; }
6200 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
6201 $as_echo_n "(cached) " >&6
6203 if test -n "$ac_ct_CXX"; then
6204 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6210 test -z "$as_dir" && as_dir=.
6211 for ac_exec_ext in '' $ac_executable_extensions; do
6212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6213 ac_cv_prog_ac_ct_CXX="$ac_prog"
6214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6223 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6224 if test -n "$ac_ct_CXX"; then
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6226 $as_echo "$ac_ct_CXX" >&6; }
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6229 $as_echo "no" >&6; }
6233 test -n "$ac_ct_CXX" && break
6236 if test "x$ac_ct_CXX" = x; then
6239 case $cross_compiling:$ac_tool_warned in
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6243 ac_tool_warned=yes ;;
6251 # Provide some information about the compiler.
6252 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6255 for ac_option in --version -v -V -qversion; do
6256 { { ac_try="$ac_compiler $ac_option >&5"
6258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6259 *) ac_try_echo=$ac_try;;
6261 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6262 $as_echo "$ac_try_echo"; } >&5
6263 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6265 if test -s conftest.err; then
6267 ... rest of stderr output deleted ...
6268 10q' conftest.err >conftest.er1
6269 cat conftest.er1 >&5
6271 rm -f conftest.er1 conftest.err
6272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6273 test $ac_status = 0; }
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6277 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6278 if ${ac_cv_cxx_compiler_gnu+:} false; then :
6279 $as_echo_n "(cached) " >&6
6281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6282 /* end confdefs.h. */
6295 if ac_fn_cxx_try_compile "$LINENO"; then :
6300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6301 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6305 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6306 if test $ac_compiler_gnu = yes; then
6311 ac_test_CXXFLAGS=${CXXFLAGS+set}
6312 ac_save_CXXFLAGS=$CXXFLAGS
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6314 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6315 if ${ac_cv_prog_cxx_g+:} false; then :
6316 $as_echo_n "(cached) " >&6
6318 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6319 ac_cxx_werror_flag=yes
6322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6323 /* end confdefs.h. */
6333 if ac_fn_cxx_try_compile "$LINENO"; then :
6334 ac_cv_prog_cxx_g=yes
6337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6338 /* end confdefs.h. */
6348 if ac_fn_cxx_try_compile "$LINENO"; then :
6351 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6354 /* end confdefs.h. */
6364 if ac_fn_cxx_try_compile "$LINENO"; then :
6365 ac_cv_prog_cxx_g=yes
6367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6372 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6375 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6376 if test "$ac_test_CXXFLAGS" = set; then
6377 CXXFLAGS=$ac_save_CXXFLAGS
6378 elif test $ac_cv_prog_cxx_g = yes; then
6379 if test "$GXX" = yes; then
6385 if test "$GXX" = yes; then
6392 ac_cpp='$CXXCPP $CPPFLAGS'
6393 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6394 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6395 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6397 depcc="$CXX" am_compiler_list=
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6400 $as_echo_n "checking dependency style of $depcc... " >&6; }
6401 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6402 $as_echo_n "(cached) " >&6
6404 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6405 # We make a subdir and do the tests there. Otherwise we can end up
6406 # making bogus files that we don't know about and never remove. For
6407 # instance it was reported that on HP-UX the gcc test will end up
6408 # making a dummy file named `D' -- because `-MD' means `put the output
6411 # Copy depcomp to subdir because otherwise we won't find it if we're
6412 # using a relative directory.
6413 cp "$am_depcomp" conftest.dir
6415 # We will build objects and dependencies in a subdirectory because
6416 # it helps to detect inapplicable dependency modes. For instance
6417 # both Tru64's cc and ICC support -MD to output dependencies as a
6418 # side effect of compilation, but ICC will put the dependencies in
6419 # the current directory while Tru64 will put them in the object
6423 am_cv_CXX_dependencies_compiler_type=none
6424 if test "$am_compiler_list" = ""; then
6425 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6427 for depmode in $am_compiler_list; do
6428 # Setup a source with many dependencies, because some compilers
6429 # like to wrap large dependency lists on column 80 (with \), and
6430 # we should not choose a depcomp mode which is confused by this.
6432 # We need to recreate these files for each test, as the compiler may
6433 # overwrite some of them when testing with obscure command lines.
6434 # This happens at least with the AIX C compiler.
6436 for i in 1 2 3 4 5 6; do
6437 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6438 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6439 # Solaris 8's {/usr,}/bin/sh.
6440 touch sub/conftst$i.h
6442 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6446 # after this tag, mechanisms are not by side-effect, so they'll
6447 # only be used when explicitly requested
6448 if test "x$enable_dependency_tracking" = xyes; then
6456 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6457 # mode. It turns out that the SunPro C++ compiler does not properly
6458 # handle `-M -o', and we need to detect this.
6459 if depmode=$depmode \
6460 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6461 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6462 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6463 >/dev/null 2>conftest.err &&
6464 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6465 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6466 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6467 # icc doesn't choke on unknown options, it will just issue warnings
6468 # or remarks (even with -Werror). So we grep stderr for any message
6469 # that says an option was ignored or not supported.
6470 # When given -MP, icc 7.0 and 7.1 complain thusly:
6471 # icc: Command line warning: ignoring option '-M'; no argument required
6472 # The diagnosis changed in icc 8.0:
6473 # icc: Command line remark: option '-MP' not supported
6474 if (grep 'ignoring option' conftest.err ||
6475 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6476 am_cv_CXX_dependencies_compiler_type=$depmode
6485 am_cv_CXX_dependencies_compiler_type=none
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6490 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6491 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6496 test "x$enable_dependency_tracking" != xno \
6497 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6498 am__fastdepCXX_TRUE=
6499 am__fastdepCXX_FALSE='#'
6501 am__fastdepCXX_TRUE='#'
6502 am__fastdepCXX_FALSE=
6508 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6509 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6510 (test "X$CXX" != "Xg++"))) ; then
6512 ac_cpp='$CXXCPP $CPPFLAGS'
6513 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6514 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6515 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
6517 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6518 if test -z "$CXXCPP"; then
6519 if ${ac_cv_prog_CXXCPP+:} false; then :
6520 $as_echo_n "(cached) " >&6
6522 # Double quotes because CXXCPP needs to be expanded
6523 for CXXCPP in "$CXX -E" "/lib/cpp"
6526 for ac_cxx_preproc_warn_flag in '' yes
6528 # Use a header file that comes with gcc, so configuring glibc
6529 # with a fresh cross-compiler works.
6530 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6531 # <limits.h> exists even on freestanding compilers.
6532 # On the NeXT, cc -E runs the code through the compiler's parser,
6533 # not just through cpp. "Syntax error" is here to catch this case.
6534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6535 /* end confdefs.h. */
6537 # include <limits.h>
6539 # include <assert.h>
6543 if ac_fn_cxx_try_cpp "$LINENO"; then :
6546 # Broken: fails on valid input.
6549 rm -f conftest.err conftest.i conftest.$ac_ext
6551 # OK, works on sane cases. Now check whether nonexistent headers
6552 # can be detected and how.
6553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6554 /* end confdefs.h. */
6555 #include <ac_nonexistent.h>
6557 if ac_fn_cxx_try_cpp "$LINENO"; then :
6558 # Broken: success on invalid input.
6561 # Passes both tests.
6565 rm -f conftest.err conftest.i conftest.$ac_ext
6568 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6569 rm -f conftest.i conftest.err conftest.$ac_ext
6570 if $ac_preproc_ok; then :
6575 ac_cv_prog_CXXCPP=$CXXCPP
6578 CXXCPP=$ac_cv_prog_CXXCPP
6580 ac_cv_prog_CXXCPP=$CXXCPP
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
6583 $as_echo "$CXXCPP" >&6; }
6585 for ac_cxx_preproc_warn_flag in '' yes
6587 # Use a header file that comes with gcc, so configuring glibc
6588 # with a fresh cross-compiler works.
6589 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6590 # <limits.h> exists even on freestanding compilers.
6591 # On the NeXT, cc -E runs the code through the compiler's parser,
6592 # not just through cpp. "Syntax error" is here to catch this case.
6593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6594 /* end confdefs.h. */
6596 # include <limits.h>
6598 # include <assert.h>
6602 if ac_fn_cxx_try_cpp "$LINENO"; then :
6605 # Broken: fails on valid input.
6608 rm -f conftest.err conftest.i conftest.$ac_ext
6610 # OK, works on sane cases. Now check whether nonexistent headers
6611 # can be detected and how.
6612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6613 /* end confdefs.h. */
6614 #include <ac_nonexistent.h>
6616 if ac_fn_cxx_try_cpp "$LINENO"; then :
6617 # Broken: success on invalid input.
6620 # Passes both tests.
6624 rm -f conftest.err conftest.i conftest.$ac_ext
6627 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6628 rm -f conftest.i conftest.err conftest.$ac_ext
6629 if $ac_preproc_ok; then :
6632 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6634 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
6635 See \`config.log' for more details" "$LINENO" 5; }
6639 ac_cpp='$CXXCPP $CPPFLAGS'
6640 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6641 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6642 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6648 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6649 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6650 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6651 if test -n "$ac_tool_prefix"; then
6652 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 pgfortran pgf95 lf95 ftn
6654 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6655 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6657 $as_echo_n "checking for $ac_word... " >&6; }
6658 if ${ac_cv_prog_F77+:} false; then :
6659 $as_echo_n "(cached) " >&6
6661 if test -n "$F77"; then
6662 ac_cv_prog_F77="$F77" # Let the user override the test.
6664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6668 test -z "$as_dir" && as_dir=.
6669 for ac_exec_ext in '' $ac_executable_extensions; do
6670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6671 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6682 if test -n "$F77"; then
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6684 $as_echo "$F77" >&6; }
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6687 $as_echo "no" >&6; }
6691 test -n "$F77" && break
6694 if test -z "$F77"; then
6696 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 pgfortran pgf95 lf95 ftn
6698 # Extract the first word of "$ac_prog", so it can be a program name with args.
6699 set dummy $ac_prog; ac_word=$2
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6701 $as_echo_n "checking for $ac_word... " >&6; }
6702 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6703 $as_echo_n "(cached) " >&6
6705 if test -n "$ac_ct_F77"; then
6706 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712 test -z "$as_dir" && as_dir=.
6713 for ac_exec_ext in '' $ac_executable_extensions; do
6714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6715 ac_cv_prog_ac_ct_F77="$ac_prog"
6716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6725 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6726 if test -n "$ac_ct_F77"; then
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6728 $as_echo "$ac_ct_F77" >&6; }
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6731 $as_echo "no" >&6; }
6735 test -n "$ac_ct_F77" && break
6738 if test "x$ac_ct_F77" = x; then
6741 case $cross_compiling:$ac_tool_warned in
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6745 ac_tool_warned=yes ;;
6752 # Provide some information about the compiler.
6753 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6756 for ac_option in --version -v -V -qversion; do
6757 { { ac_try="$ac_compiler $ac_option >&5"
6759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6760 *) ac_try_echo=$ac_try;;
6762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6763 $as_echo "$ac_try_echo"; } >&5
6764 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6766 if test -s conftest.err; then
6768 ... rest of stderr output deleted ...
6769 10q' conftest.err >conftest.er1
6770 cat conftest.er1 >&5
6772 rm -f conftest.er1 conftest.err
6773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6774 test $ac_status = 0; }
6778 # If we don't use `.F' as extension, the preprocessor is not run on the
6779 # input file. (Note that this only needs to work for GNU compilers.)
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6783 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6784 if ${ac_cv_f77_compiler_gnu+:} false; then :
6785 $as_echo_n "(cached) " >&6
6787 cat > conftest.$ac_ext <<_ACEOF
6795 if ac_fn_f77_try_compile "$LINENO"; then :
6800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6801 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6805 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6807 ac_test_FFLAGS=${FFLAGS+set}
6808 ac_save_FFLAGS=$FFLAGS
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6811 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6812 if ${ac_cv_prog_f77_g+:} false; then :
6813 $as_echo_n "(cached) " >&6
6816 cat > conftest.$ac_ext <<_ACEOF
6821 if ac_fn_f77_try_compile "$LINENO"; then :
6822 ac_cv_prog_f77_g=yes
6826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6830 $as_echo "$ac_cv_prog_f77_g" >&6; }
6831 if test "$ac_test_FFLAGS" = set; then
6832 FFLAGS=$ac_save_FFLAGS
6833 elif test $ac_cv_prog_f77_g = yes; then
6834 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6840 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6847 if test $ac_compiler_gnu = yes; then
6853 ac_cpp='$CPP $CPPFLAGS'
6854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6860 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6862 # find the maximum length of command line arguments
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6864 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6865 if ${lt_cv_sys_max_cmd_len+:} false; then :
6866 $as_echo_n "(cached) " >&6
6873 # On DJGPP, this test can blow up pretty badly due to problems in libc
6874 # (any single argument exceeding 2000 bytes causes a buffer overrun
6875 # during glob expansion). Even if it were fixed, the result of this
6876 # check would be larger than it should be.
6877 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6881 # Under GNU Hurd, this test is not required because there is
6882 # no limit to the length of command line arguments.
6883 # Libtool will interpret -1 as no limit whatsoever
6884 lt_cv_sys_max_cmd_len=-1;
6888 # On Win9x/ME, this test blows up -- it succeeds, but takes
6889 # about 5 minutes as the teststring grows exponentially.
6890 # Worse, since 9x/ME are not pre-emptively multitasking,
6891 # you end up with a "frozen" computer, even though with patience
6892 # the test eventually succeeds (with a max line length of 256k).
6893 # Instead, let's just punt: use the minimum linelength reported by
6894 # all of the supported platforms: 8192 (on NT/2K/XP).
6895 lt_cv_sys_max_cmd_len=8192;
6899 # On AmigaOS with pdksh, this test takes hours, literally.
6900 # So we just punt and use a minimum line length of 8192.
6901 lt_cv_sys_max_cmd_len=8192;
6904 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6905 # This has been around since 386BSD, at least. Likely further.
6906 if test -x /sbin/sysctl; then
6907 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6908 elif test -x /usr/sbin/sysctl; then
6909 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6911 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6913 # And add a safety zone
6914 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6915 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6919 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6920 lt_cv_sys_max_cmd_len=196608
6924 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6925 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6926 # nice to cause kernel panics so lets avoid the loop below.
6927 # First set a reasonable default.
6928 lt_cv_sys_max_cmd_len=16384
6930 if test -x /sbin/sysconfig; then
6931 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6932 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6937 lt_cv_sys_max_cmd_len=102400
6939 sysv5* | sco5v6* | sysv4.2uw2*)
6940 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6941 if test -n "$kargmax"; then
6942 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6944 lt_cv_sys_max_cmd_len=32768
6948 # If test is not a shell built-in, we'll probably end up computing a
6949 # maximum length that is only half of the actual maximum length, but
6951 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6952 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6953 = "XX$teststring") >/dev/null 2>&1 &&
6954 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6955 lt_cv_sys_max_cmd_len=$new_result &&
6956 test $i != 17 # 1/2 MB should be enough
6959 teststring=$teststring$teststring
6962 # Add a significant safety factor because C++ compilers can tack on massive
6963 # amounts of additional arguments before passing them to the linker.
6964 # It appears as though 1/2 is a usable value.
6965 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6971 if test -n $lt_cv_sys_max_cmd_len ; then
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6973 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6976 $as_echo "none" >&6; }
6982 # Check for command to grab the raw symbol name followed by C symbol from nm.
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6984 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6985 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6986 $as_echo_n "(cached) " >&6
6989 # These are sane defaults that work on at least a few old systems.
6990 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6992 # Character class describing NM global symbol codes.
6993 symcode='[BCDEGRST]'
6995 # Regexp to match symbols that can be accessed directly from C.
6996 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6998 # Transform an extracted symbol line into a proper C declaration
6999 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7001 # Transform an extracted symbol line into symbol name and symbol address
7002 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'"
7004 # Define system-specific variables.
7009 cygwin* | mingw* | pw32*)
7010 symcode='[ABCDGISTW]'
7012 hpux*) # Its linker distinguishes data from code symbols
7013 if test "$host_cpu" = ia64; then
7014 symcode='[ABCDEGRST]'
7016 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7017 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'"
7020 if test "$host_cpu" = ia64; then
7021 symcode='[ABCDGIRSTW]'
7022 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7023 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'"
7027 symcode='[BCDEGRST]'
7030 symcode='[BCDEGQRST]'
7041 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7049 # Handle CRLF in mingw tool chain
7053 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7057 # If we're using GNU nm, then use its standard symbol codes.
7058 case `$NM -V 2>&1` in
7059 *GNU* | *'with BFD'*)
7060 symcode='[ABCDGIRSTW]' ;;
7063 # Try without a prefix undercore, then with it.
7064 for ac_symprfx in "" "_"; do
7066 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7067 symxfrm="\\1 $ac_symprfx\\2 \\2"
7069 # Write the raw and C identifiers.
7070 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7072 # Check to see that the pipe works correctly.
7076 cat > conftest.$ac_ext <<EOF
7081 void nm_test_func(){}
7085 int main(){nm_test_var='a';nm_test_func();return(0);}
7088 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7089 (eval $ac_compile) 2>&5
7091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7092 test $ac_status = 0; }; then
7093 # Now try to grab the symbols.
7095 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7096 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7099 test $ac_status = 0; } && test -s "$nlist"; then
7100 # Try sorting and uniquifying the output.
7101 if sort "$nlist" | uniq > "$nlist"T; then
7102 mv -f "$nlist"T "$nlist"
7107 # Make sure that we snagged all the symbols we need.
7108 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7109 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7110 cat <<EOF > conftest.$ac_ext
7116 # Now generate the symbol file.
7117 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7119 cat <<EOF >> conftest.$ac_ext
7120 #if defined (__STDC__) && __STDC__
7121 # define lt_ptr_t void *
7123 # define lt_ptr_t char *
7127 /* The mapping between symbol names and symbols. */
7132 lt_preloaded_symbols[] =
7135 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7136 cat <<\EOF >> conftest.$ac_ext
7144 # Now try linking the two files.
7145 mv conftest.$ac_objext conftstm.$ac_objext
7146 lt_save_LIBS="$LIBS"
7147 lt_save_CFLAGS="$CFLAGS"
7148 LIBS="conftstm.$ac_objext"
7149 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7151 (eval $ac_link) 2>&5
7153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7154 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7157 LIBS="$lt_save_LIBS"
7158 CFLAGS="$lt_save_CFLAGS"
7160 echo "cannot find nm_test_func in $nlist" >&5
7163 echo "cannot find nm_test_var in $nlist" >&5
7166 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7169 echo "$progname: failed program was:" >&5
7170 cat conftest.$ac_ext >&5
7172 rm -f conftest* conftst*
7174 # Do not use the global_symbol_pipe unless it works.
7175 if test "$pipe_works" = yes; then
7178 lt_cv_sys_global_symbol_pipe=
7184 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7185 lt_cv_sys_global_symbol_to_cdecl=
7187 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7189 $as_echo "failed" >&6; }
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7192 $as_echo "ok" >&6; }
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7196 $as_echo_n "checking for objdir... " >&6; }
7197 if ${lt_cv_objdir+:} false; then :
7198 $as_echo_n "(cached) " >&6
7200 rm -f .libs 2>/dev/null
7201 mkdir .libs 2>/dev/null
7202 if test -d .libs; then
7205 # MS-DOS does not allow filenames that begin with a dot.
7208 rmdir .libs 2>/dev/null
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7211 $as_echo "$lt_cv_objdir" >&6; }
7212 objdir=$lt_cv_objdir
7220 # AIX sometimes has problems with the GCC collect2 program. For some
7221 # reason, if we set the COLLECT_NAMES environment variable, the problems
7222 # vanish in a puff of smoke.
7223 if test "X${COLLECT_NAMES+set}" != Xset; then
7225 export COLLECT_NAMES
7230 # Sed substitution that helps us do robust quoting. It backslashifies
7231 # metacharacters that are still active within double-quoted strings.
7232 Xsed='sed -e 1s/^X//'
7233 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7235 # Same as above, but do not quote variable references.
7236 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7238 # Sed substitution to delay expansion of an escaped shell variable in a
7239 # double_quote_subst'ed string.
7240 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7242 # Sed substitution to avoid accidental globbing in evaled expressions
7243 no_glob_subst='s/\*/\\\*/g'
7249 default_ofile=libtool
7250 can_build_shared=yes
7252 # All known linkers require a `.a' archive for static linking (except MSVC,
7253 # which needs '.lib').
7255 ltmain="$ac_aux_dir/ltmain.sh"
7256 ofile="$default_ofile"
7257 with_gnu_ld="$lt_cv_prog_gnu_ld"
7259 if test -n "$ac_tool_prefix"; then
7260 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7261 set dummy ${ac_tool_prefix}ar; ac_word=$2
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7263 $as_echo_n "checking for $ac_word... " >&6; }
7264 if ${ac_cv_prog_AR+:} false; then :
7265 $as_echo_n "(cached) " >&6
7267 if test -n "$AR"; then
7268 ac_cv_prog_AR="$AR" # Let the user override the test.
7270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274 test -z "$as_dir" && as_dir=.
7275 for ac_exec_ext in '' $ac_executable_extensions; do
7276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7277 ac_cv_prog_AR="${ac_tool_prefix}ar"
7278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7288 if test -n "$AR"; then
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7290 $as_echo "$AR" >&6; }
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7293 $as_echo "no" >&6; }
7298 if test -z "$ac_cv_prog_AR"; then
7300 # Extract the first word of "ar", so it can be a program name with args.
7301 set dummy ar; ac_word=$2
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7303 $as_echo_n "checking for $ac_word... " >&6; }
7304 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7305 $as_echo_n "(cached) " >&6
7307 if test -n "$ac_ct_AR"; then
7308 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314 test -z "$as_dir" && as_dir=.
7315 for ac_exec_ext in '' $ac_executable_extensions; do
7316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7317 ac_cv_prog_ac_ct_AR="ar"
7318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7327 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7328 if test -n "$ac_ct_AR"; then
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7330 $as_echo "$ac_ct_AR" >&6; }
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333 $as_echo "no" >&6; }
7336 if test "x$ac_ct_AR" = x; then
7339 case $cross_compiling:$ac_tool_warned in
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7343 ac_tool_warned=yes ;;
7351 if test -n "$ac_tool_prefix"; then
7352 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7353 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7355 $as_echo_n "checking for $ac_word... " >&6; }
7356 if ${ac_cv_prog_RANLIB+:} false; then :
7357 $as_echo_n "(cached) " >&6
7359 if test -n "$RANLIB"; then
7360 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7366 test -z "$as_dir" && as_dir=.
7367 for ac_exec_ext in '' $ac_executable_extensions; do
7368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7369 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7379 RANLIB=$ac_cv_prog_RANLIB
7380 if test -n "$RANLIB"; then
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7382 $as_echo "$RANLIB" >&6; }
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7385 $as_echo "no" >&6; }
7390 if test -z "$ac_cv_prog_RANLIB"; then
7391 ac_ct_RANLIB=$RANLIB
7392 # Extract the first word of "ranlib", so it can be a program name with args.
7393 set dummy ranlib; ac_word=$2
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7395 $as_echo_n "checking for $ac_word... " >&6; }
7396 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7397 $as_echo_n "(cached) " >&6
7399 if test -n "$ac_ct_RANLIB"; then
7400 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406 test -z "$as_dir" && as_dir=.
7407 for ac_exec_ext in '' $ac_executable_extensions; do
7408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7409 ac_cv_prog_ac_ct_RANLIB="ranlib"
7410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7419 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7420 if test -n "$ac_ct_RANLIB"; then
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7422 $as_echo "$ac_ct_RANLIB" >&6; }
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7425 $as_echo "no" >&6; }
7428 if test "x$ac_ct_RANLIB" = x; then
7431 case $cross_compiling:$ac_tool_warned in
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7435 ac_tool_warned=yes ;;
7437 RANLIB=$ac_ct_RANLIB
7440 RANLIB="$ac_cv_prog_RANLIB"
7443 if test -n "$ac_tool_prefix"; then
7444 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7445 set dummy ${ac_tool_prefix}strip; ac_word=$2
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7447 $as_echo_n "checking for $ac_word... " >&6; }
7448 if ${ac_cv_prog_STRIP+:} false; then :
7449 $as_echo_n "(cached) " >&6
7451 if test -n "$STRIP"; then
7452 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458 test -z "$as_dir" && as_dir=.
7459 for ac_exec_ext in '' $ac_executable_extensions; do
7460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7461 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7471 STRIP=$ac_cv_prog_STRIP
7472 if test -n "$STRIP"; then
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7474 $as_echo "$STRIP" >&6; }
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7477 $as_echo "no" >&6; }
7482 if test -z "$ac_cv_prog_STRIP"; then
7484 # Extract the first word of "strip", so it can be a program name with args.
7485 set dummy strip; ac_word=$2
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7487 $as_echo_n "checking for $ac_word... " >&6; }
7488 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7489 $as_echo_n "(cached) " >&6
7491 if test -n "$ac_ct_STRIP"; then
7492 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498 test -z "$as_dir" && as_dir=.
7499 for ac_exec_ext in '' $ac_executable_extensions; do
7500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7501 ac_cv_prog_ac_ct_STRIP="strip"
7502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7511 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7512 if test -n "$ac_ct_STRIP"; then
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7514 $as_echo "$ac_ct_STRIP" >&6; }
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7517 $as_echo "no" >&6; }
7520 if test "x$ac_ct_STRIP" = x; then
7523 case $cross_compiling:$ac_tool_warned in
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7527 ac_tool_warned=yes ;;
7532 STRIP="$ac_cv_prog_STRIP"
7537 old_CFLAGS="$CFLAGS"
7539 # Set sane defaults for various variables
7540 test -z "$AR" && AR=ar
7541 test -z "$AR_FLAGS" && AR_FLAGS=cru
7542 test -z "$AS" && AS=as
7543 test -z "$CC" && CC=cc
7544 test -z "$LTCC" && LTCC=$CC
7545 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7546 test -z "$DLLTOOL" && DLLTOOL=dlltool
7547 test -z "$LD" && LD=ld
7548 test -z "$LN_S" && LN_S="ln -s"
7549 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7550 test -z "$NM" && NM=nm
7551 test -z "$SED" && SED=sed
7552 test -z "$OBJDUMP" && OBJDUMP=objdump
7553 test -z "$RANLIB" && RANLIB=:
7554 test -z "$STRIP" && STRIP=:
7555 test -z "$ac_objext" && ac_objext=o
7557 # Determine commands to create old-style static archives.
7558 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7559 old_postinstall_cmds='chmod 644 $oldlib'
7560 old_postuninstall_cmds=
7562 if test -n "$RANLIB"; then
7565 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7568 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7571 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7574 for cc_temp in $compiler""; do
7576 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7577 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7582 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7585 # Only perform the check for file, if the check method requires it
7586 case $deplibs_check_method in
7588 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7590 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7591 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7592 $as_echo_n "(cached) " >&6
7596 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7599 lt_save_MAGIC_CMD="$MAGIC_CMD"
7600 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7601 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7602 for ac_dir in $ac_dummy; do
7604 test -z "$ac_dir" && ac_dir=.
7605 if test -f $ac_dir/${ac_tool_prefix}file; then
7606 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7607 if test -n "$file_magic_test_file"; then
7608 case $deplibs_check_method in
7610 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7611 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7612 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7613 $EGREP "$file_magic_regex" > /dev/null; then
7618 *** Warning: the command libtool uses to detect shared libraries,
7619 *** $file_magic_cmd, produces output that libtool cannot recognize.
7620 *** The result is that libtool may fail to recognize shared libraries
7621 *** as such. This will affect the creation of libtool libraries that
7622 *** depend on shared libraries, but programs linked with such libtool
7623 *** libraries will work regardless of this problem. Nevertheless, you
7624 *** may want to report the problem to your system manager and/or to
7625 *** bug-libtool@gnu.org
7635 MAGIC_CMD="$lt_save_MAGIC_CMD"
7640 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7641 if test -n "$MAGIC_CMD"; then
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7643 $as_echo "$MAGIC_CMD" >&6; }
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646 $as_echo "no" >&6; }
7649 if test -z "$lt_cv_path_MAGIC_CMD"; then
7650 if test -n "$ac_tool_prefix"; then
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7652 $as_echo_n "checking for file... " >&6; }
7653 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7654 $as_echo_n "(cached) " >&6
7658 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7661 lt_save_MAGIC_CMD="$MAGIC_CMD"
7662 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7663 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7664 for ac_dir in $ac_dummy; do
7666 test -z "$ac_dir" && ac_dir=.
7667 if test -f $ac_dir/file; then
7668 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7669 if test -n "$file_magic_test_file"; then
7670 case $deplibs_check_method in
7672 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7673 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7674 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7675 $EGREP "$file_magic_regex" > /dev/null; then
7680 *** Warning: the command libtool uses to detect shared libraries,
7681 *** $file_magic_cmd, produces output that libtool cannot recognize.
7682 *** The result is that libtool may fail to recognize shared libraries
7683 *** as such. This will affect the creation of libtool libraries that
7684 *** depend on shared libraries, but programs linked with such libtool
7685 *** libraries will work regardless of this problem. Nevertheless, you
7686 *** may want to report the problem to your system manager and/or to
7687 *** bug-libtool@gnu.org
7697 MAGIC_CMD="$lt_save_MAGIC_CMD"
7702 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7703 if test -n "$MAGIC_CMD"; then
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7705 $as_echo "$MAGIC_CMD" >&6; }
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7708 $as_echo "no" >&6; }
7723 # Check whether --enable-libtool-lock was given.
7724 if test "${enable_libtool_lock+set}" = set; then :
7725 enableval=$enable_libtool_lock;
7728 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7731 # Check whether --with-pic was given.
7732 if test "${with_pic+set}" = set; then :
7733 withval=$with_pic; pic_mode="$withval"
7738 test -z "$pic_mode" && pic_mode=default
7740 # Use C for the default configuration in the libtool script
7744 ac_cpp='$CPP $CPPFLAGS'
7745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7750 # Source file extension for C test sources.
7753 # Object file extension for compiled C test sources.
7757 # Code to be used in simple compile tests
7758 lt_simple_compile_test_code="int some_variable = 0;\n"
7760 # Code to be used in simple link tests
7761 lt_simple_link_test_code='int main(){return(0);}\n'
7764 # If no C compiler was specified, use CC.
7767 # If no C compiler flags were specified, use CFLAGS.
7768 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7770 # Allow CC to be a program name with arguments.
7774 # save warnings/boilerplate of simple test code
7775 ac_outfile=conftest.$ac_objext
7776 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7777 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7778 _lt_compiler_boilerplate=`cat conftest.err`
7781 ac_outfile=conftest.$ac_objext
7782 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7783 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7784 _lt_linker_boilerplate=`cat conftest.err`
7789 lt_prog_compiler_no_builtin_flag=
7791 if test "$GCC" = yes; then
7792 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7796 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7797 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7798 $as_echo_n "(cached) " >&6
7800 lt_cv_prog_compiler_rtti_exceptions=no
7801 ac_outfile=conftest.$ac_objext
7802 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7803 lt_compiler_flag="-fno-rtti -fno-exceptions"
7804 # Insert the option either (1) after the last *FLAGS variable, or
7805 # (2) before a word containing "conftest.", or (3) at the end.
7806 # Note that $ac_compile itself does not contain backslashes and begins
7807 # with a dollar sign (not a hyphen), so the echo should work correctly.
7808 # The option is referenced via a variable to avoid confusing sed.
7809 lt_compile=`echo "$ac_compile" | $SED \
7810 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7811 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7812 -e 's:$: $lt_compiler_flag:'`
7813 (eval echo "\"\$as_me:7813: $lt_compile\"" >&5)
7814 (eval "$lt_compile" 2>conftest.err)
7816 cat conftest.err >&5
7817 echo "$as_me:7817: \$? = $ac_status" >&5
7818 if (exit $ac_status) && test -s "$ac_outfile"; then
7819 # The compiler can only warn and ignore the option if not recognized
7820 # So say no if there are warnings other than the usual output.
7821 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7822 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7823 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7824 lt_cv_prog_compiler_rtti_exceptions=yes
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7831 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7833 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7834 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7841 lt_prog_compiler_wl=
7842 lt_prog_compiler_pic=
7843 lt_prog_compiler_static=
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7846 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7848 if test "$GCC" = yes; then
7849 lt_prog_compiler_wl='-Wl,'
7850 lt_prog_compiler_static='-static'
7854 # All AIX code is PIC.
7855 if test "$host_cpu" = ia64; then
7856 # AIX 5 now supports IA64 processor
7857 lt_prog_compiler_static='-Bstatic'
7862 # FIXME: we need at least 68020 code to build shared libraries, but
7863 # adding the `-m68020' flag to GCC prevents building anything better,
7865 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7868 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7869 # PIC is the default for these OSes.
7872 mingw* | pw32* | os2*)
7873 # This hack is so that the source file can tell whether it is being
7874 # built for inclusion in a dll (and should export symbols for example).
7875 lt_prog_compiler_pic='-DDLL_EXPORT'
7878 darwin* | rhapsody*)
7879 # PIC is the default on this platform
7880 # Common symbols not allowed in MH_DYLIB files
7881 lt_prog_compiler_pic='-fno-common'
7885 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7886 # Instead, we relocate shared libraries at runtime.
7890 # Just because we use GCC doesn't mean we suddenly get shared libraries
7891 # on systems that don't support them.
7892 lt_prog_compiler_can_build_shared=no
7897 if test -d /usr/nec; then
7898 lt_prog_compiler_pic=-Kconform_pic
7903 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7910 lt_prog_compiler_pic='-fPIC'
7916 lt_prog_compiler_pic='-fPIC'
7920 # PORTME Check for flag to pass linker flags through the system compiler.
7923 lt_prog_compiler_wl='-Wl,'
7924 if test "$host_cpu" = ia64; then
7925 # AIX 5 now supports IA64 processor
7926 lt_prog_compiler_static='-Bstatic'
7928 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7932 # PIC is the default on this platform
7933 # Common symbols not allowed in MH_DYLIB files
7934 case $cc_basename in
7936 lt_prog_compiler_pic='-qnocommon'
7937 lt_prog_compiler_wl='-Wl,'
7942 mingw* | pw32* | os2*)
7943 # This hack is so that the source file can tell whether it is being
7944 # built for inclusion in a dll (and should export symbols for example).
7945 lt_prog_compiler_pic='-DDLL_EXPORT'
7948 hpux9* | hpux10* | hpux11*)
7949 lt_prog_compiler_wl='-Wl,'
7950 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7957 lt_prog_compiler_pic='+Z'
7960 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7961 lt_prog_compiler_static='${wl}-a ${wl}archive'
7964 irix5* | irix6* | nonstopux*)
7965 lt_prog_compiler_wl='-Wl,'
7966 # PIC (with -KPIC) is the default.
7967 lt_prog_compiler_static='-non_shared'
7971 lt_prog_compiler_pic='-KPIC'
7972 lt_prog_compiler_static='-Bstatic'
7976 case $cc_basename in
7978 lt_prog_compiler_wl='-Wl,'
7979 lt_prog_compiler_pic='-KPIC'
7980 lt_prog_compiler_static='-static'
7982 pgcc* | pgf77* | pgf90* | pgf95*)
7983 # Portland Group compilers (*not* the Pentium gcc compiler,
7984 # which looks to be a dead project)
7985 lt_prog_compiler_wl='-Wl,'
7986 lt_prog_compiler_pic='-fpic'
7987 lt_prog_compiler_static='-Bstatic'
7990 lt_prog_compiler_wl='-Wl,'
7991 # All Alpha code is PIC.
7992 lt_prog_compiler_static='-non_shared'
7997 osf3* | osf4* | osf5*)
7998 lt_prog_compiler_wl='-Wl,'
7999 # All OSF/1 code is PIC.
8000 lt_prog_compiler_static='-non_shared'
8004 lt_prog_compiler_pic='-KPIC'
8005 lt_prog_compiler_static='-Bstatic'
8006 case $cc_basename in
8008 lt_prog_compiler_wl='-Qoption ld ';;
8010 lt_prog_compiler_wl='-Wl,';;
8015 lt_prog_compiler_wl='-Qoption ld '
8016 lt_prog_compiler_pic='-PIC'
8017 lt_prog_compiler_static='-Bstatic'
8020 sysv4 | sysv4.2uw2* | sysv4.3*)
8021 lt_prog_compiler_wl='-Wl,'
8022 lt_prog_compiler_pic='-KPIC'
8023 lt_prog_compiler_static='-Bstatic'
8027 if test -d /usr/nec ;then
8028 lt_prog_compiler_pic='-Kconform_pic'
8029 lt_prog_compiler_static='-Bstatic'
8033 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8034 lt_prog_compiler_wl='-Wl,'
8035 lt_prog_compiler_pic='-KPIC'
8036 lt_prog_compiler_static='-Bstatic'
8040 lt_prog_compiler_wl='-Wl,'
8041 lt_prog_compiler_can_build_shared=no
8045 lt_prog_compiler_pic='-pic'
8046 lt_prog_compiler_static='-Bstatic'
8050 lt_prog_compiler_can_build_shared=no
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8056 $as_echo "$lt_prog_compiler_pic" >&6; }
8059 # Check to make sure the PIC flag actually works.
8061 if test -n "$lt_prog_compiler_pic"; then
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8064 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8065 if ${lt_prog_compiler_pic_works+:} false; then :
8066 $as_echo_n "(cached) " >&6
8068 lt_prog_compiler_pic_works=no
8069 ac_outfile=conftest.$ac_objext
8070 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8071 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8072 # Insert the option either (1) after the last *FLAGS variable, or
8073 # (2) before a word containing "conftest.", or (3) at the end.
8074 # Note that $ac_compile itself does not contain backslashes and begins
8075 # with a dollar sign (not a hyphen), so the echo should work correctly.
8076 # The option is referenced via a variable to avoid confusing sed.
8077 lt_compile=`echo "$ac_compile" | $SED \
8078 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8079 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8080 -e 's:$: $lt_compiler_flag:'`
8081 (eval echo "\"\$as_me:8081: $lt_compile\"" >&5)
8082 (eval "$lt_compile" 2>conftest.err)
8084 cat conftest.err >&5
8085 echo "$as_me:8085: \$? = $ac_status" >&5
8086 if (exit $ac_status) && test -s "$ac_outfile"; then
8087 # The compiler can only warn and ignore the option if not recognized
8088 # So say no if there are warnings other than the usual output.
8089 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8090 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8091 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8092 lt_prog_compiler_pic_works=yes
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
8099 $as_echo "$lt_prog_compiler_pic_works" >&6; }
8101 if test x"$lt_prog_compiler_pic_works" = xyes; then
8102 case $lt_prog_compiler_pic in
8104 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8107 lt_prog_compiler_pic=
8108 lt_prog_compiler_can_build_shared=no
8113 # For platforms which do not support PIC, -DPIC is meaningless:
8115 lt_prog_compiler_pic=
8118 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8123 # Check to make sure the static flag actually works.
8125 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8127 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8128 if ${lt_prog_compiler_static_works+:} false; then :
8129 $as_echo_n "(cached) " >&6
8131 lt_prog_compiler_static_works=no
8132 save_LDFLAGS="$LDFLAGS"
8133 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8134 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8135 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8136 # The linker can only warn and ignore the option if not recognized
8137 # So say no if there are warnings
8138 if test -s conftest.err; then
8139 # Append any errors to the config.log.
8140 cat conftest.err 1>&5
8141 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8142 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8143 if diff conftest.exp conftest.er2 >/dev/null; then
8144 lt_prog_compiler_static_works=yes
8147 lt_prog_compiler_static_works=yes
8151 LDFLAGS="$save_LDFLAGS"
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
8155 $as_echo "$lt_prog_compiler_static_works" >&6; }
8157 if test x"$lt_prog_compiler_static_works" = xyes; then
8160 lt_prog_compiler_static=
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8165 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8166 if ${lt_cv_prog_compiler_c_o+:} false; then :
8167 $as_echo_n "(cached) " >&6
8169 lt_cv_prog_compiler_c_o=no
8170 $rm -r conftest 2>/dev/null
8174 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8176 lt_compiler_flag="-o out/conftest2.$ac_objext"
8177 # Insert the option either (1) after the last *FLAGS variable, or
8178 # (2) before a word containing "conftest.", or (3) at the end.
8179 # Note that $ac_compile itself does not contain backslashes and begins
8180 # with a dollar sign (not a hyphen), so the echo should work correctly.
8181 lt_compile=`echo "$ac_compile" | $SED \
8182 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8183 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8184 -e 's:$: $lt_compiler_flag:'`
8185 (eval echo "\"\$as_me:8185: $lt_compile\"" >&5)
8186 (eval "$lt_compile" 2>out/conftest.err)
8188 cat out/conftest.err >&5
8189 echo "$as_me:8189: \$? = $ac_status" >&5
8190 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8192 # The compiler can only warn and ignore the option if not recognized
8193 # So say no if there are warnings
8194 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8195 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8196 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8197 lt_cv_prog_compiler_c_o=yes
8202 # SGI C++ compiler will create directory out/ii_files/ for
8203 # template instantiation
8204 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8205 $rm out/* && rmdir out
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8212 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8215 hard_links="nottested"
8216 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8217 # do not overwrite the value of need_locks provided by the user
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8219 $as_echo_n "checking if we can lock with hard links... " >&6; }
8222 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8224 ln conftest.a conftest.b 2>&5 || hard_links=no
8225 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8227 $as_echo "$hard_links" >&6; }
8228 if test "$hard_links" = no; then
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8230 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8238 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8241 allow_undefined_flag=
8242 enable_shared_with_static_runtimes=no
8244 archive_expsym_cmds=
8245 old_archive_From_new_cmds=
8246 old_archive_from_expsyms_cmds=
8247 export_dynamic_flag_spec=
8248 whole_archive_flag_spec=
8249 thread_safe_flag_spec=
8250 hardcode_libdir_flag_spec=
8251 hardcode_libdir_flag_spec_ld=
8252 hardcode_libdir_separator=
8255 hardcode_shlibpath_var=unsupported
8256 link_all_deplibs=unknown
8257 hardcode_automatic=no
8260 always_export_symbols=no
8261 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8262 # include_expsyms should be a list of space-separated symbols to be *always*
8263 # included in the symbol list
8265 # exclude_expsyms can be an extended regexp of symbols to exclude
8266 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8267 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8268 # as well as any symbol that contains `d'.
8269 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8270 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8271 # platforms (ab)use it in PIC code, but their linkers get confused if
8272 # the symbol is explicitly referenced. Since portable code cannot
8273 # rely on this symbol name, it's probably fine to never include it in
8274 # preloaded symbol tables.
8275 extract_expsyms_cmds=
8276 # Just being paranoid about ensuring that cc_basename is set.
8277 for cc_temp in $compiler""; do
8279 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8280 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8285 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8288 cygwin* | mingw* | pw32*)
8289 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8290 # When not using gcc, we currently assume that we are using
8291 # Microsoft Visual C++.
8292 if test "$GCC" != yes; then
8297 # we just hope/assume this is gcc and not c89 (= MSVC++)
8306 if test "$with_gnu_ld" = yes; then
8307 # If archive_cmds runs LD, not CC, wlarc should be empty
8310 # Set some defaults for GNU ld with shared library support. These
8311 # are reset later if shared libraries are not supported. Putting them
8312 # here allows them to be overridden if necessary.
8313 runpath_var=LD_RUN_PATH
8314 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8315 export_dynamic_flag_spec='${wl}--export-dynamic'
8316 # ancient GNU ld didn't support --whole-archive et. al.
8317 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8318 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8320 whole_archive_flag_spec=
8322 supports_anon_versioning=no
8323 case `$LD -v 2>/dev/null` in
8324 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8325 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8326 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8327 *\ 2.11.*) ;; # other 2.11 versions
8328 *) supports_anon_versioning=yes ;;
8331 # See if GNU ld supports shared libraries.
8333 aix3* | aix4* | aix5*)
8334 # On AIX/PPC, the GNU linker is very broken
8335 if test "$host_cpu" != ia64; then
8339 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8340 *** to be unable to reliably create shared libraries on AIX.
8341 *** Therefore, libtool is disabling shared libraries support. If you
8342 *** really care for shared libraries, you may want to modify your PATH
8343 *** so that a non-GNU linker is found, and then restart.
8350 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)'
8351 hardcode_libdir_flag_spec='-L$libdir'
8352 hardcode_minus_L=yes
8354 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8355 # that the semantics of dynamic libraries on AmigaOS, at least up
8356 # to version 4, is to share data among multiple programs linked
8357 # with the same dynamic library. Since this doesn't match the
8358 # behavior of shared libraries on other platforms, we can't use
8364 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8365 allow_undefined_flag=unsupported
8366 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8367 # support --undefined. This deserves some investigation. FIXME
8368 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8374 cygwin* | mingw* | pw32*)
8375 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8376 # as there is no search path for DLLs.
8377 hardcode_libdir_flag_spec='-L$libdir'
8378 allow_undefined_flag=unsupported
8379 always_export_symbols=no
8380 enable_shared_with_static_runtimes=yes
8381 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8383 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8384 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8385 # If the export-symbols file already is a .def file (1st line
8386 # is EXPORTS), use it as is; otherwise, prepend...
8387 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8388 cp $export_symbols $output_objdir/$soname.def;
8390 echo EXPORTS > $output_objdir/$soname.def;
8391 cat $export_symbols >> $output_objdir/$soname.def;
8393 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8401 hardcode_shlibpath_var=no
8402 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8403 export_dynamic_flag_spec='${wl}-E'
8404 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8405 # Instead, shared libraries are loaded at an image base (0x10000000 by
8406 # default) and relocated if they conflict, which is a slow very memory
8407 # consuming and fragmenting process. To avoid this, we pick a random,
8408 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8409 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8410 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8411 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'
8415 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8417 case $cc_basename,$host_cpu in
8418 pgcc*) # Portland Group C compiler
8419 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'
8420 tmp_addflag=' $pic_flag'
8422 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8423 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'
8424 tmp_addflag=' $pic_flag -Mnomain' ;;
8425 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8426 tmp_addflag=' -i_dynamic' ;;
8427 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8428 tmp_addflag=' -i_dynamic -nofor_main' ;;
8429 ifc* | ifort*) # Intel Fortran compiler
8430 tmp_addflag=' -nofor_main' ;;
8432 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8434 if test $supports_anon_versioning = yes; then
8435 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8436 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8437 $echo "local: *; };" >> $output_objdir/$libname.ver~
8438 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8446 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8447 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8450 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8451 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8456 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8460 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8461 *** create shared libraries on Solaris systems. Therefore, libtool
8462 *** is disabling shared libraries support. We urge you to upgrade GNU
8463 *** binutils to release 2.9.1 or newer. Another option is to modify
8464 *** your PATH or compiler configuration so that the native linker is
8465 *** used, and then restart.
8468 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8469 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8470 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8476 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8477 case `$LD -v 2>&1` in
8478 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8482 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8483 *** reliably create shared libraries on SCO systems. Therefore, libtool
8484 *** is disabling shared libraries support. We urge you to upgrade GNU
8485 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8486 *** your PATH or compiler configuration so that the native linker is
8487 *** used, and then restart.
8492 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8493 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8494 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8495 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8504 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8507 hardcode_shlibpath_var=no
8511 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8512 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8513 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8520 if test "$ld_shlibs" = no; then
8522 hardcode_libdir_flag_spec=
8523 export_dynamic_flag_spec=
8524 whole_archive_flag_spec=
8527 # PORTME fill in a description of your system's linker (not GNU ld)
8530 allow_undefined_flag=unsupported
8531 always_export_symbols=yes
8532 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'
8533 # Note: this linker hardcodes the directories in LIBPATH if there
8534 # are no directories specified by -L.
8535 hardcode_minus_L=yes
8536 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8537 # Neither direct hardcoding nor static linking is supported with a
8539 hardcode_direct=unsupported
8544 if test "$host_cpu" = ia64; then
8545 # On IA64, the linker does run time linking by default, so we don't
8546 # have to do anything special.
8547 aix_use_runtimelinking=no
8548 exp_sym_flag='-Bexport'
8551 # If we're using GNU nm, then we don't want the "-C" option.
8552 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8553 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8554 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'
8556 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'
8558 aix_use_runtimelinking=no
8560 # Test if we are trying to use run time linking or normal
8561 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8562 # need to do runtime linking.
8563 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8564 for ld_flag in $LDFLAGS; do
8565 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8566 aix_use_runtimelinking=yes
8573 exp_sym_flag='-bexport'
8574 no_entry_flag='-bnoentry'
8577 # When large executables or shared objects are built, AIX ld can
8578 # have problems creating the table of contents. If linking a library
8579 # or program results in "error TOC overflow" add -mminimal-toc to
8580 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8581 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8585 hardcode_libdir_separator=':'
8586 link_all_deplibs=yes
8588 if test "$GCC" = yes; then
8589 case $host_os in aix4.[012]|aix4.[012].*)
8590 # We only want to do this on AIX 4.2 and lower, the check
8591 # below for broken collect2 doesn't work under 4.3+
8592 collect2name=`${CC} -print-prog-name=collect2`
8593 if test -f "$collect2name" && \
8594 strings "$collect2name" | grep resolve_lib_name >/dev/null
8596 # We have reworked collect2
8599 # We have old collect2
8600 hardcode_direct=unsupported
8601 # It fails to find uninstalled libraries when the uninstalled
8602 # path is not listed in the libpath. Setting hardcode_minus_L
8603 # to unsupported forces relinking
8604 hardcode_minus_L=yes
8605 hardcode_libdir_flag_spec='-L$libdir'
8606 hardcode_libdir_separator=
8610 shared_flag='-shared'
8611 if test "$aix_use_runtimelinking" = yes; then
8612 shared_flag="$shared_flag "'${wl}-G'
8616 if test "$host_cpu" = ia64; then
8617 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8618 # chokes on -Wl,-G. The following line is correct:
8621 if test "$aix_use_runtimelinking" = yes; then
8622 shared_flag='${wl}-G'
8624 shared_flag='${wl}-bM:SRE'
8629 # It seems that -bexpall does not export symbols beginning with
8630 # underscore (_), so it is better to generate a list of symbols to export.
8631 always_export_symbols=yes
8632 if test "$aix_use_runtimelinking" = yes; then
8633 # Warning - without using the other runtime loading flags (-brtl),
8634 # -berok will link without error, but may produce a broken library.
8635 allow_undefined_flag='-berok'
8636 # Determine the default libpath from the value encoded in an empty executable.
8637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8638 /* end confdefs.h. */
8648 if ac_fn_c_try_link "$LINENO"; then :
8650 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8652 # Check for a 64-bit object if we didn't find anything.
8653 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8656 rm -f core conftest.err conftest.$ac_objext \
8657 conftest$ac_exeext conftest.$ac_ext
8658 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8660 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8661 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"
8663 if test "$host_cpu" = ia64; then
8664 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8665 allow_undefined_flag="-z nodefs"
8666 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"
8668 # Determine the default libpath from the value encoded in an empty executable.
8669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8670 /* end confdefs.h. */
8680 if ac_fn_c_try_link "$LINENO"; then :
8682 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8684 # Check for a 64-bit object if we didn't find anything.
8685 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8688 rm -f core conftest.err conftest.$ac_objext \
8689 conftest$ac_exeext conftest.$ac_ext
8690 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8692 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8693 # Warning - without using the other run time loading flags,
8694 # -berok will link without error, but may produce a broken library.
8695 no_undefined_flag=' ${wl}-bernotok'
8696 allow_undefined_flag=' ${wl}-berok'
8697 # Exported symbols can be pulled into shared objects from archives
8698 whole_archive_flag_spec='$convenience'
8699 archive_cmds_need_lc=yes
8700 # This is similar to how AIX traditionally builds its shared libraries.
8701 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'
8707 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)'
8708 hardcode_libdir_flag_spec='-L$libdir'
8709 hardcode_minus_L=yes
8710 # see comment about different semantics on the GNU ld section
8715 export_dynamic_flag_spec=-rdynamic
8718 cygwin* | mingw* | pw32*)
8719 # When not using gcc, we currently assume that we are using
8720 # Microsoft Visual C++.
8721 # hardcode_libdir_flag_spec is actually meaningless, as there is
8722 # no search path for DLLs.
8723 hardcode_libdir_flag_spec=' '
8724 allow_undefined_flag=unsupported
8725 # Tell ltmain to make .lib files, not .a files.
8727 # Tell ltmain to make .dll files, not .so files.
8729 # FIXME: Setting linknames here is a bad hack.
8730 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8731 # The linker will automatically build a .lib file if we build a DLL.
8732 old_archive_From_new_cmds='true'
8733 # FIXME: Should let the user specify the lib program.
8734 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8735 fix_srcfile_path='`cygpath -w "$srcfile"`'
8736 enable_shared_with_static_runtimes=yes
8739 darwin* | rhapsody*)
8741 rhapsody* | darwin1.[012])
8742 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8745 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8746 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8748 case ${MACOSX_DEPLOYMENT_TARGET} in
8750 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8753 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8759 archive_cmds_need_lc=no
8761 hardcode_automatic=yes
8762 hardcode_shlibpath_var=unsupported
8763 whole_archive_flag_spec=''
8764 link_all_deplibs=yes
8765 if test "$GCC" = yes ; then
8766 output_verbose_link_cmd='echo'
8767 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8768 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8769 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8770 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}'
8771 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}'
8773 case $cc_basename in
8775 output_verbose_link_cmd='echo'
8776 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8777 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8778 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8779 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8780 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}'
8790 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8791 hardcode_libdir_flag_spec='-L$libdir'
8792 hardcode_shlibpath_var=no
8799 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8800 # support. Future versions do this automatically, but an explicit c++rt0.o
8801 # does not break anything, and helps significantly (at the cost of a little
8804 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8805 hardcode_libdir_flag_spec='-R$libdir'
8807 hardcode_shlibpath_var=no
8810 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8812 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8814 hardcode_minus_L=yes
8815 hardcode_shlibpath_var=no
8818 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8819 freebsd* | kfreebsd*-gnu | dragonfly*)
8820 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8821 hardcode_libdir_flag_spec='-R$libdir'
8823 hardcode_shlibpath_var=no
8827 if test "$GCC" = yes; then
8828 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'
8830 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'
8832 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8833 hardcode_libdir_separator=:
8836 # hardcode_minus_L: Not really in the search PATH,
8837 # but as the default location of the library.
8838 hardcode_minus_L=yes
8839 export_dynamic_flag_spec='${wl}-E'
8843 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8844 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8846 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8848 if test "$with_gnu_ld" = no; then
8849 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8850 hardcode_libdir_separator=:
8853 export_dynamic_flag_spec='${wl}-E'
8855 # hardcode_minus_L: Not really in the search PATH,
8856 # but as the default location of the library.
8857 hardcode_minus_L=yes
8862 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8865 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8868 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8871 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8877 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8880 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8883 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8887 if test "$with_gnu_ld" = no; then
8888 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8889 hardcode_libdir_separator=:
8893 hardcode_libdir_flag_spec_ld='+b $libdir'
8895 hardcode_shlibpath_var=no
8899 export_dynamic_flag_spec='${wl}-E'
8901 # hardcode_minus_L: Not really in the search PATH,
8902 # but as the default location of the library.
8903 hardcode_minus_L=yes
8909 irix5* | irix6* | nonstopux*)
8910 if test "$GCC" = yes; then
8911 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'
8913 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'
8914 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8916 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8917 hardcode_libdir_separator=:
8918 link_all_deplibs=yes
8922 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8923 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8925 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8927 hardcode_libdir_flag_spec='-R$libdir'
8929 hardcode_shlibpath_var=no
8933 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8935 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8936 hardcode_libdir_separator=:
8937 hardcode_shlibpath_var=no
8942 hardcode_shlibpath_var=no
8943 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8944 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8945 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8946 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8947 export_dynamic_flag_spec='${wl}-E'
8950 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8951 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8952 hardcode_libdir_flag_spec='-R$libdir'
8955 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8956 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8963 hardcode_libdir_flag_spec='-L$libdir'
8964 hardcode_minus_L=yes
8965 allow_undefined_flag=unsupported
8966 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'
8967 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8971 if test "$GCC" = yes; then
8972 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8973 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'
8975 allow_undefined_flag=' -expect_unresolved \*'
8976 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'
8978 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8979 hardcode_libdir_separator=:
8982 osf4* | osf5*) # as osf3* with the addition of -msym flag
8983 if test "$GCC" = yes; then
8984 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8985 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'
8986 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8988 allow_undefined_flag=' -expect_unresolved \*'
8989 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'
8990 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8991 $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'
8993 # Both c and cxx compiler support -rpath directly
8994 hardcode_libdir_flag_spec='-rpath $libdir'
8996 hardcode_libdir_separator=:
9000 no_undefined_flag=' -z text'
9001 if test "$GCC" = yes; then
9003 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9004 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9005 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9008 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9009 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9010 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9012 hardcode_libdir_flag_spec='-R$libdir'
9013 hardcode_shlibpath_var=no
9015 solaris2.[0-5] | solaris2.[0-5].*) ;;
9017 # The compiler driver will combine linker options so we
9018 # cannot just pass the convience library names through
9019 # without $wl, iff we do not link with $LD.
9020 # Luckily, gcc supports the same syntax we need for Sun Studio.
9021 # Supported since Solaris 2.6 (maybe 2.5.1?)
9024 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9026 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
9029 link_all_deplibs=yes
9033 if test "x$host_vendor" = xsequent; then
9034 # Use $CC to link under sequent, because it throws in some extra .o
9035 # files that make .init and .fini sections work.
9036 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9038 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9040 hardcode_libdir_flag_spec='-L$libdir'
9042 hardcode_minus_L=yes
9043 hardcode_shlibpath_var=no
9047 case $host_vendor in
9049 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9050 hardcode_direct=yes # is this really true???
9053 ## LD is ld it makes a PLAMLIB
9054 ## CC just makes a GrossModule.
9055 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9056 reload_cmds='$CC -r -o $output$reload_objs'
9060 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9061 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9064 runpath_var='LD_RUN_PATH'
9065 hardcode_shlibpath_var=no
9069 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9070 hardcode_shlibpath_var=no
9071 export_dynamic_flag_spec='-Bexport'
9075 if test -d /usr/nec; then
9076 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9077 hardcode_shlibpath_var=no
9078 runpath_var=LD_RUN_PATH
9079 hardcode_runpath_var=yes
9084 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9085 no_undefined_flag='${wl}-z,text'
9086 archive_cmds_need_lc=no
9087 hardcode_shlibpath_var=no
9088 runpath_var='LD_RUN_PATH'
9090 if test "$GCC" = yes; then
9091 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9092 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9094 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9095 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9099 sysv5* | sco3.2v5* | sco5v6*)
9100 # Note: We can NOT use -z defs as we might desire, because we do not
9101 # link with -lc, and that would cause any symbols used from libc to
9102 # always be unresolved, which means just about no library would
9103 # ever link correctly. If we're not using GNU ld we use -z text
9104 # though, which does catch some bad symbols but isn't as heavy-handed
9106 no_undefined_flag='${wl}-z,text'
9107 allow_undefined_flag='${wl}-z,nodefs'
9108 archive_cmds_need_lc=no
9109 hardcode_shlibpath_var=no
9110 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9111 hardcode_libdir_separator=':'
9112 link_all_deplibs=yes
9113 export_dynamic_flag_spec='${wl}-Bexport'
9114 runpath_var='LD_RUN_PATH'
9116 if test "$GCC" = yes; then
9117 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9118 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9120 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9121 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9126 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9127 hardcode_libdir_flag_spec='-L$libdir'
9128 hardcode_shlibpath_var=no
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9138 $as_echo "$ld_shlibs" >&6; }
9139 test "$ld_shlibs" = no && can_build_shared=no
9142 # Do we need to explicitly link libc?
9144 case "x$archive_cmds_need_lc" in
9146 # Assume -lc should be added
9147 archive_cmds_need_lc=yes
9149 if test "$enable_shared" = yes && test "$GCC" = yes; then
9150 case $archive_cmds in
9152 # FIXME: we may have to deal with multi-command sequences.
9155 # Test whether the compiler implicitly links with -lc since on some
9156 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9157 # to ld, don't add -lc before -lgcc.
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9159 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9161 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9163 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9164 (eval $ac_compile) 2>&5
9166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9167 test $ac_status = 0; } 2>conftest.err; then
9170 libobjs=conftest.$ac_objext
9172 wl=$lt_prog_compiler_wl
9173 pic_flag=$lt_prog_compiler_pic
9179 lt_save_allow_undefined_flag=$allow_undefined_flag
9180 allow_undefined_flag=
9181 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9182 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9185 test $ac_status = 0; }
9187 archive_cmds_need_lc=no
9189 archive_cmds_need_lc=yes
9191 allow_undefined_flag=$lt_save_allow_undefined_flag
9193 cat conftest.err 1>&5
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9197 $as_echo "$archive_cmds_need_lc" >&6; }
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9205 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9207 libname_spec='lib$name'
9215 shlibpath_overrides_runpath=unknown
9217 dynamic_linker="$host_os ld.so"
9218 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9219 if test "$GCC" = yes; then
9220 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9221 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9222 # if the path contains ";" then we assume it to be the separator
9223 # otherwise default to the standard path separator (i.e. ":") - it is
9224 # assumed that no part of a normal pathname contains ";" but that should
9225 # okay in the real world where ";" in dirpaths is itself problematic.
9226 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9228 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9231 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9233 need_lib_prefix=unknown
9234 hardcode_into_libs=no
9236 # when you set need_version to no, make sure it does not cause -set_version
9237 # flags to be left without arguments
9238 need_version=unknown
9243 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9244 shlibpath_var=LIBPATH
9246 # AIX 3 has no versioning support, so we append a major version to the name.
9247 soname_spec='${libname}${release}${shared_ext}$major'
9254 hardcode_into_libs=yes
9255 if test "$host_cpu" = ia64; then
9256 # AIX 5 supports IA64
9257 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9258 shlibpath_var=LD_LIBRARY_PATH
9260 # With GCC up to 2.95.x, collect2 would create an import file
9261 # for dependence libraries. The import file would start with
9262 # the line `#! .'. This would cause the generated library to
9263 # depend on `.', always an invalid library. This was fixed in
9264 # development snapshots of GCC prior to 3.0.
9266 aix4 | aix4.[01] | aix4.[01].*)
9267 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9269 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9276 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9277 # soname into executable. Probably we can add versioning support to
9278 # collect2, so additional links can be useful in future.
9279 if test "$aix_use_runtimelinking" = yes; then
9280 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9281 # instead of lib<name>.a to let people know that these are not
9282 # typical AIX shared libraries.
9283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9285 # We preserve .a as extension for shared libraries through AIX4.2
9286 # and later when we are not doing run time linking.
9287 library_names_spec='${libname}${release}.a $libname.a'
9288 soname_spec='${libname}${release}${shared_ext}$major'
9290 shlibpath_var=LIBPATH
9295 library_names_spec='$libname.ixlibrary $libname.a'
9296 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9297 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'
9301 library_names_spec='${libname}${shared_ext}'
9302 dynamic_linker="$host_os ld.so"
9303 shlibpath_var=LIBRARY_PATH
9309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9310 soname_spec='${libname}${release}${shared_ext}$major'
9311 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9312 shlibpath_var=LD_LIBRARY_PATH
9313 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9314 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9315 # the default ld.so.conf also contains /usr/contrib/lib and
9316 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9317 # libtool to hard-code these into programs
9320 cygwin* | mingw* | pw32*)
9321 version_type=windows
9326 case $GCC,$host_os in
9327 yes,cygwin* | yes,mingw* | yes,pw32*)
9328 library_names_spec='$libname.dll.a'
9329 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9330 postinstall_cmds='base_file=`basename \${file}`~
9331 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9332 dldir=$destdir/`dirname \$dlpath`~
9333 test -d \$dldir || mkdir -p \$dldir~
9334 $install_prog $dir/$dlname \$dldir/$dlname~
9335 chmod a+x \$dldir/$dlname'
9336 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9337 dlpath=$dir/\$dldll~
9339 shlibpath_overrides_runpath=yes
9343 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9344 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9345 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9348 # MinGW DLLs use traditional 'lib' prefix
9349 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9350 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9351 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9352 # It is most probably a Windows format PATH printed by
9353 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9354 # path with ; separators, and with drive letters. We can handle the
9355 # drive letters (cygwin fileutils understands them), so leave them,
9356 # especially as we might pass files found there to a mingw objdump,
9357 # which wouldn't understand a cygwinified path. Ahh.
9358 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9360 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9364 # pw32 DLLs use 'pw' prefix rather than 'lib'
9365 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9371 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9374 dynamic_linker='Win32 ld.exe'
9375 # FIXME: first we should search . and the directory the executable is in
9379 darwin* | rhapsody*)
9380 dynamic_linker="$host_os dyld"
9384 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9385 soname_spec='${libname}${release}${major}$shared_ext'
9386 shlibpath_overrides_runpath=yes
9387 shlibpath_var=DYLD_LIBRARY_PATH
9388 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9389 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9390 if test "$GCC" = yes; then
9391 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9393 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9395 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9403 soname_spec='${libname}${release}${shared_ext}$major'
9404 shlibpath_var=LD_LIBRARY_PATH
9415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9416 soname_spec='${libname}${release}${shared_ext}$major'
9417 shlibpath_var=LD_LIBRARY_PATH
9418 shlibpath_overrides_runpath=no
9419 hardcode_into_libs=yes
9420 dynamic_linker='GNU ld.so'
9423 freebsd* | dragonfly*)
9424 # DragonFly does not have aout. When/if they implement a new
9425 # versioning mechanism, adjust this.
9426 if test -x /usr/bin/objformat; then
9427 objformat=`/usr/bin/objformat`
9430 freebsd[123]*) objformat=aout ;;
9434 version_type=freebsd-$objformat
9435 case $version_type in
9437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9442 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9446 shlibpath_var=LD_LIBRARY_PATH
9449 shlibpath_overrides_runpath=yes
9451 freebsd3.[01]* | freebsdelf3.[01]*)
9452 shlibpath_overrides_runpath=yes
9453 hardcode_into_libs=yes
9455 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9456 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9457 shlibpath_overrides_runpath=no
9458 hardcode_into_libs=yes
9460 freebsd*) # from 4.6 on
9461 shlibpath_overrides_runpath=yes
9462 hardcode_into_libs=yes
9471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9472 soname_spec='${libname}${release}${shared_ext}$major'
9473 shlibpath_var=LD_LIBRARY_PATH
9474 hardcode_into_libs=yes
9477 hpux9* | hpux10* | hpux11*)
9478 # Give a soname corresponding to the major version so that dld.sl refuses to
9479 # link against other versions.
9486 hardcode_into_libs=yes
9487 dynamic_linker="$host_os dld.so"
9488 shlibpath_var=LD_LIBRARY_PATH
9489 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9491 soname_spec='${libname}${release}${shared_ext}$major'
9492 if test "X$HPUX_IA64_MODE" = X32; then
9493 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9495 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9497 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9501 hardcode_into_libs=yes
9502 dynamic_linker="$host_os dld.sl"
9503 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9504 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9506 soname_spec='${libname}${release}${shared_ext}$major'
9507 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9508 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9512 dynamic_linker="$host_os dld.sl"
9513 shlibpath_var=SHLIB_PATH
9514 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9516 soname_spec='${libname}${release}${shared_ext}$major'
9519 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9520 postinstall_cmds='chmod 555 $lib'
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'
9529 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9530 shlibpath_var=LD_LIBRARY_PATH
9531 shlibpath_overrides_runpath=no
9532 hardcode_into_libs=yes
9535 irix5* | irix6* | nonstopux*)
9537 nonstopux*) version_type=nonstopux ;;
9539 if test "$lt_cv_prog_gnu_ld" = yes; then
9547 soname_spec='${libname}${release}${shared_ext}$major'
9548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9550 irix5* | nonstopux*)
9554 case $LD in # libtool.m4 will add one of these switches to LD
9555 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9556 libsuff= shlibsuff= libmagic=32-bit;;
9557 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9558 libsuff=32 shlibsuff=N32 libmagic=N32;;
9559 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9560 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9561 *) libsuff= shlibsuff= libmagic=never-match;;
9565 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9566 shlibpath_overrides_runpath=no
9567 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9568 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9569 hardcode_into_libs=yes
9572 # No shared lib support for Linux oldld, aout, or coff.
9573 linux*oldld* | linux*aout* | linux*coff*)
9577 # This must be Linux ELF.
9582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9583 soname_spec='${libname}${release}${shared_ext}$major'
9584 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9585 shlibpath_var=LD_LIBRARY_PATH
9586 shlibpath_overrides_runpath=no
9587 # This implies no fast_install, which is unacceptable.
9588 # Some rework will be needed to allow for fast_install
9589 # before this can be enabled.
9590 hardcode_into_libs=yes
9592 # Append ld.so.conf contents to the search path
9593 if test -f /etc/ld.so.conf; then
9594 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9595 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9598 # We used to test for /lib/ld.so.1 and disable shared libraries on
9599 # powerpc, because MkLinux only supported shared libraries with the
9600 # GNU dynamic linker. Since this was broken with cross compilers,
9601 # most powerpc-linux boxes support dynamic linking these days and
9602 # people can always --disable-shared, the test was removed, and we
9603 # assume the GNU/Linux dynamic linker is in use.
9604 dynamic_linker='GNU/Linux ld.so'
9611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9612 soname_spec='${libname}${release}${shared_ext}$major'
9613 shlibpath_var=LD_LIBRARY_PATH
9614 shlibpath_overrides_runpath=no
9615 hardcode_into_libs=yes
9616 dynamic_linker='GNU ld.so'
9623 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9625 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9626 dynamic_linker='NetBSD (a.out) ld.so'
9628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9629 soname_spec='${libname}${release}${shared_ext}$major'
9630 dynamic_linker='NetBSD ld.elf_so'
9632 shlibpath_var=LD_LIBRARY_PATH
9633 shlibpath_overrides_runpath=yes
9634 hardcode_into_libs=yes
9639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9640 shlibpath_var=LD_LIBRARY_PATH
9641 shlibpath_overrides_runpath=yes
9648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9649 soname_spec='${libname}${release}${shared_ext}$major'
9650 shlibpath_var=LD_LIBRARY_PATH
9651 shlibpath_overrides_runpath=yes
9656 sys_lib_dlsearch_path_spec="/usr/lib"
9658 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9660 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9661 *) need_version=no ;;
9663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9664 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9665 shlibpath_var=LD_LIBRARY_PATH
9666 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9668 openbsd2.[89] | openbsd2.[89].*)
9669 shlibpath_overrides_runpath=no
9672 shlibpath_overrides_runpath=yes
9676 shlibpath_overrides_runpath=yes
9681 libname_spec='$name'
9684 library_names_spec='$libname${shared_ext} $libname.a'
9685 dynamic_linker='OS/2 ld.exe'
9686 shlibpath_var=LIBPATH
9689 osf3* | osf4* | osf5*)
9693 soname_spec='${libname}${release}${shared_ext}$major'
9694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9695 shlibpath_var=LD_LIBRARY_PATH
9696 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9697 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9705 soname_spec='${libname}${release}${shared_ext}$major'
9706 shlibpath_var=LD_LIBRARY_PATH
9707 shlibpath_overrides_runpath=yes
9708 hardcode_into_libs=yes
9709 # ldd complains unless libraries are executable
9710 postinstall_cmds='chmod +x $lib'
9715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9716 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9717 shlibpath_var=LD_LIBRARY_PATH
9718 shlibpath_overrides_runpath=yes
9719 if test "$with_gnu_ld" = yes; then
9727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9728 soname_spec='${libname}${release}${shared_ext}$major'
9729 shlibpath_var=LD_LIBRARY_PATH
9730 case $host_vendor in
9732 shlibpath_overrides_runpath=no
9734 export_dynamic_flag_spec='${wl}-Blargedynsym'
9735 runpath_var=LD_RUN_PATH
9743 shlibpath_overrides_runpath=no
9744 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9750 if test -d /usr/nec ;then
9752 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9753 soname_spec='$libname${shared_ext}.$major'
9754 shlibpath_var=LD_LIBRARY_PATH
9758 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9759 version_type=freebsd-elf
9762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9763 soname_spec='${libname}${release}${shared_ext}$major'
9764 shlibpath_var=LD_LIBRARY_PATH
9765 hardcode_into_libs=yes
9766 if test "$with_gnu_ld" = yes; then
9767 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9768 shlibpath_overrides_runpath=no
9770 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9771 shlibpath_overrides_runpath=yes
9774 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9778 sys_lib_dlsearch_path_spec='/usr/lib'
9783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9784 soname_spec='${libname}${release}${shared_ext}$major'
9785 shlibpath_var=LD_LIBRARY_PATH
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9793 $as_echo "$dynamic_linker" >&6; }
9794 test "$dynamic_linker" = no && can_build_shared=no
9796 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9797 if test "$GCC" = yes; then
9798 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9802 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9804 if test -n "$hardcode_libdir_flag_spec" || \
9805 test -n "$runpath_var" || \
9806 test "X$hardcode_automatic" = "Xyes" ; then
9808 # We can hardcode non-existant directories.
9809 if test "$hardcode_direct" != no &&
9810 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9811 # have to relink, otherwise we might link with an installed library
9812 # when we should be linking with a yet-to-be-installed one
9813 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9814 test "$hardcode_minus_L" != no; then
9815 # Linking always hardcodes the temporary library directory.
9816 hardcode_action=relink
9818 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9819 hardcode_action=immediate
9822 # We cannot hardcode anything, or else we can only hardcode existing
9824 hardcode_action=unsupported
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9827 $as_echo "$hardcode_action" >&6; }
9829 if test "$hardcode_action" = relink; then
9830 # Fast installation is not supported
9831 enable_fast_install=no
9832 elif test "$shlibpath_overrides_runpath" = yes ||
9833 test "$enable_shared" = no; then
9834 # Fast installation is not necessary
9835 enable_fast_install=needless
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9841 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9842 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9843 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9844 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9846 $as_echo "yes" >&6; }
9848 # FIXME - insert some real tests, host_os isn't really good enough
9851 if test -n "$STRIP" ; then
9852 striplib="$STRIP -x"
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9854 $as_echo "yes" >&6; }
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9857 $as_echo "no" >&6; }
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9862 $as_echo "no" >&6; }
9867 if test "x$enable_dlopen" != xyes; then
9868 enable_dlopen=unknown
9869 enable_dlopen_self=unknown
9870 enable_dlopen_self_static=unknown
9877 lt_cv_dlopen="load_add_on"
9879 lt_cv_dlopen_self=yes
9883 lt_cv_dlopen="LoadLibrary"
9888 lt_cv_dlopen="dlopen"
9893 # if libdl is installed we need to link against it
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9895 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9896 if ${ac_cv_lib_dl_dlopen+:} false; then :
9897 $as_echo_n "(cached) " >&6
9899 ac_check_lib_save_LIBS=$LIBS
9901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9902 /* end confdefs.h. */
9904 /* Override any GCC internal prototype to avoid an error.
9905 Use char because int might match the return type of a GCC
9906 builtin and then its argument prototype would still apply. */
9919 if ac_fn_c_try_link "$LINENO"; then :
9920 ac_cv_lib_dl_dlopen=yes
9922 ac_cv_lib_dl_dlopen=no
9924 rm -f core conftest.err conftest.$ac_objext \
9925 conftest$ac_exeext conftest.$ac_ext
9926 LIBS=$ac_check_lib_save_LIBS
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9929 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9930 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9931 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9936 lt_cv_dlopen_self=yes
9943 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9944 if test "x$ac_cv_func_shl_load" = xyes; then :
9945 lt_cv_dlopen="shl_load"
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9948 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9949 if ${ac_cv_lib_dld_shl_load+:} false; then :
9950 $as_echo_n "(cached) " >&6
9952 ac_check_lib_save_LIBS=$LIBS
9954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9955 /* end confdefs.h. */
9957 /* Override any GCC internal prototype to avoid an error.
9958 Use char because int might match the return type of a GCC
9959 builtin and then its argument prototype would still apply. */
9972 if ac_fn_c_try_link "$LINENO"; then :
9973 ac_cv_lib_dld_shl_load=yes
9975 ac_cv_lib_dld_shl_load=no
9977 rm -f core conftest.err conftest.$ac_objext \
9978 conftest$ac_exeext conftest.$ac_ext
9979 LIBS=$ac_check_lib_save_LIBS
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9982 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9983 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9984 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9986 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9987 if test "x$ac_cv_func_dlopen" = xyes; then :
9988 lt_cv_dlopen="dlopen"
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9991 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9992 if ${ac_cv_lib_dl_dlopen+:} false; then :
9993 $as_echo_n "(cached) " >&6
9995 ac_check_lib_save_LIBS=$LIBS
9997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9998 /* end confdefs.h. */
10000 /* Override any GCC internal prototype to avoid an error.
10001 Use char because int might match the return type of a GCC
10002 builtin and then its argument prototype would still apply. */
10015 if ac_fn_c_try_link "$LINENO"; then :
10016 ac_cv_lib_dl_dlopen=yes
10018 ac_cv_lib_dl_dlopen=no
10020 rm -f core conftest.err conftest.$ac_objext \
10021 conftest$ac_exeext conftest.$ac_ext
10022 LIBS=$ac_check_lib_save_LIBS
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10025 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10026 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10027 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10030 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10031 if ${ac_cv_lib_svld_dlopen+:} false; then :
10032 $as_echo_n "(cached) " >&6
10034 ac_check_lib_save_LIBS=$LIBS
10035 LIBS="-lsvld $LIBS"
10036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10037 /* end confdefs.h. */
10039 /* Override any GCC internal prototype to avoid an error.
10040 Use char because int might match the return type of a GCC
10041 builtin and then its argument prototype would still apply. */
10054 if ac_fn_c_try_link "$LINENO"; then :
10055 ac_cv_lib_svld_dlopen=yes
10057 ac_cv_lib_svld_dlopen=no
10059 rm -f core conftest.err conftest.$ac_objext \
10060 conftest$ac_exeext conftest.$ac_ext
10061 LIBS=$ac_check_lib_save_LIBS
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10064 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10065 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10066 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10069 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10070 if ${ac_cv_lib_dld_dld_link+:} false; then :
10071 $as_echo_n "(cached) " >&6
10073 ac_check_lib_save_LIBS=$LIBS
10075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10076 /* end confdefs.h. */
10078 /* Override any GCC internal prototype to avoid an error.
10079 Use char because int might match the return type of a GCC
10080 builtin and then its argument prototype would still apply. */
10088 return dld_link ();
10093 if ac_fn_c_try_link "$LINENO"; then :
10094 ac_cv_lib_dld_dld_link=yes
10096 ac_cv_lib_dld_dld_link=no
10098 rm -f core conftest.err conftest.$ac_objext \
10099 conftest$ac_exeext conftest.$ac_ext
10100 LIBS=$ac_check_lib_save_LIBS
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10103 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10104 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10105 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10126 if test "x$lt_cv_dlopen" != xno; then
10132 case $lt_cv_dlopen in
10134 save_CPPFLAGS="$CPPFLAGS"
10135 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10137 save_LDFLAGS="$LDFLAGS"
10138 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10141 LIBS="$lt_cv_dlopen_libs $LIBS"
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10144 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10145 if ${lt_cv_dlopen_self+:} false; then :
10146 $as_echo_n "(cached) " >&6
10148 if test "$cross_compiling" = yes; then :
10149 lt_cv_dlopen_self=cross
10151 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10152 lt_status=$lt_dlunknown
10153 cat > conftest.$ac_ext <<EOF
10154 #line 10154 "configure"
10155 #include "confdefs.h"
10164 # define LT_DLGLOBAL RTLD_GLOBAL
10167 # define LT_DLGLOBAL DL_GLOBAL
10169 # define LT_DLGLOBAL 0
10173 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10174 find out it does not work in some platform. */
10175 #ifndef LT_DLLAZY_OR_NOW
10177 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10180 # define LT_DLLAZY_OR_NOW DL_LAZY
10183 # define LT_DLLAZY_OR_NOW RTLD_NOW
10186 # define LT_DLLAZY_OR_NOW DL_NOW
10188 # define LT_DLLAZY_OR_NOW 0
10196 extern "C" void exit (int);
10199 void fnord() { int i=42;}
10202 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10203 int status = $lt_dlunknown;
10207 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10208 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10209 /* dlclose (self); */
10217 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10218 (eval $ac_link) 2>&5
10220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10221 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10222 (./conftest; exit; ) >&5 2>/dev/null
10224 case x$lt_status in
10225 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10226 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10227 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10230 # compilation failed
10231 lt_cv_dlopen_self=no
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10239 $as_echo "$lt_cv_dlopen_self" >&6; }
10241 if test "x$lt_cv_dlopen_self" = xyes; then
10242 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10244 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10245 if ${lt_cv_dlopen_self_static+:} false; then :
10246 $as_echo_n "(cached) " >&6
10248 if test "$cross_compiling" = yes; then :
10249 lt_cv_dlopen_self_static=cross
10251 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10252 lt_status=$lt_dlunknown
10253 cat > conftest.$ac_ext <<EOF
10254 #line 10254 "configure"
10255 #include "confdefs.h"
10264 # define LT_DLGLOBAL RTLD_GLOBAL
10267 # define LT_DLGLOBAL DL_GLOBAL
10269 # define LT_DLGLOBAL 0
10273 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10274 find out it does not work in some platform. */
10275 #ifndef LT_DLLAZY_OR_NOW
10277 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10280 # define LT_DLLAZY_OR_NOW DL_LAZY
10283 # define LT_DLLAZY_OR_NOW RTLD_NOW
10286 # define LT_DLLAZY_OR_NOW DL_NOW
10288 # define LT_DLLAZY_OR_NOW 0
10296 extern "C" void exit (int);
10299 void fnord() { int i=42;}
10302 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10303 int status = $lt_dlunknown;
10307 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10308 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10309 /* dlclose (self); */
10317 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10318 (eval $ac_link) 2>&5
10320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10321 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10322 (./conftest; exit; ) >&5 2>/dev/null
10324 case x$lt_status in
10325 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10326 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10327 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10330 # compilation failed
10331 lt_cv_dlopen_self_static=no
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10339 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10342 CPPFLAGS="$save_CPPFLAGS"
10343 LDFLAGS="$save_LDFLAGS"
10348 case $lt_cv_dlopen_self in
10349 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10350 *) enable_dlopen_self=unknown ;;
10353 case $lt_cv_dlopen_self_static in
10354 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10355 *) enable_dlopen_self_static=unknown ;;
10360 # Report which library types will actually be built
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10362 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10364 $as_echo "$can_build_shared" >&6; }
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10367 $as_echo_n "checking whether to build shared libraries... " >&6; }
10368 test "$can_build_shared" = "no" && enable_shared=no
10370 # On AIX, shared libraries and static libraries use the same namespace, and
10371 # are all built from PIC.
10374 test "$enable_shared" = yes && enable_static=no
10375 if test -n "$RANLIB"; then
10376 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10377 postinstall_cmds='$RANLIB $lib'
10382 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10383 test "$enable_shared" = yes && enable_static=no
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10388 $as_echo "$enable_shared" >&6; }
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10391 $as_echo_n "checking whether to build static libraries... " >&6; }
10392 # Make sure either enable_shared or enable_static is yes.
10393 test "$enable_shared" = yes || enable_static=yes
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10395 $as_echo "$enable_static" >&6; }
10397 # The else clause should only fire when bootstrapping the
10398 # libtool distribution, otherwise you forgot to ship ltmain.sh
10399 # with your package, and you will get complaints that there are
10400 # no rules to generate ltmain.sh.
10401 if test -f "$ltmain"; then
10402 # See if we are running on zsh, and set the options which allow our commands through
10403 # without removal of \ escapes.
10404 if test -n "${ZSH_VERSION+set}" ; then
10405 setopt NO_GLOB_SUBST
10407 # Now quote all the things that may contain metacharacters while being
10408 # careful not to overquote the AC_SUBSTed values. We take copies of the
10409 # variables and quote the copies for generation of the libtool script.
10410 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10412 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10413 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10414 deplibs_check_method reload_flag reload_cmds need_locks \
10415 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10416 lt_cv_sys_global_symbol_to_c_name_address \
10417 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10418 old_postinstall_cmds old_postuninstall_cmds \
10422 lt_prog_compiler_wl \
10423 lt_prog_compiler_pic \
10424 lt_prog_compiler_static \
10425 lt_prog_compiler_no_builtin_flag \
10426 export_dynamic_flag_spec \
10427 thread_safe_flag_spec \
10428 whole_archive_flag_spec \
10429 enable_shared_with_static_runtimes \
10431 old_archive_from_new_cmds \
10436 compiler_lib_search_path \
10438 archive_expsym_cmds \
10440 postuninstall_cmds \
10441 old_archive_from_expsyms_cmds \
10442 allow_undefined_flag \
10443 no_undefined_flag \
10444 export_symbols_cmds \
10445 hardcode_libdir_flag_spec \
10446 hardcode_libdir_flag_spec_ld \
10447 hardcode_libdir_separator \
10448 hardcode_automatic \
10450 module_expsym_cmds \
10451 lt_cv_prog_compiler_c_o \
10453 include_expsyms; do
10456 old_archive_cmds | \
10457 old_archive_from_new_cmds | \
10459 archive_expsym_cmds | \
10461 module_expsym_cmds | \
10462 old_archive_from_expsyms_cmds | \
10463 export_symbols_cmds | \
10464 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10465 postinstall_cmds | postuninstall_cmds | \
10466 old_postinstall_cmds | old_postuninstall_cmds | \
10467 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10468 # Double-quote double-evaled strings.
10469 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10472 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10478 *'\$0 --fallback-echo"')
10479 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10483 cfgfile="${ofile}T"
10484 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
10487 $as_echo "$as_me: creating $ofile" >&6;}
10489 cat <<__EOF__ >> "$cfgfile"
10492 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10493 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10494 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10496 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10497 # Free Software Foundation, Inc.
10499 # This file is part of GNU Libtool:
10500 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10502 # This program is free software; you can redistribute it and/or modify
10503 # it under the terms of the GNU General Public License as published by
10504 # the Free Software Foundation; either version 2 of the License, or
10505 # (at your option) any later version.
10507 # This program is distributed in the hope that it will be useful, but
10508 # WITHOUT ANY WARRANTY; without even the implied warranty of
10509 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10510 # General Public License for more details.
10512 # You should have received a copy of the GNU General Public License
10513 # along with this program; if not, write to the Free Software
10514 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10516 # As a special exception to the GNU General Public License, if you
10517 # distribute this file as part of a program that contains a
10518 # configuration script generated by Autoconf, you may include it under
10519 # the same distribution terms that you use for the rest of that program.
10521 # A sed program that does not truncate output.
10524 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10525 Xsed="$SED -e 1s/^X//"
10527 # The HP-UX ksh and POSIX shell print the target directory to stdout
10528 # if CDPATH is set.
10529 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10531 # The names of the tagged configurations supported by this script.
10534 # ### BEGIN LIBTOOL CONFIG
10536 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10538 # Shell to use when invoking shell scripts.
10541 # Whether or not to build shared libraries.
10542 build_libtool_libs=$enable_shared
10544 # Whether or not to build static libraries.
10545 build_old_libs=$enable_static
10547 # Whether or not to add -lc for building shared libraries.
10548 build_libtool_need_lc=$archive_cmds_need_lc
10550 # Whether or not to disallow shared libs when runtime libs are static
10551 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10553 # Whether or not to optimize for fast installation.
10554 fast_install=$enable_fast_install
10557 host_alias=$host_alias
10561 # The build system.
10562 build_alias=$build_alias
10566 # An echo program that does not interpret backslashes.
10571 AR_FLAGS=$lt_AR_FLAGS
10576 # LTCC compiler flags.
10577 LTCFLAGS=$lt_LTCFLAGS
10579 # A language-specific compiler.
10582 # Is the compiler the GNU C compiler?
10588 # The linker used to build libraries.
10591 # Whether we need hard or soft links.
10594 # A BSD-compatible nm program.
10597 # A symbol stripping program
10600 # Used to examine libraries when file_magic_cmd begins "file"
10601 MAGIC_CMD=$MAGIC_CMD
10603 # Used on cygwin: DLL creation program.
10606 # Used on cygwin: object dumper.
10609 # Used on cygwin: assembler.
10612 # The name of the directory that contains temporary libtool files.
10615 # How to create reloadable object files.
10616 reload_flag=$lt_reload_flag
10617 reload_cmds=$lt_reload_cmds
10619 # How to pass a linker flag through the compiler.
10620 wl=$lt_lt_prog_compiler_wl
10622 # Object file suffix (normally "o").
10623 objext="$ac_objext"
10625 # Old archive suffix (normally "a").
10628 # Shared library suffix (normally ".so").
10629 shrext_cmds='$shrext_cmds'
10631 # Executable file suffix (normally "").
10634 # Additional compiler flags for building library objects.
10635 pic_flag=$lt_lt_prog_compiler_pic
10638 # What is the maximum length of a command?
10639 max_cmd_len=$lt_cv_sys_max_cmd_len
10641 # Does compiler simultaneously support -c and -o options?
10642 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10644 # Must we lock files when doing compilation?
10645 need_locks=$lt_need_locks
10647 # Do we need the lib prefix for modules?
10648 need_lib_prefix=$need_lib_prefix
10650 # Do we need a version for libraries?
10651 need_version=$need_version
10653 # Whether dlopen is supported.
10654 dlopen_support=$enable_dlopen
10656 # Whether dlopen of programs is supported.
10657 dlopen_self=$enable_dlopen_self
10659 # Whether dlopen of statically linked programs is supported.
10660 dlopen_self_static=$enable_dlopen_self_static
10662 # Compiler flag to prevent dynamic linking.
10663 link_static_flag=$lt_lt_prog_compiler_static
10665 # Compiler flag to turn off builtin functions.
10666 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10668 # Compiler flag to allow reflexive dlopens.
10669 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10671 # Compiler flag to generate shared objects directly from archives.
10672 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10674 # Compiler flag to generate thread-safe objects.
10675 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10677 # Library versioning type.
10678 version_type=$version_type
10680 # Format of library name prefix.
10681 libname_spec=$lt_libname_spec
10683 # List of archive names. First name is the real one, the rest are links.
10684 # The last name is the one that the linker finds with -lNAME.
10685 library_names_spec=$lt_library_names_spec
10687 # The coded name of the library, if different from the real name.
10688 soname_spec=$lt_soname_spec
10690 # Commands used to build and install an old-style archive.
10692 old_archive_cmds=$lt_old_archive_cmds
10693 old_postinstall_cmds=$lt_old_postinstall_cmds
10694 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10696 # Create an old-style archive from a shared archive.
10697 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10699 # Create a temporary old-style archive to link instead of a shared archive.
10700 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10702 # Commands used to build and install a shared archive.
10703 archive_cmds=$lt_archive_cmds
10704 archive_expsym_cmds=$lt_archive_expsym_cmds
10705 postinstall_cmds=$lt_postinstall_cmds
10706 postuninstall_cmds=$lt_postuninstall_cmds
10708 # Commands used to build a loadable module (assumed same as above if empty)
10709 module_cmds=$lt_module_cmds
10710 module_expsym_cmds=$lt_module_expsym_cmds
10712 # Commands to strip libraries.
10713 old_striplib=$lt_old_striplib
10714 striplib=$lt_striplib
10716 # Dependencies to place before the objects being linked to create a
10718 predep_objects=$lt_predep_objects
10720 # Dependencies to place after the objects being linked to create a
10722 postdep_objects=$lt_postdep_objects
10724 # Dependencies to place before the objects being linked to create a
10726 predeps=$lt_predeps
10728 # Dependencies to place after the objects being linked to create a
10730 postdeps=$lt_postdeps
10732 # The library search path used internally by the compiler when linking
10733 # a shared library.
10734 compiler_lib_search_path=$lt_compiler_lib_search_path
10736 # Method to check whether dependent libraries are shared objects.
10737 deplibs_check_method=$lt_deplibs_check_method
10739 # Command to use when deplibs_check_method == file_magic.
10740 file_magic_cmd=$lt_file_magic_cmd
10742 # Flag that allows shared libraries with undefined symbols to be built.
10743 allow_undefined_flag=$lt_allow_undefined_flag
10745 # Flag that forces no undefined symbols.
10746 no_undefined_flag=$lt_no_undefined_flag
10748 # Commands used to finish a libtool library installation in a directory.
10749 finish_cmds=$lt_finish_cmds
10751 # Same as above, but a single script fragment to be evaled but not shown.
10752 finish_eval=$lt_finish_eval
10754 # Take the output of nm and produce a listing of raw symbols and C names.
10755 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10757 # Transform the output of nm in a proper C declaration
10758 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10760 # Transform the output of nm in a C name address pair
10761 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10763 # This is the shared library runtime path variable.
10764 runpath_var=$runpath_var
10766 # This is the shared library path variable.
10767 shlibpath_var=$shlibpath_var
10769 # Is shlibpath searched before the hard-coded library search path?
10770 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10772 # How to hardcode a shared library path into an executable.
10773 hardcode_action=$hardcode_action
10775 # Whether we should hardcode library paths into libraries.
10776 hardcode_into_libs=$hardcode_into_libs
10778 # Flag to hardcode \$libdir into a binary during linking.
10779 # This must work even if \$libdir does not exist.
10780 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10782 # If ld is used when linking, flag to hardcode \$libdir into
10783 # a binary during linking. This must work even if \$libdir does
10785 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10787 # Whether we need a single -rpath flag with a separated argument.
10788 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10790 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10791 # resulting binary.
10792 hardcode_direct=$hardcode_direct
10794 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10795 # resulting binary.
10796 hardcode_minus_L=$hardcode_minus_L
10798 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10799 # the resulting binary.
10800 hardcode_shlibpath_var=$hardcode_shlibpath_var
10802 # Set to yes if building a shared library automatically hardcodes DIR into the library
10803 # and all subsequent libraries and executables linked against it.
10804 hardcode_automatic=$hardcode_automatic
10806 # Variables whose values should be saved in libtool wrapper scripts and
10807 # restored at relink time.
10808 variables_saved_for_relink="$variables_saved_for_relink"
10810 # Whether libtool must link a program against all its dependency libraries.
10811 link_all_deplibs=$link_all_deplibs
10813 # Compile-time system search path for libraries
10814 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10816 # Run-time system search path for libraries
10817 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10819 # Fix the shell variable \$srcfile for the compiler.
10820 fix_srcfile_path="$fix_srcfile_path"
10822 # Set to yes if exported symbols are required.
10823 always_export_symbols=$always_export_symbols
10825 # The commands to list exported symbols.
10826 export_symbols_cmds=$lt_export_symbols_cmds
10828 # The commands to extract the exported symbol list from a shared archive.
10829 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10831 # Symbols that should not be listed in the preloaded symbols.
10832 exclude_expsyms=$lt_exclude_expsyms
10834 # Symbols that must always be exported.
10835 include_expsyms=$lt_include_expsyms
10837 # ### END LIBTOOL CONFIG
10844 cat <<\EOF >> "$cfgfile"
10846 # AIX sometimes has problems with the GCC collect2 program. For some
10847 # reason, if we set the COLLECT_NAMES environment variable, the problems
10848 # vanish in a puff of smoke.
10849 if test "X${COLLECT_NAMES+set}" != Xset; then
10851 export COLLECT_NAMES
10857 # We use sed instead of cat because bash on DJGPP gets confused if
10858 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10859 # text mode, it properly converts lines to CR/LF. This bash problem
10860 # is reportedly fixed, but why not run on old versions too?
10861 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10863 mv -f "$cfgfile" "$ofile" || \
10864 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10868 # If there is no Makefile yet, we rely on a make rule to execute
10869 # `config.status --recheck' to rerun these tests and create the
10870 # libtool script then.
10871 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10872 if test -f "$ltmain_in"; then
10873 test -f Makefile && make "$ltmain"
10879 ac_cpp='$CPP $CPPFLAGS'
10880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10887 # Check whether --with-tags was given.
10888 if test "${with_tags+set}" = set; then :
10889 withval=$with_tags; tagnames="$withval"
10893 if test -f "$ltmain" && test -n "$tagnames"; then
10894 if test ! -f "${ofile}"; then
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
10896 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10899 if test -z "$LTCC"; then
10900 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10901 if test -z "$LTCC"; then
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10903 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10906 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10909 if test -z "$LTCFLAGS"; then
10910 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10913 # Extract list of available tagged configurations in $ofile.
10914 # Note that this assumes the entire list is on one line.
10915 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10917 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10918 for tagname in $tagnames; do
10920 # Check whether tagname contains only valid characters
10921 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10923 *) as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
10927 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10929 as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
10932 # Update the list of available tags.
10933 if test -n "$tagname"; then
10934 echo appending configuration tag \"$tagname\" to $ofile
10938 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10939 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10940 (test "X$CXX" != "Xg++"))) ; then
10942 ac_cpp='$CXXCPP $CPPFLAGS'
10943 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10944 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10945 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10950 archive_cmds_need_lc_CXX=no
10951 allow_undefined_flag_CXX=
10952 always_export_symbols_CXX=no
10953 archive_expsym_cmds_CXX=
10954 export_dynamic_flag_spec_CXX=
10955 hardcode_direct_CXX=no
10956 hardcode_libdir_flag_spec_CXX=
10957 hardcode_libdir_flag_spec_ld_CXX=
10958 hardcode_libdir_separator_CXX=
10959 hardcode_minus_L_CXX=no
10960 hardcode_shlibpath_var_CXX=unsupported
10961 hardcode_automatic_CXX=no
10963 module_expsym_cmds_CXX=
10964 link_all_deplibs_CXX=unknown
10965 old_archive_cmds_CXX=$old_archive_cmds
10966 no_undefined_flag_CXX=
10967 whole_archive_flag_spec_CXX=
10968 enable_shared_with_static_runtimes_CXX=no
10970 # Dependencies to place before and after the object being linked:
10971 predep_objects_CXX=
10972 postdep_objects_CXX=
10975 compiler_lib_search_path_CXX=
10977 # Source file extension for C++ test sources.
10980 # Object file extension for compiled C++ test sources.
10984 # Code to be used in simple compile tests
10985 lt_simple_compile_test_code="int some_variable = 0;\n"
10987 # Code to be used in simple link tests
10988 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10990 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10992 # If no C compiler was specified, use CC.
10995 # If no C compiler flags were specified, use CFLAGS.
10996 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10998 # Allow CC to be a program name with arguments.
11002 # save warnings/boilerplate of simple test code
11003 ac_outfile=conftest.$ac_objext
11004 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11005 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11006 _lt_compiler_boilerplate=`cat conftest.err`
11009 ac_outfile=conftest.$ac_objext
11010 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11011 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11012 _lt_linker_boilerplate=`cat conftest.err`
11016 # Allow CC to be a program name with arguments.
11021 lt_save_with_gnu_ld=$with_gnu_ld
11022 lt_save_path_LD=$lt_cv_path_LD
11023 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11024 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11026 $as_unset lt_cv_prog_gnu_ld
11028 if test -n "${lt_cv_path_LDCXX+set}"; then
11029 lt_cv_path_LD=$lt_cv_path_LDCXX
11031 $as_unset lt_cv_path_LD
11033 test -z "${LDCXX+set}" || LD=$LDCXX
11037 for cc_temp in $compiler""; do
11039 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11040 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11045 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11048 # We don't want -fno-exception wen compiling C++ code, so set the
11049 # no_builtin_flag separately
11050 if test "$GXX" = yes; then
11051 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11053 lt_prog_compiler_no_builtin_flag_CXX=
11056 if test "$GXX" = yes; then
11057 # Set up default GNU C++ configuration
11060 # Check whether --with-gnu-ld was given.
11061 if test "${with_gnu_ld+set}" = set; then :
11062 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11068 if test "$GCC" = yes; then
11069 # Check if gcc -print-prog-name=ld gives a path.
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11071 $as_echo_n "checking for ld used by $CC... " >&6; }
11074 # gcc leaves a trailing carriage return which upsets mingw
11075 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11077 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11080 # Accept absolute paths.
11082 re_direlt='/[^/][^/]*/\.\./'
11083 # Canonicalize the pathname of ld
11084 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11085 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11086 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11088 test -z "$LD" && LD="$ac_prog"
11091 # If it fails, then pretend we aren't using GCC.
11095 # If it is relative, then search for the first ld in PATH.
11096 with_gnu_ld=unknown
11099 elif test "$with_gnu_ld" = yes; then
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11101 $as_echo_n "checking for GNU ld... " >&6; }
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11104 $as_echo_n "checking for non-GNU ld... " >&6; }
11106 if ${lt_cv_path_LD+:} false; then :
11107 $as_echo_n "(cached) " >&6
11109 if test -z "$LD"; then
11110 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11111 for ac_dir in $PATH; do
11113 test -z "$ac_dir" && ac_dir=.
11114 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11115 lt_cv_path_LD="$ac_dir/$ac_prog"
11116 # Check to see if the program is GNU ld. I'd rather use --version,
11117 # but apparently some variants of GNU ld only accept -v.
11118 # Break only if it was the GNU/non-GNU ld that we prefer.
11119 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11120 *GNU* | *'with BFD'*)
11121 test "$with_gnu_ld" != no && break
11124 test "$with_gnu_ld" != yes && break
11131 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11135 LD="$lt_cv_path_LD"
11136 if test -n "$LD"; then
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11138 $as_echo "$LD" >&6; }
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11141 $as_echo "no" >&6; }
11143 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11145 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11146 if ${lt_cv_prog_gnu_ld+:} false; then :
11147 $as_echo_n "(cached) " >&6
11149 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11150 case `$LD -v 2>&1 </dev/null` in
11151 *GNU* | *'with BFD'*)
11152 lt_cv_prog_gnu_ld=yes
11155 lt_cv_prog_gnu_ld=no
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11160 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11161 with_gnu_ld=$lt_cv_prog_gnu_ld
11165 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11166 # archiving commands below assume that GNU ld is being used.
11167 if test "$with_gnu_ld" = yes; then
11168 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11169 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'
11171 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11172 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11174 # If archive_cmds runs LD, not CC, wlarc should be empty
11175 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11176 # investigate it a little bit more. (MM)
11179 # ancient GNU ld didn't support --whole-archive et. al.
11180 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11181 grep 'no-whole-archive' > /dev/null; then
11182 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11184 whole_archive_flag_spec_CXX=
11190 # A generic and very simple default shared library creation
11191 # command for GNU C++ for the case where it uses the native
11192 # linker, instead of GNU ld. If possible, this setting should
11193 # overridden to take advantage of the native linker features on
11194 # the platform it is being used on.
11195 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11198 # Commands to make compiler produce verbose output that lists
11199 # what "hidden" libraries, object files and flags are used when
11200 # linking a shared library.
11201 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11209 # PORTME: fill in a description of your system's C++ link characteristics
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11211 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11215 # FIXME: insert proper C++ library support
11219 if test "$host_cpu" = ia64; then
11220 # On IA64, the linker does run time linking by default, so we don't
11221 # have to do anything special.
11222 aix_use_runtimelinking=no
11223 exp_sym_flag='-Bexport'
11226 aix_use_runtimelinking=no
11228 # Test if we are trying to use run time linking or normal
11229 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11230 # need to do runtime linking.
11231 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11232 for ld_flag in $LDFLAGS; do
11235 aix_use_runtimelinking=yes
11243 exp_sym_flag='-bexport'
11244 no_entry_flag='-bnoentry'
11247 # When large executables or shared objects are built, AIX ld can
11248 # have problems creating the table of contents. If linking a library
11249 # or program results in "error TOC overflow" add -mminimal-toc to
11250 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11251 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11253 archive_cmds_CXX=''
11254 hardcode_direct_CXX=yes
11255 hardcode_libdir_separator_CXX=':'
11256 link_all_deplibs_CXX=yes
11258 if test "$GXX" = yes; then
11259 case $host_os in aix4.[012]|aix4.[012].*)
11260 # We only want to do this on AIX 4.2 and lower, the check
11261 # below for broken collect2 doesn't work under 4.3+
11262 collect2name=`${CC} -print-prog-name=collect2`
11263 if test -f "$collect2name" && \
11264 strings "$collect2name" | grep resolve_lib_name >/dev/null
11266 # We have reworked collect2
11267 hardcode_direct_CXX=yes
11269 # We have old collect2
11270 hardcode_direct_CXX=unsupported
11271 # It fails to find uninstalled libraries when the uninstalled
11272 # path is not listed in the libpath. Setting hardcode_minus_L
11273 # to unsupported forces relinking
11274 hardcode_minus_L_CXX=yes
11275 hardcode_libdir_flag_spec_CXX='-L$libdir'
11276 hardcode_libdir_separator_CXX=
11280 shared_flag='-shared'
11281 if test "$aix_use_runtimelinking" = yes; then
11282 shared_flag="$shared_flag "'${wl}-G'
11286 if test "$host_cpu" = ia64; then
11287 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11288 # chokes on -Wl,-G. The following line is correct:
11291 if test "$aix_use_runtimelinking" = yes; then
11292 shared_flag='${wl}-G'
11294 shared_flag='${wl}-bM:SRE'
11299 # It seems that -bexpall does not export symbols beginning with
11300 # underscore (_), so it is better to generate a list of symbols to export.
11301 always_export_symbols_CXX=yes
11302 if test "$aix_use_runtimelinking" = yes; then
11303 # Warning - without using the other runtime loading flags (-brtl),
11304 # -berok will link without error, but may produce a broken library.
11305 allow_undefined_flag_CXX='-berok'
11306 # Determine the default libpath from the value encoded in an empty executable.
11307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11308 /* end confdefs.h. */
11318 if ac_fn_cxx_try_link "$LINENO"; then :
11320 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11322 # Check for a 64-bit object if we didn't find anything.
11323 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11326 rm -f core conftest.err conftest.$ac_objext \
11327 conftest$ac_exeext conftest.$ac_ext
11328 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11330 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11332 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"
11334 if test "$host_cpu" = ia64; then
11335 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11336 allow_undefined_flag_CXX="-z nodefs"
11337 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"
11339 # Determine the default libpath from the value encoded in an empty executable.
11340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11341 /* end confdefs.h. */
11351 if ac_fn_cxx_try_link "$LINENO"; then :
11353 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11355 # Check for a 64-bit object if we didn't find anything.
11356 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11359 rm -f core conftest.err conftest.$ac_objext \
11360 conftest$ac_exeext conftest.$ac_ext
11361 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11363 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11364 # Warning - without using the other run time loading flags,
11365 # -berok will link without error, but may produce a broken library.
11366 no_undefined_flag_CXX=' ${wl}-bernotok'
11367 allow_undefined_flag_CXX=' ${wl}-berok'
11368 # Exported symbols can be pulled into shared objects from archives
11369 whole_archive_flag_spec_CXX='$convenience'
11370 archive_cmds_need_lc_CXX=yes
11371 # This is similar to how AIX traditionally builds its shared libraries.
11372 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'
11378 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11379 allow_undefined_flag_CXX=unsupported
11380 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11381 # support --undefined. This deserves some investigation. FIXME
11382 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11389 case $cc_basename in
11391 # FIXME: insert proper C++ library support
11397 cygwin* | mingw* | pw32*)
11398 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11399 # as there is no search path for DLLs.
11400 hardcode_libdir_flag_spec_CXX='-L$libdir'
11401 allow_undefined_flag_CXX=unsupported
11402 always_export_symbols_CXX=no
11403 enable_shared_with_static_runtimes_CXX=yes
11405 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11406 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'
11407 # If the export-symbols file already is a .def file (1st line
11408 # is EXPORTS), use it as is; otherwise, prepend...
11409 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11410 cp $export_symbols $output_objdir/$soname.def;
11412 echo EXPORTS > $output_objdir/$soname.def;
11413 cat $export_symbols >> $output_objdir/$soname.def;
11415 $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'
11420 darwin* | rhapsody*)
11422 rhapsody* | darwin1.[012])
11423 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11426 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11427 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11429 case ${MACOSX_DEPLOYMENT_TARGET} in
11431 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11434 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11440 archive_cmds_need_lc_CXX=no
11441 hardcode_direct_CXX=no
11442 hardcode_automatic_CXX=yes
11443 hardcode_shlibpath_var_CXX=unsupported
11444 whole_archive_flag_spec_CXX=''
11445 link_all_deplibs_CXX=yes
11447 if test "$GXX" = yes ; then
11448 lt_int_apple_cc_single_mod=no
11449 output_verbose_link_cmd='echo'
11450 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11451 lt_int_apple_cc_single_mod=yes
11453 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11454 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11456 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'
11458 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11459 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11460 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11461 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}'
11463 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}'
11465 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}'
11467 case $cc_basename in
11469 output_verbose_link_cmd='echo'
11470 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11471 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11472 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11473 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11474 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}'
11484 case $cc_basename in
11486 # FIXME: insert proper C++ library support
11490 # Green Hills C++ Compiler
11491 # FIXME: insert proper C++ library support
11495 # FIXME: insert proper C++ library support
11501 # C++ shared libraries reported to be fairly broken before switch to ELF
11505 archive_cmds_need_lc_CXX=no
11507 freebsd* | kfreebsd*-gnu | dragonfly*)
11508 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11515 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11516 hardcode_libdir_separator_CXX=:
11517 export_dynamic_flag_spec_CXX='${wl}-E'
11518 hardcode_direct_CXX=yes
11519 hardcode_minus_L_CXX=yes # Not in the search PATH,
11520 # but as the default
11521 # location of the library.
11523 case $cc_basename in
11525 # FIXME: insert proper C++ library support
11529 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'
11530 # Commands to make compiler produce verbose output that lists
11531 # what "hidden" libraries, object files and flags are used when
11532 # linking a shared library.
11534 # There doesn't appear to be a way to prevent this compiler from
11535 # explicitly linking system object files so we need to strip them
11536 # from the output so that they don't get included in the library
11538 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'
11541 if test "$GXX" = yes; then
11542 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'
11544 # FIXME: insert proper C++ library support
11551 if test $with_gnu_ld = no; then
11552 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11553 hardcode_libdir_separator_CXX=:
11557 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11560 export_dynamic_flag_spec_CXX='${wl}-E'
11566 hardcode_direct_CXX=no
11567 hardcode_shlibpath_var_CXX=no
11570 hardcode_direct_CXX=yes
11571 hardcode_minus_L_CXX=yes # Not in the search PATH,
11572 # but as the default
11573 # location of the library.
11577 case $cc_basename in
11579 # FIXME: insert proper C++ library support
11585 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11588 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11591 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11594 # Commands to make compiler produce verbose output that lists
11595 # what "hidden" libraries, object files and flags are used when
11596 # linking a shared library.
11598 # There doesn't appear to be a way to prevent this compiler from
11599 # explicitly linking system object files so we need to strip them
11600 # from the output so that they don't get included in the library
11602 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'
11605 if test "$GXX" = yes; then
11606 if test $with_gnu_ld = no; then
11609 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11612 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11615 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'
11620 # FIXME: insert proper C++ library support
11627 hardcode_direct_CXX=no
11628 hardcode_shlibpath_var_CXX=no
11629 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11630 export_dynamic_flag_spec_CXX='${wl}-E'
11631 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11632 # Instead, shared libraries are loaded at an image base (0x10000000 by
11633 # default) and relocated if they conflict, which is a slow very memory
11634 # consuming and fragmenting process. To avoid this, we pick a random,
11635 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11636 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11637 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'
11638 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'
11641 case $cc_basename in
11644 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'
11646 # Archives containing C++ object files must be created using
11647 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11648 # necessary to make sure instantiated templates are included
11650 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11653 if test "$GXX" = yes; then
11654 if test "$with_gnu_ld" = no; then
11655 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'
11657 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'
11660 link_all_deplibs_CXX=yes
11663 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11664 hardcode_libdir_separator_CXX=:
11667 case $cc_basename in
11669 # Kuck and Associates, Inc. (KAI) C++ Compiler
11671 # KCC will only create a shared library if the output file
11672 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11673 # to its proper name (with version) after linking.
11674 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'
11675 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'
11676 # Commands to make compiler produce verbose output that lists
11677 # what "hidden" libraries, object files and flags are used when
11678 # linking a shared library.
11680 # There doesn't appear to be a way to prevent this compiler from
11681 # explicitly linking system object files so we need to strip them
11682 # from the output so that they don't get included in the library
11684 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'
11686 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11687 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11689 # Archives containing C++ object files must be created using
11690 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11691 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11696 # version 8.0 and above of icpc choke on multiply defined symbols
11697 # if we add $predep_objects and $postdep_objects, however 7.1 and
11698 # earlier do not add the objects themselves.
11699 case `$CC -V 2>&1` in
11701 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11702 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'
11704 *) # Version 8.0 or newer
11707 ia64*) tmp_idyn=' -i_dynamic';;
11709 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11710 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'
11713 archive_cmds_need_lc_CXX=no
11714 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11715 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11716 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11719 # Portland Group C++ compiler
11720 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11721 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'
11723 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11724 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11725 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'
11729 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11730 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'
11732 runpath_var=LD_RUN_PATH
11733 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11734 hardcode_libdir_separator_CXX=:
11736 # Commands to make compiler produce verbose output that lists
11737 # what "hidden" libraries, object files and flags are used when
11738 # linking a shared library.
11740 # There doesn't appear to be a way to prevent this compiler from
11741 # explicitly linking system object files so we need to strip them
11742 # from the output so that they don't get included in the library
11744 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'
11749 # FIXME: insert proper C++ library support
11753 # FIXME: insert proper C++ library support
11757 case $cc_basename in
11759 # FIXME: insert proper C++ library support
11763 # FIXME: insert proper C++ library support
11769 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11770 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11772 hardcode_libdir_flag_spec_CXX='-R$libdir'
11773 hardcode_direct_CXX=yes
11774 hardcode_shlibpath_var_CXX=no
11776 # Workaround some broken pre-1.5 toolchains
11777 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11780 # C++ shared libraries are fairly broken
11784 hardcode_direct_CXX=yes
11785 hardcode_shlibpath_var_CXX=no
11786 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11787 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11788 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11789 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11790 export_dynamic_flag_spec_CXX='${wl}-E'
11791 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11793 output_verbose_link_cmd='echo'
11796 case $cc_basename in
11798 # Kuck and Associates, Inc. (KAI) C++ Compiler
11800 # KCC will only create a shared library if the output file
11801 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11802 # to its proper name (with version) after linking.
11803 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11805 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11806 hardcode_libdir_separator_CXX=:
11808 # Archives containing C++ object files must be created using
11809 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11810 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11814 # Rational C++ 2.4.1
11815 # FIXME: insert proper C++ library support
11819 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11820 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'
11822 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11823 hardcode_libdir_separator_CXX=:
11825 # Commands to make compiler produce verbose output that lists
11826 # what "hidden" libraries, object files and flags are used when
11827 # linking a shared library.
11829 # There doesn't appear to be a way to prevent this compiler from
11830 # explicitly linking system object files so we need to strip them
11831 # from the output so that they don't get included in the library
11833 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'
11836 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11837 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11838 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'
11840 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11841 hardcode_libdir_separator_CXX=:
11843 # Commands to make compiler produce verbose output that lists
11844 # what "hidden" libraries, object files and flags are used when
11845 # linking a shared library.
11846 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11849 # FIXME: insert proper C++ library support
11856 case $cc_basename in
11858 # Kuck and Associates, Inc. (KAI) C++ Compiler
11860 # KCC will only create a shared library if the output file
11861 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11862 # to its proper name (with version) after linking.
11863 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'
11865 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11866 hardcode_libdir_separator_CXX=:
11868 # Archives containing C++ object files must be created using
11869 # the KAI C++ compiler.
11870 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11873 # Rational C++ 2.4.1
11874 # FIXME: insert proper C++ library support
11878 allow_undefined_flag_CXX=' -expect_unresolved \*'
11879 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'
11880 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11881 echo "-hidden">> $lib.exp~
11882 $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~
11885 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11886 hardcode_libdir_separator_CXX=:
11888 # Commands to make compiler produce verbose output that lists
11889 # what "hidden" libraries, object files and flags are used when
11890 # linking a shared library.
11892 # There doesn't appear to be a way to prevent this compiler from
11893 # explicitly linking system object files so we need to strip them
11894 # from the output so that they don't get included in the library
11896 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'
11899 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11900 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11901 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'
11903 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11904 hardcode_libdir_separator_CXX=:
11906 # Commands to make compiler produce verbose output that lists
11907 # what "hidden" libraries, object files and flags are used when
11908 # linking a shared library.
11909 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11912 # FIXME: insert proper C++ library support
11919 # FIXME: insert proper C++ library support
11923 case $cc_basename in
11926 # FIXME: insert proper C++ library support
11931 # FIXME: insert proper C++ library support
11935 # FIXME: insert proper C++ library support
11941 case $cc_basename in
11943 # Sun C++ 4.2, 5.x and Centerline C++
11944 archive_cmds_need_lc_CXX=yes
11945 no_undefined_flag_CXX=' -zdefs'
11946 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11947 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11948 $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'
11950 hardcode_libdir_flag_spec_CXX='-R$libdir'
11951 hardcode_shlibpath_var_CXX=no
11953 solaris2.[0-5] | solaris2.[0-5].*) ;;
11955 # The C++ compiler is used as linker so we must use $wl
11956 # flag to pass the commands to the underlying system
11957 # linker. We must also pass each convience library through
11958 # to the system linker between allextract/defaultextract.
11959 # The C++ compiler will combine linker options so we
11960 # cannot just pass the convience library names through
11962 # Supported since Solaris 2.6 (maybe 2.5.1?)
11963 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11966 link_all_deplibs_CXX=yes
11968 output_verbose_link_cmd='echo'
11970 # Archives containing C++ object files must be created using
11971 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11972 # necessary to make sure instantiated templates are included
11974 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11977 # Green Hills C++ Compiler
11978 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11980 # The C++ compiler must be used to create the archive.
11981 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11984 # GNU C++ compiler with Solaris linker
11985 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11986 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11987 if $CC --version | grep -v '^2\.7' > /dev/null; then
11988 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11989 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11990 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11992 # Commands to make compiler produce verbose output that lists
11993 # what "hidden" libraries, object files and flags are used when
11994 # linking a shared library.
11995 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11997 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11999 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12000 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12001 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12003 # Commands to make compiler produce verbose output that lists
12004 # what "hidden" libraries, object files and flags are used when
12005 # linking a shared library.
12006 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12009 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12014 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12015 no_undefined_flag_CXX='${wl}-z,text'
12016 archive_cmds_need_lc_CXX=no
12017 hardcode_shlibpath_var_CXX=no
12018 runpath_var='LD_RUN_PATH'
12020 case $cc_basename in
12022 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12023 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12026 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12027 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12031 sysv5* | sco3.2v5* | sco5v6*)
12032 # Note: We can NOT use -z defs as we might desire, because we do not
12033 # link with -lc, and that would cause any symbols used from libc to
12034 # always be unresolved, which means just about no library would
12035 # ever link correctly. If we're not using GNU ld we use -z text
12036 # though, which does catch some bad symbols but isn't as heavy-handed
12038 # For security reasons, it is highly recommended that you always
12039 # use absolute paths for naming shared libraries, and exclude the
12040 # DT_RUNPATH tag from executables and libraries. But doing so
12041 # requires that you compile everything twice, which is a pain.
12042 # So that behaviour is only enabled if SCOABSPATH is set to a
12043 # non-empty value in the environment. Most likely only useful for
12044 # creating official distributions of packages.
12045 # This is a hack until libtool officially supports absolute path
12046 # names for shared libraries.
12047 no_undefined_flag_CXX='${wl}-z,text'
12048 allow_undefined_flag_CXX='${wl}-z,nodefs'
12049 archive_cmds_need_lc_CXX=no
12050 hardcode_shlibpath_var_CXX=no
12051 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12052 hardcode_libdir_separator_CXX=':'
12053 link_all_deplibs_CXX=yes
12054 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12055 runpath_var='LD_RUN_PATH'
12057 case $cc_basename in
12059 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12060 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12063 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12064 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12069 case $cc_basename in
12071 # NonStop-UX NCC 3.20
12072 # FIXME: insert proper C++ library support
12076 # FIXME: insert proper C++ library support
12082 # FIXME: insert proper C++ library support
12086 # FIXME: insert proper C++ library support
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12091 $as_echo "$ld_shlibs_CXX" >&6; }
12092 test "$ld_shlibs_CXX" = no && can_build_shared=no
12098 cat > conftest.$ac_ext <<EOF
12102 Foo (void) { a = 0; }
12108 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12109 (eval $ac_compile) 2>&5
12111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12112 test $ac_status = 0; }; then
12113 # Parse the compiler output and extract the necessary
12114 # objects, libraries and library flags.
12116 # Sentinel used to keep track of whether or not we are before
12117 # the conftest object file.
12118 pre_test_object_deps_done=no
12120 # The `*' in the case matches for architectures that use `case' in
12121 # $output_verbose_cmd can trigger glob expansion during the loop
12122 # eval without this substitution.
12123 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12125 for p in `eval $output_verbose_link_cmd`; do
12129 # Some compilers place space between "-{L,R}" and the path.
12130 # Remove the space.
12131 if test $p = "-L" \
12132 || test $p = "-R"; then
12139 if test "$pre_test_object_deps_done" = no; then
12142 # Internal compiler library paths should come after those
12143 # provided the user. The postdeps already come after the
12144 # user supplied libs so there is no need to process them.
12145 if test -z "$compiler_lib_search_path_CXX"; then
12146 compiler_lib_search_path_CXX="${prev}${p}"
12148 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12151 # The "-l" case would never come before the object being
12152 # linked, so don't bother handling this case.
12155 if test -z "$postdeps_CXX"; then
12156 postdeps_CXX="${prev}${p}"
12158 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12164 # This assumes that the test object file only shows up
12165 # once in the compiler output.
12166 if test "$p" = "conftest.$objext"; then
12167 pre_test_object_deps_done=yes
12171 if test "$pre_test_object_deps_done" = no; then
12172 if test -z "$predep_objects_CXX"; then
12173 predep_objects_CXX="$p"
12175 predep_objects_CXX="$predep_objects_CXX $p"
12178 if test -z "$postdep_objects_CXX"; then
12179 postdep_objects_CXX="$p"
12181 postdep_objects_CXX="$postdep_objects_CXX $p"
12186 *) ;; # Ignore the rest.
12194 echo "libtool.m4: error: problem compiling CXX test program"
12197 $rm -f confest.$objext
12199 # PORTME: override above test on systems where it is broken
12202 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12203 # hack all around it, let's just trust "g++" to DTRT.
12204 predep_objects_CXX=
12205 postdep_objects_CXX=
12210 case $cc_basename in
12212 # Adding this requires a known-good setup of shared libraries for
12213 # Sun compiler versions before 5.6, else PIC objects from an old
12214 # archive will be linked into the output, leading to subtle bugs.
12215 postdeps_CXX='-lCstd -lCrun'
12222 case " $postdeps_CXX " in
12223 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12226 lt_prog_compiler_wl_CXX=
12227 lt_prog_compiler_pic_CXX=
12228 lt_prog_compiler_static_CXX=
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12231 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12233 # C++ specific cases for pic, static, wl, etc.
12234 if test "$GXX" = yes; then
12235 lt_prog_compiler_wl_CXX='-Wl,'
12236 lt_prog_compiler_static_CXX='-static'
12240 # All AIX code is PIC.
12241 if test "$host_cpu" = ia64; then
12242 # AIX 5 now supports IA64 processor
12243 lt_prog_compiler_static_CXX='-Bstatic'
12247 # FIXME: we need at least 68020 code to build shared libraries, but
12248 # adding the `-m68020' flag to GCC prevents building anything better,
12250 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12252 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12253 # PIC is the default for these OSes.
12255 mingw* | os2* | pw32*)
12256 # This hack is so that the source file can tell whether it is being
12257 # built for inclusion in a dll (and should export symbols for example).
12258 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12260 darwin* | rhapsody*)
12261 # PIC is the default on this platform
12262 # Common symbols not allowed in MH_DYLIB files
12263 lt_prog_compiler_pic_CXX='-fno-common'
12266 # DJGPP does not support shared libraries at all
12267 lt_prog_compiler_pic_CXX=
12270 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12271 # Instead, we relocate shared libraries at runtime.
12274 if test -d /usr/nec; then
12275 lt_prog_compiler_pic_CXX=-Kconform_pic
12279 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12280 # not for PA HP-UX.
12285 lt_prog_compiler_pic_CXX='-fPIC'
12290 lt_prog_compiler_pic_CXX='-fPIC'
12296 # All AIX code is PIC.
12297 if test "$host_cpu" = ia64; then
12298 # AIX 5 now supports IA64 processor
12299 lt_prog_compiler_static_CXX='-Bstatic'
12301 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12305 case $cc_basename in
12307 # Green Hills C++ Compiler
12308 # _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"
12313 # PIC is the default on this platform
12314 # Common symbols not allowed in MH_DYLIB files
12315 case $cc_basename in
12317 lt_prog_compiler_pic_CXX='-qnocommon'
12318 lt_prog_compiler_wl_CXX='-Wl,'
12323 case $cc_basename in
12325 lt_prog_compiler_pic_CXX='-KPIC'
12328 # Green Hills C++ Compiler
12329 lt_prog_compiler_pic_CXX='-pic'
12335 freebsd* | kfreebsd*-gnu | dragonfly*)
12336 # FreeBSD uses GNU C++
12338 hpux9* | hpux10* | hpux11*)
12339 case $cc_basename in
12341 lt_prog_compiler_wl_CXX='-Wl,'
12342 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12343 if test "$host_cpu" != ia64; then
12344 lt_prog_compiler_pic_CXX='+Z'
12348 lt_prog_compiler_wl_CXX='-Wl,'
12349 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12355 lt_prog_compiler_pic_CXX='+Z'
12364 # This is c89, which is MS Visual C++ (no shared libs)
12365 # Anyone wants to do a port?
12367 irix5* | irix6* | nonstopux*)
12368 case $cc_basename in
12370 lt_prog_compiler_wl_CXX='-Wl,'
12371 lt_prog_compiler_static_CXX='-non_shared'
12372 # CC pic flag -KPIC is the default.
12379 case $cc_basename in
12382 lt_prog_compiler_wl_CXX='--backend -Wl,'
12383 lt_prog_compiler_pic_CXX='-fPIC'
12387 lt_prog_compiler_wl_CXX='-Wl,'
12388 lt_prog_compiler_pic_CXX='-KPIC'
12389 lt_prog_compiler_static_CXX='-static'
12392 # Portland Group C++ compiler.
12393 lt_prog_compiler_wl_CXX='-Wl,'
12394 lt_prog_compiler_pic_CXX='-fpic'
12395 lt_prog_compiler_static_CXX='-Bstatic'
12399 # Make sure the PIC flag is empty. It appears that all Alpha
12400 # Linux and Compaq Tru64 Unix objects are PIC.
12401 lt_prog_compiler_pic_CXX=
12402 lt_prog_compiler_static_CXX='-non_shared'
12413 case $cc_basename in
12415 lt_prog_compiler_pic_CXX='-W c,exportall'
12423 osf3* | osf4* | osf5*)
12424 case $cc_basename in
12426 lt_prog_compiler_wl_CXX='--backend -Wl,'
12429 # Rational C++ 2.4.1
12430 lt_prog_compiler_pic_CXX='-pic'
12433 # Digital/Compaq C++
12434 lt_prog_compiler_wl_CXX='-Wl,'
12435 # Make sure the PIC flag is empty. It appears that all Alpha
12436 # Linux and Compaq Tru64 Unix objects are PIC.
12437 lt_prog_compiler_pic_CXX=
12438 lt_prog_compiler_static_CXX='-non_shared'
12447 case $cc_basename in
12449 # Sun C++ 4.2, 5.x and Centerline C++
12450 lt_prog_compiler_pic_CXX='-KPIC'
12451 lt_prog_compiler_static_CXX='-Bstatic'
12452 lt_prog_compiler_wl_CXX='-Qoption ld '
12455 # Green Hills C++ Compiler
12456 lt_prog_compiler_pic_CXX='-PIC'
12463 case $cc_basename in
12466 lt_prog_compiler_pic_CXX='-pic'
12467 lt_prog_compiler_static_CXX='-Bstatic'
12471 lt_prog_compiler_pic_CXX='-pic'
12478 case $cc_basename in
12480 # NonStop-UX NCC 3.20
12481 lt_prog_compiler_pic_CXX='-KPIC'
12487 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12488 case $cc_basename in
12490 lt_prog_compiler_wl_CXX='-Wl,'
12491 lt_prog_compiler_pic_CXX='-KPIC'
12492 lt_prog_compiler_static_CXX='-Bstatic'
12499 lt_prog_compiler_can_build_shared_CXX=no
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
12505 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12508 # Check to make sure the PIC flag actually works.
12510 if test -n "$lt_prog_compiler_pic_CXX"; then
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12513 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12514 if ${lt_prog_compiler_pic_works_CXX+:} false; then :
12515 $as_echo_n "(cached) " >&6
12517 lt_prog_compiler_pic_works_CXX=no
12518 ac_outfile=conftest.$ac_objext
12519 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12520 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12521 # Insert the option either (1) after the last *FLAGS variable, or
12522 # (2) before a word containing "conftest.", or (3) at the end.
12523 # Note that $ac_compile itself does not contain backslashes and begins
12524 # with a dollar sign (not a hyphen), so the echo should work correctly.
12525 # The option is referenced via a variable to avoid confusing sed.
12526 lt_compile=`echo "$ac_compile" | $SED \
12527 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12528 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12529 -e 's:$: $lt_compiler_flag:'`
12530 (eval echo "\"\$as_me:12530: $lt_compile\"" >&5)
12531 (eval "$lt_compile" 2>conftest.err)
12533 cat conftest.err >&5
12534 echo "$as_me:12534: \$? = $ac_status" >&5
12535 if (exit $ac_status) && test -s "$ac_outfile"; then
12536 # The compiler can only warn and ignore the option if not recognized
12537 # So say no if there are warnings other than the usual output.
12538 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12539 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12540 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12541 lt_prog_compiler_pic_works_CXX=yes
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_CXX" >&5
12548 $as_echo "$lt_prog_compiler_pic_works_CXX" >&6; }
12550 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12551 case $lt_prog_compiler_pic_CXX in
12553 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12556 lt_prog_compiler_pic_CXX=
12557 lt_prog_compiler_can_build_shared_CXX=no
12562 # For platforms which do not support PIC, -DPIC is meaningless:
12564 lt_prog_compiler_pic_CXX=
12567 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12572 # Check to make sure the static flag actually works.
12574 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12576 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12577 if ${lt_prog_compiler_static_works_CXX+:} false; then :
12578 $as_echo_n "(cached) " >&6
12580 lt_prog_compiler_static_works_CXX=no
12581 save_LDFLAGS="$LDFLAGS"
12582 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12583 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12584 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12585 # The linker can only warn and ignore the option if not recognized
12586 # So say no if there are warnings
12587 if test -s conftest.err; then
12588 # Append any errors to the config.log.
12589 cat conftest.err 1>&5
12590 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12591 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12592 if diff conftest.exp conftest.er2 >/dev/null; then
12593 lt_prog_compiler_static_works_CXX=yes
12596 lt_prog_compiler_static_works_CXX=yes
12600 LDFLAGS="$save_LDFLAGS"
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works_CXX" >&5
12604 $as_echo "$lt_prog_compiler_static_works_CXX" >&6; }
12606 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12609 lt_prog_compiler_static_CXX=
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12614 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12615 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
12616 $as_echo_n "(cached) " >&6
12618 lt_cv_prog_compiler_c_o_CXX=no
12619 $rm -r conftest 2>/dev/null
12623 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12625 lt_compiler_flag="-o out/conftest2.$ac_objext"
12626 # Insert the option either (1) after the last *FLAGS variable, or
12627 # (2) before a word containing "conftest.", or (3) at the end.
12628 # Note that $ac_compile itself does not contain backslashes and begins
12629 # with a dollar sign (not a hyphen), so the echo should work correctly.
12630 lt_compile=`echo "$ac_compile" | $SED \
12631 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12632 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12633 -e 's:$: $lt_compiler_flag:'`
12634 (eval echo "\"\$as_me:12634: $lt_compile\"" >&5)
12635 (eval "$lt_compile" 2>out/conftest.err)
12637 cat out/conftest.err >&5
12638 echo "$as_me:12638: \$? = $ac_status" >&5
12639 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12641 # The compiler can only warn and ignore the option if not recognized
12642 # So say no if there are warnings
12643 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12644 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12645 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12646 lt_cv_prog_compiler_c_o_CXX=yes
12651 # SGI C++ compiler will create directory out/ii_files/ for
12652 # template instantiation
12653 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12654 $rm out/* && rmdir out
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12661 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12664 hard_links="nottested"
12665 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12666 # do not overwrite the value of need_locks provided by the user
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12668 $as_echo_n "checking if we can lock with hard links... " >&6; }
12671 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12673 ln conftest.a conftest.b 2>&5 || hard_links=no
12674 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12676 $as_echo "$hard_links" >&6; }
12677 if test "$hard_links" = no; then
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12679 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12687 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12689 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12692 # If we're using GNU nm, then we don't want the "-C" option.
12693 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12694 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12695 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'
12697 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'
12701 export_symbols_cmds_CXX="$ltdll_cmds"
12704 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'
12707 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12712 $as_echo "$ld_shlibs_CXX" >&6; }
12713 test "$ld_shlibs_CXX" = no && can_build_shared=no
12716 # Do we need to explicitly link libc?
12718 case "x$archive_cmds_need_lc_CXX" in
12720 # Assume -lc should be added
12721 archive_cmds_need_lc_CXX=yes
12723 if test "$enable_shared" = yes && test "$GCC" = yes; then
12724 case $archive_cmds_CXX in
12726 # FIXME: we may have to deal with multi-command sequences.
12729 # Test whether the compiler implicitly links with -lc since on some
12730 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12731 # to ld, don't add -lc before -lgcc.
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12733 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12735 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12737 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12738 (eval $ac_compile) 2>&5
12740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12741 test $ac_status = 0; } 2>conftest.err; then
12744 libobjs=conftest.$ac_objext
12746 wl=$lt_prog_compiler_wl_CXX
12747 pic_flag=$lt_prog_compiler_pic_CXX
12753 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12754 allow_undefined_flag_CXX=
12755 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12756 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12759 test $ac_status = 0; }
12761 archive_cmds_need_lc_CXX=no
12763 archive_cmds_need_lc_CXX=yes
12765 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12767 cat conftest.err 1>&5
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
12771 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12779 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12780 library_names_spec=
12781 libname_spec='lib$name'
12785 postuninstall_cmds=
12789 shlibpath_overrides_runpath=unknown
12791 dynamic_linker="$host_os ld.so"
12792 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12793 if test "$GCC" = yes; then
12794 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12795 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12796 # if the path contains ";" then we assume it to be the separator
12797 # otherwise default to the standard path separator (i.e. ":") - it is
12798 # assumed that no part of a normal pathname contains ";" but that should
12799 # okay in the real world where ";" in dirpaths is itself problematic.
12800 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12802 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12805 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12807 need_lib_prefix=unknown
12808 hardcode_into_libs=no
12810 # when you set need_version to no, make sure it does not cause -set_version
12811 # flags to be left without arguments
12812 need_version=unknown
12817 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12818 shlibpath_var=LIBPATH
12820 # AIX 3 has no versioning support, so we append a major version to the name.
12821 soname_spec='${libname}${release}${shared_ext}$major'
12828 hardcode_into_libs=yes
12829 if test "$host_cpu" = ia64; then
12830 # AIX 5 supports IA64
12831 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12832 shlibpath_var=LD_LIBRARY_PATH
12834 # With GCC up to 2.95.x, collect2 would create an import file
12835 # for dependence libraries. The import file would start with
12836 # the line `#! .'. This would cause the generated library to
12837 # depend on `.', always an invalid library. This was fixed in
12838 # development snapshots of GCC prior to 3.0.
12840 aix4 | aix4.[01] | aix4.[01].*)
12841 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12843 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12846 can_build_shared=no
12850 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12851 # soname into executable. Probably we can add versioning support to
12852 # collect2, so additional links can be useful in future.
12853 if test "$aix_use_runtimelinking" = yes; then
12854 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12855 # instead of lib<name>.a to let people know that these are not
12856 # typical AIX shared libraries.
12857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12859 # We preserve .a as extension for shared libraries through AIX4.2
12860 # and later when we are not doing run time linking.
12861 library_names_spec='${libname}${release}.a $libname.a'
12862 soname_spec='${libname}${release}${shared_ext}$major'
12864 shlibpath_var=LIBPATH
12869 library_names_spec='$libname.ixlibrary $libname.a'
12870 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12871 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'
12875 library_names_spec='${libname}${shared_ext}'
12876 dynamic_linker="$host_os ld.so"
12877 shlibpath_var=LIBRARY_PATH
12883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12884 soname_spec='${libname}${release}${shared_ext}$major'
12885 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12886 shlibpath_var=LD_LIBRARY_PATH
12887 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12888 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12889 # the default ld.so.conf also contains /usr/contrib/lib and
12890 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12891 # libtool to hard-code these into programs
12894 cygwin* | mingw* | pw32*)
12895 version_type=windows
12900 case $GCC,$host_os in
12901 yes,cygwin* | yes,mingw* | yes,pw32*)
12902 library_names_spec='$libname.dll.a'
12903 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12904 postinstall_cmds='base_file=`basename \${file}`~
12905 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12906 dldir=$destdir/`dirname \$dlpath`~
12907 test -d \$dldir || mkdir -p \$dldir~
12908 $install_prog $dir/$dlname \$dldir/$dlname~
12909 chmod a+x \$dldir/$dlname'
12910 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12911 dlpath=$dir/\$dldll~
12913 shlibpath_overrides_runpath=yes
12917 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12918 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12919 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12922 # MinGW DLLs use traditional 'lib' prefix
12923 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12924 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12925 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12926 # It is most probably a Windows format PATH printed by
12927 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12928 # path with ; separators, and with drive letters. We can handle the
12929 # drive letters (cygwin fileutils understands them), so leave them,
12930 # especially as we might pass files found there to a mingw objdump,
12931 # which wouldn't understand a cygwinified path. Ahh.
12932 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12934 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12938 # pw32 DLLs use 'pw' prefix rather than 'lib'
12939 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12945 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12948 dynamic_linker='Win32 ld.exe'
12949 # FIXME: first we should search . and the directory the executable is in
12953 darwin* | rhapsody*)
12954 dynamic_linker="$host_os dyld"
12955 version_type=darwin
12958 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12959 soname_spec='${libname}${release}${major}$shared_ext'
12960 shlibpath_overrides_runpath=yes
12961 shlibpath_var=DYLD_LIBRARY_PATH
12962 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12963 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12964 if test "$GCC" = yes; then
12965 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12967 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12969 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12977 soname_spec='${libname}${release}${shared_ext}$major'
12978 shlibpath_var=LD_LIBRARY_PATH
12989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12990 soname_spec='${libname}${release}${shared_ext}$major'
12991 shlibpath_var=LD_LIBRARY_PATH
12992 shlibpath_overrides_runpath=no
12993 hardcode_into_libs=yes
12994 dynamic_linker='GNU ld.so'
12997 freebsd* | dragonfly*)
12998 # DragonFly does not have aout. When/if they implement a new
12999 # versioning mechanism, adjust this.
13000 if test -x /usr/bin/objformat; then
13001 objformat=`/usr/bin/objformat`
13004 freebsd[123]*) objformat=aout ;;
13005 *) objformat=elf ;;
13008 version_type=freebsd-$objformat
13009 case $version_type in
13011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13016 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13020 shlibpath_var=LD_LIBRARY_PATH
13023 shlibpath_overrides_runpath=yes
13025 freebsd3.[01]* | freebsdelf3.[01]*)
13026 shlibpath_overrides_runpath=yes
13027 hardcode_into_libs=yes
13029 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13030 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13031 shlibpath_overrides_runpath=no
13032 hardcode_into_libs=yes
13034 freebsd*) # from 4.6 on
13035 shlibpath_overrides_runpath=yes
13036 hardcode_into_libs=yes
13045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13046 soname_spec='${libname}${release}${shared_ext}$major'
13047 shlibpath_var=LD_LIBRARY_PATH
13048 hardcode_into_libs=yes
13051 hpux9* | hpux10* | hpux11*)
13052 # Give a soname corresponding to the major version so that dld.sl refuses to
13053 # link against other versions.
13060 hardcode_into_libs=yes
13061 dynamic_linker="$host_os dld.so"
13062 shlibpath_var=LD_LIBRARY_PATH
13063 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13065 soname_spec='${libname}${release}${shared_ext}$major'
13066 if test "X$HPUX_IA64_MODE" = X32; then
13067 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13069 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13071 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13075 hardcode_into_libs=yes
13076 dynamic_linker="$host_os dld.sl"
13077 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13078 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13080 soname_spec='${libname}${release}${shared_ext}$major'
13081 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13082 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13086 dynamic_linker="$host_os dld.sl"
13087 shlibpath_var=SHLIB_PATH
13088 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13090 soname_spec='${libname}${release}${shared_ext}$major'
13093 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13094 postinstall_cmds='chmod 555 $lib'
13101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13102 soname_spec='${libname}${release}${shared_ext}$major'
13103 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13104 shlibpath_var=LD_LIBRARY_PATH
13105 shlibpath_overrides_runpath=no
13106 hardcode_into_libs=yes
13109 irix5* | irix6* | nonstopux*)
13111 nonstopux*) version_type=nonstopux ;;
13113 if test "$lt_cv_prog_gnu_ld" = yes; then
13121 soname_spec='${libname}${release}${shared_ext}$major'
13122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13124 irix5* | nonstopux*)
13125 libsuff= shlibsuff=
13128 case $LD in # libtool.m4 will add one of these switches to LD
13129 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13130 libsuff= shlibsuff= libmagic=32-bit;;
13131 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13132 libsuff=32 shlibsuff=N32 libmagic=N32;;
13133 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13134 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13135 *) libsuff= shlibsuff= libmagic=never-match;;
13139 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13140 shlibpath_overrides_runpath=no
13141 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13142 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13143 hardcode_into_libs=yes
13146 # No shared lib support for Linux oldld, aout, or coff.
13147 linux*oldld* | linux*aout* | linux*coff*)
13151 # This must be Linux ELF.
13156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13157 soname_spec='${libname}${release}${shared_ext}$major'
13158 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13159 shlibpath_var=LD_LIBRARY_PATH
13160 shlibpath_overrides_runpath=no
13161 # This implies no fast_install, which is unacceptable.
13162 # Some rework will be needed to allow for fast_install
13163 # before this can be enabled.
13164 hardcode_into_libs=yes
13166 # Append ld.so.conf contents to the search path
13167 if test -f /etc/ld.so.conf; then
13168 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13169 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13172 # We used to test for /lib/ld.so.1 and disable shared libraries on
13173 # powerpc, because MkLinux only supported shared libraries with the
13174 # GNU dynamic linker. Since this was broken with cross compilers,
13175 # most powerpc-linux boxes support dynamic linking these days and
13176 # people can always --disable-shared, the test was removed, and we
13177 # assume the GNU/Linux dynamic linker is in use.
13178 dynamic_linker='GNU/Linux ld.so'
13185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13186 soname_spec='${libname}${release}${shared_ext}$major'
13187 shlibpath_var=LD_LIBRARY_PATH
13188 shlibpath_overrides_runpath=no
13189 hardcode_into_libs=yes
13190 dynamic_linker='GNU ld.so'
13197 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13199 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13200 dynamic_linker='NetBSD (a.out) ld.so'
13202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13203 soname_spec='${libname}${release}${shared_ext}$major'
13204 dynamic_linker='NetBSD ld.elf_so'
13206 shlibpath_var=LD_LIBRARY_PATH
13207 shlibpath_overrides_runpath=yes
13208 hardcode_into_libs=yes
13213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13214 shlibpath_var=LD_LIBRARY_PATH
13215 shlibpath_overrides_runpath=yes
13222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13223 soname_spec='${libname}${release}${shared_ext}$major'
13224 shlibpath_var=LD_LIBRARY_PATH
13225 shlibpath_overrides_runpath=yes
13230 sys_lib_dlsearch_path_spec="/usr/lib"
13232 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13234 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13235 *) need_version=no ;;
13237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13238 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13239 shlibpath_var=LD_LIBRARY_PATH
13240 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13242 openbsd2.[89] | openbsd2.[89].*)
13243 shlibpath_overrides_runpath=no
13246 shlibpath_overrides_runpath=yes
13250 shlibpath_overrides_runpath=yes
13255 libname_spec='$name'
13258 library_names_spec='$libname${shared_ext} $libname.a'
13259 dynamic_linker='OS/2 ld.exe'
13260 shlibpath_var=LIBPATH
13263 osf3* | osf4* | osf5*)
13267 soname_spec='${libname}${release}${shared_ext}$major'
13268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13269 shlibpath_var=LD_LIBRARY_PATH
13270 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13271 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13279 soname_spec='${libname}${release}${shared_ext}$major'
13280 shlibpath_var=LD_LIBRARY_PATH
13281 shlibpath_overrides_runpath=yes
13282 hardcode_into_libs=yes
13283 # ldd complains unless libraries are executable
13284 postinstall_cmds='chmod +x $lib'
13289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13290 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13291 shlibpath_var=LD_LIBRARY_PATH
13292 shlibpath_overrides_runpath=yes
13293 if test "$with_gnu_ld" = yes; then
13301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13302 soname_spec='${libname}${release}${shared_ext}$major'
13303 shlibpath_var=LD_LIBRARY_PATH
13304 case $host_vendor in
13306 shlibpath_overrides_runpath=no
13308 export_dynamic_flag_spec='${wl}-Blargedynsym'
13309 runpath_var=LD_RUN_PATH
13317 shlibpath_overrides_runpath=no
13318 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13324 if test -d /usr/nec ;then
13326 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13327 soname_spec='$libname${shared_ext}.$major'
13328 shlibpath_var=LD_LIBRARY_PATH
13332 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13333 version_type=freebsd-elf
13336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13337 soname_spec='${libname}${release}${shared_ext}$major'
13338 shlibpath_var=LD_LIBRARY_PATH
13339 hardcode_into_libs=yes
13340 if test "$with_gnu_ld" = yes; then
13341 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13342 shlibpath_overrides_runpath=no
13344 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13345 shlibpath_overrides_runpath=yes
13348 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13352 sys_lib_dlsearch_path_spec='/usr/lib'
13357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13358 soname_spec='${libname}${release}${shared_ext}$major'
13359 shlibpath_var=LD_LIBRARY_PATH
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13367 $as_echo "$dynamic_linker" >&6; }
13368 test "$dynamic_linker" = no && can_build_shared=no
13370 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13371 if test "$GCC" = yes; then
13372 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13376 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13377 hardcode_action_CXX=
13378 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13379 test -n "$runpath_var_CXX" || \
13380 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13382 # We can hardcode non-existant directories.
13383 if test "$hardcode_direct_CXX" != no &&
13384 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13385 # have to relink, otherwise we might link with an installed library
13386 # when we should be linking with a yet-to-be-installed one
13387 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13388 test "$hardcode_minus_L_CXX" != no; then
13389 # Linking always hardcodes the temporary library directory.
13390 hardcode_action_CXX=relink
13392 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13393 hardcode_action_CXX=immediate
13396 # We cannot hardcode anything, or else we can only hardcode existing
13398 hardcode_action_CXX=unsupported
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
13401 $as_echo "$hardcode_action_CXX" >&6; }
13403 if test "$hardcode_action_CXX" = relink; then
13404 # Fast installation is not supported
13405 enable_fast_install=no
13406 elif test "$shlibpath_overrides_runpath" = yes ||
13407 test "$enable_shared" = no; then
13408 # Fast installation is not necessary
13409 enable_fast_install=needless
13413 # The else clause should only fire when bootstrapping the
13414 # libtool distribution, otherwise you forgot to ship ltmain.sh
13415 # with your package, and you will get complaints that there are
13416 # no rules to generate ltmain.sh.
13417 if test -f "$ltmain"; then
13418 # See if we are running on zsh, and set the options which allow our commands through
13419 # without removal of \ escapes.
13420 if test -n "${ZSH_VERSION+set}" ; then
13421 setopt NO_GLOB_SUBST
13423 # Now quote all the things that may contain metacharacters while being
13424 # careful not to overquote the AC_SUBSTed values. We take copies of the
13425 # variables and quote the copies for generation of the libtool script.
13426 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13428 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13429 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13430 deplibs_check_method reload_flag reload_cmds need_locks \
13431 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13432 lt_cv_sys_global_symbol_to_c_name_address \
13433 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13434 old_postinstall_cmds old_postuninstall_cmds \
13438 lt_prog_compiler_wl_CXX \
13439 lt_prog_compiler_pic_CXX \
13440 lt_prog_compiler_static_CXX \
13441 lt_prog_compiler_no_builtin_flag_CXX \
13442 export_dynamic_flag_spec_CXX \
13443 thread_safe_flag_spec_CXX \
13444 whole_archive_flag_spec_CXX \
13445 enable_shared_with_static_runtimes_CXX \
13446 old_archive_cmds_CXX \
13447 old_archive_from_new_cmds_CXX \
13448 predep_objects_CXX \
13449 postdep_objects_CXX \
13452 compiler_lib_search_path_CXX \
13454 archive_expsym_cmds_CXX \
13455 postinstall_cmds_CXX \
13456 postuninstall_cmds_CXX \
13457 old_archive_from_expsyms_cmds_CXX \
13458 allow_undefined_flag_CXX \
13459 no_undefined_flag_CXX \
13460 export_symbols_cmds_CXX \
13461 hardcode_libdir_flag_spec_CXX \
13462 hardcode_libdir_flag_spec_ld_CXX \
13463 hardcode_libdir_separator_CXX \
13464 hardcode_automatic_CXX \
13466 module_expsym_cmds_CXX \
13467 lt_cv_prog_compiler_c_o_CXX \
13468 exclude_expsyms_CXX \
13469 include_expsyms_CXX; do
13472 old_archive_cmds_CXX | \
13473 old_archive_from_new_cmds_CXX | \
13474 archive_cmds_CXX | \
13475 archive_expsym_cmds_CXX | \
13476 module_cmds_CXX | \
13477 module_expsym_cmds_CXX | \
13478 old_archive_from_expsyms_cmds_CXX | \
13479 export_symbols_cmds_CXX | \
13480 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13481 postinstall_cmds | postuninstall_cmds | \
13482 old_postinstall_cmds | old_postuninstall_cmds | \
13483 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13484 # Double-quote double-evaled strings.
13485 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13488 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13494 *'\$0 --fallback-echo"')
13495 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13501 cat <<__EOF__ >> "$cfgfile"
13502 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13504 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13506 # Shell to use when invoking shell scripts.
13509 # Whether or not to build shared libraries.
13510 build_libtool_libs=$enable_shared
13512 # Whether or not to build static libraries.
13513 build_old_libs=$enable_static
13515 # Whether or not to add -lc for building shared libraries.
13516 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13518 # Whether or not to disallow shared libs when runtime libs are static
13519 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13521 # Whether or not to optimize for fast installation.
13522 fast_install=$enable_fast_install
13525 host_alias=$host_alias
13529 # The build system.
13530 build_alias=$build_alias
13534 # An echo program that does not interpret backslashes.
13539 AR_FLAGS=$lt_AR_FLAGS
13544 # LTCC compiler flags.
13545 LTCFLAGS=$lt_LTCFLAGS
13547 # A language-specific compiler.
13548 CC=$lt_compiler_CXX
13550 # Is the compiler the GNU C compiler?
13556 # The linker used to build libraries.
13559 # Whether we need hard or soft links.
13562 # A BSD-compatible nm program.
13565 # A symbol stripping program
13568 # Used to examine libraries when file_magic_cmd begins "file"
13569 MAGIC_CMD=$MAGIC_CMD
13571 # Used on cygwin: DLL creation program.
13574 # Used on cygwin: object dumper.
13577 # Used on cygwin: assembler.
13580 # The name of the directory that contains temporary libtool files.
13583 # How to create reloadable object files.
13584 reload_flag=$lt_reload_flag
13585 reload_cmds=$lt_reload_cmds
13587 # How to pass a linker flag through the compiler.
13588 wl=$lt_lt_prog_compiler_wl_CXX
13590 # Object file suffix (normally "o").
13591 objext="$ac_objext"
13593 # Old archive suffix (normally "a").
13596 # Shared library suffix (normally ".so").
13597 shrext_cmds='$shrext_cmds'
13599 # Executable file suffix (normally "").
13602 # Additional compiler flags for building library objects.
13603 pic_flag=$lt_lt_prog_compiler_pic_CXX
13606 # What is the maximum length of a command?
13607 max_cmd_len=$lt_cv_sys_max_cmd_len
13609 # Does compiler simultaneously support -c and -o options?
13610 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13612 # Must we lock files when doing compilation?
13613 need_locks=$lt_need_locks
13615 # Do we need the lib prefix for modules?
13616 need_lib_prefix=$need_lib_prefix
13618 # Do we need a version for libraries?
13619 need_version=$need_version
13621 # Whether dlopen is supported.
13622 dlopen_support=$enable_dlopen
13624 # Whether dlopen of programs is supported.
13625 dlopen_self=$enable_dlopen_self
13627 # Whether dlopen of statically linked programs is supported.
13628 dlopen_self_static=$enable_dlopen_self_static
13630 # Compiler flag to prevent dynamic linking.
13631 link_static_flag=$lt_lt_prog_compiler_static_CXX
13633 # Compiler flag to turn off builtin functions.
13634 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13636 # Compiler flag to allow reflexive dlopens.
13637 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13639 # Compiler flag to generate shared objects directly from archives.
13640 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13642 # Compiler flag to generate thread-safe objects.
13643 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13645 # Library versioning type.
13646 version_type=$version_type
13648 # Format of library name prefix.
13649 libname_spec=$lt_libname_spec
13651 # List of archive names. First name is the real one, the rest are links.
13652 # The last name is the one that the linker finds with -lNAME.
13653 library_names_spec=$lt_library_names_spec
13655 # The coded name of the library, if different from the real name.
13656 soname_spec=$lt_soname_spec
13658 # Commands used to build and install an old-style archive.
13660 old_archive_cmds=$lt_old_archive_cmds_CXX
13661 old_postinstall_cmds=$lt_old_postinstall_cmds
13662 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13664 # Create an old-style archive from a shared archive.
13665 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13667 # Create a temporary old-style archive to link instead of a shared archive.
13668 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13670 # Commands used to build and install a shared archive.
13671 archive_cmds=$lt_archive_cmds_CXX
13672 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13673 postinstall_cmds=$lt_postinstall_cmds
13674 postuninstall_cmds=$lt_postuninstall_cmds
13676 # Commands used to build a loadable module (assumed same as above if empty)
13677 module_cmds=$lt_module_cmds_CXX
13678 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13680 # Commands to strip libraries.
13681 old_striplib=$lt_old_striplib
13682 striplib=$lt_striplib
13684 # Dependencies to place before the objects being linked to create a
13686 predep_objects=$lt_predep_objects_CXX
13688 # Dependencies to place after the objects being linked to create a
13690 postdep_objects=$lt_postdep_objects_CXX
13692 # Dependencies to place before the objects being linked to create a
13694 predeps=$lt_predeps_CXX
13696 # Dependencies to place after the objects being linked to create a
13698 postdeps=$lt_postdeps_CXX
13700 # The library search path used internally by the compiler when linking
13701 # a shared library.
13702 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13704 # Method to check whether dependent libraries are shared objects.
13705 deplibs_check_method=$lt_deplibs_check_method
13707 # Command to use when deplibs_check_method == file_magic.
13708 file_magic_cmd=$lt_file_magic_cmd
13710 # Flag that allows shared libraries with undefined symbols to be built.
13711 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13713 # Flag that forces no undefined symbols.
13714 no_undefined_flag=$lt_no_undefined_flag_CXX
13716 # Commands used to finish a libtool library installation in a directory.
13717 finish_cmds=$lt_finish_cmds
13719 # Same as above, but a single script fragment to be evaled but not shown.
13720 finish_eval=$lt_finish_eval
13722 # Take the output of nm and produce a listing of raw symbols and C names.
13723 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13725 # Transform the output of nm in a proper C declaration
13726 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13728 # Transform the output of nm in a C name address pair
13729 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13731 # This is the shared library runtime path variable.
13732 runpath_var=$runpath_var
13734 # This is the shared library path variable.
13735 shlibpath_var=$shlibpath_var
13737 # Is shlibpath searched before the hard-coded library search path?
13738 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13740 # How to hardcode a shared library path into an executable.
13741 hardcode_action=$hardcode_action_CXX
13743 # Whether we should hardcode library paths into libraries.
13744 hardcode_into_libs=$hardcode_into_libs
13746 # Flag to hardcode \$libdir into a binary during linking.
13747 # This must work even if \$libdir does not exist.
13748 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13750 # If ld is used when linking, flag to hardcode \$libdir into
13751 # a binary during linking. This must work even if \$libdir does
13753 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13755 # Whether we need a single -rpath flag with a separated argument.
13756 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13758 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13759 # resulting binary.
13760 hardcode_direct=$hardcode_direct_CXX
13762 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13763 # resulting binary.
13764 hardcode_minus_L=$hardcode_minus_L_CXX
13766 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13767 # the resulting binary.
13768 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13770 # Set to yes if building a shared library automatically hardcodes DIR into the library
13771 # and all subsequent libraries and executables linked against it.
13772 hardcode_automatic=$hardcode_automatic_CXX
13774 # Variables whose values should be saved in libtool wrapper scripts and
13775 # restored at relink time.
13776 variables_saved_for_relink="$variables_saved_for_relink"
13778 # Whether libtool must link a program against all its dependency libraries.
13779 link_all_deplibs=$link_all_deplibs_CXX
13781 # Compile-time system search path for libraries
13782 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13784 # Run-time system search path for libraries
13785 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13787 # Fix the shell variable \$srcfile for the compiler.
13788 fix_srcfile_path="$fix_srcfile_path_CXX"
13790 # Set to yes if exported symbols are required.
13791 always_export_symbols=$always_export_symbols_CXX
13793 # The commands to list exported symbols.
13794 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13796 # The commands to extract the exported symbol list from a shared archive.
13797 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13799 # Symbols that should not be listed in the preloaded symbols.
13800 exclude_expsyms=$lt_exclude_expsyms_CXX
13802 # Symbols that must always be exported.
13803 include_expsyms=$lt_include_expsyms_CXX
13805 # ### END LIBTOOL TAG CONFIG: $tagname
13811 # If there is no Makefile yet, we rely on a make rule to execute
13812 # `config.status --recheck' to rerun these tests and create the
13813 # libtool script then.
13814 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13815 if test -f "$ltmain_in"; then
13816 test -f Makefile && make "$ltmain"
13822 ac_cpp='$CPP $CPPFLAGS'
13823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13831 with_gnu_ldcxx=$with_gnu_ld
13832 with_gnu_ld=$lt_save_with_gnu_ld
13833 lt_cv_path_LDCXX=$lt_cv_path_LD
13834 lt_cv_path_LD=$lt_save_path_LD
13835 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13836 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13844 if test -n "$F77" && test "X$F77" != "Xno"; then
13847 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13848 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13849 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13852 archive_cmds_need_lc_F77=no
13853 allow_undefined_flag_F77=
13854 always_export_symbols_F77=no
13855 archive_expsym_cmds_F77=
13856 export_dynamic_flag_spec_F77=
13857 hardcode_direct_F77=no
13858 hardcode_libdir_flag_spec_F77=
13859 hardcode_libdir_flag_spec_ld_F77=
13860 hardcode_libdir_separator_F77=
13861 hardcode_minus_L_F77=no
13862 hardcode_automatic_F77=no
13864 module_expsym_cmds_F77=
13865 link_all_deplibs_F77=unknown
13866 old_archive_cmds_F77=$old_archive_cmds
13867 no_undefined_flag_F77=
13868 whole_archive_flag_spec_F77=
13869 enable_shared_with_static_runtimes_F77=no
13871 # Source file extension for f77 test sources.
13874 # Object file extension for compiled f77 test sources.
13878 # Code to be used in simple compile tests
13879 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13881 # Code to be used in simple link tests
13882 lt_simple_link_test_code=" program t\n end\n"
13884 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13886 # If no C compiler was specified, use CC.
13889 # If no C compiler flags were specified, use CFLAGS.
13890 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13892 # Allow CC to be a program name with arguments.
13896 # save warnings/boilerplate of simple test code
13897 ac_outfile=conftest.$ac_objext
13898 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13899 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13900 _lt_compiler_boilerplate=`cat conftest.err`
13903 ac_outfile=conftest.$ac_objext
13904 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13905 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13906 _lt_linker_boilerplate=`cat conftest.err`
13910 # Allow CC to be a program name with arguments.
13915 for cc_temp in $compiler""; do
13917 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13918 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13923 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13927 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13929 $as_echo "$can_build_shared" >&6; }
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13932 $as_echo_n "checking whether to build shared libraries... " >&6; }
13933 test "$can_build_shared" = "no" && enable_shared=no
13935 # On AIX, shared libraries and static libraries use the same namespace, and
13936 # are all built from PIC.
13939 test "$enable_shared" = yes && enable_static=no
13940 if test -n "$RANLIB"; then
13941 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13942 postinstall_cmds='$RANLIB $lib'
13946 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13947 test "$enable_shared" = yes && enable_static=no
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13952 $as_echo "$enable_shared" >&6; }
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13955 $as_echo_n "checking whether to build static libraries... " >&6; }
13956 # Make sure either enable_shared or enable_static is yes.
13957 test "$enable_shared" = yes || enable_static=yes
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13959 $as_echo "$enable_static" >&6; }
13964 lt_prog_compiler_wl_F77=
13965 lt_prog_compiler_pic_F77=
13966 lt_prog_compiler_static_F77=
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13969 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13971 if test "$GCC" = yes; then
13972 lt_prog_compiler_wl_F77='-Wl,'
13973 lt_prog_compiler_static_F77='-static'
13977 # All AIX code is PIC.
13978 if test "$host_cpu" = ia64; then
13979 # AIX 5 now supports IA64 processor
13980 lt_prog_compiler_static_F77='-Bstatic'
13985 # FIXME: we need at least 68020 code to build shared libraries, but
13986 # adding the `-m68020' flag to GCC prevents building anything better,
13988 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13991 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13992 # PIC is the default for these OSes.
13995 mingw* | pw32* | os2*)
13996 # This hack is so that the source file can tell whether it is being
13997 # built for inclusion in a dll (and should export symbols for example).
13998 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14001 darwin* | rhapsody*)
14002 # PIC is the default on this platform
14003 # Common symbols not allowed in MH_DYLIB files
14004 lt_prog_compiler_pic_F77='-fno-common'
14008 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14009 # Instead, we relocate shared libraries at runtime.
14013 # Just because we use GCC doesn't mean we suddenly get shared libraries
14014 # on systems that don't support them.
14015 lt_prog_compiler_can_build_shared_F77=no
14020 if test -d /usr/nec; then
14021 lt_prog_compiler_pic_F77=-Kconform_pic
14026 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14027 # not for PA HP-UX.
14033 lt_prog_compiler_pic_F77='-fPIC'
14039 lt_prog_compiler_pic_F77='-fPIC'
14043 # PORTME Check for flag to pass linker flags through the system compiler.
14046 lt_prog_compiler_wl_F77='-Wl,'
14047 if test "$host_cpu" = ia64; then
14048 # AIX 5 now supports IA64 processor
14049 lt_prog_compiler_static_F77='-Bstatic'
14051 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14055 # PIC is the default on this platform
14056 # Common symbols not allowed in MH_DYLIB files
14057 case $cc_basename in
14059 lt_prog_compiler_pic_F77='-qnocommon'
14060 lt_prog_compiler_wl_F77='-Wl,'
14065 mingw* | pw32* | os2*)
14066 # This hack is so that the source file can tell whether it is being
14067 # built for inclusion in a dll (and should export symbols for example).
14068 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14071 hpux9* | hpux10* | hpux11*)
14072 lt_prog_compiler_wl_F77='-Wl,'
14073 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14074 # not for PA HP-UX.
14080 lt_prog_compiler_pic_F77='+Z'
14083 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14084 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14087 irix5* | irix6* | nonstopux*)
14088 lt_prog_compiler_wl_F77='-Wl,'
14089 # PIC (with -KPIC) is the default.
14090 lt_prog_compiler_static_F77='-non_shared'
14094 lt_prog_compiler_pic_F77='-KPIC'
14095 lt_prog_compiler_static_F77='-Bstatic'
14099 case $cc_basename in
14101 lt_prog_compiler_wl_F77='-Wl,'
14102 lt_prog_compiler_pic_F77='-KPIC'
14103 lt_prog_compiler_static_F77='-static'
14105 pgcc* | pgf77* | pgf90* | pgf95*)
14106 # Portland Group compilers (*not* the Pentium gcc compiler,
14107 # which looks to be a dead project)
14108 lt_prog_compiler_wl_F77='-Wl,'
14109 lt_prog_compiler_pic_F77='-fpic'
14110 lt_prog_compiler_static_F77='-Bstatic'
14113 lt_prog_compiler_wl_F77='-Wl,'
14114 # All Alpha code is PIC.
14115 lt_prog_compiler_static_F77='-non_shared'
14120 osf3* | osf4* | osf5*)
14121 lt_prog_compiler_wl_F77='-Wl,'
14122 # All OSF/1 code is PIC.
14123 lt_prog_compiler_static_F77='-non_shared'
14127 lt_prog_compiler_pic_F77='-KPIC'
14128 lt_prog_compiler_static_F77='-Bstatic'
14129 case $cc_basename in
14130 f77* | f90* | f95*)
14131 lt_prog_compiler_wl_F77='-Qoption ld ';;
14133 lt_prog_compiler_wl_F77='-Wl,';;
14138 lt_prog_compiler_wl_F77='-Qoption ld '
14139 lt_prog_compiler_pic_F77='-PIC'
14140 lt_prog_compiler_static_F77='-Bstatic'
14143 sysv4 | sysv4.2uw2* | sysv4.3*)
14144 lt_prog_compiler_wl_F77='-Wl,'
14145 lt_prog_compiler_pic_F77='-KPIC'
14146 lt_prog_compiler_static_F77='-Bstatic'
14150 if test -d /usr/nec ;then
14151 lt_prog_compiler_pic_F77='-Kconform_pic'
14152 lt_prog_compiler_static_F77='-Bstatic'
14156 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14157 lt_prog_compiler_wl_F77='-Wl,'
14158 lt_prog_compiler_pic_F77='-KPIC'
14159 lt_prog_compiler_static_F77='-Bstatic'
14163 lt_prog_compiler_wl_F77='-Wl,'
14164 lt_prog_compiler_can_build_shared_F77=no
14168 lt_prog_compiler_pic_F77='-pic'
14169 lt_prog_compiler_static_F77='-Bstatic'
14173 lt_prog_compiler_can_build_shared_F77=no
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
14179 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
14182 # Check to make sure the PIC flag actually works.
14184 if test -n "$lt_prog_compiler_pic_F77"; then
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14187 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14188 if ${lt_prog_compiler_pic_works_F77+:} false; then :
14189 $as_echo_n "(cached) " >&6
14191 lt_prog_compiler_pic_works_F77=no
14192 ac_outfile=conftest.$ac_objext
14193 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14194 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14195 # Insert the option either (1) after the last *FLAGS variable, or
14196 # (2) before a word containing "conftest.", or (3) at the end.
14197 # Note that $ac_compile itself does not contain backslashes and begins
14198 # with a dollar sign (not a hyphen), so the echo should work correctly.
14199 # The option is referenced via a variable to avoid confusing sed.
14200 lt_compile=`echo "$ac_compile" | $SED \
14201 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14202 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14203 -e 's:$: $lt_compiler_flag:'`
14204 (eval echo "\"\$as_me:14204: $lt_compile\"" >&5)
14205 (eval "$lt_compile" 2>conftest.err)
14207 cat conftest.err >&5
14208 echo "$as_me:14208: \$? = $ac_status" >&5
14209 if (exit $ac_status) && test -s "$ac_outfile"; then
14210 # The compiler can only warn and ignore the option if not recognized
14211 # So say no if there are warnings other than the usual output.
14212 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14213 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14214 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14215 lt_prog_compiler_pic_works_F77=yes
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_F77" >&5
14222 $as_echo "$lt_prog_compiler_pic_works_F77" >&6; }
14224 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14225 case $lt_prog_compiler_pic_F77 in
14227 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14230 lt_prog_compiler_pic_F77=
14231 lt_prog_compiler_can_build_shared_F77=no
14236 # For platforms which do not support PIC, -DPIC is meaningless:
14238 lt_prog_compiler_pic_F77=
14241 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14246 # Check to make sure the static flag actually works.
14248 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14250 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14251 if ${lt_prog_compiler_static_works_F77+:} false; then :
14252 $as_echo_n "(cached) " >&6
14254 lt_prog_compiler_static_works_F77=no
14255 save_LDFLAGS="$LDFLAGS"
14256 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14257 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14258 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14259 # The linker can only warn and ignore the option if not recognized
14260 # So say no if there are warnings
14261 if test -s conftest.err; then
14262 # Append any errors to the config.log.
14263 cat conftest.err 1>&5
14264 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14265 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14266 if diff conftest.exp conftest.er2 >/dev/null; then
14267 lt_prog_compiler_static_works_F77=yes
14270 lt_prog_compiler_static_works_F77=yes
14274 LDFLAGS="$save_LDFLAGS"
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works_F77" >&5
14278 $as_echo "$lt_prog_compiler_static_works_F77" >&6; }
14280 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14283 lt_prog_compiler_static_F77=
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14288 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14289 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
14290 $as_echo_n "(cached) " >&6
14292 lt_cv_prog_compiler_c_o_F77=no
14293 $rm -r conftest 2>/dev/null
14297 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14299 lt_compiler_flag="-o out/conftest2.$ac_objext"
14300 # Insert the option either (1) after the last *FLAGS variable, or
14301 # (2) before a word containing "conftest.", or (3) at the end.
14302 # Note that $ac_compile itself does not contain backslashes and begins
14303 # with a dollar sign (not a hyphen), so the echo should work correctly.
14304 lt_compile=`echo "$ac_compile" | $SED \
14305 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14306 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14307 -e 's:$: $lt_compiler_flag:'`
14308 (eval echo "\"\$as_me:14308: $lt_compile\"" >&5)
14309 (eval "$lt_compile" 2>out/conftest.err)
14311 cat out/conftest.err >&5
14312 echo "$as_me:14312: \$? = $ac_status" >&5
14313 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14315 # The compiler can only warn and ignore the option if not recognized
14316 # So say no if there are warnings
14317 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14318 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14319 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14320 lt_cv_prog_compiler_c_o_F77=yes
14325 # SGI C++ compiler will create directory out/ii_files/ for
14326 # template instantiation
14327 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14328 $rm out/* && rmdir out
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
14335 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14338 hard_links="nottested"
14339 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14340 # do not overwrite the value of need_locks provided by the user
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14342 $as_echo_n "checking if we can lock with hard links... " >&6; }
14345 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14347 ln conftest.a conftest.b 2>&5 || hard_links=no
14348 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14350 $as_echo "$hard_links" >&6; }
14351 if test "$hard_links" = no; then
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14353 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14361 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14364 allow_undefined_flag_F77=
14365 enable_shared_with_static_runtimes_F77=no
14367 archive_expsym_cmds_F77=
14368 old_archive_From_new_cmds_F77=
14369 old_archive_from_expsyms_cmds_F77=
14370 export_dynamic_flag_spec_F77=
14371 whole_archive_flag_spec_F77=
14372 thread_safe_flag_spec_F77=
14373 hardcode_libdir_flag_spec_F77=
14374 hardcode_libdir_flag_spec_ld_F77=
14375 hardcode_libdir_separator_F77=
14376 hardcode_direct_F77=no
14377 hardcode_minus_L_F77=no
14378 hardcode_shlibpath_var_F77=unsupported
14379 link_all_deplibs_F77=unknown
14380 hardcode_automatic_F77=no
14382 module_expsym_cmds_F77=
14383 always_export_symbols_F77=no
14384 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14385 # include_expsyms should be a list of space-separated symbols to be *always*
14386 # included in the symbol list
14387 include_expsyms_F77=
14388 # exclude_expsyms can be an extended regexp of symbols to exclude
14389 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14390 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14391 # as well as any symbol that contains `d'.
14392 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14393 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14394 # platforms (ab)use it in PIC code, but their linkers get confused if
14395 # the symbol is explicitly referenced. Since portable code cannot
14396 # rely on this symbol name, it's probably fine to never include it in
14397 # preloaded symbol tables.
14398 extract_expsyms_cmds=
14399 # Just being paranoid about ensuring that cc_basename is set.
14400 for cc_temp in $compiler""; do
14402 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14403 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14408 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14411 cygwin* | mingw* | pw32*)
14412 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14413 # When not using gcc, we currently assume that we are using
14414 # Microsoft Visual C++.
14415 if test "$GCC" != yes; then
14420 # we just hope/assume this is gcc and not c89 (= MSVC++)
14429 if test "$with_gnu_ld" = yes; then
14430 # If archive_cmds runs LD, not CC, wlarc should be empty
14433 # Set some defaults for GNU ld with shared library support. These
14434 # are reset later if shared libraries are not supported. Putting them
14435 # here allows them to be overridden if necessary.
14436 runpath_var=LD_RUN_PATH
14437 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14438 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14439 # ancient GNU ld didn't support --whole-archive et. al.
14440 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14441 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14443 whole_archive_flag_spec_F77=
14445 supports_anon_versioning=no
14446 case `$LD -v 2>/dev/null` in
14447 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14448 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14449 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14450 *\ 2.11.*) ;; # other 2.11 versions
14451 *) supports_anon_versioning=yes ;;
14454 # See if GNU ld supports shared libraries.
14456 aix3* | aix4* | aix5*)
14457 # On AIX/PPC, the GNU linker is very broken
14458 if test "$host_cpu" != ia64; then
14462 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14463 *** to be unable to reliably create shared libraries on AIX.
14464 *** Therefore, libtool is disabling shared libraries support. If you
14465 *** really care for shared libraries, you may want to modify your PATH
14466 *** so that a non-GNU linker is found, and then restart.
14473 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)'
14474 hardcode_libdir_flag_spec_F77='-L$libdir'
14475 hardcode_minus_L_F77=yes
14477 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14478 # that the semantics of dynamic libraries on AmigaOS, at least up
14479 # to version 4, is to share data among multiple programs linked
14480 # with the same dynamic library. Since this doesn't match the
14481 # behavior of shared libraries on other platforms, we can't use
14487 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14488 allow_undefined_flag_F77=unsupported
14489 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14490 # support --undefined. This deserves some investigation. FIXME
14491 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14497 cygwin* | mingw* | pw32*)
14498 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14499 # as there is no search path for DLLs.
14500 hardcode_libdir_flag_spec_F77='-L$libdir'
14501 allow_undefined_flag_F77=unsupported
14502 always_export_symbols_F77=no
14503 enable_shared_with_static_runtimes_F77=yes
14504 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14506 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14507 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14508 # If the export-symbols file already is a .def file (1st line
14509 # is EXPORTS), use it as is; otherwise, prepend...
14510 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14511 cp $export_symbols $output_objdir/$soname.def;
14513 echo EXPORTS > $output_objdir/$soname.def;
14514 cat $export_symbols >> $output_objdir/$soname.def;
14516 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14523 hardcode_direct_F77=no
14524 hardcode_shlibpath_var_F77=no
14525 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14526 export_dynamic_flag_spec_F77='${wl}-E'
14527 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14528 # Instead, shared libraries are loaded at an image base (0x10000000 by
14529 # default) and relocated if they conflict, which is a slow very memory
14530 # consuming and fragmenting process. To avoid this, we pick a random,
14531 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14532 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14533 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'
14534 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'
14538 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14540 case $cc_basename,$host_cpu in
14541 pgcc*) # Portland Group C compiler
14542 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'
14543 tmp_addflag=' $pic_flag'
14545 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14546 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'
14547 tmp_addflag=' $pic_flag -Mnomain' ;;
14548 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14549 tmp_addflag=' -i_dynamic' ;;
14550 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14551 tmp_addflag=' -i_dynamic -nofor_main' ;;
14552 ifc* | ifort*) # Intel Fortran compiler
14553 tmp_addflag=' -nofor_main' ;;
14555 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14557 if test $supports_anon_versioning = yes; then
14558 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14559 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14560 $echo "local: *; };" >> $output_objdir/$libname.ver~
14561 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14569 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14570 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14573 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14574 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14579 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14583 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14584 *** create shared libraries on Solaris systems. Therefore, libtool
14585 *** is disabling shared libraries support. We urge you to upgrade GNU
14586 *** binutils to release 2.9.1 or newer. Another option is to modify
14587 *** your PATH or compiler configuration so that the native linker is
14588 *** used, and then restart.
14591 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14592 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14593 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14599 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14600 case `$LD -v 2>&1` in
14601 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14605 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14606 *** reliably create shared libraries on SCO systems. Therefore, libtool
14607 *** is disabling shared libraries support. We urge you to upgrade GNU
14608 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14609 *** your PATH or compiler configuration so that the native linker is
14610 *** used, and then restart.
14615 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14616 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14617 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14618 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14627 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14629 hardcode_direct_F77=yes
14630 hardcode_shlibpath_var_F77=no
14634 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14635 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14636 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14643 if test "$ld_shlibs_F77" = no; then
14645 hardcode_libdir_flag_spec_F77=
14646 export_dynamic_flag_spec_F77=
14647 whole_archive_flag_spec_F77=
14650 # PORTME fill in a description of your system's linker (not GNU ld)
14653 allow_undefined_flag_F77=unsupported
14654 always_export_symbols_F77=yes
14655 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'
14656 # Note: this linker hardcodes the directories in LIBPATH if there
14657 # are no directories specified by -L.
14658 hardcode_minus_L_F77=yes
14659 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14660 # Neither direct hardcoding nor static linking is supported with a
14662 hardcode_direct_F77=unsupported
14667 if test "$host_cpu" = ia64; then
14668 # On IA64, the linker does run time linking by default, so we don't
14669 # have to do anything special.
14670 aix_use_runtimelinking=no
14671 exp_sym_flag='-Bexport'
14674 # If we're using GNU nm, then we don't want the "-C" option.
14675 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14676 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14677 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'
14679 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'
14681 aix_use_runtimelinking=no
14683 # Test if we are trying to use run time linking or normal
14684 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14685 # need to do runtime linking.
14686 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14687 for ld_flag in $LDFLAGS; do
14688 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14689 aix_use_runtimelinking=yes
14696 exp_sym_flag='-bexport'
14697 no_entry_flag='-bnoentry'
14700 # When large executables or shared objects are built, AIX ld can
14701 # have problems creating the table of contents. If linking a library
14702 # or program results in "error TOC overflow" add -mminimal-toc to
14703 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14704 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14706 archive_cmds_F77=''
14707 hardcode_direct_F77=yes
14708 hardcode_libdir_separator_F77=':'
14709 link_all_deplibs_F77=yes
14711 if test "$GCC" = yes; then
14712 case $host_os in aix4.[012]|aix4.[012].*)
14713 # We only want to do this on AIX 4.2 and lower, the check
14714 # below for broken collect2 doesn't work under 4.3+
14715 collect2name=`${CC} -print-prog-name=collect2`
14716 if test -f "$collect2name" && \
14717 strings "$collect2name" | grep resolve_lib_name >/dev/null
14719 # We have reworked collect2
14720 hardcode_direct_F77=yes
14722 # We have old collect2
14723 hardcode_direct_F77=unsupported
14724 # It fails to find uninstalled libraries when the uninstalled
14725 # path is not listed in the libpath. Setting hardcode_minus_L
14726 # to unsupported forces relinking
14727 hardcode_minus_L_F77=yes
14728 hardcode_libdir_flag_spec_F77='-L$libdir'
14729 hardcode_libdir_separator_F77=
14733 shared_flag='-shared'
14734 if test "$aix_use_runtimelinking" = yes; then
14735 shared_flag="$shared_flag "'${wl}-G'
14739 if test "$host_cpu" = ia64; then
14740 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14741 # chokes on -Wl,-G. The following line is correct:
14744 if test "$aix_use_runtimelinking" = yes; then
14745 shared_flag='${wl}-G'
14747 shared_flag='${wl}-bM:SRE'
14752 # It seems that -bexpall does not export symbols beginning with
14753 # underscore (_), so it is better to generate a list of symbols to export.
14754 always_export_symbols_F77=yes
14755 if test "$aix_use_runtimelinking" = yes; then
14756 # Warning - without using the other runtime loading flags (-brtl),
14757 # -berok will link without error, but may produce a broken library.
14758 allow_undefined_flag_F77='-berok'
14759 # Determine the default libpath from the value encoded in an empty executable.
14760 cat > conftest.$ac_ext <<_ACEOF
14765 if ac_fn_f77_try_link "$LINENO"; then :
14767 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14769 # Check for a 64-bit object if we didn't find anything.
14770 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14773 rm -f core conftest.err conftest.$ac_objext \
14774 conftest$ac_exeext conftest.$ac_ext
14775 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14777 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14778 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"
14780 if test "$host_cpu" = ia64; then
14781 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14782 allow_undefined_flag_F77="-z nodefs"
14783 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"
14785 # Determine the default libpath from the value encoded in an empty executable.
14786 cat > conftest.$ac_ext <<_ACEOF
14791 if ac_fn_f77_try_link "$LINENO"; then :
14793 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14795 # Check for a 64-bit object if we didn't find anything.
14796 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14799 rm -f core conftest.err conftest.$ac_objext \
14800 conftest$ac_exeext conftest.$ac_ext
14801 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14803 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14804 # Warning - without using the other run time loading flags,
14805 # -berok will link without error, but may produce a broken library.
14806 no_undefined_flag_F77=' ${wl}-bernotok'
14807 allow_undefined_flag_F77=' ${wl}-berok'
14808 # Exported symbols can be pulled into shared objects from archives
14809 whole_archive_flag_spec_F77='$convenience'
14810 archive_cmds_need_lc_F77=yes
14811 # This is similar to how AIX traditionally builds its shared libraries.
14812 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'
14818 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)'
14819 hardcode_libdir_flag_spec_F77='-L$libdir'
14820 hardcode_minus_L_F77=yes
14821 # see comment about different semantics on the GNU ld section
14826 export_dynamic_flag_spec_F77=-rdynamic
14829 cygwin* | mingw* | pw32*)
14830 # When not using gcc, we currently assume that we are using
14831 # Microsoft Visual C++.
14832 # hardcode_libdir_flag_spec is actually meaningless, as there is
14833 # no search path for DLLs.
14834 hardcode_libdir_flag_spec_F77=' '
14835 allow_undefined_flag_F77=unsupported
14836 # Tell ltmain to make .lib files, not .a files.
14838 # Tell ltmain to make .dll files, not .so files.
14840 # FIXME: Setting linknames here is a bad hack.
14841 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14842 # The linker will automatically build a .lib file if we build a DLL.
14843 old_archive_From_new_cmds_F77='true'
14844 # FIXME: Should let the user specify the lib program.
14845 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14846 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14847 enable_shared_with_static_runtimes_F77=yes
14850 darwin* | rhapsody*)
14852 rhapsody* | darwin1.[012])
14853 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14856 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14857 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14859 case ${MACOSX_DEPLOYMENT_TARGET} in
14861 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14864 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14870 archive_cmds_need_lc_F77=no
14871 hardcode_direct_F77=no
14872 hardcode_automatic_F77=yes
14873 hardcode_shlibpath_var_F77=unsupported
14874 whole_archive_flag_spec_F77=''
14875 link_all_deplibs_F77=yes
14876 if test "$GCC" = yes ; then
14877 output_verbose_link_cmd='echo'
14878 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14879 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14880 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14881 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}'
14882 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}'
14884 case $cc_basename in
14886 output_verbose_link_cmd='echo'
14887 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14888 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14889 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14890 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14891 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}'
14901 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14902 hardcode_libdir_flag_spec_F77='-L$libdir'
14903 hardcode_shlibpath_var_F77=no
14910 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14911 # support. Future versions do this automatically, but an explicit c++rt0.o
14912 # does not break anything, and helps significantly (at the cost of a little
14915 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14916 hardcode_libdir_flag_spec_F77='-R$libdir'
14917 hardcode_direct_F77=yes
14918 hardcode_shlibpath_var_F77=no
14921 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14923 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14924 hardcode_direct_F77=yes
14925 hardcode_minus_L_F77=yes
14926 hardcode_shlibpath_var_F77=no
14929 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14930 freebsd* | kfreebsd*-gnu | dragonfly*)
14931 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14932 hardcode_libdir_flag_spec_F77='-R$libdir'
14933 hardcode_direct_F77=yes
14934 hardcode_shlibpath_var_F77=no
14938 if test "$GCC" = yes; then
14939 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'
14941 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'
14943 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14944 hardcode_libdir_separator_F77=:
14945 hardcode_direct_F77=yes
14947 # hardcode_minus_L: Not really in the search PATH,
14948 # but as the default location of the library.
14949 hardcode_minus_L_F77=yes
14950 export_dynamic_flag_spec_F77='${wl}-E'
14954 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14955 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14957 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14959 if test "$with_gnu_ld" = no; then
14960 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14961 hardcode_libdir_separator_F77=:
14963 hardcode_direct_F77=yes
14964 export_dynamic_flag_spec_F77='${wl}-E'
14966 # hardcode_minus_L: Not really in the search PATH,
14967 # but as the default location of the library.
14968 hardcode_minus_L_F77=yes
14973 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14976 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14979 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14982 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14988 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14991 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14994 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14998 if test "$with_gnu_ld" = no; then
14999 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15000 hardcode_libdir_separator_F77=:
15004 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15005 hardcode_direct_F77=no
15006 hardcode_shlibpath_var_F77=no
15009 hardcode_direct_F77=yes
15010 export_dynamic_flag_spec_F77='${wl}-E'
15012 # hardcode_minus_L: Not really in the search PATH,
15013 # but as the default location of the library.
15014 hardcode_minus_L_F77=yes
15020 irix5* | irix6* | nonstopux*)
15021 if test "$GCC" = yes; then
15022 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'
15024 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'
15025 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15027 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15028 hardcode_libdir_separator_F77=:
15029 link_all_deplibs_F77=yes
15033 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15034 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15036 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15038 hardcode_libdir_flag_spec_F77='-R$libdir'
15039 hardcode_direct_F77=yes
15040 hardcode_shlibpath_var_F77=no
15044 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15045 hardcode_direct_F77=yes
15046 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15047 hardcode_libdir_separator_F77=:
15048 hardcode_shlibpath_var_F77=no
15052 hardcode_direct_F77=yes
15053 hardcode_shlibpath_var_F77=no
15054 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15055 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15056 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15057 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15058 export_dynamic_flag_spec_F77='${wl}-E'
15061 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15062 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15063 hardcode_libdir_flag_spec_F77='-R$libdir'
15066 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15067 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15074 hardcode_libdir_flag_spec_F77='-L$libdir'
15075 hardcode_minus_L_F77=yes
15076 allow_undefined_flag_F77=unsupported
15077 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'
15078 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15082 if test "$GCC" = yes; then
15083 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15084 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'
15086 allow_undefined_flag_F77=' -expect_unresolved \*'
15087 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'
15089 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15090 hardcode_libdir_separator_F77=:
15093 osf4* | osf5*) # as osf3* with the addition of -msym flag
15094 if test "$GCC" = yes; then
15095 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15096 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'
15097 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15099 allow_undefined_flag_F77=' -expect_unresolved \*'
15100 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'
15101 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~
15102 $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'
15104 # Both c and cxx compiler support -rpath directly
15105 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15107 hardcode_libdir_separator_F77=:
15111 no_undefined_flag_F77=' -z text'
15112 if test "$GCC" = yes; then
15114 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15115 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15116 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15119 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15120 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15121 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15123 hardcode_libdir_flag_spec_F77='-R$libdir'
15124 hardcode_shlibpath_var_F77=no
15126 solaris2.[0-5] | solaris2.[0-5].*) ;;
15128 # The compiler driver will combine linker options so we
15129 # cannot just pass the convience library names through
15130 # without $wl, iff we do not link with $LD.
15131 # Luckily, gcc supports the same syntax we need for Sun Studio.
15132 # Supported since Solaris 2.6 (maybe 2.5.1?)
15135 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15137 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15140 link_all_deplibs_F77=yes
15144 if test "x$host_vendor" = xsequent; then
15145 # Use $CC to link under sequent, because it throws in some extra .o
15146 # files that make .init and .fini sections work.
15147 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15149 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15151 hardcode_libdir_flag_spec_F77='-L$libdir'
15152 hardcode_direct_F77=yes
15153 hardcode_minus_L_F77=yes
15154 hardcode_shlibpath_var_F77=no
15158 case $host_vendor in
15160 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15161 hardcode_direct_F77=yes # is this really true???
15164 ## LD is ld it makes a PLAMLIB
15165 ## CC just makes a GrossModule.
15166 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15167 reload_cmds_F77='$CC -r -o $output$reload_objs'
15168 hardcode_direct_F77=no
15171 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15172 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15175 runpath_var='LD_RUN_PATH'
15176 hardcode_shlibpath_var_F77=no
15180 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15181 hardcode_shlibpath_var_F77=no
15182 export_dynamic_flag_spec_F77='-Bexport'
15186 if test -d /usr/nec; then
15187 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15188 hardcode_shlibpath_var_F77=no
15189 runpath_var=LD_RUN_PATH
15190 hardcode_runpath_var=yes
15195 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15196 no_undefined_flag_F77='${wl}-z,text'
15197 archive_cmds_need_lc_F77=no
15198 hardcode_shlibpath_var_F77=no
15199 runpath_var='LD_RUN_PATH'
15201 if test "$GCC" = yes; then
15202 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15203 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15205 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15206 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15210 sysv5* | sco3.2v5* | sco5v6*)
15211 # Note: We can NOT use -z defs as we might desire, because we do not
15212 # link with -lc, and that would cause any symbols used from libc to
15213 # always be unresolved, which means just about no library would
15214 # ever link correctly. If we're not using GNU ld we use -z text
15215 # though, which does catch some bad symbols but isn't as heavy-handed
15217 no_undefined_flag_F77='${wl}-z,text'
15218 allow_undefined_flag_F77='${wl}-z,nodefs'
15219 archive_cmds_need_lc_F77=no
15220 hardcode_shlibpath_var_F77=no
15221 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15222 hardcode_libdir_separator_F77=':'
15223 link_all_deplibs_F77=yes
15224 export_dynamic_flag_spec_F77='${wl}-Bexport'
15225 runpath_var='LD_RUN_PATH'
15227 if test "$GCC" = yes; then
15228 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15229 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15231 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15232 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15237 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15238 hardcode_libdir_flag_spec_F77='-L$libdir'
15239 hardcode_shlibpath_var_F77=no
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
15249 $as_echo "$ld_shlibs_F77" >&6; }
15250 test "$ld_shlibs_F77" = no && can_build_shared=no
15253 # Do we need to explicitly link libc?
15255 case "x$archive_cmds_need_lc_F77" in
15257 # Assume -lc should be added
15258 archive_cmds_need_lc_F77=yes
15260 if test "$enable_shared" = yes && test "$GCC" = yes; then
15261 case $archive_cmds_F77 in
15263 # FIXME: we may have to deal with multi-command sequences.
15266 # Test whether the compiler implicitly links with -lc since on some
15267 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15268 # to ld, don't add -lc before -lgcc.
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15270 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15272 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15274 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15275 (eval $ac_compile) 2>&5
15277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15278 test $ac_status = 0; } 2>conftest.err; then
15281 libobjs=conftest.$ac_objext
15283 wl=$lt_prog_compiler_wl_F77
15284 pic_flag=$lt_prog_compiler_pic_F77
15290 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15291 allow_undefined_flag_F77=
15292 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15293 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15296 test $ac_status = 0; }
15298 archive_cmds_need_lc_F77=no
15300 archive_cmds_need_lc_F77=yes
15302 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15304 cat conftest.err 1>&5
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
15308 $as_echo "$archive_cmds_need_lc_F77" >&6; }
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15316 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15317 library_names_spec=
15318 libname_spec='lib$name'
15322 postuninstall_cmds=
15326 shlibpath_overrides_runpath=unknown
15328 dynamic_linker="$host_os ld.so"
15329 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15330 if test "$GCC" = yes; then
15331 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15332 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15333 # if the path contains ";" then we assume it to be the separator
15334 # otherwise default to the standard path separator (i.e. ":") - it is
15335 # assumed that no part of a normal pathname contains ";" but that should
15336 # okay in the real world where ";" in dirpaths is itself problematic.
15337 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15339 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15342 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15344 need_lib_prefix=unknown
15345 hardcode_into_libs=no
15347 # when you set need_version to no, make sure it does not cause -set_version
15348 # flags to be left without arguments
15349 need_version=unknown
15354 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15355 shlibpath_var=LIBPATH
15357 # AIX 3 has no versioning support, so we append a major version to the name.
15358 soname_spec='${libname}${release}${shared_ext}$major'
15365 hardcode_into_libs=yes
15366 if test "$host_cpu" = ia64; then
15367 # AIX 5 supports IA64
15368 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15369 shlibpath_var=LD_LIBRARY_PATH
15371 # With GCC up to 2.95.x, collect2 would create an import file
15372 # for dependence libraries. The import file would start with
15373 # the line `#! .'. This would cause the generated library to
15374 # depend on `.', always an invalid library. This was fixed in
15375 # development snapshots of GCC prior to 3.0.
15377 aix4 | aix4.[01] | aix4.[01].*)
15378 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15380 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15383 can_build_shared=no
15387 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15388 # soname into executable. Probably we can add versioning support to
15389 # collect2, so additional links can be useful in future.
15390 if test "$aix_use_runtimelinking" = yes; then
15391 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15392 # instead of lib<name>.a to let people know that these are not
15393 # typical AIX shared libraries.
15394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15396 # We preserve .a as extension for shared libraries through AIX4.2
15397 # and later when we are not doing run time linking.
15398 library_names_spec='${libname}${release}.a $libname.a'
15399 soname_spec='${libname}${release}${shared_ext}$major'
15401 shlibpath_var=LIBPATH
15406 library_names_spec='$libname.ixlibrary $libname.a'
15407 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15408 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'
15412 library_names_spec='${libname}${shared_ext}'
15413 dynamic_linker="$host_os ld.so"
15414 shlibpath_var=LIBRARY_PATH
15420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15421 soname_spec='${libname}${release}${shared_ext}$major'
15422 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15423 shlibpath_var=LD_LIBRARY_PATH
15424 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15425 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15426 # the default ld.so.conf also contains /usr/contrib/lib and
15427 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15428 # libtool to hard-code these into programs
15431 cygwin* | mingw* | pw32*)
15432 version_type=windows
15437 case $GCC,$host_os in
15438 yes,cygwin* | yes,mingw* | yes,pw32*)
15439 library_names_spec='$libname.dll.a'
15440 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15441 postinstall_cmds='base_file=`basename \${file}`~
15442 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15443 dldir=$destdir/`dirname \$dlpath`~
15444 test -d \$dldir || mkdir -p \$dldir~
15445 $install_prog $dir/$dlname \$dldir/$dlname~
15446 chmod a+x \$dldir/$dlname'
15447 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15448 dlpath=$dir/\$dldll~
15450 shlibpath_overrides_runpath=yes
15454 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15455 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15456 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15459 # MinGW DLLs use traditional 'lib' prefix
15460 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15461 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15462 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15463 # It is most probably a Windows format PATH printed by
15464 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15465 # path with ; separators, and with drive letters. We can handle the
15466 # drive letters (cygwin fileutils understands them), so leave them,
15467 # especially as we might pass files found there to a mingw objdump,
15468 # which wouldn't understand a cygwinified path. Ahh.
15469 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15471 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15475 # pw32 DLLs use 'pw' prefix rather than 'lib'
15476 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15482 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15485 dynamic_linker='Win32 ld.exe'
15486 # FIXME: first we should search . and the directory the executable is in
15490 darwin* | rhapsody*)
15491 dynamic_linker="$host_os dyld"
15492 version_type=darwin
15495 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15496 soname_spec='${libname}${release}${major}$shared_ext'
15497 shlibpath_overrides_runpath=yes
15498 shlibpath_var=DYLD_LIBRARY_PATH
15499 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15500 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15501 if test "$GCC" = yes; then
15502 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15504 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15506 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15514 soname_spec='${libname}${release}${shared_ext}$major'
15515 shlibpath_var=LD_LIBRARY_PATH
15526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15527 soname_spec='${libname}${release}${shared_ext}$major'
15528 shlibpath_var=LD_LIBRARY_PATH
15529 shlibpath_overrides_runpath=no
15530 hardcode_into_libs=yes
15531 dynamic_linker='GNU ld.so'
15534 freebsd* | dragonfly*)
15535 # DragonFly does not have aout. When/if they implement a new
15536 # versioning mechanism, adjust this.
15537 if test -x /usr/bin/objformat; then
15538 objformat=`/usr/bin/objformat`
15541 freebsd[123]*) objformat=aout ;;
15542 *) objformat=elf ;;
15545 version_type=freebsd-$objformat
15546 case $version_type in
15548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15553 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15557 shlibpath_var=LD_LIBRARY_PATH
15560 shlibpath_overrides_runpath=yes
15562 freebsd3.[01]* | freebsdelf3.[01]*)
15563 shlibpath_overrides_runpath=yes
15564 hardcode_into_libs=yes
15566 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15567 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15568 shlibpath_overrides_runpath=no
15569 hardcode_into_libs=yes
15571 freebsd*) # from 4.6 on
15572 shlibpath_overrides_runpath=yes
15573 hardcode_into_libs=yes
15582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15583 soname_spec='${libname}${release}${shared_ext}$major'
15584 shlibpath_var=LD_LIBRARY_PATH
15585 hardcode_into_libs=yes
15588 hpux9* | hpux10* | hpux11*)
15589 # Give a soname corresponding to the major version so that dld.sl refuses to
15590 # link against other versions.
15597 hardcode_into_libs=yes
15598 dynamic_linker="$host_os dld.so"
15599 shlibpath_var=LD_LIBRARY_PATH
15600 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15602 soname_spec='${libname}${release}${shared_ext}$major'
15603 if test "X$HPUX_IA64_MODE" = X32; then
15604 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15606 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15608 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15612 hardcode_into_libs=yes
15613 dynamic_linker="$host_os dld.sl"
15614 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15615 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15617 soname_spec='${libname}${release}${shared_ext}$major'
15618 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15619 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15623 dynamic_linker="$host_os dld.sl"
15624 shlibpath_var=SHLIB_PATH
15625 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15627 soname_spec='${libname}${release}${shared_ext}$major'
15630 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15631 postinstall_cmds='chmod 555 $lib'
15638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15639 soname_spec='${libname}${release}${shared_ext}$major'
15640 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15641 shlibpath_var=LD_LIBRARY_PATH
15642 shlibpath_overrides_runpath=no
15643 hardcode_into_libs=yes
15646 irix5* | irix6* | nonstopux*)
15648 nonstopux*) version_type=nonstopux ;;
15650 if test "$lt_cv_prog_gnu_ld" = yes; then
15658 soname_spec='${libname}${release}${shared_ext}$major'
15659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15661 irix5* | nonstopux*)
15662 libsuff= shlibsuff=
15665 case $LD in # libtool.m4 will add one of these switches to LD
15666 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15667 libsuff= shlibsuff= libmagic=32-bit;;
15668 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15669 libsuff=32 shlibsuff=N32 libmagic=N32;;
15670 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15671 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15672 *) libsuff= shlibsuff= libmagic=never-match;;
15676 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15677 shlibpath_overrides_runpath=no
15678 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15679 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15680 hardcode_into_libs=yes
15683 # No shared lib support for Linux oldld, aout, or coff.
15684 linux*oldld* | linux*aout* | linux*coff*)
15688 # This must be Linux ELF.
15693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15694 soname_spec='${libname}${release}${shared_ext}$major'
15695 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15696 shlibpath_var=LD_LIBRARY_PATH
15697 shlibpath_overrides_runpath=no
15698 # This implies no fast_install, which is unacceptable.
15699 # Some rework will be needed to allow for fast_install
15700 # before this can be enabled.
15701 hardcode_into_libs=yes
15703 # Append ld.so.conf contents to the search path
15704 if test -f /etc/ld.so.conf; then
15705 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15706 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15709 # We used to test for /lib/ld.so.1 and disable shared libraries on
15710 # powerpc, because MkLinux only supported shared libraries with the
15711 # GNU dynamic linker. Since this was broken with cross compilers,
15712 # most powerpc-linux boxes support dynamic linking these days and
15713 # people can always --disable-shared, the test was removed, and we
15714 # assume the GNU/Linux dynamic linker is in use.
15715 dynamic_linker='GNU/Linux ld.so'
15722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15723 soname_spec='${libname}${release}${shared_ext}$major'
15724 shlibpath_var=LD_LIBRARY_PATH
15725 shlibpath_overrides_runpath=no
15726 hardcode_into_libs=yes
15727 dynamic_linker='GNU ld.so'
15734 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15736 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15737 dynamic_linker='NetBSD (a.out) ld.so'
15739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15740 soname_spec='${libname}${release}${shared_ext}$major'
15741 dynamic_linker='NetBSD ld.elf_so'
15743 shlibpath_var=LD_LIBRARY_PATH
15744 shlibpath_overrides_runpath=yes
15745 hardcode_into_libs=yes
15750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15751 shlibpath_var=LD_LIBRARY_PATH
15752 shlibpath_overrides_runpath=yes
15759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15760 soname_spec='${libname}${release}${shared_ext}$major'
15761 shlibpath_var=LD_LIBRARY_PATH
15762 shlibpath_overrides_runpath=yes
15767 sys_lib_dlsearch_path_spec="/usr/lib"
15769 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15771 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15772 *) need_version=no ;;
15774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15775 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15776 shlibpath_var=LD_LIBRARY_PATH
15777 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15779 openbsd2.[89] | openbsd2.[89].*)
15780 shlibpath_overrides_runpath=no
15783 shlibpath_overrides_runpath=yes
15787 shlibpath_overrides_runpath=yes
15792 libname_spec='$name'
15795 library_names_spec='$libname${shared_ext} $libname.a'
15796 dynamic_linker='OS/2 ld.exe'
15797 shlibpath_var=LIBPATH
15800 osf3* | osf4* | osf5*)
15804 soname_spec='${libname}${release}${shared_ext}$major'
15805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15806 shlibpath_var=LD_LIBRARY_PATH
15807 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15808 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15816 soname_spec='${libname}${release}${shared_ext}$major'
15817 shlibpath_var=LD_LIBRARY_PATH
15818 shlibpath_overrides_runpath=yes
15819 hardcode_into_libs=yes
15820 # ldd complains unless libraries are executable
15821 postinstall_cmds='chmod +x $lib'
15826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15827 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15828 shlibpath_var=LD_LIBRARY_PATH
15829 shlibpath_overrides_runpath=yes
15830 if test "$with_gnu_ld" = yes; then
15838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15839 soname_spec='${libname}${release}${shared_ext}$major'
15840 shlibpath_var=LD_LIBRARY_PATH
15841 case $host_vendor in
15843 shlibpath_overrides_runpath=no
15845 export_dynamic_flag_spec='${wl}-Blargedynsym'
15846 runpath_var=LD_RUN_PATH
15854 shlibpath_overrides_runpath=no
15855 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15861 if test -d /usr/nec ;then
15863 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15864 soname_spec='$libname${shared_ext}.$major'
15865 shlibpath_var=LD_LIBRARY_PATH
15869 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15870 version_type=freebsd-elf
15873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15874 soname_spec='${libname}${release}${shared_ext}$major'
15875 shlibpath_var=LD_LIBRARY_PATH
15876 hardcode_into_libs=yes
15877 if test "$with_gnu_ld" = yes; then
15878 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15879 shlibpath_overrides_runpath=no
15881 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15882 shlibpath_overrides_runpath=yes
15885 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15889 sys_lib_dlsearch_path_spec='/usr/lib'
15894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15895 soname_spec='${libname}${release}${shared_ext}$major'
15896 shlibpath_var=LD_LIBRARY_PATH
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15904 $as_echo "$dynamic_linker" >&6; }
15905 test "$dynamic_linker" = no && can_build_shared=no
15907 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15908 if test "$GCC" = yes; then
15909 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15913 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15914 hardcode_action_F77=
15915 if test -n "$hardcode_libdir_flag_spec_F77" || \
15916 test -n "$runpath_var_F77" || \
15917 test "X$hardcode_automatic_F77" = "Xyes" ; then
15919 # We can hardcode non-existant directories.
15920 if test "$hardcode_direct_F77" != no &&
15921 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15922 # have to relink, otherwise we might link with an installed library
15923 # when we should be linking with a yet-to-be-installed one
15924 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15925 test "$hardcode_minus_L_F77" != no; then
15926 # Linking always hardcodes the temporary library directory.
15927 hardcode_action_F77=relink
15929 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15930 hardcode_action_F77=immediate
15933 # We cannot hardcode anything, or else we can only hardcode existing
15935 hardcode_action_F77=unsupported
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
15938 $as_echo "$hardcode_action_F77" >&6; }
15940 if test "$hardcode_action_F77" = relink; then
15941 # Fast installation is not supported
15942 enable_fast_install=no
15943 elif test "$shlibpath_overrides_runpath" = yes ||
15944 test "$enable_shared" = no; then
15945 # Fast installation is not necessary
15946 enable_fast_install=needless
15950 # The else clause should only fire when bootstrapping the
15951 # libtool distribution, otherwise you forgot to ship ltmain.sh
15952 # with your package, and you will get complaints that there are
15953 # no rules to generate ltmain.sh.
15954 if test -f "$ltmain"; then
15955 # See if we are running on zsh, and set the options which allow our commands through
15956 # without removal of \ escapes.
15957 if test -n "${ZSH_VERSION+set}" ; then
15958 setopt NO_GLOB_SUBST
15960 # Now quote all the things that may contain metacharacters while being
15961 # careful not to overquote the AC_SUBSTed values. We take copies of the
15962 # variables and quote the copies for generation of the libtool script.
15963 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15965 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15966 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15967 deplibs_check_method reload_flag reload_cmds need_locks \
15968 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15969 lt_cv_sys_global_symbol_to_c_name_address \
15970 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15971 old_postinstall_cmds old_postuninstall_cmds \
15975 lt_prog_compiler_wl_F77 \
15976 lt_prog_compiler_pic_F77 \
15977 lt_prog_compiler_static_F77 \
15978 lt_prog_compiler_no_builtin_flag_F77 \
15979 export_dynamic_flag_spec_F77 \
15980 thread_safe_flag_spec_F77 \
15981 whole_archive_flag_spec_F77 \
15982 enable_shared_with_static_runtimes_F77 \
15983 old_archive_cmds_F77 \
15984 old_archive_from_new_cmds_F77 \
15985 predep_objects_F77 \
15986 postdep_objects_F77 \
15989 compiler_lib_search_path_F77 \
15991 archive_expsym_cmds_F77 \
15992 postinstall_cmds_F77 \
15993 postuninstall_cmds_F77 \
15994 old_archive_from_expsyms_cmds_F77 \
15995 allow_undefined_flag_F77 \
15996 no_undefined_flag_F77 \
15997 export_symbols_cmds_F77 \
15998 hardcode_libdir_flag_spec_F77 \
15999 hardcode_libdir_flag_spec_ld_F77 \
16000 hardcode_libdir_separator_F77 \
16001 hardcode_automatic_F77 \
16003 module_expsym_cmds_F77 \
16004 lt_cv_prog_compiler_c_o_F77 \
16005 exclude_expsyms_F77 \
16006 include_expsyms_F77; do
16009 old_archive_cmds_F77 | \
16010 old_archive_from_new_cmds_F77 | \
16011 archive_cmds_F77 | \
16012 archive_expsym_cmds_F77 | \
16013 module_cmds_F77 | \
16014 module_expsym_cmds_F77 | \
16015 old_archive_from_expsyms_cmds_F77 | \
16016 export_symbols_cmds_F77 | \
16017 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16018 postinstall_cmds | postuninstall_cmds | \
16019 old_postinstall_cmds | old_postuninstall_cmds | \
16020 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16021 # Double-quote double-evaled strings.
16022 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16025 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16031 *'\$0 --fallback-echo"')
16032 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16038 cat <<__EOF__ >> "$cfgfile"
16039 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16041 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16043 # Shell to use when invoking shell scripts.
16046 # Whether or not to build shared libraries.
16047 build_libtool_libs=$enable_shared
16049 # Whether or not to build static libraries.
16050 build_old_libs=$enable_static
16052 # Whether or not to add -lc for building shared libraries.
16053 build_libtool_need_lc=$archive_cmds_need_lc_F77
16055 # Whether or not to disallow shared libs when runtime libs are static
16056 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16058 # Whether or not to optimize for fast installation.
16059 fast_install=$enable_fast_install
16062 host_alias=$host_alias
16066 # The build system.
16067 build_alias=$build_alias
16071 # An echo program that does not interpret backslashes.
16076 AR_FLAGS=$lt_AR_FLAGS
16081 # LTCC compiler flags.
16082 LTCFLAGS=$lt_LTCFLAGS
16084 # A language-specific compiler.
16085 CC=$lt_compiler_F77
16087 # Is the compiler the GNU C compiler?
16093 # The linker used to build libraries.
16096 # Whether we need hard or soft links.
16099 # A BSD-compatible nm program.
16102 # A symbol stripping program
16105 # Used to examine libraries when file_magic_cmd begins "file"
16106 MAGIC_CMD=$MAGIC_CMD
16108 # Used on cygwin: DLL creation program.
16111 # Used on cygwin: object dumper.
16114 # Used on cygwin: assembler.
16117 # The name of the directory that contains temporary libtool files.
16120 # How to create reloadable object files.
16121 reload_flag=$lt_reload_flag
16122 reload_cmds=$lt_reload_cmds
16124 # How to pass a linker flag through the compiler.
16125 wl=$lt_lt_prog_compiler_wl_F77
16127 # Object file suffix (normally "o").
16128 objext="$ac_objext"
16130 # Old archive suffix (normally "a").
16133 # Shared library suffix (normally ".so").
16134 shrext_cmds='$shrext_cmds'
16136 # Executable file suffix (normally "").
16139 # Additional compiler flags for building library objects.
16140 pic_flag=$lt_lt_prog_compiler_pic_F77
16143 # What is the maximum length of a command?
16144 max_cmd_len=$lt_cv_sys_max_cmd_len
16146 # Does compiler simultaneously support -c and -o options?
16147 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16149 # Must we lock files when doing compilation?
16150 need_locks=$lt_need_locks
16152 # Do we need the lib prefix for modules?
16153 need_lib_prefix=$need_lib_prefix
16155 # Do we need a version for libraries?
16156 need_version=$need_version
16158 # Whether dlopen is supported.
16159 dlopen_support=$enable_dlopen
16161 # Whether dlopen of programs is supported.
16162 dlopen_self=$enable_dlopen_self
16164 # Whether dlopen of statically linked programs is supported.
16165 dlopen_self_static=$enable_dlopen_self_static
16167 # Compiler flag to prevent dynamic linking.
16168 link_static_flag=$lt_lt_prog_compiler_static_F77
16170 # Compiler flag to turn off builtin functions.
16171 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16173 # Compiler flag to allow reflexive dlopens.
16174 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16176 # Compiler flag to generate shared objects directly from archives.
16177 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16179 # Compiler flag to generate thread-safe objects.
16180 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16182 # Library versioning type.
16183 version_type=$version_type
16185 # Format of library name prefix.
16186 libname_spec=$lt_libname_spec
16188 # List of archive names. First name is the real one, the rest are links.
16189 # The last name is the one that the linker finds with -lNAME.
16190 library_names_spec=$lt_library_names_spec
16192 # The coded name of the library, if different from the real name.
16193 soname_spec=$lt_soname_spec
16195 # Commands used to build and install an old-style archive.
16197 old_archive_cmds=$lt_old_archive_cmds_F77
16198 old_postinstall_cmds=$lt_old_postinstall_cmds
16199 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16201 # Create an old-style archive from a shared archive.
16202 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16204 # Create a temporary old-style archive to link instead of a shared archive.
16205 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16207 # Commands used to build and install a shared archive.
16208 archive_cmds=$lt_archive_cmds_F77
16209 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16210 postinstall_cmds=$lt_postinstall_cmds
16211 postuninstall_cmds=$lt_postuninstall_cmds
16213 # Commands used to build a loadable module (assumed same as above if empty)
16214 module_cmds=$lt_module_cmds_F77
16215 module_expsym_cmds=$lt_module_expsym_cmds_F77
16217 # Commands to strip libraries.
16218 old_striplib=$lt_old_striplib
16219 striplib=$lt_striplib
16221 # Dependencies to place before the objects being linked to create a
16223 predep_objects=$lt_predep_objects_F77
16225 # Dependencies to place after the objects being linked to create a
16227 postdep_objects=$lt_postdep_objects_F77
16229 # Dependencies to place before the objects being linked to create a
16231 predeps=$lt_predeps_F77
16233 # Dependencies to place after the objects being linked to create a
16235 postdeps=$lt_postdeps_F77
16237 # The library search path used internally by the compiler when linking
16238 # a shared library.
16239 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16241 # Method to check whether dependent libraries are shared objects.
16242 deplibs_check_method=$lt_deplibs_check_method
16244 # Command to use when deplibs_check_method == file_magic.
16245 file_magic_cmd=$lt_file_magic_cmd
16247 # Flag that allows shared libraries with undefined symbols to be built.
16248 allow_undefined_flag=$lt_allow_undefined_flag_F77
16250 # Flag that forces no undefined symbols.
16251 no_undefined_flag=$lt_no_undefined_flag_F77
16253 # Commands used to finish a libtool library installation in a directory.
16254 finish_cmds=$lt_finish_cmds
16256 # Same as above, but a single script fragment to be evaled but not shown.
16257 finish_eval=$lt_finish_eval
16259 # Take the output of nm and produce a listing of raw symbols and C names.
16260 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16262 # Transform the output of nm in a proper C declaration
16263 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16265 # Transform the output of nm in a C name address pair
16266 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16268 # This is the shared library runtime path variable.
16269 runpath_var=$runpath_var
16271 # This is the shared library path variable.
16272 shlibpath_var=$shlibpath_var
16274 # Is shlibpath searched before the hard-coded library search path?
16275 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16277 # How to hardcode a shared library path into an executable.
16278 hardcode_action=$hardcode_action_F77
16280 # Whether we should hardcode library paths into libraries.
16281 hardcode_into_libs=$hardcode_into_libs
16283 # Flag to hardcode \$libdir into a binary during linking.
16284 # This must work even if \$libdir does not exist.
16285 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16287 # If ld is used when linking, flag to hardcode \$libdir into
16288 # a binary during linking. This must work even if \$libdir does
16290 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16292 # Whether we need a single -rpath flag with a separated argument.
16293 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16295 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16296 # resulting binary.
16297 hardcode_direct=$hardcode_direct_F77
16299 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16300 # resulting binary.
16301 hardcode_minus_L=$hardcode_minus_L_F77
16303 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16304 # the resulting binary.
16305 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16307 # Set to yes if building a shared library automatically hardcodes DIR into the library
16308 # and all subsequent libraries and executables linked against it.
16309 hardcode_automatic=$hardcode_automatic_F77
16311 # Variables whose values should be saved in libtool wrapper scripts and
16312 # restored at relink time.
16313 variables_saved_for_relink="$variables_saved_for_relink"
16315 # Whether libtool must link a program against all its dependency libraries.
16316 link_all_deplibs=$link_all_deplibs_F77
16318 # Compile-time system search path for libraries
16319 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16321 # Run-time system search path for libraries
16322 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16324 # Fix the shell variable \$srcfile for the compiler.
16325 fix_srcfile_path="$fix_srcfile_path_F77"
16327 # Set to yes if exported symbols are required.
16328 always_export_symbols=$always_export_symbols_F77
16330 # The commands to list exported symbols.
16331 export_symbols_cmds=$lt_export_symbols_cmds_F77
16333 # The commands to extract the exported symbol list from a shared archive.
16334 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16336 # Symbols that should not be listed in the preloaded symbols.
16337 exclude_expsyms=$lt_exclude_expsyms_F77
16339 # Symbols that must always be exported.
16340 include_expsyms=$lt_include_expsyms_F77
16342 # ### END LIBTOOL TAG CONFIG: $tagname
16348 # If there is no Makefile yet, we rely on a make rule to execute
16349 # `config.status --recheck' to rerun these tests and create the
16350 # libtool script then.
16351 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16352 if test -f "$ltmain_in"; then
16353 test -f Makefile && make "$ltmain"
16359 ac_cpp='$CPP $CPPFLAGS'
16360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16372 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16375 # Source file extension for Java test sources.
16378 # Object file extension for compiled Java test sources.
16382 # Code to be used in simple compile tests
16383 lt_simple_compile_test_code="class foo {}\n"
16385 # Code to be used in simple link tests
16386 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16388 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16390 # If no C compiler was specified, use CC.
16393 # If no C compiler flags were specified, use CFLAGS.
16394 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16396 # Allow CC to be a program name with arguments.
16400 # save warnings/boilerplate of simple test code
16401 ac_outfile=conftest.$ac_objext
16402 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16403 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16404 _lt_compiler_boilerplate=`cat conftest.err`
16407 ac_outfile=conftest.$ac_objext
16408 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16409 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16410 _lt_linker_boilerplate=`cat conftest.err`
16414 # Allow CC to be a program name with arguments.
16419 for cc_temp in $compiler""; do
16421 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16422 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16427 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16430 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16431 archive_cmds_need_lc_GCJ=no
16433 old_archive_cmds_GCJ=$old_archive_cmds
16436 lt_prog_compiler_no_builtin_flag_GCJ=
16438 if test "$GCC" = yes; then
16439 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16443 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16444 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16445 $as_echo_n "(cached) " >&6
16447 lt_cv_prog_compiler_rtti_exceptions=no
16448 ac_outfile=conftest.$ac_objext
16449 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16450 lt_compiler_flag="-fno-rtti -fno-exceptions"
16451 # Insert the option either (1) after the last *FLAGS variable, or
16452 # (2) before a word containing "conftest.", or (3) at the end.
16453 # Note that $ac_compile itself does not contain backslashes and begins
16454 # with a dollar sign (not a hyphen), so the echo should work correctly.
16455 # The option is referenced via a variable to avoid confusing sed.
16456 lt_compile=`echo "$ac_compile" | $SED \
16457 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16458 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16459 -e 's:$: $lt_compiler_flag:'`
16460 (eval echo "\"\$as_me:16460: $lt_compile\"" >&5)
16461 (eval "$lt_compile" 2>conftest.err)
16463 cat conftest.err >&5
16464 echo "$as_me:16464: \$? = $ac_status" >&5
16465 if (exit $ac_status) && test -s "$ac_outfile"; then
16466 # The compiler can only warn and ignore the option if not recognized
16467 # So say no if there are warnings other than the usual output.
16468 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16469 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16470 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16471 lt_cv_prog_compiler_rtti_exceptions=yes
16477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16478 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16480 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16481 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16488 lt_prog_compiler_wl_GCJ=
16489 lt_prog_compiler_pic_GCJ=
16490 lt_prog_compiler_static_GCJ=
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16493 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16495 if test "$GCC" = yes; then
16496 lt_prog_compiler_wl_GCJ='-Wl,'
16497 lt_prog_compiler_static_GCJ='-static'
16501 # All AIX code is PIC.
16502 if test "$host_cpu" = ia64; then
16503 # AIX 5 now supports IA64 processor
16504 lt_prog_compiler_static_GCJ='-Bstatic'
16509 # FIXME: we need at least 68020 code to build shared libraries, but
16510 # adding the `-m68020' flag to GCC prevents building anything better,
16512 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16515 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16516 # PIC is the default for these OSes.
16519 mingw* | pw32* | os2*)
16520 # This hack is so that the source file can tell whether it is being
16521 # built for inclusion in a dll (and should export symbols for example).
16522 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16525 darwin* | rhapsody*)
16526 # PIC is the default on this platform
16527 # Common symbols not allowed in MH_DYLIB files
16528 lt_prog_compiler_pic_GCJ='-fno-common'
16532 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16533 # Instead, we relocate shared libraries at runtime.
16537 # Just because we use GCC doesn't mean we suddenly get shared libraries
16538 # on systems that don't support them.
16539 lt_prog_compiler_can_build_shared_GCJ=no
16544 if test -d /usr/nec; then
16545 lt_prog_compiler_pic_GCJ=-Kconform_pic
16550 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16551 # not for PA HP-UX.
16557 lt_prog_compiler_pic_GCJ='-fPIC'
16563 lt_prog_compiler_pic_GCJ='-fPIC'
16567 # PORTME Check for flag to pass linker flags through the system compiler.
16570 lt_prog_compiler_wl_GCJ='-Wl,'
16571 if test "$host_cpu" = ia64; then
16572 # AIX 5 now supports IA64 processor
16573 lt_prog_compiler_static_GCJ='-Bstatic'
16575 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16579 # PIC is the default on this platform
16580 # Common symbols not allowed in MH_DYLIB files
16581 case $cc_basename in
16583 lt_prog_compiler_pic_GCJ='-qnocommon'
16584 lt_prog_compiler_wl_GCJ='-Wl,'
16589 mingw* | pw32* | os2*)
16590 # This hack is so that the source file can tell whether it is being
16591 # built for inclusion in a dll (and should export symbols for example).
16592 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16595 hpux9* | hpux10* | hpux11*)
16596 lt_prog_compiler_wl_GCJ='-Wl,'
16597 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16598 # not for PA HP-UX.
16604 lt_prog_compiler_pic_GCJ='+Z'
16607 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16608 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16611 irix5* | irix6* | nonstopux*)
16612 lt_prog_compiler_wl_GCJ='-Wl,'
16613 # PIC (with -KPIC) is the default.
16614 lt_prog_compiler_static_GCJ='-non_shared'
16618 lt_prog_compiler_pic_GCJ='-KPIC'
16619 lt_prog_compiler_static_GCJ='-Bstatic'
16623 case $cc_basename in
16625 lt_prog_compiler_wl_GCJ='-Wl,'
16626 lt_prog_compiler_pic_GCJ='-KPIC'
16627 lt_prog_compiler_static_GCJ='-static'
16629 pgcc* | pgf77* | pgf90* | pgf95*)
16630 # Portland Group compilers (*not* the Pentium gcc compiler,
16631 # which looks to be a dead project)
16632 lt_prog_compiler_wl_GCJ='-Wl,'
16633 lt_prog_compiler_pic_GCJ='-fpic'
16634 lt_prog_compiler_static_GCJ='-Bstatic'
16637 lt_prog_compiler_wl_GCJ='-Wl,'
16638 # All Alpha code is PIC.
16639 lt_prog_compiler_static_GCJ='-non_shared'
16644 osf3* | osf4* | osf5*)
16645 lt_prog_compiler_wl_GCJ='-Wl,'
16646 # All OSF/1 code is PIC.
16647 lt_prog_compiler_static_GCJ='-non_shared'
16651 lt_prog_compiler_pic_GCJ='-KPIC'
16652 lt_prog_compiler_static_GCJ='-Bstatic'
16653 case $cc_basename in
16654 f77* | f90* | f95*)
16655 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16657 lt_prog_compiler_wl_GCJ='-Wl,';;
16662 lt_prog_compiler_wl_GCJ='-Qoption ld '
16663 lt_prog_compiler_pic_GCJ='-PIC'
16664 lt_prog_compiler_static_GCJ='-Bstatic'
16667 sysv4 | sysv4.2uw2* | sysv4.3*)
16668 lt_prog_compiler_wl_GCJ='-Wl,'
16669 lt_prog_compiler_pic_GCJ='-KPIC'
16670 lt_prog_compiler_static_GCJ='-Bstatic'
16674 if test -d /usr/nec ;then
16675 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16676 lt_prog_compiler_static_GCJ='-Bstatic'
16680 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16681 lt_prog_compiler_wl_GCJ='-Wl,'
16682 lt_prog_compiler_pic_GCJ='-KPIC'
16683 lt_prog_compiler_static_GCJ='-Bstatic'
16687 lt_prog_compiler_wl_GCJ='-Wl,'
16688 lt_prog_compiler_can_build_shared_GCJ=no
16692 lt_prog_compiler_pic_GCJ='-pic'
16693 lt_prog_compiler_static_GCJ='-Bstatic'
16697 lt_prog_compiler_can_build_shared_GCJ=no
16702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
16703 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16706 # Check to make sure the PIC flag actually works.
16708 if test -n "$lt_prog_compiler_pic_GCJ"; then
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16711 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16712 if ${lt_prog_compiler_pic_works_GCJ+:} false; then :
16713 $as_echo_n "(cached) " >&6
16715 lt_prog_compiler_pic_works_GCJ=no
16716 ac_outfile=conftest.$ac_objext
16717 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16718 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16719 # Insert the option either (1) after the last *FLAGS variable, or
16720 # (2) before a word containing "conftest.", or (3) at the end.
16721 # Note that $ac_compile itself does not contain backslashes and begins
16722 # with a dollar sign (not a hyphen), so the echo should work correctly.
16723 # The option is referenced via a variable to avoid confusing sed.
16724 lt_compile=`echo "$ac_compile" | $SED \
16725 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16726 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16727 -e 's:$: $lt_compiler_flag:'`
16728 (eval echo "\"\$as_me:16728: $lt_compile\"" >&5)
16729 (eval "$lt_compile" 2>conftest.err)
16731 cat conftest.err >&5
16732 echo "$as_me:16732: \$? = $ac_status" >&5
16733 if (exit $ac_status) && test -s "$ac_outfile"; then
16734 # The compiler can only warn and ignore the option if not recognized
16735 # So say no if there are warnings other than the usual output.
16736 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16737 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16738 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16739 lt_prog_compiler_pic_works_GCJ=yes
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_GCJ" >&5
16746 $as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
16748 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16749 case $lt_prog_compiler_pic_GCJ in
16751 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16754 lt_prog_compiler_pic_GCJ=
16755 lt_prog_compiler_can_build_shared_GCJ=no
16760 # For platforms which do not support PIC, -DPIC is meaningless:
16762 lt_prog_compiler_pic_GCJ=
16765 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16770 # Check to make sure the static flag actually works.
16772 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16774 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16775 if ${lt_prog_compiler_static_works_GCJ+:} false; then :
16776 $as_echo_n "(cached) " >&6
16778 lt_prog_compiler_static_works_GCJ=no
16779 save_LDFLAGS="$LDFLAGS"
16780 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16781 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16782 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16783 # The linker can only warn and ignore the option if not recognized
16784 # So say no if there are warnings
16785 if test -s conftest.err; then
16786 # Append any errors to the config.log.
16787 cat conftest.err 1>&5
16788 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16789 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16790 if diff conftest.exp conftest.er2 >/dev/null; then
16791 lt_prog_compiler_static_works_GCJ=yes
16794 lt_prog_compiler_static_works_GCJ=yes
16798 LDFLAGS="$save_LDFLAGS"
16801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works_GCJ" >&5
16802 $as_echo "$lt_prog_compiler_static_works_GCJ" >&6; }
16804 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16807 lt_prog_compiler_static_GCJ=
16811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16812 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16813 if ${lt_cv_prog_compiler_c_o_GCJ+:} false; then :
16814 $as_echo_n "(cached) " >&6
16816 lt_cv_prog_compiler_c_o_GCJ=no
16817 $rm -r conftest 2>/dev/null
16821 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16823 lt_compiler_flag="-o out/conftest2.$ac_objext"
16824 # Insert the option either (1) after the last *FLAGS variable, or
16825 # (2) before a word containing "conftest.", or (3) at the end.
16826 # Note that $ac_compile itself does not contain backslashes and begins
16827 # with a dollar sign (not a hyphen), so the echo should work correctly.
16828 lt_compile=`echo "$ac_compile" | $SED \
16829 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16830 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16831 -e 's:$: $lt_compiler_flag:'`
16832 (eval echo "\"\$as_me:16832: $lt_compile\"" >&5)
16833 (eval "$lt_compile" 2>out/conftest.err)
16835 cat out/conftest.err >&5
16836 echo "$as_me:16836: \$? = $ac_status" >&5
16837 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16839 # The compiler can only warn and ignore the option if not recognized
16840 # So say no if there are warnings
16841 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16842 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16843 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16844 lt_cv_prog_compiler_c_o_GCJ=yes
16849 # SGI C++ compiler will create directory out/ii_files/ for
16850 # template instantiation
16851 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16852 $rm out/* && rmdir out
16858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16859 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16862 hard_links="nottested"
16863 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16864 # do not overwrite the value of need_locks provided by the user
16865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16866 $as_echo_n "checking if we can lock with hard links... " >&6; }
16869 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16871 ln conftest.a conftest.b 2>&5 || hard_links=no
16872 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16874 $as_echo "$hard_links" >&6; }
16875 if test "$hard_links" = no; then
16876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16877 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16885 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16888 allow_undefined_flag_GCJ=
16889 enable_shared_with_static_runtimes_GCJ=no
16891 archive_expsym_cmds_GCJ=
16892 old_archive_From_new_cmds_GCJ=
16893 old_archive_from_expsyms_cmds_GCJ=
16894 export_dynamic_flag_spec_GCJ=
16895 whole_archive_flag_spec_GCJ=
16896 thread_safe_flag_spec_GCJ=
16897 hardcode_libdir_flag_spec_GCJ=
16898 hardcode_libdir_flag_spec_ld_GCJ=
16899 hardcode_libdir_separator_GCJ=
16900 hardcode_direct_GCJ=no
16901 hardcode_minus_L_GCJ=no
16902 hardcode_shlibpath_var_GCJ=unsupported
16903 link_all_deplibs_GCJ=unknown
16904 hardcode_automatic_GCJ=no
16906 module_expsym_cmds_GCJ=
16907 always_export_symbols_GCJ=no
16908 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16909 # include_expsyms should be a list of space-separated symbols to be *always*
16910 # included in the symbol list
16911 include_expsyms_GCJ=
16912 # exclude_expsyms can be an extended regexp of symbols to exclude
16913 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16914 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16915 # as well as any symbol that contains `d'.
16916 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16917 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16918 # platforms (ab)use it in PIC code, but their linkers get confused if
16919 # the symbol is explicitly referenced. Since portable code cannot
16920 # rely on this symbol name, it's probably fine to never include it in
16921 # preloaded symbol tables.
16922 extract_expsyms_cmds=
16923 # Just being paranoid about ensuring that cc_basename is set.
16924 for cc_temp in $compiler""; do
16926 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16927 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16932 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16935 cygwin* | mingw* | pw32*)
16936 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16937 # When not using gcc, we currently assume that we are using
16938 # Microsoft Visual C++.
16939 if test "$GCC" != yes; then
16944 # we just hope/assume this is gcc and not c89 (= MSVC++)
16953 if test "$with_gnu_ld" = yes; then
16954 # If archive_cmds runs LD, not CC, wlarc should be empty
16957 # Set some defaults for GNU ld with shared library support. These
16958 # are reset later if shared libraries are not supported. Putting them
16959 # here allows them to be overridden if necessary.
16960 runpath_var=LD_RUN_PATH
16961 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16962 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16963 # ancient GNU ld didn't support --whole-archive et. al.
16964 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16965 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16967 whole_archive_flag_spec_GCJ=
16969 supports_anon_versioning=no
16970 case `$LD -v 2>/dev/null` in
16971 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16972 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16973 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16974 *\ 2.11.*) ;; # other 2.11 versions
16975 *) supports_anon_versioning=yes ;;
16978 # See if GNU ld supports shared libraries.
16980 aix3* | aix4* | aix5*)
16981 # On AIX/PPC, the GNU linker is very broken
16982 if test "$host_cpu" != ia64; then
16986 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16987 *** to be unable to reliably create shared libraries on AIX.
16988 *** Therefore, libtool is disabling shared libraries support. If you
16989 *** really care for shared libraries, you may want to modify your PATH
16990 *** so that a non-GNU linker is found, and then restart.
16997 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)'
16998 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16999 hardcode_minus_L_GCJ=yes
17001 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17002 # that the semantics of dynamic libraries on AmigaOS, at least up
17003 # to version 4, is to share data among multiple programs linked
17004 # with the same dynamic library. Since this doesn't match the
17005 # behavior of shared libraries on other platforms, we can't use
17011 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17012 allow_undefined_flag_GCJ=unsupported
17013 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17014 # support --undefined. This deserves some investigation. FIXME
17015 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17021 cygwin* | mingw* | pw32*)
17022 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17023 # as there is no search path for DLLs.
17024 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17025 allow_undefined_flag_GCJ=unsupported
17026 always_export_symbols_GCJ=no
17027 enable_shared_with_static_runtimes_GCJ=yes
17028 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17030 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17031 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17032 # If the export-symbols file already is a .def file (1st line
17033 # is EXPORTS), use it as is; otherwise, prepend...
17034 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17035 cp $export_symbols $output_objdir/$soname.def;
17037 echo EXPORTS > $output_objdir/$soname.def;
17038 cat $export_symbols >> $output_objdir/$soname.def;
17040 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17047 hardcode_direct_GCJ=no
17048 hardcode_shlibpath_var_GCJ=no
17049 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17050 export_dynamic_flag_spec_GCJ='${wl}-E'
17051 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17052 # Instead, shared libraries are loaded at an image base (0x10000000 by
17053 # default) and relocated if they conflict, which is a slow very memory
17054 # consuming and fragmenting process. To avoid this, we pick a random,
17055 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17056 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17057 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'
17058 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'
17062 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17064 case $cc_basename,$host_cpu in
17065 pgcc*) # Portland Group C compiler
17066 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'
17067 tmp_addflag=' $pic_flag'
17069 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17070 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'
17071 tmp_addflag=' $pic_flag -Mnomain' ;;
17072 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17073 tmp_addflag=' -i_dynamic' ;;
17074 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17075 tmp_addflag=' -i_dynamic -nofor_main' ;;
17076 ifc* | ifort*) # Intel Fortran compiler
17077 tmp_addflag=' -nofor_main' ;;
17079 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17081 if test $supports_anon_versioning = yes; then
17082 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17083 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17084 $echo "local: *; };" >> $output_objdir/$libname.ver~
17085 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17093 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17094 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17097 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17098 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17103 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17107 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17108 *** create shared libraries on Solaris systems. Therefore, libtool
17109 *** is disabling shared libraries support. We urge you to upgrade GNU
17110 *** binutils to release 2.9.1 or newer. Another option is to modify
17111 *** your PATH or compiler configuration so that the native linker is
17112 *** used, and then restart.
17115 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17116 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17117 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17123 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17124 case `$LD -v 2>&1` in
17125 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17129 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17130 *** reliably create shared libraries on SCO systems. Therefore, libtool
17131 *** is disabling shared libraries support. We urge you to upgrade GNU
17132 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17133 *** your PATH or compiler configuration so that the native linker is
17134 *** used, and then restart.
17139 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17140 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17141 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17142 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17151 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17153 hardcode_direct_GCJ=yes
17154 hardcode_shlibpath_var_GCJ=no
17158 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17159 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17160 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17167 if test "$ld_shlibs_GCJ" = no; then
17169 hardcode_libdir_flag_spec_GCJ=
17170 export_dynamic_flag_spec_GCJ=
17171 whole_archive_flag_spec_GCJ=
17174 # PORTME fill in a description of your system's linker (not GNU ld)
17177 allow_undefined_flag_GCJ=unsupported
17178 always_export_symbols_GCJ=yes
17179 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'
17180 # Note: this linker hardcodes the directories in LIBPATH if there
17181 # are no directories specified by -L.
17182 hardcode_minus_L_GCJ=yes
17183 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17184 # Neither direct hardcoding nor static linking is supported with a
17186 hardcode_direct_GCJ=unsupported
17191 if test "$host_cpu" = ia64; then
17192 # On IA64, the linker does run time linking by default, so we don't
17193 # have to do anything special.
17194 aix_use_runtimelinking=no
17195 exp_sym_flag='-Bexport'
17198 # If we're using GNU nm, then we don't want the "-C" option.
17199 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17200 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17201 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'
17203 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'
17205 aix_use_runtimelinking=no
17207 # Test if we are trying to use run time linking or normal
17208 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17209 # need to do runtime linking.
17210 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17211 for ld_flag in $LDFLAGS; do
17212 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17213 aix_use_runtimelinking=yes
17220 exp_sym_flag='-bexport'
17221 no_entry_flag='-bnoentry'
17224 # When large executables or shared objects are built, AIX ld can
17225 # have problems creating the table of contents. If linking a library
17226 # or program results in "error TOC overflow" add -mminimal-toc to
17227 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17228 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17230 archive_cmds_GCJ=''
17231 hardcode_direct_GCJ=yes
17232 hardcode_libdir_separator_GCJ=':'
17233 link_all_deplibs_GCJ=yes
17235 if test "$GCC" = yes; then
17236 case $host_os in aix4.[012]|aix4.[012].*)
17237 # We only want to do this on AIX 4.2 and lower, the check
17238 # below for broken collect2 doesn't work under 4.3+
17239 collect2name=`${CC} -print-prog-name=collect2`
17240 if test -f "$collect2name" && \
17241 strings "$collect2name" | grep resolve_lib_name >/dev/null
17243 # We have reworked collect2
17244 hardcode_direct_GCJ=yes
17246 # We have old collect2
17247 hardcode_direct_GCJ=unsupported
17248 # It fails to find uninstalled libraries when the uninstalled
17249 # path is not listed in the libpath. Setting hardcode_minus_L
17250 # to unsupported forces relinking
17251 hardcode_minus_L_GCJ=yes
17252 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17253 hardcode_libdir_separator_GCJ=
17257 shared_flag='-shared'
17258 if test "$aix_use_runtimelinking" = yes; then
17259 shared_flag="$shared_flag "'${wl}-G'
17263 if test "$host_cpu" = ia64; then
17264 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17265 # chokes on -Wl,-G. The following line is correct:
17268 if test "$aix_use_runtimelinking" = yes; then
17269 shared_flag='${wl}-G'
17271 shared_flag='${wl}-bM:SRE'
17276 # It seems that -bexpall does not export symbols beginning with
17277 # underscore (_), so it is better to generate a list of symbols to export.
17278 always_export_symbols_GCJ=yes
17279 if test "$aix_use_runtimelinking" = yes; then
17280 # Warning - without using the other runtime loading flags (-brtl),
17281 # -berok will link without error, but may produce a broken library.
17282 allow_undefined_flag_GCJ='-berok'
17283 # Determine the default libpath from the value encoded in an empty executable.
17284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17285 /* end confdefs.h. */
17295 if ac_fn_c_try_link "$LINENO"; then :
17297 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17299 # Check for a 64-bit object if we didn't find anything.
17300 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17303 rm -f core conftest.err conftest.$ac_objext \
17304 conftest$ac_exeext conftest.$ac_ext
17305 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17307 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17308 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"
17310 if test "$host_cpu" = ia64; then
17311 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17312 allow_undefined_flag_GCJ="-z nodefs"
17313 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"
17315 # Determine the default libpath from the value encoded in an empty executable.
17316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17317 /* end confdefs.h. */
17327 if ac_fn_c_try_link "$LINENO"; then :
17329 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17331 # Check for a 64-bit object if we didn't find anything.
17332 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17335 rm -f core conftest.err conftest.$ac_objext \
17336 conftest$ac_exeext conftest.$ac_ext
17337 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17339 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17340 # Warning - without using the other run time loading flags,
17341 # -berok will link without error, but may produce a broken library.
17342 no_undefined_flag_GCJ=' ${wl}-bernotok'
17343 allow_undefined_flag_GCJ=' ${wl}-berok'
17344 # Exported symbols can be pulled into shared objects from archives
17345 whole_archive_flag_spec_GCJ='$convenience'
17346 archive_cmds_need_lc_GCJ=yes
17347 # This is similar to how AIX traditionally builds its shared libraries.
17348 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'
17354 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)'
17355 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17356 hardcode_minus_L_GCJ=yes
17357 # see comment about different semantics on the GNU ld section
17362 export_dynamic_flag_spec_GCJ=-rdynamic
17365 cygwin* | mingw* | pw32*)
17366 # When not using gcc, we currently assume that we are using
17367 # Microsoft Visual C++.
17368 # hardcode_libdir_flag_spec is actually meaningless, as there is
17369 # no search path for DLLs.
17370 hardcode_libdir_flag_spec_GCJ=' '
17371 allow_undefined_flag_GCJ=unsupported
17372 # Tell ltmain to make .lib files, not .a files.
17374 # Tell ltmain to make .dll files, not .so files.
17376 # FIXME: Setting linknames here is a bad hack.
17377 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17378 # The linker will automatically build a .lib file if we build a DLL.
17379 old_archive_From_new_cmds_GCJ='true'
17380 # FIXME: Should let the user specify the lib program.
17381 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17382 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17383 enable_shared_with_static_runtimes_GCJ=yes
17386 darwin* | rhapsody*)
17388 rhapsody* | darwin1.[012])
17389 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17392 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17393 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17395 case ${MACOSX_DEPLOYMENT_TARGET} in
17397 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17400 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17406 archive_cmds_need_lc_GCJ=no
17407 hardcode_direct_GCJ=no
17408 hardcode_automatic_GCJ=yes
17409 hardcode_shlibpath_var_GCJ=unsupported
17410 whole_archive_flag_spec_GCJ=''
17411 link_all_deplibs_GCJ=yes
17412 if test "$GCC" = yes ; then
17413 output_verbose_link_cmd='echo'
17414 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17415 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17416 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17417 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}'
17418 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}'
17420 case $cc_basename in
17422 output_verbose_link_cmd='echo'
17423 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17424 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17425 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17426 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17427 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}'
17437 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17438 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17439 hardcode_shlibpath_var_GCJ=no
17446 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17447 # support. Future versions do this automatically, but an explicit c++rt0.o
17448 # does not break anything, and helps significantly (at the cost of a little
17451 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17452 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17453 hardcode_direct_GCJ=yes
17454 hardcode_shlibpath_var_GCJ=no
17457 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17459 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17460 hardcode_direct_GCJ=yes
17461 hardcode_minus_L_GCJ=yes
17462 hardcode_shlibpath_var_GCJ=no
17465 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17466 freebsd* | kfreebsd*-gnu | dragonfly*)
17467 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17468 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17469 hardcode_direct_GCJ=yes
17470 hardcode_shlibpath_var_GCJ=no
17474 if test "$GCC" = yes; then
17475 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'
17477 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'
17479 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17480 hardcode_libdir_separator_GCJ=:
17481 hardcode_direct_GCJ=yes
17483 # hardcode_minus_L: Not really in the search PATH,
17484 # but as the default location of the library.
17485 hardcode_minus_L_GCJ=yes
17486 export_dynamic_flag_spec_GCJ='${wl}-E'
17490 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17491 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17493 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17495 if test "$with_gnu_ld" = no; then
17496 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17497 hardcode_libdir_separator_GCJ=:
17499 hardcode_direct_GCJ=yes
17500 export_dynamic_flag_spec_GCJ='${wl}-E'
17502 # hardcode_minus_L: Not really in the search PATH,
17503 # but as the default location of the library.
17504 hardcode_minus_L_GCJ=yes
17509 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17512 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17515 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17518 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17524 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17527 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17530 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17534 if test "$with_gnu_ld" = no; then
17535 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17536 hardcode_libdir_separator_GCJ=:
17540 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17541 hardcode_direct_GCJ=no
17542 hardcode_shlibpath_var_GCJ=no
17545 hardcode_direct_GCJ=yes
17546 export_dynamic_flag_spec_GCJ='${wl}-E'
17548 # hardcode_minus_L: Not really in the search PATH,
17549 # but as the default location of the library.
17550 hardcode_minus_L_GCJ=yes
17556 irix5* | irix6* | nonstopux*)
17557 if test "$GCC" = yes; then
17558 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'
17560 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'
17561 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17563 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17564 hardcode_libdir_separator_GCJ=:
17565 link_all_deplibs_GCJ=yes
17569 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17570 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17572 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17574 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17575 hardcode_direct_GCJ=yes
17576 hardcode_shlibpath_var_GCJ=no
17580 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17581 hardcode_direct_GCJ=yes
17582 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17583 hardcode_libdir_separator_GCJ=:
17584 hardcode_shlibpath_var_GCJ=no
17588 hardcode_direct_GCJ=yes
17589 hardcode_shlibpath_var_GCJ=no
17590 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17591 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17592 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17593 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17594 export_dynamic_flag_spec_GCJ='${wl}-E'
17597 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17598 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17599 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17602 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17603 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17610 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17611 hardcode_minus_L_GCJ=yes
17612 allow_undefined_flag_GCJ=unsupported
17613 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'
17614 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17618 if test "$GCC" = yes; then
17619 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17620 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'
17622 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17623 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'
17625 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17626 hardcode_libdir_separator_GCJ=:
17629 osf4* | osf5*) # as osf3* with the addition of -msym flag
17630 if test "$GCC" = yes; then
17631 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17632 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'
17633 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17635 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17636 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'
17637 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~
17638 $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'
17640 # Both c and cxx compiler support -rpath directly
17641 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17643 hardcode_libdir_separator_GCJ=:
17647 no_undefined_flag_GCJ=' -z text'
17648 if test "$GCC" = yes; then
17650 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17651 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17652 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17655 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17656 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17657 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17659 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17660 hardcode_shlibpath_var_GCJ=no
17662 solaris2.[0-5] | solaris2.[0-5].*) ;;
17664 # The compiler driver will combine linker options so we
17665 # cannot just pass the convience library names through
17666 # without $wl, iff we do not link with $LD.
17667 # Luckily, gcc supports the same syntax we need for Sun Studio.
17668 # Supported since Solaris 2.6 (maybe 2.5.1?)
17671 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17673 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17676 link_all_deplibs_GCJ=yes
17680 if test "x$host_vendor" = xsequent; then
17681 # Use $CC to link under sequent, because it throws in some extra .o
17682 # files that make .init and .fini sections work.
17683 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17685 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17687 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17688 hardcode_direct_GCJ=yes
17689 hardcode_minus_L_GCJ=yes
17690 hardcode_shlibpath_var_GCJ=no
17694 case $host_vendor in
17696 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17697 hardcode_direct_GCJ=yes # is this really true???
17700 ## LD is ld it makes a PLAMLIB
17701 ## CC just makes a GrossModule.
17702 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17703 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17704 hardcode_direct_GCJ=no
17707 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17708 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17711 runpath_var='LD_RUN_PATH'
17712 hardcode_shlibpath_var_GCJ=no
17716 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17717 hardcode_shlibpath_var_GCJ=no
17718 export_dynamic_flag_spec_GCJ='-Bexport'
17722 if test -d /usr/nec; then
17723 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17724 hardcode_shlibpath_var_GCJ=no
17725 runpath_var=LD_RUN_PATH
17726 hardcode_runpath_var=yes
17731 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17732 no_undefined_flag_GCJ='${wl}-z,text'
17733 archive_cmds_need_lc_GCJ=no
17734 hardcode_shlibpath_var_GCJ=no
17735 runpath_var='LD_RUN_PATH'
17737 if test "$GCC" = yes; then
17738 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17739 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17741 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17742 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17746 sysv5* | sco3.2v5* | sco5v6*)
17747 # Note: We can NOT use -z defs as we might desire, because we do not
17748 # link with -lc, and that would cause any symbols used from libc to
17749 # always be unresolved, which means just about no library would
17750 # ever link correctly. If we're not using GNU ld we use -z text
17751 # though, which does catch some bad symbols but isn't as heavy-handed
17753 no_undefined_flag_GCJ='${wl}-z,text'
17754 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17755 archive_cmds_need_lc_GCJ=no
17756 hardcode_shlibpath_var_GCJ=no
17757 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17758 hardcode_libdir_separator_GCJ=':'
17759 link_all_deplibs_GCJ=yes
17760 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17761 runpath_var='LD_RUN_PATH'
17763 if test "$GCC" = yes; then
17764 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17765 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17767 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17768 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17773 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17774 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17775 hardcode_shlibpath_var_GCJ=no
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
17785 $as_echo "$ld_shlibs_GCJ" >&6; }
17786 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17789 # Do we need to explicitly link libc?
17791 case "x$archive_cmds_need_lc_GCJ" in
17793 # Assume -lc should be added
17794 archive_cmds_need_lc_GCJ=yes
17796 if test "$enable_shared" = yes && test "$GCC" = yes; then
17797 case $archive_cmds_GCJ in
17799 # FIXME: we may have to deal with multi-command sequences.
17802 # Test whether the compiler implicitly links with -lc since on some
17803 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17804 # to ld, don't add -lc before -lgcc.
17805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17806 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17808 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17810 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17811 (eval $ac_compile) 2>&5
17813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17814 test $ac_status = 0; } 2>conftest.err; then
17817 libobjs=conftest.$ac_objext
17819 wl=$lt_prog_compiler_wl_GCJ
17820 pic_flag=$lt_prog_compiler_pic_GCJ
17826 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17827 allow_undefined_flag_GCJ=
17828 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17829 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17832 test $ac_status = 0; }
17834 archive_cmds_need_lc_GCJ=no
17836 archive_cmds_need_lc_GCJ=yes
17838 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17840 cat conftest.err 1>&5
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
17844 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17852 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17853 library_names_spec=
17854 libname_spec='lib$name'
17858 postuninstall_cmds=
17862 shlibpath_overrides_runpath=unknown
17864 dynamic_linker="$host_os ld.so"
17865 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17866 if test "$GCC" = yes; then
17867 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17868 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17869 # if the path contains ";" then we assume it to be the separator
17870 # otherwise default to the standard path separator (i.e. ":") - it is
17871 # assumed that no part of a normal pathname contains ";" but that should
17872 # okay in the real world where ";" in dirpaths is itself problematic.
17873 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17875 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17878 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17880 need_lib_prefix=unknown
17881 hardcode_into_libs=no
17883 # when you set need_version to no, make sure it does not cause -set_version
17884 # flags to be left without arguments
17885 need_version=unknown
17890 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17891 shlibpath_var=LIBPATH
17893 # AIX 3 has no versioning support, so we append a major version to the name.
17894 soname_spec='${libname}${release}${shared_ext}$major'
17901 hardcode_into_libs=yes
17902 if test "$host_cpu" = ia64; then
17903 # AIX 5 supports IA64
17904 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17905 shlibpath_var=LD_LIBRARY_PATH
17907 # With GCC up to 2.95.x, collect2 would create an import file
17908 # for dependence libraries. The import file would start with
17909 # the line `#! .'. This would cause the generated library to
17910 # depend on `.', always an invalid library. This was fixed in
17911 # development snapshots of GCC prior to 3.0.
17913 aix4 | aix4.[01] | aix4.[01].*)
17914 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17916 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17919 can_build_shared=no
17923 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17924 # soname into executable. Probably we can add versioning support to
17925 # collect2, so additional links can be useful in future.
17926 if test "$aix_use_runtimelinking" = yes; then
17927 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17928 # instead of lib<name>.a to let people know that these are not
17929 # typical AIX shared libraries.
17930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17932 # We preserve .a as extension for shared libraries through AIX4.2
17933 # and later when we are not doing run time linking.
17934 library_names_spec='${libname}${release}.a $libname.a'
17935 soname_spec='${libname}${release}${shared_ext}$major'
17937 shlibpath_var=LIBPATH
17942 library_names_spec='$libname.ixlibrary $libname.a'
17943 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17944 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'
17948 library_names_spec='${libname}${shared_ext}'
17949 dynamic_linker="$host_os ld.so"
17950 shlibpath_var=LIBRARY_PATH
17956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17957 soname_spec='${libname}${release}${shared_ext}$major'
17958 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17959 shlibpath_var=LD_LIBRARY_PATH
17960 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17961 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17962 # the default ld.so.conf also contains /usr/contrib/lib and
17963 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17964 # libtool to hard-code these into programs
17967 cygwin* | mingw* | pw32*)
17968 version_type=windows
17973 case $GCC,$host_os in
17974 yes,cygwin* | yes,mingw* | yes,pw32*)
17975 library_names_spec='$libname.dll.a'
17976 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17977 postinstall_cmds='base_file=`basename \${file}`~
17978 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17979 dldir=$destdir/`dirname \$dlpath`~
17980 test -d \$dldir || mkdir -p \$dldir~
17981 $install_prog $dir/$dlname \$dldir/$dlname~
17982 chmod a+x \$dldir/$dlname'
17983 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17984 dlpath=$dir/\$dldll~
17986 shlibpath_overrides_runpath=yes
17990 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17991 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17992 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17995 # MinGW DLLs use traditional 'lib' prefix
17996 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17997 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17998 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17999 # It is most probably a Windows format PATH printed by
18000 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18001 # path with ; separators, and with drive letters. We can handle the
18002 # drive letters (cygwin fileutils understands them), so leave them,
18003 # especially as we might pass files found there to a mingw objdump,
18004 # which wouldn't understand a cygwinified path. Ahh.
18005 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18007 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18011 # pw32 DLLs use 'pw' prefix rather than 'lib'
18012 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18018 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18021 dynamic_linker='Win32 ld.exe'
18022 # FIXME: first we should search . and the directory the executable is in
18026 darwin* | rhapsody*)
18027 dynamic_linker="$host_os dyld"
18028 version_type=darwin
18031 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18032 soname_spec='${libname}${release}${major}$shared_ext'
18033 shlibpath_overrides_runpath=yes
18034 shlibpath_var=DYLD_LIBRARY_PATH
18035 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18036 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18037 if test "$GCC" = yes; then
18038 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18040 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18042 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18050 soname_spec='${libname}${release}${shared_ext}$major'
18051 shlibpath_var=LD_LIBRARY_PATH
18062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18063 soname_spec='${libname}${release}${shared_ext}$major'
18064 shlibpath_var=LD_LIBRARY_PATH
18065 shlibpath_overrides_runpath=no
18066 hardcode_into_libs=yes
18067 dynamic_linker='GNU ld.so'
18070 freebsd* | dragonfly*)
18071 # DragonFly does not have aout. When/if they implement a new
18072 # versioning mechanism, adjust this.
18073 if test -x /usr/bin/objformat; then
18074 objformat=`/usr/bin/objformat`
18077 freebsd[123]*) objformat=aout ;;
18078 *) objformat=elf ;;
18081 version_type=freebsd-$objformat
18082 case $version_type in
18084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18089 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18093 shlibpath_var=LD_LIBRARY_PATH
18096 shlibpath_overrides_runpath=yes
18098 freebsd3.[01]* | freebsdelf3.[01]*)
18099 shlibpath_overrides_runpath=yes
18100 hardcode_into_libs=yes
18102 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18103 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18104 shlibpath_overrides_runpath=no
18105 hardcode_into_libs=yes
18107 freebsd*) # from 4.6 on
18108 shlibpath_overrides_runpath=yes
18109 hardcode_into_libs=yes
18118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18119 soname_spec='${libname}${release}${shared_ext}$major'
18120 shlibpath_var=LD_LIBRARY_PATH
18121 hardcode_into_libs=yes
18124 hpux9* | hpux10* | hpux11*)
18125 # Give a soname corresponding to the major version so that dld.sl refuses to
18126 # link against other versions.
18133 hardcode_into_libs=yes
18134 dynamic_linker="$host_os dld.so"
18135 shlibpath_var=LD_LIBRARY_PATH
18136 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18138 soname_spec='${libname}${release}${shared_ext}$major'
18139 if test "X$HPUX_IA64_MODE" = X32; then
18140 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18142 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18144 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18148 hardcode_into_libs=yes
18149 dynamic_linker="$host_os dld.sl"
18150 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18151 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18153 soname_spec='${libname}${release}${shared_ext}$major'
18154 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18155 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18159 dynamic_linker="$host_os dld.sl"
18160 shlibpath_var=SHLIB_PATH
18161 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18163 soname_spec='${libname}${release}${shared_ext}$major'
18166 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18167 postinstall_cmds='chmod 555 $lib'
18174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18175 soname_spec='${libname}${release}${shared_ext}$major'
18176 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18177 shlibpath_var=LD_LIBRARY_PATH
18178 shlibpath_overrides_runpath=no
18179 hardcode_into_libs=yes
18182 irix5* | irix6* | nonstopux*)
18184 nonstopux*) version_type=nonstopux ;;
18186 if test "$lt_cv_prog_gnu_ld" = yes; then
18194 soname_spec='${libname}${release}${shared_ext}$major'
18195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18197 irix5* | nonstopux*)
18198 libsuff= shlibsuff=
18201 case $LD in # libtool.m4 will add one of these switches to LD
18202 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18203 libsuff= shlibsuff= libmagic=32-bit;;
18204 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18205 libsuff=32 shlibsuff=N32 libmagic=N32;;
18206 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18207 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18208 *) libsuff= shlibsuff= libmagic=never-match;;
18212 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18213 shlibpath_overrides_runpath=no
18214 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18215 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18216 hardcode_into_libs=yes
18219 # No shared lib support for Linux oldld, aout, or coff.
18220 linux*oldld* | linux*aout* | linux*coff*)
18224 # This must be Linux ELF.
18229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18230 soname_spec='${libname}${release}${shared_ext}$major'
18231 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18232 shlibpath_var=LD_LIBRARY_PATH
18233 shlibpath_overrides_runpath=no
18234 # This implies no fast_install, which is unacceptable.
18235 # Some rework will be needed to allow for fast_install
18236 # before this can be enabled.
18237 hardcode_into_libs=yes
18239 # Append ld.so.conf contents to the search path
18240 if test -f /etc/ld.so.conf; then
18241 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18242 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18245 # We used to test for /lib/ld.so.1 and disable shared libraries on
18246 # powerpc, because MkLinux only supported shared libraries with the
18247 # GNU dynamic linker. Since this was broken with cross compilers,
18248 # most powerpc-linux boxes support dynamic linking these days and
18249 # people can always --disable-shared, the test was removed, and we
18250 # assume the GNU/Linux dynamic linker is in use.
18251 dynamic_linker='GNU/Linux ld.so'
18258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18259 soname_spec='${libname}${release}${shared_ext}$major'
18260 shlibpath_var=LD_LIBRARY_PATH
18261 shlibpath_overrides_runpath=no
18262 hardcode_into_libs=yes
18263 dynamic_linker='GNU ld.so'
18270 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18272 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18273 dynamic_linker='NetBSD (a.out) ld.so'
18275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18276 soname_spec='${libname}${release}${shared_ext}$major'
18277 dynamic_linker='NetBSD ld.elf_so'
18279 shlibpath_var=LD_LIBRARY_PATH
18280 shlibpath_overrides_runpath=yes
18281 hardcode_into_libs=yes
18286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18287 shlibpath_var=LD_LIBRARY_PATH
18288 shlibpath_overrides_runpath=yes
18295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18296 soname_spec='${libname}${release}${shared_ext}$major'
18297 shlibpath_var=LD_LIBRARY_PATH
18298 shlibpath_overrides_runpath=yes
18303 sys_lib_dlsearch_path_spec="/usr/lib"
18305 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18307 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18308 *) need_version=no ;;
18310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18311 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18312 shlibpath_var=LD_LIBRARY_PATH
18313 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18315 openbsd2.[89] | openbsd2.[89].*)
18316 shlibpath_overrides_runpath=no
18319 shlibpath_overrides_runpath=yes
18323 shlibpath_overrides_runpath=yes
18328 libname_spec='$name'
18331 library_names_spec='$libname${shared_ext} $libname.a'
18332 dynamic_linker='OS/2 ld.exe'
18333 shlibpath_var=LIBPATH
18336 osf3* | osf4* | osf5*)
18340 soname_spec='${libname}${release}${shared_ext}$major'
18341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18342 shlibpath_var=LD_LIBRARY_PATH
18343 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18344 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18352 soname_spec='${libname}${release}${shared_ext}$major'
18353 shlibpath_var=LD_LIBRARY_PATH
18354 shlibpath_overrides_runpath=yes
18355 hardcode_into_libs=yes
18356 # ldd complains unless libraries are executable
18357 postinstall_cmds='chmod +x $lib'
18362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18363 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18364 shlibpath_var=LD_LIBRARY_PATH
18365 shlibpath_overrides_runpath=yes
18366 if test "$with_gnu_ld" = yes; then
18374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18375 soname_spec='${libname}${release}${shared_ext}$major'
18376 shlibpath_var=LD_LIBRARY_PATH
18377 case $host_vendor in
18379 shlibpath_overrides_runpath=no
18381 export_dynamic_flag_spec='${wl}-Blargedynsym'
18382 runpath_var=LD_RUN_PATH
18390 shlibpath_overrides_runpath=no
18391 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18397 if test -d /usr/nec ;then
18399 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18400 soname_spec='$libname${shared_ext}.$major'
18401 shlibpath_var=LD_LIBRARY_PATH
18405 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18406 version_type=freebsd-elf
18409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18410 soname_spec='${libname}${release}${shared_ext}$major'
18411 shlibpath_var=LD_LIBRARY_PATH
18412 hardcode_into_libs=yes
18413 if test "$with_gnu_ld" = yes; then
18414 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18415 shlibpath_overrides_runpath=no
18417 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18418 shlibpath_overrides_runpath=yes
18421 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18425 sys_lib_dlsearch_path_spec='/usr/lib'
18430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18431 soname_spec='${libname}${release}${shared_ext}$major'
18432 shlibpath_var=LD_LIBRARY_PATH
18439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18440 $as_echo "$dynamic_linker" >&6; }
18441 test "$dynamic_linker" = no && can_build_shared=no
18443 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18444 if test "$GCC" = yes; then
18445 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18449 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18450 hardcode_action_GCJ=
18451 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18452 test -n "$runpath_var_GCJ" || \
18453 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18455 # We can hardcode non-existant directories.
18456 if test "$hardcode_direct_GCJ" != no &&
18457 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18458 # have to relink, otherwise we might link with an installed library
18459 # when we should be linking with a yet-to-be-installed one
18460 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18461 test "$hardcode_minus_L_GCJ" != no; then
18462 # Linking always hardcodes the temporary library directory.
18463 hardcode_action_GCJ=relink
18465 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18466 hardcode_action_GCJ=immediate
18469 # We cannot hardcode anything, or else we can only hardcode existing
18471 hardcode_action_GCJ=unsupported
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
18474 $as_echo "$hardcode_action_GCJ" >&6; }
18476 if test "$hardcode_action_GCJ" = relink; then
18477 # Fast installation is not supported
18478 enable_fast_install=no
18479 elif test "$shlibpath_overrides_runpath" = yes ||
18480 test "$enable_shared" = no; then
18481 # Fast installation is not necessary
18482 enable_fast_install=needless
18486 # The else clause should only fire when bootstrapping the
18487 # libtool distribution, otherwise you forgot to ship ltmain.sh
18488 # with your package, and you will get complaints that there are
18489 # no rules to generate ltmain.sh.
18490 if test -f "$ltmain"; then
18491 # See if we are running on zsh, and set the options which allow our commands through
18492 # without removal of \ escapes.
18493 if test -n "${ZSH_VERSION+set}" ; then
18494 setopt NO_GLOB_SUBST
18496 # Now quote all the things that may contain metacharacters while being
18497 # careful not to overquote the AC_SUBSTed values. We take copies of the
18498 # variables and quote the copies for generation of the libtool script.
18499 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18501 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18502 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18503 deplibs_check_method reload_flag reload_cmds need_locks \
18504 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18505 lt_cv_sys_global_symbol_to_c_name_address \
18506 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18507 old_postinstall_cmds old_postuninstall_cmds \
18511 lt_prog_compiler_wl_GCJ \
18512 lt_prog_compiler_pic_GCJ \
18513 lt_prog_compiler_static_GCJ \
18514 lt_prog_compiler_no_builtin_flag_GCJ \
18515 export_dynamic_flag_spec_GCJ \
18516 thread_safe_flag_spec_GCJ \
18517 whole_archive_flag_spec_GCJ \
18518 enable_shared_with_static_runtimes_GCJ \
18519 old_archive_cmds_GCJ \
18520 old_archive_from_new_cmds_GCJ \
18521 predep_objects_GCJ \
18522 postdep_objects_GCJ \
18525 compiler_lib_search_path_GCJ \
18527 archive_expsym_cmds_GCJ \
18528 postinstall_cmds_GCJ \
18529 postuninstall_cmds_GCJ \
18530 old_archive_from_expsyms_cmds_GCJ \
18531 allow_undefined_flag_GCJ \
18532 no_undefined_flag_GCJ \
18533 export_symbols_cmds_GCJ \
18534 hardcode_libdir_flag_spec_GCJ \
18535 hardcode_libdir_flag_spec_ld_GCJ \
18536 hardcode_libdir_separator_GCJ \
18537 hardcode_automatic_GCJ \
18539 module_expsym_cmds_GCJ \
18540 lt_cv_prog_compiler_c_o_GCJ \
18541 exclude_expsyms_GCJ \
18542 include_expsyms_GCJ; do
18545 old_archive_cmds_GCJ | \
18546 old_archive_from_new_cmds_GCJ | \
18547 archive_cmds_GCJ | \
18548 archive_expsym_cmds_GCJ | \
18549 module_cmds_GCJ | \
18550 module_expsym_cmds_GCJ | \
18551 old_archive_from_expsyms_cmds_GCJ | \
18552 export_symbols_cmds_GCJ | \
18553 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18554 postinstall_cmds | postuninstall_cmds | \
18555 old_postinstall_cmds | old_postuninstall_cmds | \
18556 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18557 # Double-quote double-evaled strings.
18558 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18561 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18567 *'\$0 --fallback-echo"')
18568 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18574 cat <<__EOF__ >> "$cfgfile"
18575 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18577 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18579 # Shell to use when invoking shell scripts.
18582 # Whether or not to build shared libraries.
18583 build_libtool_libs=$enable_shared
18585 # Whether or not to build static libraries.
18586 build_old_libs=$enable_static
18588 # Whether or not to add -lc for building shared libraries.
18589 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18591 # Whether or not to disallow shared libs when runtime libs are static
18592 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18594 # Whether or not to optimize for fast installation.
18595 fast_install=$enable_fast_install
18598 host_alias=$host_alias
18602 # The build system.
18603 build_alias=$build_alias
18607 # An echo program that does not interpret backslashes.
18612 AR_FLAGS=$lt_AR_FLAGS
18617 # LTCC compiler flags.
18618 LTCFLAGS=$lt_LTCFLAGS
18620 # A language-specific compiler.
18621 CC=$lt_compiler_GCJ
18623 # Is the compiler the GNU C compiler?
18629 # The linker used to build libraries.
18632 # Whether we need hard or soft links.
18635 # A BSD-compatible nm program.
18638 # A symbol stripping program
18641 # Used to examine libraries when file_magic_cmd begins "file"
18642 MAGIC_CMD=$MAGIC_CMD
18644 # Used on cygwin: DLL creation program.
18647 # Used on cygwin: object dumper.
18650 # Used on cygwin: assembler.
18653 # The name of the directory that contains temporary libtool files.
18656 # How to create reloadable object files.
18657 reload_flag=$lt_reload_flag
18658 reload_cmds=$lt_reload_cmds
18660 # How to pass a linker flag through the compiler.
18661 wl=$lt_lt_prog_compiler_wl_GCJ
18663 # Object file suffix (normally "o").
18664 objext="$ac_objext"
18666 # Old archive suffix (normally "a").
18669 # Shared library suffix (normally ".so").
18670 shrext_cmds='$shrext_cmds'
18672 # Executable file suffix (normally "").
18675 # Additional compiler flags for building library objects.
18676 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18679 # What is the maximum length of a command?
18680 max_cmd_len=$lt_cv_sys_max_cmd_len
18682 # Does compiler simultaneously support -c and -o options?
18683 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18685 # Must we lock files when doing compilation?
18686 need_locks=$lt_need_locks
18688 # Do we need the lib prefix for modules?
18689 need_lib_prefix=$need_lib_prefix
18691 # Do we need a version for libraries?
18692 need_version=$need_version
18694 # Whether dlopen is supported.
18695 dlopen_support=$enable_dlopen
18697 # Whether dlopen of programs is supported.
18698 dlopen_self=$enable_dlopen_self
18700 # Whether dlopen of statically linked programs is supported.
18701 dlopen_self_static=$enable_dlopen_self_static
18703 # Compiler flag to prevent dynamic linking.
18704 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18706 # Compiler flag to turn off builtin functions.
18707 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18709 # Compiler flag to allow reflexive dlopens.
18710 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18712 # Compiler flag to generate shared objects directly from archives.
18713 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18715 # Compiler flag to generate thread-safe objects.
18716 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18718 # Library versioning type.
18719 version_type=$version_type
18721 # Format of library name prefix.
18722 libname_spec=$lt_libname_spec
18724 # List of archive names. First name is the real one, the rest are links.
18725 # The last name is the one that the linker finds with -lNAME.
18726 library_names_spec=$lt_library_names_spec
18728 # The coded name of the library, if different from the real name.
18729 soname_spec=$lt_soname_spec
18731 # Commands used to build and install an old-style archive.
18733 old_archive_cmds=$lt_old_archive_cmds_GCJ
18734 old_postinstall_cmds=$lt_old_postinstall_cmds
18735 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18737 # Create an old-style archive from a shared archive.
18738 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18740 # Create a temporary old-style archive to link instead of a shared archive.
18741 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18743 # Commands used to build and install a shared archive.
18744 archive_cmds=$lt_archive_cmds_GCJ
18745 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18746 postinstall_cmds=$lt_postinstall_cmds
18747 postuninstall_cmds=$lt_postuninstall_cmds
18749 # Commands used to build a loadable module (assumed same as above if empty)
18750 module_cmds=$lt_module_cmds_GCJ
18751 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18753 # Commands to strip libraries.
18754 old_striplib=$lt_old_striplib
18755 striplib=$lt_striplib
18757 # Dependencies to place before the objects being linked to create a
18759 predep_objects=$lt_predep_objects_GCJ
18761 # Dependencies to place after the objects being linked to create a
18763 postdep_objects=$lt_postdep_objects_GCJ
18765 # Dependencies to place before the objects being linked to create a
18767 predeps=$lt_predeps_GCJ
18769 # Dependencies to place after the objects being linked to create a
18771 postdeps=$lt_postdeps_GCJ
18773 # The library search path used internally by the compiler when linking
18774 # a shared library.
18775 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18777 # Method to check whether dependent libraries are shared objects.
18778 deplibs_check_method=$lt_deplibs_check_method
18780 # Command to use when deplibs_check_method == file_magic.
18781 file_magic_cmd=$lt_file_magic_cmd
18783 # Flag that allows shared libraries with undefined symbols to be built.
18784 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18786 # Flag that forces no undefined symbols.
18787 no_undefined_flag=$lt_no_undefined_flag_GCJ
18789 # Commands used to finish a libtool library installation in a directory.
18790 finish_cmds=$lt_finish_cmds
18792 # Same as above, but a single script fragment to be evaled but not shown.
18793 finish_eval=$lt_finish_eval
18795 # Take the output of nm and produce a listing of raw symbols and C names.
18796 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18798 # Transform the output of nm in a proper C declaration
18799 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18801 # Transform the output of nm in a C name address pair
18802 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18804 # This is the shared library runtime path variable.
18805 runpath_var=$runpath_var
18807 # This is the shared library path variable.
18808 shlibpath_var=$shlibpath_var
18810 # Is shlibpath searched before the hard-coded library search path?
18811 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18813 # How to hardcode a shared library path into an executable.
18814 hardcode_action=$hardcode_action_GCJ
18816 # Whether we should hardcode library paths into libraries.
18817 hardcode_into_libs=$hardcode_into_libs
18819 # Flag to hardcode \$libdir into a binary during linking.
18820 # This must work even if \$libdir does not exist.
18821 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18823 # If ld is used when linking, flag to hardcode \$libdir into
18824 # a binary during linking. This must work even if \$libdir does
18826 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18828 # Whether we need a single -rpath flag with a separated argument.
18829 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18831 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18832 # resulting binary.
18833 hardcode_direct=$hardcode_direct_GCJ
18835 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18836 # resulting binary.
18837 hardcode_minus_L=$hardcode_minus_L_GCJ
18839 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18840 # the resulting binary.
18841 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18843 # Set to yes if building a shared library automatically hardcodes DIR into the library
18844 # and all subsequent libraries and executables linked against it.
18845 hardcode_automatic=$hardcode_automatic_GCJ
18847 # Variables whose values should be saved in libtool wrapper scripts and
18848 # restored at relink time.
18849 variables_saved_for_relink="$variables_saved_for_relink"
18851 # Whether libtool must link a program against all its dependency libraries.
18852 link_all_deplibs=$link_all_deplibs_GCJ
18854 # Compile-time system search path for libraries
18855 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18857 # Run-time system search path for libraries
18858 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18860 # Fix the shell variable \$srcfile for the compiler.
18861 fix_srcfile_path="$fix_srcfile_path_GCJ"
18863 # Set to yes if exported symbols are required.
18864 always_export_symbols=$always_export_symbols_GCJ
18866 # The commands to list exported symbols.
18867 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18869 # The commands to extract the exported symbol list from a shared archive.
18870 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18872 # Symbols that should not be listed in the preloaded symbols.
18873 exclude_expsyms=$lt_exclude_expsyms_GCJ
18875 # Symbols that must always be exported.
18876 include_expsyms=$lt_include_expsyms_GCJ
18878 # ### END LIBTOOL TAG CONFIG: $tagname
18884 # If there is no Makefile yet, we rely on a make rule to execute
18885 # `config.status --recheck' to rerun these tests and create the
18886 # libtool script then.
18887 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18888 if test -f "$ltmain_in"; then
18889 test -f Makefile && make "$ltmain"
18895 ac_cpp='$CPP $CPPFLAGS'
18896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18910 # Source file extension for RC test sources.
18913 # Object file extension for compiled RC test sources.
18917 # Code to be used in simple compile tests
18918 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18920 # Code to be used in simple link tests
18921 lt_simple_link_test_code="$lt_simple_compile_test_code"
18923 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18925 # If no C compiler was specified, use CC.
18928 # If no C compiler flags were specified, use CFLAGS.
18929 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18931 # Allow CC to be a program name with arguments.
18935 # save warnings/boilerplate of simple test code
18936 ac_outfile=conftest.$ac_objext
18937 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18938 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18939 _lt_compiler_boilerplate=`cat conftest.err`
18942 ac_outfile=conftest.$ac_objext
18943 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18944 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18945 _lt_linker_boilerplate=`cat conftest.err`
18949 # Allow CC to be a program name with arguments.
18954 for cc_temp in $compiler""; do
18956 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18957 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18962 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18964 lt_cv_prog_compiler_c_o_RC=yes
18966 # The else clause should only fire when bootstrapping the
18967 # libtool distribution, otherwise you forgot to ship ltmain.sh
18968 # with your package, and you will get complaints that there are
18969 # no rules to generate ltmain.sh.
18970 if test -f "$ltmain"; then
18971 # See if we are running on zsh, and set the options which allow our commands through
18972 # without removal of \ escapes.
18973 if test -n "${ZSH_VERSION+set}" ; then
18974 setopt NO_GLOB_SUBST
18976 # Now quote all the things that may contain metacharacters while being
18977 # careful not to overquote the AC_SUBSTed values. We take copies of the
18978 # variables and quote the copies for generation of the libtool script.
18979 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18981 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18982 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18983 deplibs_check_method reload_flag reload_cmds need_locks \
18984 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18985 lt_cv_sys_global_symbol_to_c_name_address \
18986 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18987 old_postinstall_cmds old_postuninstall_cmds \
18991 lt_prog_compiler_wl_RC \
18992 lt_prog_compiler_pic_RC \
18993 lt_prog_compiler_static_RC \
18994 lt_prog_compiler_no_builtin_flag_RC \
18995 export_dynamic_flag_spec_RC \
18996 thread_safe_flag_spec_RC \
18997 whole_archive_flag_spec_RC \
18998 enable_shared_with_static_runtimes_RC \
18999 old_archive_cmds_RC \
19000 old_archive_from_new_cmds_RC \
19001 predep_objects_RC \
19002 postdep_objects_RC \
19005 compiler_lib_search_path_RC \
19007 archive_expsym_cmds_RC \
19008 postinstall_cmds_RC \
19009 postuninstall_cmds_RC \
19010 old_archive_from_expsyms_cmds_RC \
19011 allow_undefined_flag_RC \
19012 no_undefined_flag_RC \
19013 export_symbols_cmds_RC \
19014 hardcode_libdir_flag_spec_RC \
19015 hardcode_libdir_flag_spec_ld_RC \
19016 hardcode_libdir_separator_RC \
19017 hardcode_automatic_RC \
19019 module_expsym_cmds_RC \
19020 lt_cv_prog_compiler_c_o_RC \
19021 exclude_expsyms_RC \
19022 include_expsyms_RC; do
19025 old_archive_cmds_RC | \
19026 old_archive_from_new_cmds_RC | \
19027 archive_cmds_RC | \
19028 archive_expsym_cmds_RC | \
19030 module_expsym_cmds_RC | \
19031 old_archive_from_expsyms_cmds_RC | \
19032 export_symbols_cmds_RC | \
19033 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19034 postinstall_cmds | postuninstall_cmds | \
19035 old_postinstall_cmds | old_postuninstall_cmds | \
19036 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19037 # Double-quote double-evaled strings.
19038 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19041 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19047 *'\$0 --fallback-echo"')
19048 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19054 cat <<__EOF__ >> "$cfgfile"
19055 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19057 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19059 # Shell to use when invoking shell scripts.
19062 # Whether or not to build shared libraries.
19063 build_libtool_libs=$enable_shared
19065 # Whether or not to build static libraries.
19066 build_old_libs=$enable_static
19068 # Whether or not to add -lc for building shared libraries.
19069 build_libtool_need_lc=$archive_cmds_need_lc_RC
19071 # Whether or not to disallow shared libs when runtime libs are static
19072 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19074 # Whether or not to optimize for fast installation.
19075 fast_install=$enable_fast_install
19078 host_alias=$host_alias
19082 # The build system.
19083 build_alias=$build_alias
19087 # An echo program that does not interpret backslashes.
19092 AR_FLAGS=$lt_AR_FLAGS
19097 # LTCC compiler flags.
19098 LTCFLAGS=$lt_LTCFLAGS
19100 # A language-specific compiler.
19103 # Is the compiler the GNU C compiler?
19109 # The linker used to build libraries.
19112 # Whether we need hard or soft links.
19115 # A BSD-compatible nm program.
19118 # A symbol stripping program
19121 # Used to examine libraries when file_magic_cmd begins "file"
19122 MAGIC_CMD=$MAGIC_CMD
19124 # Used on cygwin: DLL creation program.
19127 # Used on cygwin: object dumper.
19130 # Used on cygwin: assembler.
19133 # The name of the directory that contains temporary libtool files.
19136 # How to create reloadable object files.
19137 reload_flag=$lt_reload_flag
19138 reload_cmds=$lt_reload_cmds
19140 # How to pass a linker flag through the compiler.
19141 wl=$lt_lt_prog_compiler_wl_RC
19143 # Object file suffix (normally "o").
19144 objext="$ac_objext"
19146 # Old archive suffix (normally "a").
19149 # Shared library suffix (normally ".so").
19150 shrext_cmds='$shrext_cmds'
19152 # Executable file suffix (normally "").
19155 # Additional compiler flags for building library objects.
19156 pic_flag=$lt_lt_prog_compiler_pic_RC
19159 # What is the maximum length of a command?
19160 max_cmd_len=$lt_cv_sys_max_cmd_len
19162 # Does compiler simultaneously support -c and -o options?
19163 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19165 # Must we lock files when doing compilation?
19166 need_locks=$lt_need_locks
19168 # Do we need the lib prefix for modules?
19169 need_lib_prefix=$need_lib_prefix
19171 # Do we need a version for libraries?
19172 need_version=$need_version
19174 # Whether dlopen is supported.
19175 dlopen_support=$enable_dlopen
19177 # Whether dlopen of programs is supported.
19178 dlopen_self=$enable_dlopen_self
19180 # Whether dlopen of statically linked programs is supported.
19181 dlopen_self_static=$enable_dlopen_self_static
19183 # Compiler flag to prevent dynamic linking.
19184 link_static_flag=$lt_lt_prog_compiler_static_RC
19186 # Compiler flag to turn off builtin functions.
19187 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19189 # Compiler flag to allow reflexive dlopens.
19190 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19192 # Compiler flag to generate shared objects directly from archives.
19193 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19195 # Compiler flag to generate thread-safe objects.
19196 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19198 # Library versioning type.
19199 version_type=$version_type
19201 # Format of library name prefix.
19202 libname_spec=$lt_libname_spec
19204 # List of archive names. First name is the real one, the rest are links.
19205 # The last name is the one that the linker finds with -lNAME.
19206 library_names_spec=$lt_library_names_spec
19208 # The coded name of the library, if different from the real name.
19209 soname_spec=$lt_soname_spec
19211 # Commands used to build and install an old-style archive.
19213 old_archive_cmds=$lt_old_archive_cmds_RC
19214 old_postinstall_cmds=$lt_old_postinstall_cmds
19215 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19217 # Create an old-style archive from a shared archive.
19218 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19220 # Create a temporary old-style archive to link instead of a shared archive.
19221 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19223 # Commands used to build and install a shared archive.
19224 archive_cmds=$lt_archive_cmds_RC
19225 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19226 postinstall_cmds=$lt_postinstall_cmds
19227 postuninstall_cmds=$lt_postuninstall_cmds
19229 # Commands used to build a loadable module (assumed same as above if empty)
19230 module_cmds=$lt_module_cmds_RC
19231 module_expsym_cmds=$lt_module_expsym_cmds_RC
19233 # Commands to strip libraries.
19234 old_striplib=$lt_old_striplib
19235 striplib=$lt_striplib
19237 # Dependencies to place before the objects being linked to create a
19239 predep_objects=$lt_predep_objects_RC
19241 # Dependencies to place after the objects being linked to create a
19243 postdep_objects=$lt_postdep_objects_RC
19245 # Dependencies to place before the objects being linked to create a
19247 predeps=$lt_predeps_RC
19249 # Dependencies to place after the objects being linked to create a
19251 postdeps=$lt_postdeps_RC
19253 # The library search path used internally by the compiler when linking
19254 # a shared library.
19255 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19257 # Method to check whether dependent libraries are shared objects.
19258 deplibs_check_method=$lt_deplibs_check_method
19260 # Command to use when deplibs_check_method == file_magic.
19261 file_magic_cmd=$lt_file_magic_cmd
19263 # Flag that allows shared libraries with undefined symbols to be built.
19264 allow_undefined_flag=$lt_allow_undefined_flag_RC
19266 # Flag that forces no undefined symbols.
19267 no_undefined_flag=$lt_no_undefined_flag_RC
19269 # Commands used to finish a libtool library installation in a directory.
19270 finish_cmds=$lt_finish_cmds
19272 # Same as above, but a single script fragment to be evaled but not shown.
19273 finish_eval=$lt_finish_eval
19275 # Take the output of nm and produce a listing of raw symbols and C names.
19276 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19278 # Transform the output of nm in a proper C declaration
19279 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19281 # Transform the output of nm in a C name address pair
19282 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19284 # This is the shared library runtime path variable.
19285 runpath_var=$runpath_var
19287 # This is the shared library path variable.
19288 shlibpath_var=$shlibpath_var
19290 # Is shlibpath searched before the hard-coded library search path?
19291 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19293 # How to hardcode a shared library path into an executable.
19294 hardcode_action=$hardcode_action_RC
19296 # Whether we should hardcode library paths into libraries.
19297 hardcode_into_libs=$hardcode_into_libs
19299 # Flag to hardcode \$libdir into a binary during linking.
19300 # This must work even if \$libdir does not exist.
19301 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19303 # If ld is used when linking, flag to hardcode \$libdir into
19304 # a binary during linking. This must work even if \$libdir does
19306 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19308 # Whether we need a single -rpath flag with a separated argument.
19309 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19311 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19312 # resulting binary.
19313 hardcode_direct=$hardcode_direct_RC
19315 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19316 # resulting binary.
19317 hardcode_minus_L=$hardcode_minus_L_RC
19319 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19320 # the resulting binary.
19321 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19323 # Set to yes if building a shared library automatically hardcodes DIR into the library
19324 # and all subsequent libraries and executables linked against it.
19325 hardcode_automatic=$hardcode_automatic_RC
19327 # Variables whose values should be saved in libtool wrapper scripts and
19328 # restored at relink time.
19329 variables_saved_for_relink="$variables_saved_for_relink"
19331 # Whether libtool must link a program against all its dependency libraries.
19332 link_all_deplibs=$link_all_deplibs_RC
19334 # Compile-time system search path for libraries
19335 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19337 # Run-time system search path for libraries
19338 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19340 # Fix the shell variable \$srcfile for the compiler.
19341 fix_srcfile_path="$fix_srcfile_path_RC"
19343 # Set to yes if exported symbols are required.
19344 always_export_symbols=$always_export_symbols_RC
19346 # The commands to list exported symbols.
19347 export_symbols_cmds=$lt_export_symbols_cmds_RC
19349 # The commands to extract the exported symbol list from a shared archive.
19350 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19352 # Symbols that should not be listed in the preloaded symbols.
19353 exclude_expsyms=$lt_exclude_expsyms_RC
19355 # Symbols that must always be exported.
19356 include_expsyms=$lt_include_expsyms_RC
19358 # ### END LIBTOOL TAG CONFIG: $tagname
19364 # If there is no Makefile yet, we rely on a make rule to execute
19365 # `config.status --recheck' to rerun these tests and create the
19366 # libtool script then.
19367 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19368 if test -f "$ltmain_in"; then
19369 test -f Makefile && make "$ltmain"
19375 ac_cpp='$CPP $CPPFLAGS'
19376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19385 as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
19389 # Append the new tag name to the list of available tags.
19390 if test -n "$tagname" ; then
19391 available_tags="$available_tags $tagname"
19397 # Now substitute the updated list of available tags.
19398 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19399 mv "${ofile}T" "$ofile"
19403 as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
19409 # This can be used to rebuild libtool when needed
19410 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19412 # Always use our own libtool.
19413 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19415 # Prevent multiple expansion
19436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
19437 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
19438 if test -z "$MKDIR_P"; then
19439 if ${ac_cv_path_mkdir+:} false; then :
19440 $as_echo_n "(cached) " >&6
19442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19443 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
19446 test -z "$as_dir" && as_dir=.
19447 for ac_prog in mkdir gmkdir; do
19448 for ac_exec_ext in '' $ac_executable_extensions; do
19449 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
19450 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
19451 'mkdir (GNU coreutils) '* | \
19452 'mkdir (coreutils) '* | \
19453 'mkdir (fileutils) '4.1*)
19454 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
19464 test -d ./--version && rmdir ./--version
19465 if test "${ac_cv_path_mkdir+set}" = set; then
19466 MKDIR_P="$ac_cv_path_mkdir -p"
19468 # As a last resort, use the slow shell script. Don't cache a
19469 # value for MKDIR_P within a source directory, because that will
19470 # break other packages using the cache if that directory is
19471 # removed, or if the value is a relative name.
19472 MKDIR_P="$ac_install_sh -d"
19475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
19476 $as_echo "$MKDIR_P" >&6; }
19479 # Check for library functions that SQLite can optionally use.
19480 for ac_func in fdatasync usleep fullfsync localtime_r gmtime_r
19482 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19483 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19484 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19485 cat >>confdefs.h <<_ACEOF
19486 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19492 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
19493 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
19499 cat >>confdefs.h <<_ACEOF
19500 #define HAVE_DECL_STRERROR_R $ac_have_decl
19503 for ac_func in strerror_r
19505 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
19506 if test "x$ac_cv_func_strerror_r" = xyes; then :
19507 cat >>confdefs.h <<_ACEOF
19508 #define HAVE_STRERROR_R 1
19514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
19515 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
19516 if ${ac_cv_func_strerror_r_char_p+:} false; then :
19517 $as_echo_n "(cached) " >&6
19520 ac_cv_func_strerror_r_char_p=no
19521 if test $ac_cv_have_decl_strerror_r = yes; then
19522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19523 /* end confdefs.h. */
19524 $ac_includes_default
19530 char x = *strerror_r (0, buf, sizeof buf);
19531 char *p = strerror_r (0, buf, sizeof buf);
19538 if ac_fn_c_try_compile "$LINENO"; then :
19539 ac_cv_func_strerror_r_char_p=yes
19541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19543 # strerror_r is not declared. Choose between
19544 # systems that have relatively inaccessible declarations for the
19545 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
19546 # former has a strerror_r that returns char*, while the latter
19547 # has a strerror_r that returns `int'.
19548 # This test should segfault on the DEC system.
19549 if test "$cross_compiling" = yes; then :
19552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19553 /* end confdefs.h. */
19554 $ac_includes_default
19555 extern char *strerror_r ();
19560 char x = *strerror_r (0, buf, sizeof buf);
19561 return ! isalpha (x);
19566 if ac_fn_c_try_run "$LINENO"; then :
19567 ac_cv_func_strerror_r_char_p=yes
19569 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19570 conftest.$ac_objext conftest.beam conftest.$ac_ext
19576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
19577 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
19578 if test $ac_cv_func_strerror_r_char_p = yes; then
19580 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
19585 ac_config_files="$ac_config_files Makefile sqlite3.pc"
19589 #-----------------------------------------------------------------------
19590 # --enable-readline
19592 # Check whether --enable-readline was given.
19593 if test "${enable_readline+set}" = set; then :
19594 enableval=$enable_readline;
19596 enable_readline=yes
19599 if test x"$enable_readline" != xno ; then
19602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
19603 $as_echo_n "checking for library containing tgetent... " >&6; }
19604 if ${ac_cv_search_tgetent+:} false; then :
19605 $as_echo_n "(cached) " >&6
19607 ac_func_search_save_LIBS=$LIBS
19608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19609 /* end confdefs.h. */
19611 /* Override any GCC internal prototype to avoid an error.
19612 Use char because int might match the return type of a GCC
19613 builtin and then its argument prototype would still apply. */
19626 for ac_lib in '' curses ncurses ncursesw; do
19627 if test -z "$ac_lib"; then
19628 ac_res="none required"
19631 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19633 if ac_fn_c_try_link "$LINENO"; then :
19634 ac_cv_search_tgetent=$ac_res
19636 rm -f core conftest.err conftest.$ac_objext \
19638 if ${ac_cv_search_tgetent+:} false; then :
19642 if ${ac_cv_search_tgetent+:} false; then :
19645 ac_cv_search_tgetent=no
19647 rm conftest.$ac_ext
19648 LIBS=$ac_func_search_save_LIBS
19650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
19651 $as_echo "$ac_cv_search_tgetent" >&6; }
19652 ac_res=$ac_cv_search_tgetent
19653 if test "$ac_res" != no; then :
19654 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
19659 $as_echo_n "checking for library containing readline... " >&6; }
19660 if ${ac_cv_search_readline+:} false; then :
19661 $as_echo_n "(cached) " >&6
19663 ac_func_search_save_LIBS=$LIBS
19664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19665 /* end confdefs.h. */
19667 /* Override any GCC internal prototype to avoid an error.
19668 Use char because int might match the return type of a GCC
19669 builtin and then its argument prototype would still apply. */
19677 return readline ();
19682 for ac_lib in '' readline; do
19683 if test -z "$ac_lib"; then
19684 ac_res="none required"
19687 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19689 if ac_fn_c_try_link "$LINENO"; then :
19690 ac_cv_search_readline=$ac_res
19692 rm -f core conftest.err conftest.$ac_objext \
19694 if ${ac_cv_search_readline+:} false; then :
19698 if ${ac_cv_search_readline+:} false; then :
19701 ac_cv_search_readline=no
19703 rm conftest.$ac_ext
19704 LIBS=$ac_func_search_save_LIBS
19706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
19707 $as_echo "$ac_cv_search_readline" >&6; }
19708 ac_res=$ac_cv_search_readline
19709 if test "$ac_res" != no; then :
19710 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19716 for ac_func in readline
19718 ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
19719 if test "x$ac_cv_func_readline" = xyes; then :
19720 cat >>confdefs.h <<_ACEOF
19721 #define HAVE_READLINE 1
19727 READLINE_LIBS=$LIBS
19731 #-----------------------------------------------------------------------
19733 #-----------------------------------------------------------------------
19734 # --enable-threadsafe
19736 # Check whether --enable-threadsafe was given.
19737 if test "${enable_threadsafe+set}" = set; then :
19738 enableval=$enable_threadsafe;
19740 enable_threadsafe=yes
19743 THREADSAFE_FLAGS=-DSQLITE_THREADSAFE=0
19744 if test x"$enable_threadsafe" != "xno"; then
19745 THREADSAFE_FLAGS="-D_REENTRANT=1 -DSQLITE_THREADSAFE=1"
19746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
19747 $as_echo_n "checking for library containing pthread_create... " >&6; }
19748 if ${ac_cv_search_pthread_create+:} false; then :
19749 $as_echo_n "(cached) " >&6
19751 ac_func_search_save_LIBS=$LIBS
19752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19753 /* end confdefs.h. */
19755 /* Override any GCC internal prototype to avoid an error.
19756 Use char because int might match the return type of a GCC
19757 builtin and then its argument prototype would still apply. */
19761 char pthread_create ();
19765 return pthread_create ();
19770 for ac_lib in '' pthread; do
19771 if test -z "$ac_lib"; then
19772 ac_res="none required"
19775 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19777 if ac_fn_c_try_link "$LINENO"; then :
19778 ac_cv_search_pthread_create=$ac_res
19780 rm -f core conftest.err conftest.$ac_objext \
19782 if ${ac_cv_search_pthread_create+:} false; then :
19786 if ${ac_cv_search_pthread_create+:} false; then :
19789 ac_cv_search_pthread_create=no
19791 rm conftest.$ac_ext
19792 LIBS=$ac_func_search_save_LIBS
19794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
19795 $as_echo "$ac_cv_search_pthread_create" >&6; }
19796 ac_res=$ac_cv_search_pthread_create
19797 if test "$ac_res" != no; then :
19798 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19804 #-----------------------------------------------------------------------
19806 #-----------------------------------------------------------------------
19807 # --enable-dynamic-extensions
19809 # Check whether --enable-dynamic-extensions was given.
19810 if test "${enable_dynamic_extensions+set}" = set; then :
19811 enableval=$enable_dynamic_extensions;
19813 enable_dynamic_extensions=yes
19816 if test x"$enable_dynamic_extensions" != "xno"; then
19817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
19818 $as_echo_n "checking for library containing dlopen... " >&6; }
19819 if ${ac_cv_search_dlopen+:} false; then :
19820 $as_echo_n "(cached) " >&6
19822 ac_func_search_save_LIBS=$LIBS
19823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19824 /* end confdefs.h. */
19826 /* Override any GCC internal prototype to avoid an error.
19827 Use char because int might match the return type of a GCC
19828 builtin and then its argument prototype would still apply. */
19841 for ac_lib in '' dl; do
19842 if test -z "$ac_lib"; then
19843 ac_res="none required"
19846 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19848 if ac_fn_c_try_link "$LINENO"; then :
19849 ac_cv_search_dlopen=$ac_res
19851 rm -f core conftest.err conftest.$ac_objext \
19853 if ${ac_cv_search_dlopen+:} false; then :
19857 if ${ac_cv_search_dlopen+:} false; then :
19860 ac_cv_search_dlopen=no
19862 rm conftest.$ac_ext
19863 LIBS=$ac_func_search_save_LIBS
19865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19866 $as_echo "$ac_cv_search_dlopen" >&6; }
19867 ac_res=$ac_cv_search_dlopen
19868 if test "$ac_res" != no; then :
19869 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19874 DYNAMIC_EXTENSION_FLAGS=-DSQLITE_OMIT_LOAD_EXTENSION=1
19876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for whether to support dynamic extensions" >&5
19877 $as_echo_n "checking for whether to support dynamic extensions... " >&6; }
19878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dynamic_extensions" >&5
19879 $as_echo "$enable_dynamic_extensions" >&6; }
19881 #-----------------------------------------------------------------------
19883 for ac_func in posix_fallocate
19885 ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
19886 if test "x$ac_cv_func_posix_fallocate" = xyes; then :
19887 cat >>confdefs.h <<_ACEOF
19888 #define HAVE_POSIX_FALLOCATE 1
19895 #-----------------------------------------------------------------------
19896 # UPDATE: Maybe it's better if users just set CFLAGS before invoking
19897 # configure. This option doesn't really add much...
19899 # --enable-tempstore
19901 # AC_ARG_ENABLE(tempstore, [AS_HELP_STRING(
19902 # [--enable-tempstore],
19903 # [in-memory temporary tables (never, no, yes, always) [default=no]])],
19904 # [], [enable_tempstore=no])
19905 # AC_MSG_CHECKING([for whether or not to store temp tables in-memory])
19906 # case "$enable_tempstore" in
19907 # never ) TEMP_STORE=0 ;;
19908 # no ) TEMP_STORE=1 ;;
19909 # always ) TEMP_STORE=3 ;;
19910 # yes ) TEMP_STORE=3 ;;
19913 # enable_tempstore=yes
19916 # AC_MSG_RESULT($enable_tempstore)
19917 # AC_SUBST(TEMP_STORE)
19918 #-----------------------------------------------------------------------
19920 cat >confcache <<\_ACEOF
19921 # This file is a shell script that caches the results of configure
19922 # tests run on this system so they can be shared between configure
19923 # scripts and configure runs, see configure's option --config-cache.
19924 # It is not useful on other systems. If it contains results you don't
19925 # want to keep, you may remove or edit it.
19927 # config.status only pays attention to the cache file if you give it
19928 # the --recheck option to rerun configure.
19930 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19931 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19932 # following values.
19936 # The following way of writing the cache mishandles newlines in values,
19937 # but we know of no workaround that is simple, portable, and efficient.
19938 # So, we kill variables containing newlines.
19939 # Ultrix sh set writes to stderr and can't be redirected directly,
19940 # and sets the high bit in the cache file unless we assign to the vars.
19942 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19943 eval ac_val=\$$ac_var
19947 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19948 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19951 _ | IFS | as_nl) ;; #(
19952 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19953 *) { eval $ac_var=; unset $ac_var;} ;;
19959 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19960 *${as_nl}ac_space=\ *)
19961 # `set' does not quote correctly, so add quotes: double-quote
19962 # substitution turns \\\\ into \\, and sed turns \\ into \.
19965 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19968 # `set' quotes correctly as required by POSIX, so do not add quotes.
19969 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19978 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19980 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19982 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19983 if test -w "$cache_file"; then
19984 if test "x$cache_file" != "x/dev/null"; then
19985 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19986 $as_echo "$as_me: updating cache $cache_file" >&6;}
19987 if test ! -f "$cache_file" || test -h "$cache_file"; then
19988 cat confcache >"$cache_file"
19990 case $cache_file in #(
19992 mv -f confcache "$cache_file"$$ &&
19993 mv -f "$cache_file"$$ "$cache_file" ;; #(
19995 mv -f confcache "$cache_file" ;;
20000 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20001 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20006 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20007 # Let make expand exec_prefix.
20008 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20010 # Transform confdefs.h into DEFS.
20011 # Protect against shell expansion while executing Makefile rules.
20012 # Protect against Makefile macro expansion.
20014 # If the first sed substitution is executed (which looks for macros that
20015 # take arguments), then branch to the quote section. Otherwise,
20016 # look for a macro that doesn't take arguments.
20026 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
20028 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
20032 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
20045 DEFS=`sed -n "$ac_script" confdefs.h`
20051 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20052 # 1. Remove the extension, and $U if already installed.
20053 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20054 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20055 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20056 # will be set to the directory where LIBOBJS objects are built.
20057 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20058 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20060 LIBOBJS=$ac_libobjs
20062 LTLIBOBJS=$ac_ltlibobjs
20065 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20066 as_fn_error $? "conditional \"AMDEP\" was never defined.
20067 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20069 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20070 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20071 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20073 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20074 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20075 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20077 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20078 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20079 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20082 : "${CONFIG_STATUS=./config.status}"
20084 ac_clean_files_save=$ac_clean_files
20085 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20086 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20087 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20089 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20091 # Generated by $as_me.
20092 # Run this file to recreate the current configuration.
20093 # Compiler output produced by configure, useful for debugging
20094 # configure, is in config.log if it exists.
20097 ac_cs_recheck=false
20100 SHELL=\${CONFIG_SHELL-$SHELL}
20103 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20104 ## -------------------- ##
20105 ## M4sh Initialization. ##
20106 ## -------------------- ##
20108 # Be more Bourne compatible
20109 DUALCASE=1; export DUALCASE # for MKS sh
20110 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20113 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20114 # is contrary to our usage. Disable this feature.
20115 alias -g '${1+"$@"}'='"$@"'
20116 setopt NO_GLOB_SUBST
20118 case `(set -o) 2>/dev/null` in #(
20130 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20131 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20132 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20133 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20134 # Prefer a ksh shell builtin over an external printf program on Solaris,
20135 # but without wasting forks for bash or zsh.
20136 if test -z "$BASH_VERSION$ZSH_VERSION" \
20137 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20138 as_echo='print -r --'
20139 as_echo_n='print -rn --'
20140 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20141 as_echo='printf %s\n'
20142 as_echo_n='printf %s'
20144 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20145 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20146 as_echo_n='/usr/ucb/echo -n'
20148 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20149 as_echo_n_body='eval
20153 expr "X$arg" : "X\\(.*\\)$as_nl";
20154 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20156 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20158 export as_echo_n_body
20159 as_echo_n='sh -c $as_echo_n_body as_echo'
20161 export as_echo_body
20162 as_echo='sh -c $as_echo_body as_echo'
20165 # The user is always right.
20166 if test "${PATH_SEPARATOR+set}" != set; then
20168 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20169 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20176 # We need space, tab and new line, in precisely that order. Quoting is
20177 # there to prevent editors from complaining about space-tab.
20178 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20179 # splitting by setting IFS to empty value.)
20182 # Find who we are. Look in the path if we contain no directory separator.
20185 *[\\/]* ) as_myself=$0 ;;
20186 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20187 for as_dir in $PATH
20190 test -z "$as_dir" && as_dir=.
20191 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20197 # We did not find ourselves, most probably we were run as `sh COMMAND'
20198 # in which case we are not to be found in the path.
20199 if test "x$as_myself" = x; then
20202 if test ! -f "$as_myself"; then
20203 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20207 # Unset variables that we do not need and which cause bugs (e.g. in
20208 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20209 # suppresses any "Segmentation fault" message there. '((' could
20210 # trigger a bug in pdksh 5.2.14.
20211 for as_var in BASH_ENV ENV MAIL MAILPATH
20212 do eval test x\${$as_var+set} = xset \
20213 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20226 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20229 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20230 # ----------------------------------------
20231 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20232 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20233 # script with STATUS, using 1 if that was 0.
20236 as_status=$1; test $as_status -eq 0 && as_status=1
20238 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20239 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20241 $as_echo "$as_me: error: $2" >&2
20242 as_fn_exit $as_status
20246 # as_fn_set_status STATUS
20247 # -----------------------
20248 # Set $? to STATUS, without forking.
20249 as_fn_set_status ()
20252 } # as_fn_set_status
20254 # as_fn_exit STATUS
20255 # -----------------
20256 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20260 as_fn_set_status $1
20266 # Portably unset VAR.
20269 { eval $1=; unset $1;}
20271 as_unset=as_fn_unset
20272 # as_fn_append VAR VALUE
20273 # ----------------------
20274 # Append the text in VALUE to the end of the definition contained in VAR. Take
20275 # advantage of any shell optimizations that allow amortized linear growth over
20276 # repeated appends, instead of the typical quadratic growth present in naive
20278 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20279 eval 'as_fn_append ()
20290 # as_fn_arith ARG...
20291 # ------------------
20292 # Perform arithmetic evaluation on the ARGs, and store the result in the
20293 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20294 # must be portable across $(()) and expr.
20295 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20296 eval 'as_fn_arith ()
20303 as_val=`expr "$@" || test $? -eq 1`
20308 if expr a : '\(a\)' >/dev/null 2>&1 &&
20309 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20315 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20316 as_basename=basename
20321 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20327 as_me=`$as_basename -- "$0" ||
20328 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20329 X"$0" : 'X\(//\)$' \| \
20330 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20332 sed '/^.*\/\([^/][^/]*\)\/*$/{
20346 # Avoid depending upon Character Ranges.
20347 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20348 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20349 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20350 as_cr_digits='0123456789'
20351 as_cr_alnum=$as_cr_Letters$as_cr_digits
20353 ECHO_C= ECHO_N= ECHO_T=
20354 case `echo -n x` in #(((((
20356 case `echo 'xy\c'` in
20357 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20359 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20366 rm -f conf$$ conf$$.exe conf$$.file
20367 if test -d conf$$.dir; then
20368 rm -f conf$$.dir/conf$$.file
20371 mkdir conf$$.dir 2>/dev/null
20373 if (echo >conf$$.file) 2>/dev/null; then
20374 if ln -s conf$$.file conf$$ 2>/dev/null; then
20376 # ... but there are two gotchas:
20377 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20378 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20379 # In both cases, we have to default to `cp -p'.
20380 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20382 elif ln conf$$.file conf$$ 2>/dev/null; then
20390 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20391 rmdir conf$$.dir 2>/dev/null
20396 # Create "$as_dir" as a directory, including parents if necessary.
20401 -*) as_dir=./$as_dir;;
20403 test -d "$as_dir" || eval $as_mkdir_p || {
20407 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20408 *) as_qdir=$as_dir;;
20410 as_dirs="'$as_qdir' $as_dirs"
20411 as_dir=`$as_dirname -- "$as_dir" ||
20412 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20413 X"$as_dir" : 'X\(//\)[^/]' \| \
20414 X"$as_dir" : 'X\(//\)$' \| \
20415 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20416 $as_echo X"$as_dir" |
20417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20421 /^X\(\/\/\)[^/].*/{
20434 test -d "$as_dir" && break
20436 test -z "$as_dirs" || eval "mkdir $as_dirs"
20437 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20441 if mkdir -p . 2>/dev/null; then
20442 as_mkdir_p='mkdir -p "$as_dir"'
20444 test -d ./-p && rmdir ./-p
20448 if test -x / >/dev/null 2>&1; then
20449 as_test_x='test -x'
20451 if ls -dL / >/dev/null 2>&1; then
20458 if test -d "$1"; then
20464 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20465 ???[sx]*):;;*)false;;esac;fi
20469 as_executable_p=$as_test_x
20471 # Sed expression to map a string onto a valid CPP name.
20472 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20474 # Sed expression to map a string onto a valid variable name.
20475 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20479 ## ----------------------------------- ##
20480 ## Main body of $CONFIG_STATUS script. ##
20481 ## ----------------------------------- ##
20483 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20486 # Save the log message, to keep $0 and so on meaningful, and to
20487 # report actual input values of CONFIG_FILES etc. instead of their
20488 # values after options handling.
20490 This file was extended by sqlite $as_me 3.7.15, which was
20491 generated by GNU Autoconf 2.68. Invocation command line was
20493 CONFIG_FILES = $CONFIG_FILES
20494 CONFIG_HEADERS = $CONFIG_HEADERS
20495 CONFIG_LINKS = $CONFIG_LINKS
20496 CONFIG_COMMANDS = $CONFIG_COMMANDS
20499 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20504 case $ac_config_files in *"
20505 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20511 # Files that config.status was made for.
20512 config_files="$ac_config_files"
20513 config_commands="$ac_config_commands"
20517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20519 \`$as_me' instantiates files and other configuration actions
20520 from templates according to the current configuration. Unless the files
20521 and actions are specified as TAGs, all are instantiated by default.
20523 Usage: $0 [OPTION]... [TAG]...
20525 -h, --help print this help, then exit
20526 -V, --version print version number and configuration settings, then exit
20527 --config print configuration, then exit
20528 -q, --quiet, --silent
20529 do not print progress messages
20530 -d, --debug don't remove temporary files
20531 --recheck update $as_me by reconfiguring in the same conditions
20532 --file=FILE[:TEMPLATE]
20533 instantiate the configuration file FILE
20535 Configuration files:
20538 Configuration commands:
20541 Report bugs to <http://www.sqlite.org>."
20544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20545 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20547 sqlite config.status 3.7.15
20548 configured by $0, generated by GNU Autoconf 2.68,
20549 with options \\"\$ac_cs_config\\"
20551 Copyright (C) 2010 Free Software Foundation, Inc.
20552 This config.status script is free software; the Free Software Foundation
20553 gives unlimited permission to copy, distribute and modify it."
20560 test -n "\$AWK" || AWK=awk
20563 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20564 # The default lists apply if the user does not specify any file.
20570 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20571 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20575 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20587 # Handling of the options.
20588 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20590 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20591 $as_echo "$ac_cs_version"; exit ;;
20592 --config | --confi | --conf | --con | --co | --c )
20593 $as_echo "$ac_cs_config"; exit ;;
20594 --debug | --debu | --deb | --de | --d | -d )
20596 --file | --fil | --fi | --f )
20599 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20600 '') as_fn_error $? "missing file argument" ;;
20602 as_fn_append CONFIG_FILES " '$ac_optarg'"
20603 ac_need_defaults=false;;
20604 --he | --h | --help | --hel | -h )
20605 $as_echo "$ac_cs_usage"; exit ;;
20606 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20607 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20610 # This is an error.
20611 -*) as_fn_error $? "unrecognized option: \`$1'
20612 Try \`$0 --help' for more information." ;;
20614 *) as_fn_append ac_config_targets " $1"
20615 ac_need_defaults=false ;;
20621 ac_configure_extra_args=
20623 if $ac_cs_silent; then
20625 ac_configure_extra_args="$ac_configure_extra_args --silent"
20629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20630 if \$ac_cs_recheck; then
20631 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20633 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20634 CONFIG_SHELL='$SHELL'
20635 export CONFIG_SHELL
20640 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20644 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20645 ## Running $as_me. ##
20651 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20655 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20659 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20661 # Handling of arguments.
20662 for ac_config_target in $ac_config_targets
20664 case $ac_config_target in
20665 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20666 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20667 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
20669 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20674 # If the user did not use the arguments to specify the items to instantiate,
20675 # then the envvar interface is used. Set only those that are not.
20676 # We use the long form for the default assignment because of an extremely
20677 # bizarre bug on SunOS 4.1.3.
20678 if $ac_need_defaults; then
20679 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20680 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20683 # Have a temporary directory for convenience. Make it in the build tree
20684 # simply because there is no reason against having it here, and in addition,
20685 # creating and moving files from /tmp can sometimes cause problems.
20686 # Hook for its removal unless debugging.
20687 # Note that there is a small window in which the directory will not be cleaned:
20688 # after its creation but before its name has been assigned to `$tmp'.
20692 trap 'exit_status=$?
20693 : "${ac_tmp:=$tmp}"
20694 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20696 trap 'as_fn_exit 1' 1 2 13 15
20698 # Create a (secure) tmp directory for tmp files.
20701 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20705 tmp=./conf$$-$RANDOM
20706 (umask 077 && mkdir "$tmp")
20707 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20710 # Set up the scripts for CONFIG_FILES section.
20711 # No need to generate them if there are no CONFIG_FILES.
20712 # This happens for instance with `./config.status config.h'.
20713 if test -n "$CONFIG_FILES"; then
20716 ac_cr=`echo X | tr X '\015'`
20717 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20718 # But we know of no other shell where ac_cr would be empty at this
20719 # point, so we can use a bashism as a fallback.
20720 if test "x$ac_cr" = x; then
20721 eval ac_cr=\$\'\\r\'
20723 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20724 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20727 ac_cs_awk_cr=$ac_cr
20730 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20735 echo "cat >conf$$subs.awk <<_ACEOF" &&
20736 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20738 } >conf$$subs.sh ||
20739 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20740 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20742 for ac_last_try in false false false false false :; do
20743 . ./conf$$subs.sh ||
20744 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20746 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20747 if test $ac_delim_n = $ac_delim_num; then
20749 elif $ac_last_try; then
20750 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20752 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20755 rm -f conf$$subs.sh
20757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20758 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20762 s/^/S["/; s/!.*/"]=/
20772 s/\(.\{148\}\)..*/\1/
20774 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20779 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20786 s/\(.\{148\}\)..*/\1/
20788 s/["\\]/\\&/g; s/^/"/; s/$/"/
20792 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20797 ' <conf$$subs.awk | sed '
20802 ' >>$CONFIG_STATUS || ac_write_fail=1
20803 rm -f conf$$subs.awk
20804 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20806 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20807 for (key in S) S_is_set[key] = 1
20813 nfields = split(line, field, "@")
20815 len = length(field[1])
20816 for (i = 2; i < nfields; i++) {
20818 keylen = length(key)
20819 if (S_is_set[key]) {
20821 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20822 len += length(value) + length(field[++i])
20833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20834 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20835 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20838 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20839 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20842 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20843 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20844 # trailing colons and then remove the whole line if VPATH becomes empty
20845 # (actually we leave an empty line to preserve line numbers).
20846 if test "x$srcdir" = x.; then
20847 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20865 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20866 fi # test -n "$CONFIG_FILES"
20869 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
20874 :[FHLC]) ac_mode=$ac_tag; continue;;
20876 case $ac_mode$ac_tag in
20878 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20879 :[FH]-) ac_tag=-:-;;
20880 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20897 -) ac_f="$ac_tmp/stdin";;
20898 *) # Look for the file first in the build tree, then in the source tree
20899 # (if the path is not absolute). The absolute path cannot be DOS-style,
20900 # because $ac_f cannot contain `:'.
20904 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20906 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20908 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20909 as_fn_append ac_file_inputs " '$ac_f'"
20912 # Let's still pretend it is `configure' which instantiates (i.e., don't
20913 # use $as_me), people would be surprised to read:
20914 # /* config.h. Generated by config.status. */
20915 configure_input='Generated from '`
20916 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20918 if test x"$ac_file" != x-; then
20919 configure_input="$ac_file. $configure_input"
20920 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20921 $as_echo "$as_me: creating $ac_file" >&6;}
20923 # Neutralize special characters interpreted by sed in replacement strings.
20924 case $configure_input in #(
20925 *\&* | *\|* | *\\* )
20926 ac_sed_conf_input=`$as_echo "$configure_input" |
20927 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20928 *) ac_sed_conf_input=$configure_input;;
20932 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20933 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20938 ac_dir=`$as_dirname -- "$ac_file" ||
20939 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20940 X"$ac_file" : 'X\(//\)[^/]' \| \
20941 X"$ac_file" : 'X\(//\)$' \| \
20942 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20943 $as_echo X"$ac_file" |
20944 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20948 /^X\(\/\/\)[^/].*/{
20961 as_dir="$ac_dir"; as_fn_mkdir_p
20965 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20967 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20968 # A ".." for each directory in $ac_dir_suffix.
20969 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20970 case $ac_top_builddir_sub in
20971 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20972 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20975 ac_abs_top_builddir=$ac_pwd
20976 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20977 # for backward compatibility:
20978 ac_top_builddir=$ac_top_build_prefix
20981 .) # We are building in place.
20983 ac_top_srcdir=$ac_top_builddir_sub
20984 ac_abs_top_srcdir=$ac_pwd ;;
20985 [\\/]* | ?:[\\/]* ) # Absolute name.
20986 ac_srcdir=$srcdir$ac_dir_suffix;
20987 ac_top_srcdir=$srcdir
20988 ac_abs_top_srcdir=$srcdir ;;
20989 *) # Relative name.
20990 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20991 ac_top_srcdir=$ac_top_build_prefix$srcdir
20992 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20994 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21004 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21005 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21007 ac_MKDIR_P=$MKDIR_P
21009 [\\/$]* | ?:[\\/]* ) ;;
21010 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21015 # If the template does not know about datarootdir, expand it.
21016 # FIXME: This hack should be removed a few years after 2.60.
21017 ac_datarootdir_hack=; ac_datarootdir_seen=
21028 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21029 *datarootdir*) ac_datarootdir_seen=yes;;
21030 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21032 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21034 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21035 ac_datarootdir_hack='
21036 s&@datadir@&$datadir&g
21037 s&@docdir@&$docdir&g
21038 s&@infodir@&$infodir&g
21039 s&@localedir@&$localedir&g
21040 s&@mandir@&$mandir&g
21041 s&\\\${datarootdir}&$datarootdir&g' ;;
21045 # Neutralize VPATH when `$srcdir' = `.'.
21046 # Shell code in configure.ac might set extrasub.
21047 # FIXME: do we really want to maintain this feature?
21048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21049 ac_sed_extra="$ac_vpsub
21052 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21054 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21055 s|@configure_input@|$ac_sed_conf_input|;t t
21056 s&@top_builddir@&$ac_top_builddir_sub&;t t
21057 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21058 s&@srcdir@&$ac_srcdir&;t t
21059 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21060 s&@top_srcdir@&$ac_top_srcdir&;t t
21061 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21062 s&@builddir@&$ac_builddir&;t t
21063 s&@abs_builddir@&$ac_abs_builddir&;t t
21064 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21065 s&@INSTALL@&$ac_INSTALL&;t t
21066 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21067 $ac_datarootdir_hack
21069 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21070 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21072 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21073 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21074 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21075 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21077 which seems to be undefined. Please make sure it is defined" >&5
21078 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21079 which seems to be undefined. Please make sure it is defined" >&2;}
21081 rm -f "$ac_tmp/stdin"
21083 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21084 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21086 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21090 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21091 $as_echo "$as_me: executing $ac_file commands" >&6;}
21096 case $ac_file$ac_mode in
21097 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21098 # Strip MF so we end up with the name of the file.
21099 mf=`echo "$mf" | sed -e 's/:.*$//'`
21100 # Check whether this is an Automake generated Makefile or not.
21101 # We used to match only the files named `Makefile.in', but
21102 # some people rename them; so instead we look at the file content.
21103 # Grep'ing the first line is not enough: some people post-process
21104 # each Makefile.in and add a new line on top of each file to say so.
21105 # So let's grep whole file.
21106 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21107 dirpart=`$as_dirname -- "$mf" ||
21108 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21109 X"$mf" : 'X\(//\)[^/]' \| \
21110 X"$mf" : 'X\(//\)$' \| \
21111 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21113 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21117 /^X\(\/\/\)[^/].*/{
21133 # Extract the definition of DEPDIR, am__include, and am__quote
21134 # from the Makefile without running `make'.
21135 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21136 test -z "$DEPDIR" && continue
21137 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21138 test -z "am__include" && continue
21139 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21140 # When using ansi2knr, U may be empty or an underscore; expand it
21141 U=`sed -n 's/^U = //p' < "$mf"`
21142 # Find all dependency output files, they are included files with
21143 # $(DEPDIR) in their names. We invoke sed twice because it is the
21144 # simplest approach to changing $(DEPDIR) to its actual value in the
21146 for file in `sed -n "
21147 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21148 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21149 # Make sure the directory exists.
21150 test -f "$dirpart/$file" && continue
21151 fdir=`$as_dirname -- "$file" ||
21152 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21153 X"$file" : 'X\(//\)[^/]' \| \
21154 X"$file" : 'X\(//\)$' \| \
21155 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21156 $as_echo X"$file" |
21157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21161 /^X\(\/\/\)[^/].*/{
21174 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21175 # echo "creating $dirpart/$file"
21176 echo '# dummy' > "$dirpart/$file"
21187 ac_clean_files=$ac_clean_files_save
21189 test $ac_write_fail = 0 ||
21190 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21193 # configure is writing to config.log, and then calls config.status.
21194 # config.status does its own redirection, appending to config.log.
21195 # Unfortunately, on DOS this fails, as config.log is still kept open
21196 # by configure, so config.status won't be able to write to it; its
21197 # output is simply discarded. So we exec the FD to /dev/null,
21198 # effectively closing config.log, so it can be properly (re)opened and
21199 # appended to by config.status. When coming back to configure, we
21200 # need to make the FD available again.
21201 if test "$no_create" != yes; then
21203 ac_config_status_args=
21204 test "$silent" = yes &&
21205 ac_config_status_args="$ac_config_status_args --quiet"
21207 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21209 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21210 # would make configure fail if this is the last instruction.
21211 $ac_cs_success || as_fn_exit 1
21213 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21215 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}