2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
244 # Check that we are running under the correct shell.
245 SHELL=${CONFIG_SHELL-/bin/sh}
249 # Remove one level of quotation (which was required for Make).
250 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
255 if test "X$1" = X--no-reexec; then
256 # Discard the --no-reexec flag, and continue.
258 elif test "X$1" = X--fallback-echo; then
259 # Avoid inline document here, it may be left over
261 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
262 # Yippee, $echo works!
265 # Restart under the correct shell.
266 exec $SHELL "$0" --no-reexec ${1+"$@"}
269 if test "X$1" = X--fallback-echo; then
270 # used as fallback echo
278 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
282 if test -z "$ECHO"; then
283 if test "X${echo_test_string+set}" != Xset; then
284 # find a string as large as possible, as long as the shell can cope with it
285 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
286 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
287 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
288 echo_test_string="`eval $cmd`" &&
289 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
296 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
305 # So, first we look for a working echo in the user's PATH.
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
320 if test "X$echo" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
327 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
351 echo="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 echo="$CONFIG_SHELL $0 --fallback-echo"
358 # maybe with a smaller string...
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374 # Oops. We lost completely, so just stick with echo.
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
386 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
395 tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
398 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
399 # so uname gets run too.
400 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
407 ac_default_prefix=/usr/local
408 ac_config_libobj_dir=.
413 SHELL=${CONFIG_SHELL-/bin/sh}
415 # Maximum number of lines to put in a shell here document.
416 # This variable seems obsolete. It should probably be removed, and
417 # only ac_max_sed_lines should be used.
418 : ${ac_max_here_lines=38}
420 # Identity of this package.
427 ac_unique_file="AUTHORS"
428 # Factoring default headers for most tests.
429 ac_includes_default="\
432 # include <sys/types.h>
435 # include <sys/stat.h>
446 # if !STDC_HEADERS && HAVE_MEMORY_H
452 # include <strings.h>
455 # include <inttypes.h>
465 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MODV_FLAGS KERNEL_DIR MODULES_DIR KERNEL_HDR OS_DIR DEBUG_FLAGS KDEBUG_FLAGS AUTOFS_INSTALL LUFS_SUID CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE LN_S EGREP ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL SSHPROG GCONF GVFSCONF GVFS_LDADD GVFS_CFLAGS define_has_libchipcard LIBCHIPCARD_LIB LIBCHIPCARD_INCLUDES opt_fs all_includes all_libraries LIBOBJS LTLIBOBJS'
468 # Initialize some variables set by options.
470 ac_init_version=false
471 # The variables have the same names as the options, with
472 # dashes changed to underlines.
480 program_transform_name=s,x,x,
488 # Installation directory options.
489 # These are left unexpanded so users can "make install exec_prefix=/foo"
490 # and all the variables that are supposed to be based on exec_prefix
491 # by default will actually change.
492 # Use braces instead of parens because sh, perl, etc. also accept them.
493 bindir='${exec_prefix}/bin'
494 sbindir='${exec_prefix}/sbin'
495 libexecdir='${exec_prefix}/libexec'
496 datadir='${prefix}/share'
497 sysconfdir='${prefix}/etc'
498 sharedstatedir='${prefix}/com'
499 localstatedir='${prefix}/var'
500 libdir='${exec_prefix}/lib'
501 includedir='${prefix}/include'
502 oldincludedir='/usr/include'
503 infodir='${prefix}/info'
504 mandir='${prefix}/man'
509 # If the previous option needs an argument, assign it.
510 if test -n "$ac_prev"; then
511 eval "$ac_prev=\$ac_option"
516 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
518 # Accept the important Cygnus configure options, so we can diagnose typos.
522 -bindir | --bindir | --bindi | --bind | --bin | --bi)
524 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527 -build | --build | --buil | --bui | --bu)
528 ac_prev=build_alias ;;
529 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
530 build_alias=$ac_optarg ;;
532 -cache-file | --cache-file | --cache-fil | --cache-fi \
533 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
534 ac_prev=cache_file ;;
535 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
536 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
537 cache_file=$ac_optarg ;;
540 cache_file=config.cache ;;
542 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546 datadir=$ac_optarg ;;
548 -disable-* | --disable-*)
549 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
550 # Reject names that are not valid shell variable names.
551 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
552 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
553 { (exit 1); exit 1; }; }
554 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
555 eval "enable_$ac_feature=no" ;;
557 -enable-* | --enable-*)
558 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
559 # Reject names that are not valid shell variable names.
560 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
561 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
562 { (exit 1); exit 1; }; }
563 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568 eval "enable_$ac_feature='$ac_optarg'" ;;
570 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
571 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
572 | --exec | --exe | --ex)
573 ac_prev=exec_prefix ;;
574 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
575 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
576 | --exec=* | --exe=* | --ex=*)
577 exec_prefix=$ac_optarg ;;
579 -gas | --gas | --ga | --g)
580 # Obsolete; use --with-gas.
583 -help | --help | --hel | --he | -h)
585 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
586 ac_init_help=recursive ;;
587 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
588 ac_init_help=short ;;
590 -host | --host | --hos | --ho)
591 ac_prev=host_alias ;;
592 -host=* | --host=* | --hos=* | --ho=*)
593 host_alias=$ac_optarg ;;
595 -includedir | --includedir | --includedi | --included | --include \
596 | --includ | --inclu | --incl | --inc)
597 ac_prev=includedir ;;
598 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
599 | --includ=* | --inclu=* | --incl=* | --inc=*)
600 includedir=$ac_optarg ;;
602 -infodir | --infodir | --infodi | --infod | --info | --inf)
604 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
605 infodir=$ac_optarg ;;
607 -libdir | --libdir | --libdi | --libd)
609 -libdir=* | --libdir=* | --libdi=* | --libd=*)
612 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
613 | --libexe | --libex | --libe)
614 ac_prev=libexecdir ;;
615 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
616 | --libexe=* | --libex=* | --libe=*)
617 libexecdir=$ac_optarg ;;
619 -localstatedir | --localstatedir | --localstatedi | --localstated \
620 | --localstate | --localstat | --localsta | --localst \
621 | --locals | --local | --loca | --loc | --lo)
622 ac_prev=localstatedir ;;
623 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
624 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
625 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
626 localstatedir=$ac_optarg ;;
628 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634 # Obsolete; use --without-fp.
637 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
638 | --no-cr | --no-c | -n)
641 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
642 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
646 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
647 | --oldin | --oldi | --old | --ol | --o)
648 ac_prev=oldincludedir ;;
649 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
650 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
651 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
652 oldincludedir=$ac_optarg ;;
654 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659 -program-prefix | --program-prefix | --program-prefi | --program-pref \
660 | --program-pre | --program-pr | --program-p)
661 ac_prev=program_prefix ;;
662 -program-prefix=* | --program-prefix=* | --program-prefi=* \
663 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
664 program_prefix=$ac_optarg ;;
666 -program-suffix | --program-suffix | --program-suffi | --program-suff \
667 | --program-suf | --program-su | --program-s)
668 ac_prev=program_suffix ;;
669 -program-suffix=* | --program-suffix=* | --program-suffi=* \
670 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
671 program_suffix=$ac_optarg ;;
673 -program-transform-name | --program-transform-name \
674 | --program-transform-nam | --program-transform-na \
675 | --program-transform-n | --program-transform- \
676 | --program-transform | --program-transfor \
677 | --program-transfo | --program-transf \
678 | --program-trans | --program-tran \
679 | --progr-tra | --program-tr | --program-t)
680 ac_prev=program_transform_name ;;
681 -program-transform-name=* | --program-transform-name=* \
682 | --program-transform-nam=* | --program-transform-na=* \
683 | --program-transform-n=* | --program-transform-=* \
684 | --program-transform=* | --program-transfor=* \
685 | --program-transfo=* | --program-transf=* \
686 | --program-trans=* | --program-tran=* \
687 | --progr-tra=* | --program-tr=* | --program-t=*)
688 program_transform_name=$ac_optarg ;;
690 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
691 | -silent | --silent | --silen | --sile | --sil)
694 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698 sbindir=$ac_optarg ;;
700 -sharedstatedir | --sharedstatedir | --sharedstatedi \
701 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
702 | --sharedst | --shareds | --shared | --share | --shar \
704 ac_prev=sharedstatedir ;;
705 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
706 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
707 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709 sharedstatedir=$ac_optarg ;;
711 -site | --site | --sit)
713 -site=* | --site=* | --sit=*)
716 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
722 | --syscon | --sysco | --sysc | --sys | --sy)
723 ac_prev=sysconfdir ;;
724 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
725 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
726 sysconfdir=$ac_optarg ;;
728 -target | --target | --targe | --targ | --tar | --ta | --t)
729 ac_prev=target_alias ;;
730 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
731 target_alias=$ac_optarg ;;
733 -v | -verbose | --verbose | --verbos | --verbo | --verb)
736 -version | --version | --versio | --versi | --vers | -V)
740 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
741 # Reject names that are not valid shell variable names.
742 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
743 { echo "$as_me: error: invalid package name: $ac_package" >&2
744 { (exit 1); exit 1; }; }
745 ac_package=`echo $ac_package| sed 's/-/_/g'`
747 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750 eval "with_$ac_package='$ac_optarg'" ;;
752 -without-* | --without-*)
753 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
754 # Reject names that are not valid shell variable names.
755 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
756 { echo "$as_me: error: invalid package name: $ac_package" >&2
757 { (exit 1); exit 1; }; }
758 ac_package=`echo $ac_package | sed 's/-/_/g'`
759 eval "with_$ac_package=no" ;;
762 # Obsolete; use --with-x.
765 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
766 | --x-incl | --x-inc | --x-in | --x-i)
767 ac_prev=x_includes ;;
768 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
769 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
770 x_includes=$ac_optarg ;;
772 -x-libraries | --x-libraries | --x-librarie | --x-librari \
773 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
774 ac_prev=x_libraries ;;
775 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
776 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
777 x_libraries=$ac_optarg ;;
779 -*) { echo "$as_me: error: unrecognized option: $ac_option
780 Try \`$0 --help' for more information." >&2
781 { (exit 1); exit 1; }; }
785 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
786 # Reject names that are not valid shell variable names.
787 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
788 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
789 { (exit 1); exit 1; }; }
790 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
791 eval "$ac_envvar='$ac_optarg'"
795 # FIXME: should be removed in autoconf 3.0.
796 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
797 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
798 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
799 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
805 if test -n "$ac_prev"; then
806 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
807 { echo "$as_me: error: missing argument to $ac_option" >&2
808 { (exit 1); exit 1; }; }
811 # Be sure to have absolute paths.
812 for ac_var in exec_prefix prefix
814 eval ac_val=$`echo $ac_var`
816 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
817 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
818 { (exit 1); exit 1; }; };;
822 # Be sure to have absolute paths.
823 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
824 localstatedir libdir includedir oldincludedir infodir mandir
826 eval ac_val=$`echo $ac_var`
828 [\\/$]* | ?:[\\/]* ) ;;
829 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
830 { (exit 1); exit 1; }; };;
834 # There might be people who depend on the old broken behavior: `$host'
835 # used to hold the argument of --host etc.
836 # FIXME: To remove some day.
841 # FIXME: To remove some day.
842 if test "x$host_alias" != x; then
843 if test "x$build_alias" = x; then
844 cross_compiling=maybe
845 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
846 If a cross compiler is detected then cross compile mode will be used." >&2
847 elif test "x$build_alias" != "x$host_alias"; then
853 test -n "$host_alias" && ac_tool_prefix=$host_alias-
855 test "$silent" = yes && exec 6>/dev/null
858 # Find the source files, if location was not specified.
859 if test -z "$srcdir"; then
860 ac_srcdir_defaulted=yes
861 # Try the directory containing this script, then its parent.
862 ac_confdir=`(dirname "$0") 2>/dev/null ||
863 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
864 X"$0" : 'X\(//\)[^/]' \| \
865 X"$0" : 'X\(//\)$' \| \
866 X"$0" : 'X\(/\)' \| \
867 . : '\(.\)' 2>/dev/null ||
869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
870 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
871 /^X\(\/\/\)$/{ s//\1/; q; }
872 /^X\(\/\).*/{ s//\1/; q; }
875 if test ! -r $srcdir/$ac_unique_file; then
879 ac_srcdir_defaulted=no
881 if test ! -r $srcdir/$ac_unique_file; then
882 if test "$ac_srcdir_defaulted" = yes; then
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
884 { (exit 1); exit 1; }; }
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
887 { (exit 1); exit 1; }; }
890 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
891 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
892 { (exit 1); exit 1; }; }
893 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
894 ac_env_build_alias_set=${build_alias+set}
895 ac_env_build_alias_value=$build_alias
896 ac_cv_env_build_alias_set=${build_alias+set}
897 ac_cv_env_build_alias_value=$build_alias
898 ac_env_host_alias_set=${host_alias+set}
899 ac_env_host_alias_value=$host_alias
900 ac_cv_env_host_alias_set=${host_alias+set}
901 ac_cv_env_host_alias_value=$host_alias
902 ac_env_target_alias_set=${target_alias+set}
903 ac_env_target_alias_value=$target_alias
904 ac_cv_env_target_alias_set=${target_alias+set}
905 ac_cv_env_target_alias_value=$target_alias
906 ac_env_CC_set=${CC+set}
908 ac_cv_env_CC_set=${CC+set}
909 ac_cv_env_CC_value=$CC
910 ac_env_CFLAGS_set=${CFLAGS+set}
911 ac_env_CFLAGS_value=$CFLAGS
912 ac_cv_env_CFLAGS_set=${CFLAGS+set}
913 ac_cv_env_CFLAGS_value=$CFLAGS
914 ac_env_LDFLAGS_set=${LDFLAGS+set}
915 ac_env_LDFLAGS_value=$LDFLAGS
916 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_cv_env_LDFLAGS_value=$LDFLAGS
918 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
919 ac_env_CPPFLAGS_value=$CPPFLAGS
920 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
922 ac_env_CPP_set=${CPP+set}
923 ac_env_CPP_value=$CPP
924 ac_cv_env_CPP_set=${CPP+set}
925 ac_cv_env_CPP_value=$CPP
926 ac_env_CXX_set=${CXX+set}
927 ac_env_CXX_value=$CXX
928 ac_cv_env_CXX_set=${CXX+set}
929 ac_cv_env_CXX_value=$CXX
930 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
931 ac_env_CXXFLAGS_value=$CXXFLAGS
932 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
934 ac_env_CXXCPP_set=${CXXCPP+set}
935 ac_env_CXXCPP_value=$CXXCPP
936 ac_cv_env_CXXCPP_set=${CXXCPP+set}
937 ac_cv_env_CXXCPP_value=$CXXCPP
938 ac_env_F77_set=${F77+set}
939 ac_env_F77_value=$F77
940 ac_cv_env_F77_set=${F77+set}
941 ac_cv_env_F77_value=$F77
942 ac_env_FFLAGS_set=${FFLAGS+set}
943 ac_env_FFLAGS_value=$FFLAGS
944 ac_cv_env_FFLAGS_set=${FFLAGS+set}
945 ac_cv_env_FFLAGS_value=$FFLAGS
948 # Report the --help message.
950 if test "$ac_init_help" = "long"; then
951 # Omit some internal or obsolete options to make the list less imposing.
952 # This message is too long to be a string in the A/UX 3.1 sh.
954 \`configure' configures this package to adapt to many kinds of systems.
956 Usage: $0 [OPTION]... [VAR=VALUE]...
958 To assign environment variables (e.g., CC, CFLAGS...), specify them as
959 VAR=VALUE. See below for descriptions of some of the useful variables.
961 Defaults for the options are specified in brackets.
964 -h, --help display this help and exit
965 --help=short display options specific to this package
966 --help=recursive display the short help of all the included packages
967 -V, --version display version information and exit
968 -q, --quiet, --silent do not print \`checking...' messages
969 --cache-file=FILE cache test results in FILE [disabled]
970 -C, --config-cache alias for \`--cache-file=config.cache'
971 -n, --no-create do not create output files
972 --srcdir=DIR find the sources in DIR [configure dir or \`..']
977 Installation directories:
978 --prefix=PREFIX install architecture-independent files in PREFIX
980 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
983 By default, \`make install' will install all the files in
984 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
985 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
986 for instance \`--prefix=\$HOME'.
988 For better control, use the options below.
990 Fine tuning of the installation directories:
991 --bindir=DIR user executables [EPREFIX/bin]
992 --sbindir=DIR system admin executables [EPREFIX/sbin]
993 --libexecdir=DIR program executables [EPREFIX/libexec]
994 --datadir=DIR read-only architecture-independent data [PREFIX/share]
995 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
996 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
997 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
998 --libdir=DIR object code libraries [EPREFIX/lib]
999 --includedir=DIR C header files [PREFIX/include]
1000 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1001 --infodir=DIR info documentation [PREFIX/info]
1002 --mandir=DIR man documentation [PREFIX/man]
1008 --program-prefix=PREFIX prepend PREFIX to installed program names
1009 --program-suffix=SUFFIX append SUFFIX to installed program names
1010 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1013 --build=BUILD configure for building on BUILD [guessed]
1014 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1015 --target=TARGET configure for building compilers for TARGET [HOST]
1019 if test -n "$ac_init_help"; then
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1026 --enable-kernel-support enable building of the kernel module (default=yes)
1027 --enable-modversions enable modeversions support (default=auto-detect)
1028 --enable-debug enable debug messages to stdout (default=no)
1029 --enable-kdebug enable kernel module debug messages (default=no)
1030 --enable-autofs-install enable installing of autofs configuration (default=no)
1031 --enable-suid make lufsmnt and lufsumount suid root (default=yes)
1032 --enable-static[=PKGS]
1033 build static libraries [default=no]
1034 --disable-dependency-tracking Speeds up one-time builds
1035 --enable-dependency-tracking Do not reject slow dependency extractors
1036 --enable-shared[=PKGS]
1037 build shared libraries [default=yes]
1038 --enable-fast-install[=PKGS]
1039 optimize for fast installation [default=yes]
1040 --disable-libtool-lock avoid locking (might break parallel builds)
1041 --enable-wavfs build wavfs support (default=no)
1042 --enable-cefs build cefs support (default=no)
1043 --enable-cardfs build cardfs support (default=no)
1046 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1047 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1048 --with-kernel=VERSION specify a kernel version to compile for
1049 --with-kheaders=DIR specify the location of the kernel headers
1050 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1051 --with-pic try to use only PIC/non-PIC objects [default=use
1054 include additional configurations [automatic]
1055 --with-ssh=PATH specify the path to the ssh executable
1056 --with-chipcard-dir=DIR uses libchipcard from given dir
1058 Some influential environment variables:
1059 CC C compiler command
1060 CFLAGS C compiler flags
1061 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1062 nonstandard directory <lib dir>
1063 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1064 headers in a nonstandard directory <include dir>
1066 CXX C++ compiler command
1067 CXXFLAGS C++ compiler flags
1068 CXXCPP C++ preprocessor
1069 F77 Fortran 77 compiler command
1070 FFLAGS Fortran 77 compiler flags
1072 Use these variables to override the choices made by `configure' or to help
1073 it to find libraries and programs with nonstandard names/locations.
1078 if test "$ac_init_help" = "recursive"; then
1079 # If there are subdirs, report their specific --help.
1081 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1082 test -d $ac_dir || continue
1085 if test "$ac_dir" != .; then
1086 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1087 # A "../" for each directory in $ac_dir_suffix.
1088 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1090 ac_dir_suffix= ac_top_builddir=
1094 .) # No --srcdir option. We are building in place.
1096 if test -z "$ac_top_builddir"; then
1099 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1101 [\\/]* | ?:[\\/]* ) # Absolute path.
1102 ac_srcdir=$srcdir$ac_dir_suffix;
1103 ac_top_srcdir=$srcdir ;;
1105 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1106 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1108 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1110 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1111 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1112 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1113 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1116 # Check for guested configure; otherwise get Cygnus style configure.
1117 if test -f $ac_srcdir/configure.gnu; then
1119 $SHELL $ac_srcdir/configure.gnu --help=recursive
1120 elif test -f $ac_srcdir/configure; then
1122 $SHELL $ac_srcdir/configure --help=recursive
1123 elif test -f $ac_srcdir/configure.ac ||
1124 test -f $ac_srcdir/configure.in; then
1126 $ac_configure --help
1128 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1134 test -n "$ac_init_help" && exit 0
1135 if $ac_init_version; then
1138 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1139 Free Software Foundation, Inc.
1140 This configure script is free software; the Free Software Foundation
1141 gives unlimited permission to copy, distribute and modify it.
1147 This file contains any messages produced by compilers while
1148 running configure, to aid debugging if configure makes a mistake.
1150 It was created by $as_me, which was
1151 generated by GNU Autoconf 2.57. Invocation command line was
1162 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1163 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1164 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1165 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1166 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1168 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1169 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1171 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1172 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1173 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1174 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1175 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1176 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1177 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1185 test -z "$as_dir" && as_dir=.
1186 echo "PATH: $as_dir"
1201 # Keep a trace of the command line.
1202 # Strip out --no-create and --no-recursion so they do not pile up.
1203 # Strip out --silent because we don't want to record it for future runs.
1204 # Also quote any args containing shell meta-characters.
1205 # Make two passes to allow for proper duplicate-argument suppression.
1210 ac_must_keep_next=false
1216 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218 | -silent | --silent | --silen | --sile | --sil)
1220 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1221 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1224 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1226 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1227 if test $ac_must_keep_next = true; then
1228 ac_must_keep_next=false # Got value, back to normal.
1231 *=* | --config-cache | -C | -disable-* | --disable-* \
1232 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1233 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1234 | -with-* | --with-* | -without-* | --without-* | --x)
1235 case "$ac_configure_args0 " in
1236 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1239 -* ) ac_must_keep_next=true ;;
1242 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1243 # Get rid of the leading space.
1249 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1250 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1252 # When interrupted or exit'd, cleanup temporary files, and complete
1253 # config.log. We remove comments because anyway the quotes in there
1254 # would cause problems or look ugly.
1255 # WARNING: Be sure not to use single quotes in there, as some shells,
1256 # such as our DU 5.0 friend, will then `close' the trap.
1257 trap 'exit_status=$?
1258 # Save into config.log some information that might help in debugging.
1263 ## ---------------- ##
1264 ## Cache variables. ##
1265 ## ---------------- ##
1268 # The following way of writing the cache mishandles newlines in values,
1271 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1274 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1275 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1279 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1286 ## ----------------- ##
1287 ## Output variables. ##
1288 ## ----------------- ##
1291 for ac_var in $ac_subst_vars
1293 eval ac_val=$`echo $ac_var`
1294 echo "$ac_var='"'"'$ac_val'"'"'"
1298 if test -n "$ac_subst_files"; then
1305 for ac_var in $ac_subst_files
1307 eval ac_val=$`echo $ac_var`
1308 echo "$ac_var='"'"'$ac_val'"'"'"
1313 if test -s confdefs.h; then
1320 sed "/^$/d" confdefs.h | sort
1323 test "$ac_signal" != 0 &&
1324 echo "$as_me: caught signal $ac_signal"
1325 echo "$as_me: exit $exit_status"
1327 rm -f core core.* *.core &&
1328 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1331 for ac_signal in 1 2 13 15; do
1332 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1336 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1337 rm -rf conftest* confdefs.h
1338 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1341 # Predefined preprocessor variables.
1343 cat >>confdefs.h <<_ACEOF
1344 #define PACKAGE_NAME "$PACKAGE_NAME"
1348 cat >>confdefs.h <<_ACEOF
1349 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1353 cat >>confdefs.h <<_ACEOF
1354 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1358 cat >>confdefs.h <<_ACEOF
1359 #define PACKAGE_STRING "$PACKAGE_STRING"
1363 cat >>confdefs.h <<_ACEOF
1364 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1368 # Let the site file select an alternate cache file if it wants to.
1369 # Prefer explicitly selected file to automatically selected ones.
1370 if test -z "$CONFIG_SITE"; then
1371 if test "x$prefix" != xNONE; then
1372 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1374 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1377 for ac_site_file in $CONFIG_SITE; do
1378 if test -r "$ac_site_file"; then
1379 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1380 echo "$as_me: loading site script $ac_site_file" >&6;}
1381 sed 's/^/| /' "$ac_site_file" >&5
1386 if test -r "$cache_file"; then
1387 # Some versions of bash will fail to source /dev/null (special
1388 # files actually), so we avoid doing that.
1389 if test -f "$cache_file"; then
1390 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1391 echo "$as_me: loading cache $cache_file" >&6;}
1393 [\\/]* | ?:[\\/]* ) . $cache_file;;
1394 *) . ./$cache_file;;
1398 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1399 echo "$as_me: creating cache $cache_file" >&6;}
1403 # Check that the precious variables saved in the cache have kept the same
1405 ac_cache_corrupted=false
1406 for ac_var in `(set) 2>&1 |
1407 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1408 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1409 eval ac_new_set=\$ac_env_${ac_var}_set
1410 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1411 eval ac_new_val="\$ac_env_${ac_var}_value"
1412 case $ac_old_set,$ac_new_set in
1414 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1415 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1416 ac_cache_corrupted=: ;;
1418 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1419 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1420 ac_cache_corrupted=: ;;
1423 if test "x$ac_old_val" != "x$ac_new_val"; then
1424 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1425 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1426 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1427 echo "$as_me: former value: $ac_old_val" >&2;}
1428 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1429 echo "$as_me: current value: $ac_new_val" >&2;}
1430 ac_cache_corrupted=:
1433 # Pass precious variables to config.status.
1434 if test "$ac_new_set" = set; then
1436 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1437 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1438 *) ac_arg=$ac_var=$ac_new_val ;;
1440 case " $ac_configure_args " in
1441 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1442 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1446 if $ac_cache_corrupted; then
1447 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1448 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1449 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1450 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1451 { (exit 1); exit 1; }; }
1455 ac_cpp='$CPP $CPPFLAGS'
1456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1479 for ac_dir in config $srcdir/config; do
1480 if test -f $ac_dir/install-sh; then
1482 ac_install_sh="$ac_aux_dir/install-sh -c"
1484 elif test -f $ac_dir/install.sh; then
1486 ac_install_sh="$ac_aux_dir/install.sh -c"
1488 elif test -f $ac_dir/shtool; then
1490 ac_install_sh="$ac_aux_dir/shtool install -c"
1494 if test -z "$ac_aux_dir"; then
1495 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1496 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1497 { (exit 1); exit 1; }; }
1499 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1500 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1501 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1503 ac_config_headers="$ac_config_headers config.h"
1505 # Make sure we can run config.sub.
1506 $ac_config_sub sun4 >/dev/null 2>&1 ||
1507 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1508 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1509 { (exit 1); exit 1; }; }
1511 echo "$as_me:$LINENO: checking build system type" >&5
1512 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1513 if test "${ac_cv_build+set}" = set; then
1514 echo $ECHO_N "(cached) $ECHO_C" >&6
1516 ac_cv_build_alias=$build_alias
1517 test -z "$ac_cv_build_alias" &&
1518 ac_cv_build_alias=`$ac_config_guess`
1519 test -z "$ac_cv_build_alias" &&
1520 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1521 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1522 { (exit 1); exit 1; }; }
1523 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1524 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1525 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1526 { (exit 1); exit 1; }; }
1529 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1530 echo "${ECHO_T}$ac_cv_build" >&6
1532 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1533 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1534 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1537 echo "$as_me:$LINENO: checking host system type" >&5
1538 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1539 if test "${ac_cv_host+set}" = set; then
1540 echo $ECHO_N "(cached) $ECHO_C" >&6
1542 ac_cv_host_alias=$host_alias
1543 test -z "$ac_cv_host_alias" &&
1544 ac_cv_host_alias=$ac_cv_build_alias
1545 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1546 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1547 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1548 { (exit 1); exit 1; }; }
1551 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1552 echo "${ECHO_T}$ac_cv_host" >&6
1554 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1555 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1556 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1559 echo "$as_me:$LINENO: checking target system type" >&5
1560 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1561 if test "${ac_cv_target+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1564 ac_cv_target_alias=$target_alias
1565 test "x$ac_cv_target_alias" = "x" &&
1566 ac_cv_target_alias=$ac_cv_host_alias
1567 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1568 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1569 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1570 { (exit 1); exit 1; }; }
1573 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1574 echo "${ECHO_T}$ac_cv_target" >&6
1575 target=$ac_cv_target
1576 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1577 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1578 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1581 # The aliases save the names the user supplied, while $host etc.
1582 # will get canonicalized.
1583 test -n "$target_alias" &&
1584 test "$program_prefix$program_suffix$program_transform_name" = \
1586 program_prefix=${target_alias}-
1587 am__api_version="1.7"
1588 # Find a good install program. We prefer a C program (faster),
1589 # so one script is as good as another. But avoid the broken or
1590 # incompatible versions:
1591 # SysV /etc/install, /usr/sbin/install
1592 # SunOS /usr/etc/install
1593 # IRIX /sbin/install
1595 # AmigaOS /C/install, which installs bootblocks on floppy discs
1596 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1597 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1598 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1599 # ./install, which can be erroneously created by make from ./install.sh.
1600 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1601 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1602 if test -z "$INSTALL"; then
1603 if test "${ac_cv_path_install+set}" = set; then
1604 echo $ECHO_N "(cached) $ECHO_C" >&6
1606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1610 test -z "$as_dir" && as_dir=.
1611 # Account for people who put trailing slashes in PATH elements.
1613 ./ | .// | /cC/* | \
1614 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1617 # OSF1 and SCO ODT 3.0 have their own names for install.
1618 # Don't use installbsd from OSF since it installs stuff as root
1620 for ac_prog in ginstall scoinst install; do
1621 for ac_exec_ext in '' $ac_executable_extensions; do
1622 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1623 if test $ac_prog = install &&
1624 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1625 # AIX install. It has an incompatible calling convention.
1627 elif test $ac_prog = install &&
1628 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1629 # program-specific install script used by HP pwplus--don't use.
1632 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1644 if test "${ac_cv_path_install+set}" = set; then
1645 INSTALL=$ac_cv_path_install
1647 # As a last resort, use the slow shell script. We don't cache a
1648 # path for INSTALL within a source directory, because that will
1649 # break other packages using the cache if that directory is
1650 # removed, or if the path is relative.
1651 INSTALL=$ac_install_sh
1654 echo "$as_me:$LINENO: result: $INSTALL" >&5
1655 echo "${ECHO_T}$INSTALL" >&6
1657 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1658 # It thinks the first close brace ends the variable substitution.
1659 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1661 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1663 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1665 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1666 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1669 echo timestamp > conftest.file
1670 # Do `set' in a subshell so we don't clobber the current shell's
1671 # arguments. Must try -L first in case configure is actually a
1672 # symlink; some systems play weird games with the mod time of symlinks
1673 # (eg FreeBSD returns the mod time of the symlink's containing
1676 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1677 if test "$*" = "X"; then
1679 set X `ls -t $srcdir/configure conftest.file`
1682 if test "$*" != "X $srcdir/configure conftest.file" \
1683 && test "$*" != "X conftest.file $srcdir/configure"; then
1685 # If neither matched, then we have a broken ls. This can happen
1686 # if, for instance, CONFIG_SHELL is bash and it inherits a
1687 # broken ls alias from the environment. This has actually
1688 # happened. Such a system could not be considered "sane".
1689 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1690 alias in your environment" >&5
1691 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1692 alias in your environment" >&2;}
1693 { (exit 1); exit 1; }; }
1696 test "$2" = conftest.file
1702 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1703 Check your system clock" >&5
1704 echo "$as_me: error: newly created file is older than distributed files!
1705 Check your system clock" >&2;}
1706 { (exit 1); exit 1; }; }
1708 echo "$as_me:$LINENO: result: yes" >&5
1709 echo "${ECHO_T}yes" >&6
1710 test "$program_prefix" != NONE &&
1711 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1712 # Use a double $ so make ignores it.
1713 test "$program_suffix" != NONE &&
1714 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1715 # Double any \ or $. echo might interpret backslashes.
1716 # By default was `s,x,x', remove it if useless.
1717 cat <<\_ACEOF >conftest.sed
1718 s/[\\$]/&&/g;s/;s,x,x,$//
1720 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1724 # expand $ac_aux_dir to an absolute path
1725 am_aux_dir=`cd $ac_aux_dir && pwd`
1727 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1728 # Use eval to expand $SHELL
1729 if eval "$MISSING --run true"; then
1730 am_missing_run="$MISSING --run "
1733 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1734 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1737 for ac_prog in gawk mawk nawk awk
1739 # Extract the first word of "$ac_prog", so it can be a program name with args.
1740 set dummy $ac_prog; ac_word=$2
1741 echo "$as_me:$LINENO: checking for $ac_word" >&5
1742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1743 if test "${ac_cv_prog_AWK+set}" = set; then
1744 echo $ECHO_N "(cached) $ECHO_C" >&6
1746 if test -n "$AWK"; then
1747 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1753 test -z "$as_dir" && as_dir=.
1754 for ac_exec_ext in '' $ac_executable_extensions; do
1755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1756 ac_cv_prog_AWK="$ac_prog"
1757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1766 if test -n "$AWK"; then
1767 echo "$as_me:$LINENO: result: $AWK" >&5
1768 echo "${ECHO_T}$AWK" >&6
1770 echo "$as_me:$LINENO: result: no" >&5
1771 echo "${ECHO_T}no" >&6
1774 test -n "$AWK" && break
1777 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1778 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1779 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1780 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1781 echo $ECHO_N "(cached) $ECHO_C" >&6
1783 cat >conftest.make <<\_ACEOF
1785 @echo 'ac_maketemp="$(MAKE)"'
1787 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1788 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1789 if test -n "$ac_maketemp"; then
1790 eval ac_cv_prog_make_${ac_make}_set=yes
1792 eval ac_cv_prog_make_${ac_make}_set=no
1796 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1797 echo "$as_me:$LINENO: result: yes" >&5
1798 echo "${ECHO_T}yes" >&6
1801 echo "$as_me:$LINENO: result: no" >&5
1802 echo "${ECHO_T}no" >&6
1803 SET_MAKE="MAKE=${MAKE-make}"
1806 rm -rf .tst 2>/dev/null
1807 mkdir .tst 2>/dev/null
1808 if test -d .tst; then
1813 rmdir .tst 2>/dev/null
1815 # test to see if srcdir already configured
1816 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1817 test -f $srcdir/config.status; then
1818 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1819 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1820 { (exit 1); exit 1; }; }
1823 # test whether we have cygpath
1824 if test -z "$CYGPATH_W"; then
1825 if (cygpath --version) >/dev/null 2>/dev/null; then
1826 CYGPATH_W='cygpath -w'
1833 # Define the identity of the package.
1838 cat >>confdefs.h <<_ACEOF
1839 #define PACKAGE "$PACKAGE"
1843 cat >>confdefs.h <<_ACEOF
1844 #define VERSION "$VERSION"
1847 # Some tools Automake needs.
1849 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1852 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1855 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1858 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1861 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1864 AMTAR=${AMTAR-"${am_missing_run}tar"}
1866 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1868 # Installed binaries are usually stripped using `strip' when the user
1869 # run `make install-strip'. However `strip' might not be the right
1870 # tool to use in cross-compilation environments, therefore Automake
1871 # will honor the `STRIP' environment variable to overrule this program.
1872 if test "$cross_compiling" != no; then
1873 if test -n "$ac_tool_prefix"; then
1874 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1875 set dummy ${ac_tool_prefix}strip; ac_word=$2
1876 echo "$as_me:$LINENO: checking for $ac_word" >&5
1877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1878 if test "${ac_cv_prog_STRIP+set}" = set; then
1879 echo $ECHO_N "(cached) $ECHO_C" >&6
1881 if test -n "$STRIP"; then
1882 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1888 test -z "$as_dir" && as_dir=.
1889 for ac_exec_ext in '' $ac_executable_extensions; do
1890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1891 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1900 STRIP=$ac_cv_prog_STRIP
1901 if test -n "$STRIP"; then
1902 echo "$as_me:$LINENO: result: $STRIP" >&5
1903 echo "${ECHO_T}$STRIP" >&6
1905 echo "$as_me:$LINENO: result: no" >&5
1906 echo "${ECHO_T}no" >&6
1910 if test -z "$ac_cv_prog_STRIP"; then
1912 # Extract the first word of "strip", so it can be a program name with args.
1913 set dummy strip; ac_word=$2
1914 echo "$as_me:$LINENO: checking for $ac_word" >&5
1915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1916 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1917 echo $ECHO_N "(cached) $ECHO_C" >&6
1919 if test -n "$ac_ct_STRIP"; then
1920 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1926 test -z "$as_dir" && as_dir=.
1927 for ac_exec_ext in '' $ac_executable_extensions; do
1928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1929 ac_cv_prog_ac_ct_STRIP="strip"
1930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1936 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1939 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1940 if test -n "$ac_ct_STRIP"; then
1941 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1942 echo "${ECHO_T}$ac_ct_STRIP" >&6
1944 echo "$as_me:$LINENO: result: no" >&5
1945 echo "${ECHO_T}no" >&6
1950 STRIP="$ac_cv_prog_STRIP"
1954 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1956 # We need awk for the "check" target. The system "awk" is bad on
1962 opt_fs="localfs locasefs ftpfs gnetfs"
1964 # Check whether --enable-kernel-support or --disable-kernel-support was given.
1965 if test "${enable_kernel_support+set}" = set; then
1966 enableval="$enable_kernel_support"
1967 KERNEL_SUPPORT=$enableval
1970 if test "$KERNEL_SUPPORT" != "no"
1973 echo "$as_me:$LINENO: checking OS" >&5
1974 echo $ECHO_N "checking OS... $ECHO_C" >&6
1976 if test ! -d kernel/$OS_DIR
1978 { { echo "$as_me:$LINENO: error: $OS_DIR - not supported!" >&5
1979 echo "$as_me: error: $OS_DIR - not supported!" >&2;}
1980 { (exit 1); exit 1; }; }
1982 echo "$as_me:$LINENO: result: $OS_DIR" >&5
1983 echo "${ECHO_T}$OS_DIR" >&6
1986 if test "$OS_DIR"="Linux"
1989 echo "$as_me:$LINENO: checking kernel" >&5
1990 echo $ECHO_N "checking kernel... $ECHO_C" >&6
1992 # Check whether --with-kernel or --without-kernel was given.
1993 if test "${with_kernel+set}" = set; then
1994 withval="$with_kernel"
1995 KERNEL_VERSION=$withval
1997 KERNEL_VERSION=`uname -r`
1999 MODULES_DIR=/lib/modules/$KERNEL_VERSION
2000 echo "$as_me:$LINENO: result: $KERNEL_VERSION" >&5
2001 echo "${ECHO_T}$KERNEL_VERSION" >&6
2003 echo "$as_me:$LINENO: checking kernel support" >&5
2004 echo $ECHO_N "checking kernel support... $ECHO_C" >&6
2005 KERNEL_DIR=`echo $KERNEL_VERSION | cut -d'.' -f1,2`
2006 if test ! -d kernel/$OS_DIR/$KERNEL_DIR
2008 { { echo "$as_me:$LINENO: error: $KERNEL_DIR not supported!" >&5
2009 echo "$as_me: error: $KERNEL_DIR not supported!" >&2;}
2010 { (exit 1); exit 1; }; }
2012 echo "$as_me:$LINENO: result: supported in kernel/$OS_DIR/$KERNEL_DIR" >&5
2013 echo "${ECHO_T}supported in kernel/$OS_DIR/$KERNEL_DIR" >&6
2016 echo "$as_me:$LINENO: checking kernel headers" >&5
2017 echo $ECHO_N "checking kernel headers... $ECHO_C" >&6
2019 # Check whether --with-kheaders or --without-kheaders was given.
2020 if test "${with_kheaders+set}" = set; then
2021 withval="$with_kheaders"
2024 KERNEL_HDR=$MODULES_DIR/build/include
2026 if test ! -f $KERNEL_HDR/linux/fs.h
2028 { { echo "$as_me:$LINENO: error: not found in $KERNEL_HDR. please install them!" >&5
2029 echo "$as_me: error: not found in $KERNEL_HDR. please install them!" >&2;}
2030 { (exit 1); exit 1; }; }
2032 echo "$as_me:$LINENO: result: found in $KERNEL_HDR" >&5
2033 echo "${ECHO_T}found in $KERNEL_HDR" >&6
2036 echo "$as_me:$LINENO: checking kernel configuration" >&5
2037 echo $ECHO_N "checking kernel configuration... $ECHO_C" >&6
2038 if test -f $MODULES_DIR/build/.config
2040 tmp=`cat $MODULES_DIR/build/.config | grep CONFIG_MODVERSIONS=y`
2043 echo "$as_me:$LINENO: result: found, using modversions" >&5
2044 echo "${ECHO_T}found, using modversions" >&6
2046 # MODV_FLAGS="-DMODVERSIONS -include $KERNEL_HDR/linux/modversions.h"
2048 echo "$as_me:$LINENO: result: found, not using modversions" >&5
2049 echo "${ECHO_T}found, not using modversions" >&6
2052 echo "$as_me:$LINENO: result: not found at $MODULES_DIR/build/.config, assuming modversions support" >&5
2053 echo "${ECHO_T}not found at $MODULES_DIR/build/.config, assuming modversions support" >&6
2055 # MODV_FLAGS="-DMODVERSIONS -include $KERNEL_HDR/linux/modversions.h"
2058 # Check whether --enable-modversions or --disable-modversions was given.
2059 if test "${enable_modversions+set}" = set; then
2060 enableval="$enable_modversions"
2061 if test $enableval = "yes"; then MODVERSIONS="yes"; else MODVERSIONS=""; fi
2064 if test $MODVERSIONS; then
2065 echo "$as_me:$LINENO: checking modversions.h" >&5
2066 echo $ECHO_N "checking modversions.h... $ECHO_C" >&6
2067 if test -f $KERNEL_HDR/linux/modversions.h; then
2068 MODV_FILE="$KERNEL_HDR/linux/modversions.h"
2071 if test -f $KERNEL_HDR/config/modversions.h; then
2072 MODV_FILE="$KERNEL_HDR/config/modversions.h"
2075 if test $MODV_FILE; then
2076 MODV_FLAGS="-DMODVERSIONS -include $MODV_FILE"
2077 echo "$as_me:$LINENO: result: $MODV_FILE" >&5
2078 echo "${ECHO_T}$MODV_FILE" >&6
2080 { { echo "$as_me:$LINENO: error: not found!" >&5
2081 echo "$as_me: error: not found!" >&2;}
2082 { (exit 1); exit 1; }; }
2096 # Check whether --enable-debug or --disable-debug was given.
2097 if test "${enable_debug+set}" = set; then
2098 enableval="$enable_debug"
2099 DEBUG_FLAGS="-g -DDEBUG" && CXXFLAGS="-g -O2 -Wall -DDEBUG -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" && CFLAGS="-g -O2 -Wall -DDEBUG -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
2101 CXXFLAGS="-O2 -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" && CFLAGS="-O2 -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
2105 # Check whether --enable-kdebug or --disable-kdebug was given.
2106 if test "${enable_kdebug+set}" = set; then
2107 enableval="$enable_kdebug"
2108 KDEBUG_FLAGS="-DLUFS_DEBUG -DLUFS_VERBOSE"
2112 # Check whether --enable-autofs-install or --disable-autofs-install was given.
2113 if test "${enable_autofs_install+set}" = set; then
2114 enableval="$enable_autofs_install"
2115 AUTOFS_INSTALL="yes"
2119 # Check whether --enable-suid or --disable-suid was given.
2120 if test "${enable_suid+set}" = set; then
2121 enableval="$enable_suid"
2122 if test $enableval = "no"; then LUFS_SUID=""; else LUFS_SUID="true"; fi
2128 # Check whether --enable-static or --disable-static was given.
2129 if test "${enable_static+set}" = set; then
2130 enableval="$enable_static"
2131 p=${PACKAGE-default}
2133 yes) enable_static=yes ;;
2134 no) enable_static=no ;;
2137 # Look at the argument we got. We use all the common list separators.
2138 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2139 for pkg in $enableval; do
2141 if test "X$pkg" = "X$p"; then
2155 ac_cpp='$CPP $CPPFLAGS'
2156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2159 if test -n "$ac_tool_prefix"; then
2160 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2161 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2162 echo "$as_me:$LINENO: checking for $ac_word" >&5
2163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2164 if test "${ac_cv_prog_CC+set}" = set; then
2165 echo $ECHO_N "(cached) $ECHO_C" >&6
2167 if test -n "$CC"; then
2168 ac_cv_prog_CC="$CC" # Let the user override the test.
2170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2174 test -z "$as_dir" && as_dir=.
2175 for ac_exec_ext in '' $ac_executable_extensions; do
2176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2177 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2187 if test -n "$CC"; then
2188 echo "$as_me:$LINENO: result: $CC" >&5
2189 echo "${ECHO_T}$CC" >&6
2191 echo "$as_me:$LINENO: result: no" >&5
2192 echo "${ECHO_T}no" >&6
2196 if test -z "$ac_cv_prog_CC"; then
2198 # Extract the first word of "gcc", so it can be a program name with args.
2199 set dummy gcc; ac_word=$2
2200 echo "$as_me:$LINENO: checking for $ac_word" >&5
2201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2202 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2203 echo $ECHO_N "(cached) $ECHO_C" >&6
2205 if test -n "$ac_ct_CC"; then
2206 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2212 test -z "$as_dir" && as_dir=.
2213 for ac_exec_ext in '' $ac_executable_extensions; do
2214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2215 ac_cv_prog_ac_ct_CC="gcc"
2216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2224 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2225 if test -n "$ac_ct_CC"; then
2226 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2227 echo "${ECHO_T}$ac_ct_CC" >&6
2229 echo "$as_me:$LINENO: result: no" >&5
2230 echo "${ECHO_T}no" >&6
2238 if test -z "$CC"; then
2239 if test -n "$ac_tool_prefix"; then
2240 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2241 set dummy ${ac_tool_prefix}cc; ac_word=$2
2242 echo "$as_me:$LINENO: checking for $ac_word" >&5
2243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2244 if test "${ac_cv_prog_CC+set}" = set; then
2245 echo $ECHO_N "(cached) $ECHO_C" >&6
2247 if test -n "$CC"; then
2248 ac_cv_prog_CC="$CC" # Let the user override the test.
2250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2254 test -z "$as_dir" && as_dir=.
2255 for ac_exec_ext in '' $ac_executable_extensions; do
2256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2257 ac_cv_prog_CC="${ac_tool_prefix}cc"
2258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2267 if test -n "$CC"; then
2268 echo "$as_me:$LINENO: result: $CC" >&5
2269 echo "${ECHO_T}$CC" >&6
2271 echo "$as_me:$LINENO: result: no" >&5
2272 echo "${ECHO_T}no" >&6
2276 if test -z "$ac_cv_prog_CC"; then
2278 # Extract the first word of "cc", so it can be a program name with args.
2279 set dummy cc; ac_word=$2
2280 echo "$as_me:$LINENO: checking for $ac_word" >&5
2281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2282 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2283 echo $ECHO_N "(cached) $ECHO_C" >&6
2285 if test -n "$ac_ct_CC"; then
2286 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292 test -z "$as_dir" && as_dir=.
2293 for ac_exec_ext in '' $ac_executable_extensions; do
2294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2295 ac_cv_prog_ac_ct_CC="cc"
2296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2304 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2305 if test -n "$ac_ct_CC"; then
2306 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2307 echo "${ECHO_T}$ac_ct_CC" >&6
2309 echo "$as_me:$LINENO: result: no" >&5
2310 echo "${ECHO_T}no" >&6
2319 if test -z "$CC"; then
2320 # Extract the first word of "cc", so it can be a program name with args.
2321 set dummy cc; ac_word=$2
2322 echo "$as_me:$LINENO: checking for $ac_word" >&5
2323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2324 if test "${ac_cv_prog_CC+set}" = set; then
2325 echo $ECHO_N "(cached) $ECHO_C" >&6
2327 if test -n "$CC"; then
2328 ac_cv_prog_CC="$CC" # Let the user override the test.
2331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2335 test -z "$as_dir" && as_dir=.
2336 for ac_exec_ext in '' $ac_executable_extensions; do
2337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2338 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2339 ac_prog_rejected=yes
2343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2349 if test $ac_prog_rejected = yes; then
2350 # We found a bogon in the path, so make sure we never use it.
2351 set dummy $ac_cv_prog_CC
2353 if test $# != 0; then
2354 # We chose a different compiler from the bogus one.
2355 # However, it has the same basename, so the bogon will be chosen
2356 # first if we set CC to just the basename; use the full file name.
2358 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2364 if test -n "$CC"; then
2365 echo "$as_me:$LINENO: result: $CC" >&5
2366 echo "${ECHO_T}$CC" >&6
2368 echo "$as_me:$LINENO: result: no" >&5
2369 echo "${ECHO_T}no" >&6
2373 if test -z "$CC"; then
2374 if test -n "$ac_tool_prefix"; then
2377 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2378 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2379 echo "$as_me:$LINENO: checking for $ac_word" >&5
2380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2381 if test "${ac_cv_prog_CC+set}" = set; then
2382 echo $ECHO_N "(cached) $ECHO_C" >&6
2384 if test -n "$CC"; then
2385 ac_cv_prog_CC="$CC" # Let the user override the test.
2387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391 test -z "$as_dir" && as_dir=.
2392 for ac_exec_ext in '' $ac_executable_extensions; do
2393 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2394 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2404 if test -n "$CC"; then
2405 echo "$as_me:$LINENO: result: $CC" >&5
2406 echo "${ECHO_T}$CC" >&6
2408 echo "$as_me:$LINENO: result: no" >&5
2409 echo "${ECHO_T}no" >&6
2412 test -n "$CC" && break
2415 if test -z "$CC"; then
2419 # Extract the first word of "$ac_prog", so it can be a program name with args.
2420 set dummy $ac_prog; ac_word=$2
2421 echo "$as_me:$LINENO: checking for $ac_word" >&5
2422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2423 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2424 echo $ECHO_N "(cached) $ECHO_C" >&6
2426 if test -n "$ac_ct_CC"; then
2427 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433 test -z "$as_dir" && as_dir=.
2434 for ac_exec_ext in '' $ac_executable_extensions; do
2435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2436 ac_cv_prog_ac_ct_CC="$ac_prog"
2437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2445 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2446 if test -n "$ac_ct_CC"; then
2447 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2448 echo "${ECHO_T}$ac_ct_CC" >&6
2450 echo "$as_me:$LINENO: result: no" >&5
2451 echo "${ECHO_T}no" >&6
2454 test -n "$ac_ct_CC" && break
2463 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2464 See \`config.log' for more details." >&5
2465 echo "$as_me: error: no acceptable C compiler found in \$PATH
2466 See \`config.log' for more details." >&2;}
2467 { (exit 1); exit 1; }; }
2469 # Provide some information about the compiler.
2470 echo "$as_me:$LINENO:" \
2471 "checking for C compiler version" >&5
2472 ac_compiler=`set X $ac_compile; echo $2`
2473 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2474 (eval $ac_compiler --version </dev/null >&5) 2>&5
2476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477 (exit $ac_status); }
2478 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2479 (eval $ac_compiler -v </dev/null >&5) 2>&5
2481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 (exit $ac_status); }
2483 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2484 (eval $ac_compiler -V </dev/null >&5) 2>&5
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); }
2489 cat >conftest.$ac_ext <<_ACEOF
2490 #line $LINENO "configure"
2493 cat confdefs.h >>conftest.$ac_ext
2494 cat >>conftest.$ac_ext <<_ACEOF
2495 /* end confdefs.h. */
2505 ac_clean_files_save=$ac_clean_files
2506 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2507 # Try to create an executable without -o first, disregard a.out.
2508 # It will help us diagnose broken compilers, and finding out an intuition
2510 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2511 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2512 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2513 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2514 (eval $ac_link_default) 2>&5
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); }; then
2518 # Find the output, starting from the most likely. This scheme is
2519 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2522 # Be careful to initialize this variable, since it used to be cached.
2523 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2525 # b.out is created by i960 compilers.
2526 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2528 test -f "$ac_file" || continue
2530 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2533 # This is the source file.
2536 # We found the default executable, but exeext='' is most
2540 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2541 # FIXME: I believe we export ac_cv_exeext for Libtool,
2542 # but it would be cool to find out if it's true. Does anybody
2543 # maintain Libtool? --akim.
2551 echo "$as_me: failed program was:" >&5
2552 sed 's/^/| /' conftest.$ac_ext >&5
2554 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2555 See \`config.log' for more details." >&5
2556 echo "$as_me: error: C compiler cannot create executables
2557 See \`config.log' for more details." >&2;}
2558 { (exit 77); exit 77; }; }
2561 ac_exeext=$ac_cv_exeext
2562 echo "$as_me:$LINENO: result: $ac_file" >&5
2563 echo "${ECHO_T}$ac_file" >&6
2565 # Check the compiler produces executables we can run. If not, either
2566 # the compiler is broken, or we cross compile.
2567 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2568 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2569 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2570 # If not cross compiling, check that we can run a simple program.
2571 if test "$cross_compiling" != yes; then
2572 if { ac_try='./$ac_file'
2573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); }; }; then
2580 if test "$cross_compiling" = maybe; then
2583 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2584 If you meant to cross compile, use \`--host'.
2585 See \`config.log' for more details." >&5
2586 echo "$as_me: error: cannot run C compiled programs.
2587 If you meant to cross compile, use \`--host'.
2588 See \`config.log' for more details." >&2;}
2589 { (exit 1); exit 1; }; }
2593 echo "$as_me:$LINENO: result: yes" >&5
2594 echo "${ECHO_T}yes" >&6
2596 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2597 ac_clean_files=$ac_clean_files_save
2598 # Check the compiler produces executables we can run. If not, either
2599 # the compiler is broken, or we cross compile.
2600 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2601 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2602 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2603 echo "${ECHO_T}$cross_compiling" >&6
2605 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2606 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2608 (eval $ac_link) 2>&5
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); }; then
2612 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2613 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2614 # work properly (i.e., refer to `conftest.exe'), while it won't with
2616 for ac_file in conftest.exe conftest conftest.*; do
2617 test -f "$ac_file" || continue
2619 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2620 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2627 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2628 See \`config.log' for more details." >&5
2629 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2630 See \`config.log' for more details." >&2;}
2631 { (exit 1); exit 1; }; }
2634 rm -f conftest$ac_cv_exeext
2635 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2636 echo "${ECHO_T}$ac_cv_exeext" >&6
2638 rm -f conftest.$ac_ext
2639 EXEEXT=$ac_cv_exeext
2641 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2642 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2643 if test "${ac_cv_objext+set}" = set; then
2644 echo $ECHO_N "(cached) $ECHO_C" >&6
2646 cat >conftest.$ac_ext <<_ACEOF
2647 #line $LINENO "configure"
2650 cat confdefs.h >>conftest.$ac_ext
2651 cat >>conftest.$ac_ext <<_ACEOF
2652 /* end confdefs.h. */
2662 rm -f conftest.o conftest.obj
2663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2664 (eval $ac_compile) 2>&5
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }; then
2668 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2670 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2671 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2676 echo "$as_me: failed program was:" >&5
2677 sed 's/^/| /' conftest.$ac_ext >&5
2679 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2680 See \`config.log' for more details." >&5
2681 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2682 See \`config.log' for more details." >&2;}
2683 { (exit 1); exit 1; }; }
2686 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2688 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2689 echo "${ECHO_T}$ac_cv_objext" >&6
2690 OBJEXT=$ac_cv_objext
2692 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2693 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2694 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2695 echo $ECHO_N "(cached) $ECHO_C" >&6
2697 cat >conftest.$ac_ext <<_ACEOF
2698 #line $LINENO "configure"
2701 cat confdefs.h >>conftest.$ac_ext
2702 cat >>conftest.$ac_ext <<_ACEOF
2703 /* end confdefs.h. */
2716 rm -f conftest.$ac_objext
2717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2718 (eval $ac_compile) 2>&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); } &&
2722 { ac_try='test -s conftest.$ac_objext'
2723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; }; then
2730 echo "$as_me: failed program was:" >&5
2731 sed 's/^/| /' conftest.$ac_ext >&5
2735 rm -f conftest.$ac_objext conftest.$ac_ext
2736 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2739 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2740 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2741 GCC=`test $ac_compiler_gnu = yes && echo yes`
2742 ac_test_CFLAGS=${CFLAGS+set}
2743 ac_save_CFLAGS=$CFLAGS
2745 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2746 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2747 if test "${ac_cv_prog_cc_g+set}" = set; then
2748 echo $ECHO_N "(cached) $ECHO_C" >&6
2750 cat >conftest.$ac_ext <<_ACEOF
2751 #line $LINENO "configure"
2754 cat confdefs.h >>conftest.$ac_ext
2755 cat >>conftest.$ac_ext <<_ACEOF
2756 /* end confdefs.h. */
2766 rm -f conftest.$ac_objext
2767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2768 (eval $ac_compile) 2>&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); } &&
2772 { ac_try='test -s conftest.$ac_objext'
2773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }; }; then
2780 echo "$as_me: failed program was:" >&5
2781 sed 's/^/| /' conftest.$ac_ext >&5
2785 rm -f conftest.$ac_objext conftest.$ac_ext
2787 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2788 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2789 if test "$ac_test_CFLAGS" = set; then
2790 CFLAGS=$ac_save_CFLAGS
2791 elif test $ac_cv_prog_cc_g = yes; then
2792 if test "$GCC" = yes; then
2798 if test "$GCC" = yes; then
2804 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2805 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2806 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2807 echo $ECHO_N "(cached) $ECHO_C" >&6
2809 ac_cv_prog_cc_stdc=no
2811 cat >conftest.$ac_ext <<_ACEOF
2812 #line $LINENO "configure"
2815 cat confdefs.h >>conftest.$ac_ext
2816 cat >>conftest.$ac_ext <<_ACEOF
2817 /* end confdefs.h. */
2820 #include <sys/types.h>
2821 #include <sys/stat.h>
2822 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2823 struct buf { int x; };
2824 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2825 static char *e (p, i)
2831 static char *f (char * (*g) (char **, int), char **p, ...)
2836 s = g (p, va_arg (v,int));
2840 int test (int i, double x);
2841 struct s1 {int (*f) (int a);};
2842 struct s2 {int (*f) (double a);};
2843 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2849 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2854 # Don't try gcc -ansi; that turns off useful extensions and
2855 # breaks some systems' header files.
2856 # AIX -qlanglvl=ansi
2857 # Ultrix and OSF/1 -std1
2858 # HP-UX 10.20 and later -Ae
2859 # HP-UX older versions -Aa -D_HPUX_SOURCE
2860 # SVR4 -Xc -D__EXTENSIONS__
2861 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2863 CC="$ac_save_CC $ac_arg"
2864 rm -f conftest.$ac_objext
2865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2866 (eval $ac_compile) 2>&5
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); } &&
2870 { ac_try='test -s conftest.$ac_objext'
2871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); }; }; then
2876 ac_cv_prog_cc_stdc=$ac_arg
2879 echo "$as_me: failed program was:" >&5
2880 sed 's/^/| /' conftest.$ac_ext >&5
2883 rm -f conftest.$ac_objext
2885 rm -f conftest.$ac_ext conftest.$ac_objext
2890 case "x$ac_cv_prog_cc_stdc" in
2892 echo "$as_me:$LINENO: result: none needed" >&5
2893 echo "${ECHO_T}none needed" >&6 ;;
2895 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2896 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2897 CC="$CC $ac_cv_prog_cc_stdc" ;;
2900 # Some people use a C++ compiler to compile C. Since we use `exit',
2901 # in C++ we need to declare it. In case someone uses the same compiler
2902 # for both compiling C and C++ we need to have the C++ compiler decide
2903 # the declaration of exit, since it's the most demanding environment.
2904 cat >conftest.$ac_ext <<_ACEOF
2909 rm -f conftest.$ac_objext
2910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2911 (eval $ac_compile) 2>&5
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); } &&
2915 { ac_try='test -s conftest.$ac_objext'
2916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }; }; then
2921 for ac_declaration in \
2923 '#include <stdlib.h>' \
2924 'extern "C" void std::exit (int) throw (); using std::exit;' \
2925 'extern "C" void std::exit (int); using std::exit;' \
2926 'extern "C" void exit (int) throw ();' \
2927 'extern "C" void exit (int);' \
2930 cat >conftest.$ac_ext <<_ACEOF
2931 #line $LINENO "configure"
2934 cat confdefs.h >>conftest.$ac_ext
2935 cat >>conftest.$ac_ext <<_ACEOF
2936 /* end confdefs.h. */
2947 rm -f conftest.$ac_objext
2948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2949 (eval $ac_compile) 2>&5
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); } &&
2953 { ac_try='test -s conftest.$ac_objext'
2954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); }; }; then
2961 echo "$as_me: failed program was:" >&5
2962 sed 's/^/| /' conftest.$ac_ext >&5
2966 rm -f conftest.$ac_objext conftest.$ac_ext
2967 cat >conftest.$ac_ext <<_ACEOF
2968 #line $LINENO "configure"
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h. */
2983 rm -f conftest.$ac_objext
2984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2985 (eval $ac_compile) 2>&5
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); } &&
2989 { ac_try='test -s conftest.$ac_objext'
2990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); }; }; then
2997 echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.$ac_ext >&5
3001 rm -f conftest.$ac_objext conftest.$ac_ext
3004 if test -n "$ac_declaration"; then
3005 echo '#ifdef __cplusplus' >>confdefs.h
3006 echo $ac_declaration >>confdefs.h
3007 echo '#endif' >>confdefs.h
3011 echo "$as_me: failed program was:" >&5
3012 sed 's/^/| /' conftest.$ac_ext >&5
3015 rm -f conftest.$ac_objext conftest.$ac_ext
3017 ac_cpp='$CPP $CPPFLAGS'
3018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3021 DEPDIR="${am__leading_dot}deps"
3023 ac_config_commands="$ac_config_commands depfiles"
3026 am_make=${MAKE-make}
3027 cat > confinc << 'END'
3032 # If we don't find an include directive, just comment out the code.
3033 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3034 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3038 # First try GNU make style include.
3039 echo "include confinc" > confmf
3040 # We grep out `Entering directory' and `Leaving directory'
3041 # messages which can occur if `w' ends up in MAKEFLAGS.
3042 # In particular we don't look at `^make:' because GNU make might
3043 # be invoked under some other name (usually "gmake"), in which
3044 # case it prints its new name instead of `make'.
3045 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3050 # Now try BSD make style include.
3051 if test "$am__include" = "#"; then
3052 echo '.include "confinc"' > confmf
3053 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3054 am__include=.include
3061 echo "$as_me:$LINENO: result: $_am_result" >&5
3062 echo "${ECHO_T}$_am_result" >&6
3063 rm -f confinc confmf
3065 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3066 if test "${enable_dependency_tracking+set}" = set; then
3067 enableval="$enable_dependency_tracking"
3070 if test "x$enable_dependency_tracking" != xno; then
3071 am_depcomp="$ac_aux_dir/depcomp"
3076 if test "x$enable_dependency_tracking" != xno; then
3087 depcc="$CC" am_compiler_list=
3089 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3090 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3091 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3092 echo $ECHO_N "(cached) $ECHO_C" >&6
3094 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3095 # We make a subdir and do the tests there. Otherwise we can end up
3096 # making bogus files that we don't know about and never remove. For
3097 # instance it was reported that on HP-UX the gcc test will end up
3098 # making a dummy file named `D' -- because `-MD' means `put the output
3101 # Copy depcomp to subdir because otherwise we won't find it if we're
3102 # using a relative directory.
3103 cp "$am_depcomp" conftest.dir
3105 # We will build objects and dependencies in a subdirectory because
3106 # it helps to detect inapplicable dependency modes. For instance
3107 # both Tru64's cc and ICC support -MD to output dependencies as a
3108 # side effect of compilation, but ICC will put the dependencies in
3109 # the current directory while Tru64 will put them in the object
3113 am_cv_CC_dependencies_compiler_type=none
3114 if test "$am_compiler_list" = ""; then
3115 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3117 for depmode in $am_compiler_list; do
3118 # Setup a source with many dependencies, because some compilers
3119 # like to wrap large dependency lists on column 80 (with \), and
3120 # we should not choose a depcomp mode which is confused by this.
3122 # We need to recreate these files for each test, as the compiler may
3123 # overwrite some of them when testing with obscure command lines.
3124 # This happens at least with the AIX C compiler.
3126 for i in 1 2 3 4 5 6; do
3127 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3130 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3134 # after this tag, mechanisms are not by side-effect, so they'll
3135 # only be used when explicitly requested
3136 if test "x$enable_dependency_tracking" = xyes; then
3144 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3145 # mode. It turns out that the SunPro C++ compiler does not properly
3146 # handle `-M -o', and we need to detect this.
3147 if depmode=$depmode \
3148 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3149 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3150 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3151 >/dev/null 2>conftest.err &&
3152 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3153 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3154 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3155 # icc doesn't choke on unknown options, it will just issue warnings
3156 # (even with -Werror). So we grep stderr for any message
3157 # that says an option was ignored.
3158 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3159 am_cv_CC_dependencies_compiler_type=$depmode
3168 am_cv_CC_dependencies_compiler_type=none
3172 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3173 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3174 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3179 test "x$enable_dependency_tracking" != xno \
3180 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3182 am__fastdepCC_FALSE='#'
3184 am__fastdepCC_TRUE='#'
3185 am__fastdepCC_FALSE=
3190 ac_cpp='$CPP $CPPFLAGS'
3191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3194 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3195 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3196 # On Suns, sometimes $CPP names a directory.
3197 if test -n "$CPP" && test -d "$CPP"; then
3200 if test -z "$CPP"; then
3201 if test "${ac_cv_prog_CPP+set}" = set; then
3202 echo $ECHO_N "(cached) $ECHO_C" >&6
3204 # Double quotes because CPP needs to be expanded
3205 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3208 for ac_c_preproc_warn_flag in '' yes
3210 # Use a header file that comes with gcc, so configuring glibc
3211 # with a fresh cross-compiler works.
3212 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3213 # <limits.h> exists even on freestanding compilers.
3214 # On the NeXT, cc -E runs the code through the compiler's parser,
3215 # not just through cpp. "Syntax error" is here to catch this case.
3216 cat >conftest.$ac_ext <<_ACEOF
3217 #line $LINENO "configure"
3220 cat confdefs.h >>conftest.$ac_ext
3221 cat >>conftest.$ac_ext <<_ACEOF
3222 /* end confdefs.h. */
3224 # include <limits.h>
3226 # include <assert.h>
3230 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3231 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3233 grep -v '^ *+' conftest.er1 >conftest.err
3235 cat conftest.err >&5
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); } >/dev/null; then
3238 if test -s conftest.err; then
3239 ac_cpp_err=$ac_c_preproc_warn_flag
3246 if test -z "$ac_cpp_err"; then
3249 echo "$as_me: failed program was:" >&5
3250 sed 's/^/| /' conftest.$ac_ext >&5
3252 # Broken: fails on valid input.
3255 rm -f conftest.err conftest.$ac_ext
3257 # OK, works on sane cases. Now check whether non-existent headers
3258 # can be detected and how.
3259 cat >conftest.$ac_ext <<_ACEOF
3260 #line $LINENO "configure"
3263 cat confdefs.h >>conftest.$ac_ext
3264 cat >>conftest.$ac_ext <<_ACEOF
3265 /* end confdefs.h. */
3266 #include <ac_nonexistent.h>
3268 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3269 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3271 grep -v '^ *+' conftest.er1 >conftest.err
3273 cat conftest.err >&5
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); } >/dev/null; then
3276 if test -s conftest.err; then
3277 ac_cpp_err=$ac_c_preproc_warn_flag
3284 if test -z "$ac_cpp_err"; then
3285 # Broken: success on invalid input.
3288 echo "$as_me: failed program was:" >&5
3289 sed 's/^/| /' conftest.$ac_ext >&5
3291 # Passes both tests.
3295 rm -f conftest.err conftest.$ac_ext
3298 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3299 rm -f conftest.err conftest.$ac_ext
3300 if $ac_preproc_ok; then
3312 echo "$as_me:$LINENO: result: $CPP" >&5
3313 echo "${ECHO_T}$CPP" >&6
3315 for ac_c_preproc_warn_flag in '' yes
3317 # Use a header file that comes with gcc, so configuring glibc
3318 # with a fresh cross-compiler works.
3319 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3320 # <limits.h> exists even on freestanding compilers.
3321 # On the NeXT, cc -E runs the code through the compiler's parser,
3322 # not just through cpp. "Syntax error" is here to catch this case.
3323 cat >conftest.$ac_ext <<_ACEOF
3324 #line $LINENO "configure"
3327 cat confdefs.h >>conftest.$ac_ext
3328 cat >>conftest.$ac_ext <<_ACEOF
3329 /* end confdefs.h. */
3331 # include <limits.h>
3333 # include <assert.h>
3337 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3338 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3340 grep -v '^ *+' conftest.er1 >conftest.err
3342 cat conftest.err >&5
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); } >/dev/null; then
3345 if test -s conftest.err; then
3346 ac_cpp_err=$ac_c_preproc_warn_flag
3353 if test -z "$ac_cpp_err"; then
3356 echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.$ac_ext >&5
3359 # Broken: fails on valid input.
3362 rm -f conftest.err conftest.$ac_ext
3364 # OK, works on sane cases. Now check whether non-existent headers
3365 # can be detected and how.
3366 cat >conftest.$ac_ext <<_ACEOF
3367 #line $LINENO "configure"
3370 cat confdefs.h >>conftest.$ac_ext
3371 cat >>conftest.$ac_ext <<_ACEOF
3372 /* end confdefs.h. */
3373 #include <ac_nonexistent.h>
3375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3376 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3378 grep -v '^ *+' conftest.er1 >conftest.err
3380 cat conftest.err >&5
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); } >/dev/null; then
3383 if test -s conftest.err; then
3384 ac_cpp_err=$ac_c_preproc_warn_flag
3391 if test -z "$ac_cpp_err"; then
3392 # Broken: success on invalid input.
3395 echo "$as_me: failed program was:" >&5
3396 sed 's/^/| /' conftest.$ac_ext >&5
3398 # Passes both tests.
3402 rm -f conftest.err conftest.$ac_ext
3405 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3406 rm -f conftest.err conftest.$ac_ext
3407 if $ac_preproc_ok; then
3410 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3411 See \`config.log' for more details." >&5
3412 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3413 See \`config.log' for more details." >&2;}
3414 { (exit 1); exit 1; }; }
3418 ac_cpp='$CPP $CPPFLAGS'
3419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3424 ac_cpp='$CXXCPP $CPPFLAGS'
3425 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3426 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3427 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3428 if test -n "$ac_tool_prefix"; then
3429 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3431 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3432 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3433 echo "$as_me:$LINENO: checking for $ac_word" >&5
3434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3435 if test "${ac_cv_prog_CXX+set}" = set; then
3436 echo $ECHO_N "(cached) $ECHO_C" >&6
3438 if test -n "$CXX"; then
3439 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445 test -z "$as_dir" && as_dir=.
3446 for ac_exec_ext in '' $ac_executable_extensions; do
3447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3448 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3458 if test -n "$CXX"; then
3459 echo "$as_me:$LINENO: result: $CXX" >&5
3460 echo "${ECHO_T}$CXX" >&6
3462 echo "$as_me:$LINENO: result: no" >&5
3463 echo "${ECHO_T}no" >&6
3466 test -n "$CXX" && break
3469 if test -z "$CXX"; then
3471 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3473 # Extract the first word of "$ac_prog", so it can be a program name with args.
3474 set dummy $ac_prog; ac_word=$2
3475 echo "$as_me:$LINENO: checking for $ac_word" >&5
3476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3477 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3478 echo $ECHO_N "(cached) $ECHO_C" >&6
3480 if test -n "$ac_ct_CXX"; then
3481 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3487 test -z "$as_dir" && as_dir=.
3488 for ac_exec_ext in '' $ac_executable_extensions; do
3489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3490 ac_cv_prog_ac_ct_CXX="$ac_prog"
3491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3499 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3500 if test -n "$ac_ct_CXX"; then
3501 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3502 echo "${ECHO_T}$ac_ct_CXX" >&6
3504 echo "$as_me:$LINENO: result: no" >&5
3505 echo "${ECHO_T}no" >&6
3508 test -n "$ac_ct_CXX" && break
3510 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3516 # Provide some information about the compiler.
3517 echo "$as_me:$LINENO:" \
3518 "checking for C++ compiler version" >&5
3519 ac_compiler=`set X $ac_compile; echo $2`
3520 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3521 (eval $ac_compiler --version </dev/null >&5) 2>&5
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); }
3525 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3526 (eval $ac_compiler -v </dev/null >&5) 2>&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); }
3530 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3531 (eval $ac_compiler -V </dev/null >&5) 2>&5
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); }
3536 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3537 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3538 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3539 echo $ECHO_N "(cached) $ECHO_C" >&6
3541 cat >conftest.$ac_ext <<_ACEOF
3542 #line $LINENO "configure"
3545 cat confdefs.h >>conftest.$ac_ext
3546 cat >>conftest.$ac_ext <<_ACEOF
3547 /* end confdefs.h. */
3560 rm -f conftest.$ac_objext
3561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3562 (eval $ac_compile) 2>&5
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); } &&
3566 { ac_try='test -s conftest.$ac_objext'
3567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); }; }; then
3574 echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.$ac_ext >&5
3579 rm -f conftest.$ac_objext conftest.$ac_ext
3580 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3583 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3584 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3585 GXX=`test $ac_compiler_gnu = yes && echo yes`
3586 ac_test_CXXFLAGS=${CXXFLAGS+set}
3587 ac_save_CXXFLAGS=$CXXFLAGS
3589 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3590 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3591 if test "${ac_cv_prog_cxx_g+set}" = set; then
3592 echo $ECHO_N "(cached) $ECHO_C" >&6
3594 cat >conftest.$ac_ext <<_ACEOF
3595 #line $LINENO "configure"
3598 cat confdefs.h >>conftest.$ac_ext
3599 cat >>conftest.$ac_ext <<_ACEOF
3600 /* end confdefs.h. */
3610 rm -f conftest.$ac_objext
3611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3612 (eval $ac_compile) 2>&5
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); } &&
3616 { ac_try='test -s conftest.$ac_objext'
3617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); }; }; then
3622 ac_cv_prog_cxx_g=yes
3624 echo "$as_me: failed program was:" >&5
3625 sed 's/^/| /' conftest.$ac_ext >&5
3629 rm -f conftest.$ac_objext conftest.$ac_ext
3631 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3632 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3633 if test "$ac_test_CXXFLAGS" = set; then
3634 CXXFLAGS=$ac_save_CXXFLAGS
3635 elif test $ac_cv_prog_cxx_g = yes; then
3636 if test "$GXX" = yes; then
3642 if test "$GXX" = yes; then
3648 for ac_declaration in \
3650 '#include <stdlib.h>' \
3651 'extern "C" void std::exit (int) throw (); using std::exit;' \
3652 'extern "C" void std::exit (int); using std::exit;' \
3653 'extern "C" void exit (int) throw ();' \
3654 'extern "C" void exit (int);' \
3657 cat >conftest.$ac_ext <<_ACEOF
3658 #line $LINENO "configure"
3661 cat confdefs.h >>conftest.$ac_ext
3662 cat >>conftest.$ac_ext <<_ACEOF
3663 /* end confdefs.h. */
3674 rm -f conftest.$ac_objext
3675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3676 (eval $ac_compile) 2>&5
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); } &&
3680 { ac_try='test -s conftest.$ac_objext'
3681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685 (exit $ac_status); }; }; then
3688 echo "$as_me: failed program was:" >&5
3689 sed 's/^/| /' conftest.$ac_ext >&5
3693 rm -f conftest.$ac_objext conftest.$ac_ext
3694 cat >conftest.$ac_ext <<_ACEOF
3695 #line $LINENO "configure"
3698 cat confdefs.h >>conftest.$ac_ext
3699 cat >>conftest.$ac_ext <<_ACEOF
3700 /* end confdefs.h. */
3710 rm -f conftest.$ac_objext
3711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3712 (eval $ac_compile) 2>&5
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); } &&
3716 { ac_try='test -s conftest.$ac_objext'
3717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); }; }; then
3724 echo "$as_me: failed program was:" >&5
3725 sed 's/^/| /' conftest.$ac_ext >&5
3728 rm -f conftest.$ac_objext conftest.$ac_ext
3731 if test -n "$ac_declaration"; then
3732 echo '#ifdef __cplusplus' >>confdefs.h
3733 echo $ac_declaration >>confdefs.h
3734 echo '#endif' >>confdefs.h
3738 ac_cpp='$CPP $CPPFLAGS'
3739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3743 depcc="$CXX" am_compiler_list=
3745 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3746 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3747 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3748 echo $ECHO_N "(cached) $ECHO_C" >&6
3750 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3751 # We make a subdir and do the tests there. Otherwise we can end up
3752 # making bogus files that we don't know about and never remove. For
3753 # instance it was reported that on HP-UX the gcc test will end up
3754 # making a dummy file named `D' -- because `-MD' means `put the output
3757 # Copy depcomp to subdir because otherwise we won't find it if we're
3758 # using a relative directory.
3759 cp "$am_depcomp" conftest.dir
3761 # We will build objects and dependencies in a subdirectory because
3762 # it helps to detect inapplicable dependency modes. For instance
3763 # both Tru64's cc and ICC support -MD to output dependencies as a
3764 # side effect of compilation, but ICC will put the dependencies in
3765 # the current directory while Tru64 will put them in the object
3769 am_cv_CXX_dependencies_compiler_type=none
3770 if test "$am_compiler_list" = ""; then
3771 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3773 for depmode in $am_compiler_list; do
3774 # Setup a source with many dependencies, because some compilers
3775 # like to wrap large dependency lists on column 80 (with \), and
3776 # we should not choose a depcomp mode which is confused by this.
3778 # We need to recreate these files for each test, as the compiler may
3779 # overwrite some of them when testing with obscure command lines.
3780 # This happens at least with the AIX C compiler.
3782 for i in 1 2 3 4 5 6; do
3783 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3786 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3790 # after this tag, mechanisms are not by side-effect, so they'll
3791 # only be used when explicitly requested
3792 if test "x$enable_dependency_tracking" = xyes; then
3800 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3801 # mode. It turns out that the SunPro C++ compiler does not properly
3802 # handle `-M -o', and we need to detect this.
3803 if depmode=$depmode \
3804 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3805 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3806 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3807 >/dev/null 2>conftest.err &&
3808 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3809 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3810 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3811 # icc doesn't choke on unknown options, it will just issue warnings
3812 # (even with -Werror). So we grep stderr for any message
3813 # that says an option was ignored.
3814 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3815 am_cv_CXX_dependencies_compiler_type=$depmode
3824 am_cv_CXX_dependencies_compiler_type=none
3828 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3829 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3830 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3835 test "x$enable_dependency_tracking" != xno \
3836 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3837 am__fastdepCXX_TRUE=
3838 am__fastdepCXX_FALSE='#'
3840 am__fastdepCXX_TRUE='#'
3841 am__fastdepCXX_FALSE=
3845 # Find a good install program. We prefer a C program (faster),
3846 # so one script is as good as another. But avoid the broken or
3847 # incompatible versions:
3848 # SysV /etc/install, /usr/sbin/install
3849 # SunOS /usr/etc/install
3850 # IRIX /sbin/install
3852 # AmigaOS /C/install, which installs bootblocks on floppy discs
3853 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3854 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3855 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3856 # ./install, which can be erroneously created by make from ./install.sh.
3857 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3858 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3859 if test -z "$INSTALL"; then
3860 if test "${ac_cv_path_install+set}" = set; then
3861 echo $ECHO_N "(cached) $ECHO_C" >&6
3863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3867 test -z "$as_dir" && as_dir=.
3868 # Account for people who put trailing slashes in PATH elements.
3870 ./ | .// | /cC/* | \
3871 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3874 # OSF1 and SCO ODT 3.0 have their own names for install.
3875 # Don't use installbsd from OSF since it installs stuff as root
3877 for ac_prog in ginstall scoinst install; do
3878 for ac_exec_ext in '' $ac_executable_extensions; do
3879 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3880 if test $ac_prog = install &&
3881 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3882 # AIX install. It has an incompatible calling convention.
3884 elif test $ac_prog = install &&
3885 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3886 # program-specific install script used by HP pwplus--don't use.
3889 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3901 if test "${ac_cv_path_install+set}" = set; then
3902 INSTALL=$ac_cv_path_install
3904 # As a last resort, use the slow shell script. We don't cache a
3905 # path for INSTALL within a source directory, because that will
3906 # break other packages using the cache if that directory is
3907 # removed, or if the path is relative.
3908 INSTALL=$ac_install_sh
3911 echo "$as_me:$LINENO: result: $INSTALL" >&5
3912 echo "${ECHO_T}$INSTALL" >&6
3914 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3915 # It thinks the first close brace ends the variable substitution.
3916 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3918 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3920 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3922 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3923 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3925 if test "$LN_S" = "ln -s"; then
3926 echo "$as_me:$LINENO: result: yes" >&5
3927 echo "${ECHO_T}yes" >&6
3929 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3930 echo "${ECHO_T}no, using $LN_S" >&6
3933 # Check whether --enable-shared or --disable-shared was given.
3934 if test "${enable_shared+set}" = set; then
3935 enableval="$enable_shared"
3936 p=${PACKAGE-default}
3938 yes) enable_shared=yes ;;
3939 no) enable_shared=no ;;
3942 # Look at the argument we got. We use all the common list separators.
3943 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3944 for pkg in $enableval; do
3946 if test "X$pkg" = "X$p"; then
3957 # Check whether --enable-fast-install or --disable-fast-install was given.
3958 if test "${enable_fast_install+set}" = set; then
3959 enableval="$enable_fast_install"
3960 p=${PACKAGE-default}
3962 yes) enable_fast_install=yes ;;
3963 no) enable_fast_install=no ;;
3965 enable_fast_install=no
3966 # Look at the argument we got. We use all the common list separators.
3967 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3968 for pkg in $enableval; do
3970 if test "X$pkg" = "X$p"; then
3971 enable_fast_install=yes
3978 enable_fast_install=yes
3981 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3982 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3983 if test "${lt_cv_path_SED+set}" = set; then
3984 echo $ECHO_N "(cached) $ECHO_C" >&6
3986 # Loop through the user's path and test for sed and gsed.
3987 # Then use that list of sed's as ones to test for truncation.
3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3992 test -z "$as_dir" && as_dir=.
3993 for lt_ac_prog in sed gsed; do
3994 for ac_exec_ext in '' $ac_executable_extensions; do
3995 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3996 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4003 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4004 # along with /bin/sed that truncates output.
4005 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4006 test ! -f $lt_ac_sed && break
4007 cat /dev/null > conftest.in
4009 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4010 # Check for GNU sed and select it if it is found.
4011 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4012 lt_cv_path_SED=$lt_ac_sed
4016 cat conftest.in conftest.in >conftest.tmp
4017 mv conftest.tmp conftest.in
4018 cp conftest.in conftest.nl
4020 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4021 cmp -s conftest.out conftest.nl || break
4022 # 10000 chars as input seems more than enough
4023 test $lt_ac_count -gt 10 && break
4024 lt_ac_count=`expr $lt_ac_count + 1`
4025 if test $lt_ac_count -gt $lt_ac_max; then
4026 lt_ac_max=$lt_ac_count
4027 lt_cv_path_SED=$lt_ac_sed
4035 echo "$as_me:$LINENO: result: $SED" >&5
4036 echo "${ECHO_T}$SED" >&6
4038 echo "$as_me:$LINENO: checking for egrep" >&5
4039 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4040 if test "${ac_cv_prog_egrep+set}" = set; then
4041 echo $ECHO_N "(cached) $ECHO_C" >&6
4043 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4044 then ac_cv_prog_egrep='grep -E'
4045 else ac_cv_prog_egrep='egrep'
4048 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4049 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4050 EGREP=$ac_cv_prog_egrep
4054 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4055 if test "${with_gnu_ld+set}" = set; then
4056 withval="$with_gnu_ld"
4057 test "$withval" = no || with_gnu_ld=yes
4062 if test "$GCC" = yes; then
4063 # Check if gcc -print-prog-name=ld gives a path.
4064 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4065 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4068 # gcc leaves a trailing carriage return which upsets mingw
4069 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4071 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4074 # Accept absolute paths.
4076 re_direlt='/[^/][^/]*/\.\./'
4077 # Canonicalize the path of ld
4078 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4079 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4080 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4082 test -z "$LD" && LD="$ac_prog"
4085 # If it fails, then pretend we aren't using GCC.
4089 # If it is relative, then search for the first ld in PATH.
4093 elif test "$with_gnu_ld" = yes; then
4094 echo "$as_me:$LINENO: checking for GNU ld" >&5
4095 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4097 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4098 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4100 if test "${lt_cv_path_LD+set}" = set; then
4101 echo $ECHO_N "(cached) $ECHO_C" >&6
4103 if test -z "$LD"; then
4104 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4105 for ac_dir in $PATH; do
4107 test -z "$ac_dir" && ac_dir=.
4108 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4109 lt_cv_path_LD="$ac_dir/$ac_prog"
4110 # Check to see if the program is GNU ld. I'd rather use --version,
4111 # but apparently some GNU ld's only accept -v.
4112 # Break only if it was the GNU/non-GNU ld that we prefer.
4113 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4114 *GNU* | *'with BFD'*)
4115 test "$with_gnu_ld" != no && break
4118 test "$with_gnu_ld" != yes && break
4125 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4130 if test -n "$LD"; then
4131 echo "$as_me:$LINENO: result: $LD" >&5
4132 echo "${ECHO_T}$LD" >&6
4134 echo "$as_me:$LINENO: result: no" >&5
4135 echo "${ECHO_T}no" >&6
4137 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4138 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4139 { (exit 1); exit 1; }; }
4140 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4141 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4142 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
4145 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4146 case `$LD -v 2>&1 </dev/null` in
4147 *GNU* | *'with BFD'*)
4148 lt_cv_prog_gnu_ld=yes
4151 lt_cv_prog_gnu_ld=no
4155 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4156 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4157 with_gnu_ld=$lt_cv_prog_gnu_ld
4160 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4161 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4162 if test "${lt_cv_ld_reload_flag+set}" = set; then
4163 echo $ECHO_N "(cached) $ECHO_C" >&6
4165 lt_cv_ld_reload_flag='-r'
4167 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4168 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4169 reload_flag=$lt_cv_ld_reload_flag
4170 case $reload_flag in
4172 *) reload_flag=" $reload_flag" ;;
4174 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4176 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4177 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4178 if test "${lt_cv_path_NM+set}" = set; then
4179 echo $ECHO_N "(cached) $ECHO_C" >&6
4181 if test -n "$NM"; then
4182 # Let the user override the test.
4185 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4186 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4188 test -z "$ac_dir" && ac_dir=.
4189 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4190 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4191 # Check to see if the nm accepts a BSD-compat flag.
4192 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4193 # nm: unknown option "B" ignored
4194 # Tru64's nm complains that /dev/null is an invalid object file
4195 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4196 */dev/null* | *'Invalid file or object type'*)
4197 lt_cv_path_NM="$tmp_nm -B"
4201 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4203 lt_cv_path_NM="$tmp_nm -p"
4207 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4208 continue # so that we can try to find one that supports BSD flags
4215 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4218 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4219 echo "${ECHO_T}$lt_cv_path_NM" >&6
4222 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4223 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4224 if test "${lt_cv_deplibs_check_method+set}" = set; then
4225 echo $ECHO_N "(cached) $ECHO_C" >&6
4227 lt_cv_file_magic_cmd='$MAGIC_CMD'
4228 lt_cv_file_magic_test_file=
4229 lt_cv_deplibs_check_method='unknown'
4230 # Need to set the preceding variable on all platforms that support
4231 # interlibrary dependencies.
4232 # 'none' -- dependencies not supported.
4233 # `unknown' -- same as none, but documents that we really don't know.
4234 # 'pass_all' -- all dependencies passed with no checks.
4235 # 'test_compile' -- check by making test program.
4236 # 'file_magic [[regex]]' -- check by looking for files in library path
4237 # which responds to the $file_magic_cmd with a given extended regex.
4238 # If you have `file' or equivalent on your system and you're not sure
4239 # whether `pass_all' will *always* work, you probably want this one.
4243 lt_cv_deplibs_check_method=pass_all
4247 lt_cv_deplibs_check_method=pass_all
4251 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4252 lt_cv_file_magic_cmd='/usr/bin/file -L'
4253 lt_cv_file_magic_test_file=/shlib/libc.so
4256 cygwin* | mingw* | pw32*)
4257 # win32_libid is a shell function defined in ltmain.sh
4258 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4259 lt_cv_file_magic_cmd='win32_libid'
4262 darwin* | rhapsody*)
4263 # this will be overwritten by pass_all, but leave it in just in case
4264 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4265 lt_cv_file_magic_cmd='/usr/bin/file -L'
4267 rhapsody* | darwin1.[012])
4268 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4271 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4274 lt_cv_deplibs_check_method=pass_all
4278 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4281 # Not sure whether the presence of OpenBSD here was a mistake.
4282 # Let's accept both of them until this is cleared up.
4283 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4284 lt_cv_file_magic_cmd=/usr/bin/file
4285 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4289 lt_cv_deplibs_check_method=pass_all
4294 lt_cv_deplibs_check_method=pass_all
4297 hpux10.20* | hpux11*)
4298 lt_cv_file_magic_cmd=/usr/bin/file
4301 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4302 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4305 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]'
4306 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4309 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4310 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4315 irix5* | irix6* | nonstopux*)
4317 irix5* | nonstopux*)
4318 # this will be overridden with pass_all, but let us keep it just in case
4319 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4323 *-32|*"-32 ") libmagic=32-bit;;
4324 *-n32|*"-n32 ") libmagic=N32;;
4325 *-64|*"-64 ") libmagic=64-bit;;
4326 *) libmagic=never-match;;
4328 # this will be overridden with pass_all, but let us keep it just in case
4329 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4332 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4333 lt_cv_deplibs_check_method=pass_all
4336 # This must be Linux ELF.
4339 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh* | x86_64*)
4340 lt_cv_deplibs_check_method=pass_all ;;
4342 # glibc up to 2.1.1 does not perform some relocations on ARM
4343 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4345 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4349 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4350 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4352 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4357 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4358 lt_cv_file_magic_cmd=/usr/bin/file
4359 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4363 lt_cv_deplibs_check_method=unknown
4367 lt_cv_file_magic_cmd=/usr/bin/file
4368 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4369 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4370 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4372 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4376 osf3* | osf4* | osf5*)
4377 # this will be overridden with pass_all, but let us keep it just in case
4378 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4379 lt_cv_file_magic_test_file=/shlib/libc.so
4380 lt_cv_deplibs_check_method=pass_all
4384 lt_cv_deplibs_check_method=pass_all
4388 lt_cv_deplibs_check_method=pass_all
4389 lt_cv_file_magic_test_file=/lib/libc.so
4392 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4393 case $host_vendor in
4395 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]'
4396 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4399 lt_cv_deplibs_check_method=pass_all
4402 lt_cv_file_magic_cmd='/bin/file'
4403 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4406 lt_cv_file_magic_cmd='/bin/file'
4407 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4408 lt_cv_file_magic_test_file=/lib/libc.so
4411 lt_cv_deplibs_check_method=pass_all
4416 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4417 lt_cv_deplibs_check_method=pass_all
4422 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4423 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4424 file_magic_cmd=$lt_cv_file_magic_cmd
4425 deplibs_check_method=$lt_cv_deplibs_check_method
4426 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4431 # If no C compiler was specified, use CC.
4434 # Allow CC to be a program name with arguments.
4438 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4439 if test "${enable_libtool_lock+set}" = set; then
4440 enableval="$enable_libtool_lock"
4443 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4445 # Some flags need to be propagated to the compiler or linker for good
4449 # Find out which ABI we are using.
4450 echo 'int i;' > conftest.$ac_ext
4451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4452 (eval $ac_compile) 2>&5
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); }; then
4456 case `/usr/bin/file conftest.$ac_objext` in
4468 # Find out which ABI we are using.
4469 echo '#line 4469 "configure"' > conftest.$ac_ext
4470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4471 (eval $ac_compile) 2>&5
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); }; then
4475 if test "$lt_cv_prog_gnu_ld" = yes; then
4476 case `/usr/bin/file conftest.$ac_objext` in
4478 LD="${LD-ld} -melf32bsmip"
4481 LD="${LD-ld} -melf32bmipn32"
4484 LD="${LD-ld} -melf64bmip"
4488 case `/usr/bin/file conftest.$ac_objext` in
4504 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4505 # Find out which ABI we are using.
4506 echo 'int i;' > conftest.$ac_ext
4507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4508 (eval $ac_compile) 2>&5
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); }; then
4512 case "`/usr/bin/file conftest.o`" in
4516 LD="${LD-ld} -m elf_i386"
4519 LD="${LD-ld} -m elf32ppclinux"
4522 LD="${LD-ld} -m elf_s390"
4525 LD="${LD-ld} -m elf32_sparc"
4532 LD="${LD-ld} -m elf_x86_64"
4534 ppc*-*linux*|powerpc*-*linux*)
4535 LD="${LD-ld} -m elf64ppc"
4538 LD="${LD-ld} -m elf64_s390"
4541 LD="${LD-ld} -m elf64_sparc"
4551 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4552 SAVE_CFLAGS="$CFLAGS"
4553 CFLAGS="$CFLAGS -belf"
4554 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4555 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4556 if test "${lt_cv_cc_needs_belf+set}" = set; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
4560 ac_cpp='$CPP $CPPFLAGS'
4561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4565 cat >conftest.$ac_ext <<_ACEOF
4566 #line $LINENO "configure"
4569 cat confdefs.h >>conftest.$ac_ext
4570 cat >>conftest.$ac_ext <<_ACEOF
4571 /* end confdefs.h. */
4581 rm -f conftest.$ac_objext conftest$ac_exeext
4582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4583 (eval $ac_link) 2>&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); } &&
4587 { ac_try='test -s conftest$ac_exeext'
4588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); }; }; then
4593 lt_cv_cc_needs_belf=yes
4595 echo "$as_me: failed program was:" >&5
4596 sed 's/^/| /' conftest.$ac_ext >&5
4598 lt_cv_cc_needs_belf=no
4600 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4602 ac_cpp='$CPP $CPPFLAGS'
4603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4608 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4609 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4610 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4611 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4612 CFLAGS="$SAVE_CFLAGS"
4618 need_locks="$enable_libtool_lock"
4622 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4623 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4624 if test "${ac_cv_header_stdc+set}" = set; then
4625 echo $ECHO_N "(cached) $ECHO_C" >&6
4627 cat >conftest.$ac_ext <<_ACEOF
4628 #line $LINENO "configure"
4631 cat confdefs.h >>conftest.$ac_ext
4632 cat >>conftest.$ac_ext <<_ACEOF
4633 /* end confdefs.h. */
4647 rm -f conftest.$ac_objext
4648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4649 (eval $ac_compile) 2>&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); } &&
4653 { ac_try='test -s conftest.$ac_objext'
4654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); }; }; then
4659 ac_cv_header_stdc=yes
4661 echo "$as_me: failed program was:" >&5
4662 sed 's/^/| /' conftest.$ac_ext >&5
4664 ac_cv_header_stdc=no
4666 rm -f conftest.$ac_objext conftest.$ac_ext
4668 if test $ac_cv_header_stdc = yes; then
4669 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4670 cat >conftest.$ac_ext <<_ACEOF
4671 #line $LINENO "configure"
4674 cat confdefs.h >>conftest.$ac_ext
4675 cat >>conftest.$ac_ext <<_ACEOF
4676 /* end confdefs.h. */
4680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4681 $EGREP "memchr" >/dev/null 2>&1; then
4684 ac_cv_header_stdc=no
4690 if test $ac_cv_header_stdc = yes; then
4691 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4692 cat >conftest.$ac_ext <<_ACEOF
4693 #line $LINENO "configure"
4696 cat confdefs.h >>conftest.$ac_ext
4697 cat >>conftest.$ac_ext <<_ACEOF
4698 /* end confdefs.h. */
4702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4703 $EGREP "free" >/dev/null 2>&1; then
4706 ac_cv_header_stdc=no
4712 if test $ac_cv_header_stdc = yes; then
4713 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4714 if test "$cross_compiling" = yes; then
4717 cat >conftest.$ac_ext <<_ACEOF
4718 #line $LINENO "configure"
4721 cat confdefs.h >>conftest.$ac_ext
4722 cat >>conftest.$ac_ext <<_ACEOF
4723 /* end confdefs.h. */
4725 #if ((' ' & 0x0FF) == 0x020)
4726 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4727 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4729 # define ISLOWER(c) \
4730 (('a' <= (c) && (c) <= 'i') \
4731 || ('j' <= (c) && (c) <= 'r') \
4732 || ('s' <= (c) && (c) <= 'z'))
4733 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4736 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4741 for (i = 0; i < 256; i++)
4742 if (XOR (islower (i), ISLOWER (i))
4743 || toupper (i) != TOUPPER (i))
4748 rm -f conftest$ac_exeext
4749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4750 (eval $ac_link) 2>&5
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); }; }; then
4761 echo "$as_me: program exited with status $ac_status" >&5
4762 echo "$as_me: failed program was:" >&5
4763 sed 's/^/| /' conftest.$ac_ext >&5
4766 ac_cv_header_stdc=no
4768 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4772 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4773 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4774 if test $ac_cv_header_stdc = yes; then
4776 cat >>confdefs.h <<\_ACEOF
4777 #define STDC_HEADERS 1
4782 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4792 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4793 inttypes.h stdint.h unistd.h
4795 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4796 echo "$as_me:$LINENO: checking for $ac_header" >&5
4797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4799 echo $ECHO_N "(cached) $ECHO_C" >&6
4801 cat >conftest.$ac_ext <<_ACEOF
4802 #line $LINENO "configure"
4805 cat confdefs.h >>conftest.$ac_ext
4806 cat >>conftest.$ac_ext <<_ACEOF
4807 /* end confdefs.h. */
4808 $ac_includes_default
4810 #include <$ac_header>
4812 rm -f conftest.$ac_objext
4813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4814 (eval $ac_compile) 2>&5
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); } &&
4818 { ac_try='test -s conftest.$ac_objext'
4819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); }; }; then
4824 eval "$as_ac_Header=yes"
4826 echo "$as_me: failed program was:" >&5
4827 sed 's/^/| /' conftest.$ac_ext >&5
4829 eval "$as_ac_Header=no"
4831 rm -f conftest.$ac_objext conftest.$ac_ext
4833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4834 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4836 cat >>confdefs.h <<_ACEOF
4837 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4846 for ac_header in dlfcn.h
4848 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4850 echo "$as_me:$LINENO: checking for $ac_header" >&5
4851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4853 echo $ECHO_N "(cached) $ECHO_C" >&6
4855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4858 # Is the header compilable?
4859 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4860 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4861 cat >conftest.$ac_ext <<_ACEOF
4862 #line $LINENO "configure"
4865 cat confdefs.h >>conftest.$ac_ext
4866 cat >>conftest.$ac_ext <<_ACEOF
4867 /* end confdefs.h. */
4868 $ac_includes_default
4869 #include <$ac_header>
4871 rm -f conftest.$ac_objext
4872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4873 (eval $ac_compile) 2>&5
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); } &&
4877 { ac_try='test -s conftest.$ac_objext'
4878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); }; }; then
4883 ac_header_compiler=yes
4885 echo "$as_me: failed program was:" >&5
4886 sed 's/^/| /' conftest.$ac_ext >&5
4888 ac_header_compiler=no
4890 rm -f conftest.$ac_objext conftest.$ac_ext
4891 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4892 echo "${ECHO_T}$ac_header_compiler" >&6
4894 # Is the header present?
4895 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4896 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4897 cat >conftest.$ac_ext <<_ACEOF
4898 #line $LINENO "configure"
4901 cat confdefs.h >>conftest.$ac_ext
4902 cat >>conftest.$ac_ext <<_ACEOF
4903 /* end confdefs.h. */
4904 #include <$ac_header>
4906 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4907 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4909 grep -v '^ *+' conftest.er1 >conftest.err
4911 cat conftest.err >&5
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); } >/dev/null; then
4914 if test -s conftest.err; then
4915 ac_cpp_err=$ac_c_preproc_warn_flag
4922 if test -z "$ac_cpp_err"; then
4923 ac_header_preproc=yes
4925 echo "$as_me: failed program was:" >&5
4926 sed 's/^/| /' conftest.$ac_ext >&5
4928 ac_header_preproc=no
4930 rm -f conftest.err conftest.$ac_ext
4931 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4932 echo "${ECHO_T}$ac_header_preproc" >&6
4934 # So? What about this header?
4935 case $ac_header_compiler:$ac_header_preproc in
4937 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4940 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4943 ## ------------------------------------ ##
4944 ## Report this to bug-autoconf@gnu.org. ##
4945 ## ------------------------------------ ##
4948 sed "s/^/$as_me: WARNING: /" >&2
4951 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4952 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4953 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4954 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4956 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4959 ## ------------------------------------ ##
4960 ## Report this to bug-autoconf@gnu.org. ##
4961 ## ------------------------------------ ##
4964 sed "s/^/$as_me: WARNING: /" >&2
4967 echo "$as_me:$LINENO: checking for $ac_header" >&5
4968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4970 echo $ECHO_N "(cached) $ECHO_C" >&6
4972 eval "$as_ac_Header=$ac_header_preproc"
4974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4979 cat >>confdefs.h <<_ACEOF
4980 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4988 ac_cpp='$CXXCPP $CPPFLAGS'
4989 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4990 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4991 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4992 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4993 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4994 if test -z "$CXXCPP"; then
4995 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4996 echo $ECHO_N "(cached) $ECHO_C" >&6
4998 # Double quotes because CXXCPP needs to be expanded
4999 for CXXCPP in "$CXX -E" "/lib/cpp"
5002 for ac_cxx_preproc_warn_flag in '' yes
5004 # Use a header file that comes with gcc, so configuring glibc
5005 # with a fresh cross-compiler works.
5006 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5007 # <limits.h> exists even on freestanding compilers.
5008 # On the NeXT, cc -E runs the code through the compiler's parser,
5009 # not just through cpp. "Syntax error" is here to catch this case.
5010 cat >conftest.$ac_ext <<_ACEOF
5011 #line $LINENO "configure"
5014 cat confdefs.h >>conftest.$ac_ext
5015 cat >>conftest.$ac_ext <<_ACEOF
5016 /* end confdefs.h. */
5018 # include <limits.h>
5020 # include <assert.h>
5024 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5025 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5027 grep -v '^ *+' conftest.er1 >conftest.err
5029 cat conftest.err >&5
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); } >/dev/null; then
5032 if test -s conftest.err; then
5033 ac_cpp_err=$ac_cxx_preproc_warn_flag
5040 if test -z "$ac_cpp_err"; then
5043 echo "$as_me: failed program was:" >&5
5044 sed 's/^/| /' conftest.$ac_ext >&5
5046 # Broken: fails on valid input.
5049 rm -f conftest.err conftest.$ac_ext
5051 # OK, works on sane cases. Now check whether non-existent headers
5052 # can be detected and how.
5053 cat >conftest.$ac_ext <<_ACEOF
5054 #line $LINENO "configure"
5057 cat confdefs.h >>conftest.$ac_ext
5058 cat >>conftest.$ac_ext <<_ACEOF
5059 /* end confdefs.h. */
5060 #include <ac_nonexistent.h>
5062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5063 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5065 grep -v '^ *+' conftest.er1 >conftest.err
5067 cat conftest.err >&5
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); } >/dev/null; then
5070 if test -s conftest.err; then
5071 ac_cpp_err=$ac_cxx_preproc_warn_flag
5078 if test -z "$ac_cpp_err"; then
5079 # Broken: success on invalid input.
5082 echo "$as_me: failed program was:" >&5
5083 sed 's/^/| /' conftest.$ac_ext >&5
5085 # Passes both tests.
5089 rm -f conftest.err conftest.$ac_ext
5092 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5093 rm -f conftest.err conftest.$ac_ext
5094 if $ac_preproc_ok; then
5099 ac_cv_prog_CXXCPP=$CXXCPP
5102 CXXCPP=$ac_cv_prog_CXXCPP
5104 ac_cv_prog_CXXCPP=$CXXCPP
5106 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5107 echo "${ECHO_T}$CXXCPP" >&6
5109 for ac_cxx_preproc_warn_flag in '' yes
5111 # Use a header file that comes with gcc, so configuring glibc
5112 # with a fresh cross-compiler works.
5113 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5114 # <limits.h> exists even on freestanding compilers.
5115 # On the NeXT, cc -E runs the code through the compiler's parser,
5116 # not just through cpp. "Syntax error" is here to catch this case.
5117 cat >conftest.$ac_ext <<_ACEOF
5118 #line $LINENO "configure"
5121 cat confdefs.h >>conftest.$ac_ext
5122 cat >>conftest.$ac_ext <<_ACEOF
5123 /* end confdefs.h. */
5125 # include <limits.h>
5127 # include <assert.h>
5131 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5132 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5134 grep -v '^ *+' conftest.er1 >conftest.err
5136 cat conftest.err >&5
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); } >/dev/null; then
5139 if test -s conftest.err; then
5140 ac_cpp_err=$ac_cxx_preproc_warn_flag
5147 if test -z "$ac_cpp_err"; then
5150 echo "$as_me: failed program was:" >&5
5151 sed 's/^/| /' conftest.$ac_ext >&5
5153 # Broken: fails on valid input.
5156 rm -f conftest.err conftest.$ac_ext
5158 # OK, works on sane cases. Now check whether non-existent headers
5159 # can be detected and how.
5160 cat >conftest.$ac_ext <<_ACEOF
5161 #line $LINENO "configure"
5164 cat confdefs.h >>conftest.$ac_ext
5165 cat >>conftest.$ac_ext <<_ACEOF
5166 /* end confdefs.h. */
5167 #include <ac_nonexistent.h>
5169 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5170 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5172 grep -v '^ *+' conftest.er1 >conftest.err
5174 cat conftest.err >&5
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); } >/dev/null; then
5177 if test -s conftest.err; then
5178 ac_cpp_err=$ac_cxx_preproc_warn_flag
5185 if test -z "$ac_cpp_err"; then
5186 # Broken: success on invalid input.
5189 echo "$as_me: failed program was:" >&5
5190 sed 's/^/| /' conftest.$ac_ext >&5
5192 # Passes both tests.
5196 rm -f conftest.err conftest.$ac_ext
5199 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5200 rm -f conftest.err conftest.$ac_ext
5201 if $ac_preproc_ok; then
5204 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5205 See \`config.log' for more details." >&5
5206 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5207 See \`config.log' for more details." >&2;}
5208 { (exit 1); exit 1; }; }
5212 ac_cpp='$CXXCPP $CPPFLAGS'
5213 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5214 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5215 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5219 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5220 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5221 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5222 if test -n "$ac_tool_prefix"; then
5223 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5225 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5226 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5227 echo "$as_me:$LINENO: checking for $ac_word" >&5
5228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5229 if test "${ac_cv_prog_F77+set}" = set; then
5230 echo $ECHO_N "(cached) $ECHO_C" >&6
5232 if test -n "$F77"; then
5233 ac_cv_prog_F77="$F77" # Let the user override the test.
5235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5239 test -z "$as_dir" && as_dir=.
5240 for ac_exec_ext in '' $ac_executable_extensions; do
5241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5242 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5252 if test -n "$F77"; then
5253 echo "$as_me:$LINENO: result: $F77" >&5
5254 echo "${ECHO_T}$F77" >&6
5256 echo "$as_me:$LINENO: result: no" >&5
5257 echo "${ECHO_T}no" >&6
5260 test -n "$F77" && break
5263 if test -z "$F77"; then
5265 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5267 # Extract the first word of "$ac_prog", so it can be a program name with args.
5268 set dummy $ac_prog; ac_word=$2
5269 echo "$as_me:$LINENO: checking for $ac_word" >&5
5270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5271 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5272 echo $ECHO_N "(cached) $ECHO_C" >&6
5274 if test -n "$ac_ct_F77"; then
5275 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281 test -z "$as_dir" && as_dir=.
5282 for ac_exec_ext in '' $ac_executable_extensions; do
5283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5284 ac_cv_prog_ac_ct_F77="$ac_prog"
5285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5293 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5294 if test -n "$ac_ct_F77"; then
5295 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5296 echo "${ECHO_T}$ac_ct_F77" >&6
5298 echo "$as_me:$LINENO: result: no" >&5
5299 echo "${ECHO_T}no" >&6
5302 test -n "$ac_ct_F77" && break
5309 # Provide some information about the compiler.
5310 echo "$as_me:5310:" \
5311 "checking for Fortran 77 compiler version" >&5
5312 ac_compiler=`set X $ac_compile; echo $2`
5313 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5314 (eval $ac_compiler --version </dev/null >&5) 2>&5
5316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317 (exit $ac_status); }
5318 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5319 (eval $ac_compiler -v </dev/null >&5) 2>&5
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); }
5323 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5324 (eval $ac_compiler -V </dev/null >&5) 2>&5
5326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327 (exit $ac_status); }
5329 # If we don't use `.F' as extension, the preprocessor is not run on the
5333 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5334 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5335 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5336 echo $ECHO_N "(cached) $ECHO_C" >&6
5338 cat >conftest.$ac_ext <<_ACEOF
5346 rm -f conftest.$ac_objext
5347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5348 (eval $ac_compile) 2>&5
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); } &&
5352 { ac_try='test -s conftest.$ac_objext'
5353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); }; }; then
5360 echo "$as_me: failed program was:" >&5
5361 sed 's/^/| /' conftest.$ac_ext >&5
5365 rm -f conftest.$ac_objext conftest.$ac_ext
5366 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5369 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5370 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5372 G77=`test $ac_compiler_gnu = yes && echo yes`
5373 ac_test_FFLAGS=${FFLAGS+set}
5374 ac_save_FFLAGS=$FFLAGS
5376 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5377 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5378 if test "${ac_cv_prog_f77_g+set}" = set; then
5379 echo $ECHO_N "(cached) $ECHO_C" >&6
5382 cat >conftest.$ac_ext <<_ACEOF
5387 rm -f conftest.$ac_objext
5388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5389 (eval $ac_compile) 2>&5
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); } &&
5393 { ac_try='test -s conftest.$ac_objext'
5394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); }; }; then
5399 ac_cv_prog_f77_g=yes
5401 echo "$as_me: failed program was:" >&5
5402 sed 's/^/| /' conftest.$ac_ext >&5
5406 rm -f conftest.$ac_objext conftest.$ac_ext
5409 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5410 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5411 if test "$ac_test_FFLAGS" = set; then
5412 FFLAGS=$ac_save_FFLAGS
5413 elif test $ac_cv_prog_f77_g = yes; then
5414 if test "$G77" = yes; then
5420 if test "$G77" = yes; then
5427 ac_cpp='$CPP $CPPFLAGS'
5428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5434 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5436 # find the maximum length of command line arguments
5437 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5438 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5439 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5440 echo $ECHO_N "(cached) $ECHO_C" >&6
5447 # On DJGPP, this test can blow up pretty badly due to problems in libc
5448 # (any single argument exceeding 2000 bytes causes a buffer overrun
5449 # during glob expansion). Even if it were fixed, the result of this
5450 # check would be larger than it should be.
5451 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5455 # Under GNU Hurd, this test is not required because there is
5456 # no limit to the length of command line arguments.
5457 # Libtool will interpret -1 as no limit whatsoever
5458 lt_cv_sys_max_cmd_len=-1;
5462 # On Win9x/ME, this test blows up -- it succeeds, but takes
5463 # about 5 minutes as the teststring grows exponentially.
5464 # Worse, since 9x/ME are not pre-emptively multitasking,
5465 # you end up with a "frozen" computer, even though with patience
5466 # the test eventually succeeds (with a max line length of 256k).
5467 # Instead, let's just punt: use the minimum linelength reported by
5468 # all of the supported platforms: 8192 (on NT/2K/XP).
5469 lt_cv_sys_max_cmd_len=8192;
5473 # If test is not a shell built-in, we'll probably end up computing a
5474 # maximum length that is only half of the actual maximum length, but
5476 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5477 = "XX$testring") >/dev/null 2>&1 &&
5478 new_result=`expr "X$testring" : ".*" 2>&1` &&
5479 lt_cv_sys_max_cmd_len=$new_result &&
5480 test $i != 17 # 1/2 MB should be enough
5483 testring=$testring$testring
5486 # Add a significant safety factor because C++ compilers can tack on massive
5487 # amounts of additional arguments before passing them to the linker.
5488 # It appears as though 1/2 is a usable value.
5489 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5495 if test -n $lt_cv_sys_max_cmd_len ; then
5496 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5497 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5499 echo "$as_me:$LINENO: result: none" >&5
5500 echo "${ECHO_T}none" >&6
5506 # Check for command to grab the raw symbol name followed by C symbol from nm.
5507 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5508 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5509 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5510 echo $ECHO_N "(cached) $ECHO_C" >&6
5513 # These are sane defaults that work on at least a few old systems.
5514 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5516 # Character class describing NM global symbol codes.
5517 symcode='[BCDEGRST]'
5519 # Regexp to match symbols that can be accessed directly from C.
5520 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5522 # Transform the above into a raw symbol and a C symbol.
5523 symxfrm='\1 \2\3 \3'
5525 # Transform an extracted symbol line into a proper C declaration
5526 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5528 # Transform an extracted symbol line into symbol name and symbol address
5529 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'"
5531 # Define system-specific variables.
5536 cygwin* | mingw* | pw32*)
5537 symcode='[ABCDGISTW]'
5539 hpux*) # Its linker distinguishes data from code symbols
5540 if test "$host_cpu" = ia64; then
5541 symcode='[ABCDEGRST]'
5543 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5544 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'"
5547 symcode='[BCDEGRST]'
5550 symcode='[BCDEGQRST]'
5560 # Handle CRLF in mingw tool chain
5564 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5568 # If we're using GNU nm, then use its standard symbol codes.
5569 case `$NM -V 2>&1` in
5570 *GNU* | *'with BFD'*)
5571 symcode='[ABCDGIRSTW]' ;;
5574 # Try without a prefix undercore, then with it.
5575 for ac_symprfx in "" "_"; do
5577 # Write the raw and C identifiers.
5578 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5580 # Check to see that the pipe works correctly.
5584 cat > conftest.$ac_ext <<EOF
5589 void nm_test_func(){}
5593 int main(){nm_test_var='a';nm_test_func();return(0);}
5596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5597 (eval $ac_compile) 2>&5
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); }; then
5601 # Now try to grab the symbols.
5603 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5604 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); } && test -s "$nlist"; then
5608 # Try sorting and uniquifying the output.
5609 if sort "$nlist" | uniq > "$nlist"T; then
5610 mv -f "$nlist"T "$nlist"
5615 # Make sure that we snagged all the symbols we need.
5616 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5617 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5618 cat <<EOF > conftest.$ac_ext
5624 # Now generate the symbol file.
5625 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5627 cat <<EOF >> conftest.$ac_ext
5628 #if defined (__STDC__) && __STDC__
5629 # define lt_ptr_t void *
5631 # define lt_ptr_t char *
5635 /* The mapping between symbol names and symbols. */
5640 lt_preloaded_symbols[] =
5643 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5644 cat <<\EOF >> conftest.$ac_ext
5652 # Now try linking the two files.
5653 mv conftest.$ac_objext conftstm.$ac_objext
5654 lt_save_LIBS="$LIBS"
5655 lt_save_CFLAGS="$CFLAGS"
5656 LIBS="conftstm.$ac_objext"
5657 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5659 (eval $ac_link) 2>&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5665 LIBS="$lt_save_LIBS"
5666 CFLAGS="$lt_save_CFLAGS"
5668 echo "cannot find nm_test_func in $nlist" >&5
5671 echo "cannot find nm_test_var in $nlist" >&5
5674 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5677 echo "$progname: failed program was:" >&5
5678 cat conftest.$ac_ext >&5
5680 rm -f conftest* conftst*
5682 # Do not use the global_symbol_pipe unless it works.
5683 if test "$pipe_works" = yes; then
5686 lt_cv_sys_global_symbol_pipe=
5692 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5693 lt_cv_sys_global_symbol_to_cdecl=
5695 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5696 echo "$as_me:$LINENO: result: failed" >&5
5697 echo "${ECHO_T}failed" >&6
5699 echo "$as_me:$LINENO: result: ok" >&5
5700 echo "${ECHO_T}ok" >&6
5703 echo "$as_me:$LINENO: checking for objdir" >&5
5704 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5705 if test "${lt_cv_objdir+set}" = set; then
5706 echo $ECHO_N "(cached) $ECHO_C" >&6
5708 rm -f .libs 2>/dev/null
5709 mkdir .libs 2>/dev/null
5710 if test -d .libs; then
5713 # MS-DOS does not allow filenames that begin with a dot.
5716 rmdir .libs 2>/dev/null
5718 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5719 echo "${ECHO_T}$lt_cv_objdir" >&6
5720 objdir=$lt_cv_objdir
5728 # AIX sometimes has problems with the GCC collect2 program. For some
5729 # reason, if we set the COLLECT_NAMES environment variable, the problems
5730 # vanish in a puff of smoke.
5731 if test "X${COLLECT_NAMES+set}" != Xset; then
5733 export COLLECT_NAMES
5738 # Sed substitution that helps us do robust quoting. It backslashifies
5739 # metacharacters that are still active within double-quoted strings.
5740 Xsed='sed -e s/^X//'
5741 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5743 # Same as above, but do not quote variable references.
5744 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5746 # Sed substitution to delay expansion of an escaped shell variable in a
5747 # double_quote_subst'ed string.
5748 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5750 # Sed substitution to avoid accidental globbing in evaled expressions
5751 no_glob_subst='s/\*/\\\*/g'
5757 default_ofile=libtool
5758 can_build_shared=yes
5760 # All known linkers require a `.a' archive for static linking (except M$VC,
5761 # which needs '.lib').
5763 ltmain="$ac_aux_dir/ltmain.sh"
5764 ofile="$default_ofile"
5765 with_gnu_ld="$lt_cv_prog_gnu_ld"
5767 if test -n "$ac_tool_prefix"; then
5768 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5769 set dummy ${ac_tool_prefix}ar; ac_word=$2
5770 echo "$as_me:$LINENO: checking for $ac_word" >&5
5771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5772 if test "${ac_cv_prog_AR+set}" = set; then
5773 echo $ECHO_N "(cached) $ECHO_C" >&6
5775 if test -n "$AR"; then
5776 ac_cv_prog_AR="$AR" # Let the user override the test.
5778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5782 test -z "$as_dir" && as_dir=.
5783 for ac_exec_ext in '' $ac_executable_extensions; do
5784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5785 ac_cv_prog_AR="${ac_tool_prefix}ar"
5786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5795 if test -n "$AR"; then
5796 echo "$as_me:$LINENO: result: $AR" >&5
5797 echo "${ECHO_T}$AR" >&6
5799 echo "$as_me:$LINENO: result: no" >&5
5800 echo "${ECHO_T}no" >&6
5804 if test -z "$ac_cv_prog_AR"; then
5806 # Extract the first word of "ar", so it can be a program name with args.
5807 set dummy ar; ac_word=$2
5808 echo "$as_me:$LINENO: checking for $ac_word" >&5
5809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5810 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5811 echo $ECHO_N "(cached) $ECHO_C" >&6
5813 if test -n "$ac_ct_AR"; then
5814 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820 test -z "$as_dir" && as_dir=.
5821 for ac_exec_ext in '' $ac_executable_extensions; do
5822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5823 ac_cv_prog_ac_ct_AR="ar"
5824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5830 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5833 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5834 if test -n "$ac_ct_AR"; then
5835 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5836 echo "${ECHO_T}$ac_ct_AR" >&6
5838 echo "$as_me:$LINENO: result: no" >&5
5839 echo "${ECHO_T}no" >&6
5847 if test -n "$ac_tool_prefix"; then
5848 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5849 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5850 echo "$as_me:$LINENO: checking for $ac_word" >&5
5851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5852 if test "${ac_cv_prog_RANLIB+set}" = set; then
5853 echo $ECHO_N "(cached) $ECHO_C" >&6
5855 if test -n "$RANLIB"; then
5856 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862 test -z "$as_dir" && as_dir=.
5863 for ac_exec_ext in '' $ac_executable_extensions; do
5864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5865 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5874 RANLIB=$ac_cv_prog_RANLIB
5875 if test -n "$RANLIB"; then
5876 echo "$as_me:$LINENO: result: $RANLIB" >&5
5877 echo "${ECHO_T}$RANLIB" >&6
5879 echo "$as_me:$LINENO: result: no" >&5
5880 echo "${ECHO_T}no" >&6
5884 if test -z "$ac_cv_prog_RANLIB"; then
5885 ac_ct_RANLIB=$RANLIB
5886 # Extract the first word of "ranlib", so it can be a program name with args.
5887 set dummy ranlib; ac_word=$2
5888 echo "$as_me:$LINENO: checking for $ac_word" >&5
5889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5890 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5891 echo $ECHO_N "(cached) $ECHO_C" >&6
5893 if test -n "$ac_ct_RANLIB"; then
5894 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900 test -z "$as_dir" && as_dir=.
5901 for ac_exec_ext in '' $ac_executable_extensions; do
5902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5903 ac_cv_prog_ac_ct_RANLIB="ranlib"
5904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5910 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5913 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5914 if test -n "$ac_ct_RANLIB"; then
5915 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5916 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5918 echo "$as_me:$LINENO: result: no" >&5
5919 echo "${ECHO_T}no" >&6
5922 RANLIB=$ac_ct_RANLIB
5924 RANLIB="$ac_cv_prog_RANLIB"
5927 if test -n "$ac_tool_prefix"; then
5928 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5929 set dummy ${ac_tool_prefix}strip; ac_word=$2
5930 echo "$as_me:$LINENO: checking for $ac_word" >&5
5931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5932 if test "${ac_cv_prog_STRIP+set}" = set; then
5933 echo $ECHO_N "(cached) $ECHO_C" >&6
5935 if test -n "$STRIP"; then
5936 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5942 test -z "$as_dir" && as_dir=.
5943 for ac_exec_ext in '' $ac_executable_extensions; do
5944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5945 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5954 STRIP=$ac_cv_prog_STRIP
5955 if test -n "$STRIP"; then
5956 echo "$as_me:$LINENO: result: $STRIP" >&5
5957 echo "${ECHO_T}$STRIP" >&6
5959 echo "$as_me:$LINENO: result: no" >&5
5960 echo "${ECHO_T}no" >&6
5964 if test -z "$ac_cv_prog_STRIP"; then
5966 # Extract the first word of "strip", so it can be a program name with args.
5967 set dummy strip; ac_word=$2
5968 echo "$as_me:$LINENO: checking for $ac_word" >&5
5969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5970 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5971 echo $ECHO_N "(cached) $ECHO_C" >&6
5973 if test -n "$ac_ct_STRIP"; then
5974 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5980 test -z "$as_dir" && as_dir=.
5981 for ac_exec_ext in '' $ac_executable_extensions; do
5982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5983 ac_cv_prog_ac_ct_STRIP="strip"
5984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5990 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5993 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5994 if test -n "$ac_ct_STRIP"; then
5995 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5996 echo "${ECHO_T}$ac_ct_STRIP" >&6
5998 echo "$as_me:$LINENO: result: no" >&5
5999 echo "${ECHO_T}no" >&6
6004 STRIP="$ac_cv_prog_STRIP"
6009 old_CFLAGS="$CFLAGS"
6011 # Set sane defaults for various variables
6012 test -z "$AR" && AR=ar
6013 test -z "$AR_FLAGS" && AR_FLAGS=cru
6014 test -z "$AS" && AS=as
6015 test -z "$CC" && CC=cc
6016 test -z "$LTCC" && LTCC=$CC
6017 test -z "$DLLTOOL" && DLLTOOL=dlltool
6018 test -z "$LD" && LD=ld
6019 test -z "$LN_S" && LN_S="ln -s"
6020 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6021 test -z "$NM" && NM=nm
6022 test -z "$SED" && SED=sed
6023 test -z "$OBJDUMP" && OBJDUMP=objdump
6024 test -z "$RANLIB" && RANLIB=:
6025 test -z "$STRIP" && STRIP=:
6026 test -z "$ac_objext" && ac_objext=o
6028 # Determine commands to create old-style static archives.
6029 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6030 old_postinstall_cmds='chmod 644 $oldlib'
6031 old_postuninstall_cmds=
6033 if test -n "$RANLIB"; then
6036 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6039 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6042 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6045 # Only perform the check for file, if the check method requires it
6046 case $deplibs_check_method in
6048 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6049 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6050 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6051 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
6056 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6059 lt_save_MAGIC_CMD="$MAGIC_CMD"
6060 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6061 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6062 for ac_dir in $ac_dummy; do
6064 test -z "$ac_dir" && ac_dir=.
6065 if test -f $ac_dir/${ac_tool_prefix}file; then
6066 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6067 if test -n "$file_magic_test_file"; then
6068 case $deplibs_check_method in
6070 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6071 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6072 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6073 $EGREP "$file_magic_regex" > /dev/null; then
6078 *** Warning: the command libtool uses to detect shared libraries,
6079 *** $file_magic_cmd, produces output that libtool cannot recognize.
6080 *** The result is that libtool may fail to recognize shared libraries
6081 *** as such. This will affect the creation of libtool libraries that
6082 *** depend on shared libraries, but programs linked with such libtool
6083 *** libraries will work regardless of this problem. Nevertheless, you
6084 *** may want to report the problem to your system manager and/or to
6085 *** bug-libtool@gnu.org
6095 MAGIC_CMD="$lt_save_MAGIC_CMD"
6100 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6101 if test -n "$MAGIC_CMD"; then
6102 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6103 echo "${ECHO_T}$MAGIC_CMD" >&6
6105 echo "$as_me:$LINENO: result: no" >&5
6106 echo "${ECHO_T}no" >&6
6109 if test -z "$lt_cv_path_MAGIC_CMD"; then
6110 if test -n "$ac_tool_prefix"; then
6111 echo "$as_me:$LINENO: checking for file" >&5
6112 echo $ECHO_N "checking for file... $ECHO_C" >&6
6113 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6114 echo $ECHO_N "(cached) $ECHO_C" >&6
6118 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6121 lt_save_MAGIC_CMD="$MAGIC_CMD"
6122 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6123 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6124 for ac_dir in $ac_dummy; do
6126 test -z "$ac_dir" && ac_dir=.
6127 if test -f $ac_dir/file; then
6128 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6129 if test -n "$file_magic_test_file"; then
6130 case $deplibs_check_method in
6132 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6133 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6134 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6135 $EGREP "$file_magic_regex" > /dev/null; then
6140 *** Warning: the command libtool uses to detect shared libraries,
6141 *** $file_magic_cmd, produces output that libtool cannot recognize.
6142 *** The result is that libtool may fail to recognize shared libraries
6143 *** as such. This will affect the creation of libtool libraries that
6144 *** depend on shared libraries, but programs linked with such libtool
6145 *** libraries will work regardless of this problem. Nevertheless, you
6146 *** may want to report the problem to your system manager and/or to
6147 *** bug-libtool@gnu.org
6157 MAGIC_CMD="$lt_save_MAGIC_CMD"
6162 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6163 if test -n "$MAGIC_CMD"; then
6164 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6165 echo "${ECHO_T}$MAGIC_CMD" >&6
6167 echo "$as_me:$LINENO: result: no" >&5
6168 echo "${ECHO_T}no" >&6
6183 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6184 if test "${enable_libtool_lock+set}" = set; then
6185 enableval="$enable_libtool_lock"
6188 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6191 # Check whether --with-pic or --without-pic was given.
6192 if test "${with_pic+set}" = set; then
6198 test -z "$pic_mode" && pic_mode=default
6200 # Use C for the default configuration in the libtool script
6204 ac_cpp='$CPP $CPPFLAGS'
6205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6210 # Source file extension for C test sources.
6213 # Object file extension for compiled C test sources.
6217 # Code to be used in simple compile tests
6218 lt_simple_compile_test_code="int some_variable = 0;\n"
6220 # Code to be used in simple link tests
6221 lt_simple_link_test_code='int main(){return(0);}\n'
6224 # If no C compiler was specified, use CC.
6227 # Allow CC to be a program name with arguments.
6232 # Check for any special shared library compilation flags.
6235 if test "$GCC" = no; then
6238 lt_prog_cc_shlib='-belf'
6242 if test -n "$lt_prog_cc_shlib"; then
6243 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6244 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6245 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6247 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6248 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6249 lt_cv_prog_cc_can_build_shared=no
6255 # Check to make sure the static flag actually works.
6257 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6258 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6259 if test "${lt_prog_compiler_static_works+set}" = set; then
6260 echo $ECHO_N "(cached) $ECHO_C" >&6
6262 lt_prog_compiler_static_works=no
6263 save_LDFLAGS="$LDFLAGS"
6264 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6265 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6266 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6267 # The compiler can only warn and ignore the option if not recognized
6268 # So say no if there are warnings
6269 if test -s conftest.err; then
6270 # Append any errors to the config.log.
6271 cat conftest.err 1>&5
6273 lt_prog_compiler_static_works=yes
6277 LDFLAGS="$save_LDFLAGS"
6280 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6281 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6283 if test x"$lt_prog_compiler_static_works" = xyes; then
6286 lt_prog_compiler_static=
6292 lt_prog_compiler_no_builtin_flag=
6294 if test "$GCC" = yes; then
6295 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6297 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6298 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6299 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6300 echo $ECHO_N "(cached) $ECHO_C" >&6
6302 lt_cv_prog_compiler_rtti_exceptions=no
6303 ac_outfile=conftest.$ac_objext
6304 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6305 lt_compiler_flag="-fno-rtti -fno-exceptions"
6306 # Insert the option either (1) after the last *FLAGS variable, or
6307 # (2) before a word containing "conftest.", or (3) at the end.
6308 # Note that $ac_compile itself does not contain backslashes and begins
6309 # with a dollar sign (not a hyphen), so the echo should work correctly.
6310 # The option is referenced via a variable to avoid confusing sed.
6311 lt_compile=`echo "$ac_compile" | $SED \
6312 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6313 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6314 -e 's:$: $lt_compiler_flag:'`
6315 (eval echo "\"\$as_me:6315: $lt_compile\"" >&5)
6316 (eval "$lt_compile" 2>conftest.err)
6318 cat conftest.err >&5
6319 echo "$as_me:6319: \$? = $ac_status" >&5
6320 if (exit $ac_status) && test -s "$ac_outfile"; then
6321 # The compiler can only warn and ignore the option if not recognized
6322 # So say no if there are warnings
6323 if test ! -s conftest.err; then
6324 lt_cv_prog_compiler_rtti_exceptions=yes
6330 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6331 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6333 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6334 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6341 lt_prog_compiler_wl=
6342 lt_prog_compiler_pic=
6343 lt_prog_compiler_static=
6345 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6346 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6348 if test "$GCC" = yes; then
6349 lt_prog_compiler_wl='-Wl,'
6350 lt_prog_compiler_static='-static'
6354 # All AIX code is PIC.
6355 if test "$host_cpu" = ia64; then
6356 # AIX 5 now supports IA64 processor
6357 lt_prog_compiler_static='-Bstatic'
6362 # FIXME: we need at least 68020 code to build shared libraries, but
6363 # adding the `-m68020' flag to GCC prevents building anything better,
6365 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6368 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6369 # PIC is the default for these OSes.
6372 mingw* | pw32* | os2*)
6373 # This hack is so that the source file can tell whether it is being
6374 # built for inclusion in a dll (and should export symbols for example).
6375 lt_prog_compiler_pic='-DDLL_EXPORT'
6378 darwin* | rhapsody*)
6379 # PIC is the default on this platform
6380 # Common symbols not allowed in MH_DYLIB files
6381 lt_prog_compiler_pic='-fno-common'
6385 # Just because we use GCC doesn't mean we suddenly get shared libraries
6386 # on systems that don't support them.
6387 lt_prog_compiler_can_build_shared=no
6392 if test -d /usr/nec; then
6393 lt_prog_compiler_pic=-Kconform_pic
6398 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6405 lt_prog_compiler_pic='-fPIC'
6411 lt_prog_compiler_pic='-fPIC'
6415 # PORTME Check for flag to pass linker flags through the system compiler.
6418 lt_prog_compiler_wl='-Wl,'
6419 if test "$host_cpu" = ia64; then
6420 # AIX 5 now supports IA64 processor
6421 lt_prog_compiler_static='-Bstatic'
6423 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6427 mingw* | pw32* | os2*)
6428 # This hack is so that the source file can tell whether it is being
6429 # built for inclusion in a dll (and should export symbols for example).
6430 lt_prog_compiler_pic='-DDLL_EXPORT'
6433 hpux9* | hpux10* | hpux11*)
6434 lt_prog_compiler_wl='-Wl,'
6435 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6442 lt_prog_compiler_pic='+Z'
6445 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6446 lt_prog_compiler_static='${wl}-a ${wl}archive'
6449 irix5* | irix6* | nonstopux*)
6450 lt_prog_compiler_wl='-Wl,'
6451 # PIC (with -KPIC) is the default.
6452 lt_prog_compiler_static='-non_shared'
6456 lt_prog_compiler_pic='-KPIC'
6457 lt_prog_compiler_static='-Bstatic'
6463 lt_prog_compiler_wl='-Wl,'
6464 lt_prog_compiler_pic='-KPIC'
6465 lt_prog_compiler_static='-static'
6468 lt_prog_compiler_wl='-Wl,'
6469 # All Alpha code is PIC.
6470 lt_prog_compiler_static='-non_shared'
6475 osf3* | osf4* | osf5*)
6476 lt_prog_compiler_wl='-Wl,'
6477 # All OSF/1 code is PIC.
6478 lt_prog_compiler_static='-non_shared'
6482 lt_prog_compiler_pic='-Kpic'
6483 lt_prog_compiler_static='-dn'
6487 lt_prog_compiler_wl='-Wl,'
6488 lt_prog_compiler_pic='-KPIC'
6489 lt_prog_compiler_static='-Bstatic'
6493 lt_prog_compiler_wl='-Qoption ld '
6494 lt_prog_compiler_pic='-PIC'
6495 lt_prog_compiler_static='-Bstatic'
6498 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6499 lt_prog_compiler_wl='-Wl,'
6500 lt_prog_compiler_pic='-KPIC'
6501 lt_prog_compiler_static='-Bstatic'
6505 if test -d /usr/nec ;then
6506 lt_prog_compiler_pic='-Kconform_pic'
6507 lt_prog_compiler_static='-Bstatic'
6512 lt_prog_compiler_pic='-pic'
6513 lt_prog_compiler_static='-Bstatic'
6517 lt_prog_compiler_can_build_shared=no
6522 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6523 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6526 # Check to make sure the PIC flag actually works.
6528 if test -n "$lt_prog_compiler_pic"; then
6529 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6530 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6531 if test "${lt_prog_compiler_pic_works+set}" = set; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6534 lt_prog_compiler_pic_works=no
6535 ac_outfile=conftest.$ac_objext
6536 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6537 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6538 # Insert the option either (1) after the last *FLAGS variable, or
6539 # (2) before a word containing "conftest.", or (3) at the end.
6540 # Note that $ac_compile itself does not contain backslashes and begins
6541 # with a dollar sign (not a hyphen), so the echo should work correctly.
6542 # The option is referenced via a variable to avoid confusing sed.
6543 lt_compile=`echo "$ac_compile" | $SED \
6544 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6545 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6546 -e 's:$: $lt_compiler_flag:'`
6547 (eval echo "\"\$as_me:6547: $lt_compile\"" >&5)
6548 (eval "$lt_compile" 2>conftest.err)
6550 cat conftest.err >&5
6551 echo "$as_me:6551: \$? = $ac_status" >&5
6552 if (exit $ac_status) && test -s "$ac_outfile"; then
6553 # The compiler can only warn and ignore the option if not recognized
6554 # So say no if there are warnings
6555 if test ! -s conftest.err; then
6556 lt_prog_compiler_pic_works=yes
6562 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6563 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6565 if test x"$lt_prog_compiler_pic_works" = xyes; then
6566 case $lt_prog_compiler_pic in
6568 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6571 lt_prog_compiler_pic=
6572 lt_prog_compiler_can_build_shared=no
6577 # For platforms which do not support PIC, -DPIC is meaningless:
6579 lt_prog_compiler_pic=
6582 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6586 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6587 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6588 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6589 echo $ECHO_N "(cached) $ECHO_C" >&6
6591 lt_cv_prog_compiler_c_o=no
6592 $rm -r conftest 2>/dev/null
6596 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6598 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6599 # that will create temporary files in the current directory regardless of
6600 # the output directory. Thus, making CWD read-only will cause this test
6601 # to fail, enabling locking or at least warning the user not to do parallel
6605 lt_compiler_flag="-o out/conftest2.$ac_objext"
6606 # Insert the option either (1) after the last *FLAGS variable, or
6607 # (2) before a word containing "conftest.", or (3) at the end.
6608 # Note that $ac_compile itself does not contain backslashes and begins
6609 # with a dollar sign (not a hyphen), so the echo should work correctly.
6610 lt_compile=`echo "$ac_compile" | $SED \
6611 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6612 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6613 -e 's:$: $lt_compiler_flag:'`
6614 (eval echo "\"\$as_me:6614: $lt_compile\"" >&5)
6615 (eval "$lt_compile" 2>out/conftest.err)
6617 cat out/conftest.err >&5
6618 echo "$as_me:6618: \$? = $ac_status" >&5
6619 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6621 # The compiler can only warn and ignore the option if not recognized
6622 # So say no if there are warnings
6623 if test ! -s out/conftest.err; then
6624 lt_cv_prog_compiler_c_o=yes
6635 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6636 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6639 hard_links="nottested"
6640 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6641 # do not overwrite the value of need_locks provided by the user
6642 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6643 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6646 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6648 ln conftest.a conftest.b 2>&5 || hard_links=no
6649 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6650 echo "$as_me:$LINENO: result: $hard_links" >&5
6651 echo "${ECHO_T}$hard_links" >&6
6652 if test "$hard_links" = no; then
6653 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6654 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6661 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6662 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6665 allow_undefined_flag=
6666 enable_shared_with_static_runtimes=no
6668 archive_expsym_cmds=
6669 old_archive_From_new_cmds=
6670 old_archive_from_expsyms_cmds=
6671 export_dynamic_flag_spec=
6672 whole_archive_flag_spec=
6673 thread_safe_flag_spec=
6674 hardcode_libdir_flag_spec=
6675 hardcode_libdir_flag_spec_ld=
6676 hardcode_libdir_separator=
6679 hardcode_shlibpath_var=unsupported
6680 link_all_deplibs=unknown
6681 hardcode_automatic=no
6684 always_export_symbols=no
6685 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6686 # include_expsyms should be a list of space-separated symbols to be *always*
6687 # included in the symbol list
6689 # exclude_expsyms can be an extended regexp of symbols to exclude
6690 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6691 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6692 # as well as any symbol that contains `d'.
6693 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6694 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6695 # platforms (ab)use it in PIC code, but their linkers get confused if
6696 # the symbol is explicitly referenced. Since portable code cannot
6697 # rely on this symbol name, it's probably fine to never include it in
6698 # preloaded symbol tables.
6699 extract_expsyms_cmds=
6702 cygwin* | mingw* | pw32*)
6703 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6704 # When not using gcc, we currently assume that we are using
6705 # Microsoft Visual C++.
6706 if test "$GCC" != yes; then
6716 if test "$with_gnu_ld" = yes; then
6717 # If archive_cmds runs LD, not CC, wlarc should be empty
6720 # See if GNU ld supports shared libraries.
6722 aix3* | aix4* | aix5*)
6723 # On AIX/PPC, the GNU linker is very broken
6724 if test "$host_cpu" != ia64; then
6728 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6729 *** to be unable to reliably create shared libraries on AIX.
6730 *** Therefore, libtool is disabling shared libraries support. If you
6731 *** really care for shared libraries, you may want to modify your PATH
6732 *** so that a non-GNU linker is found, and then restart.
6739 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)'
6740 hardcode_libdir_flag_spec='-L$libdir'
6741 hardcode_minus_L=yes
6743 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6744 # that the semantics of dynamic libraries on AmigaOS, at least up
6745 # to version 4, is to share data among multiple programs linked
6746 # with the same dynamic library. Since this doesn't match the
6747 # behavior of shared libraries on other platforms, we can't use
6753 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6754 allow_undefined_flag=unsupported
6755 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6756 # support --undefined. This deserves some investigation. FIXME
6757 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6763 cygwin* | mingw* | pw32*)
6764 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6765 # as there is no search path for DLLs.
6766 hardcode_libdir_flag_spec='-L$libdir'
6767 allow_undefined_flag=unsupported
6768 always_export_symbols=no
6769 enable_shared_with_static_runtimes=yes
6770 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6772 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6773 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6774 # If the export-symbols file already is a .def file (1st line
6775 # is EXPORTS), use it as is; otherwise, prepend...
6776 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6777 cp $export_symbols $output_objdir/$soname.def;
6779 echo EXPORTS > $output_objdir/$soname.def;
6780 cat $export_symbols >> $output_objdir/$soname.def;
6782 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6789 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6790 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6793 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6794 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6799 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6803 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6804 *** create shared libraries on Solaris systems. Therefore, libtool
6805 *** is disabling shared libraries support. We urge you to upgrade GNU
6806 *** binutils to release 2.9.1 or newer. Another option is to modify
6807 *** your PATH or compiler configuration so that the native linker is
6808 *** used, and then restart.
6811 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6812 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6813 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6820 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6823 hardcode_shlibpath_var=no
6827 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6828 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6829 archive_cmds="$tmp_archive_cmds"
6830 supports_anon_versioning=no
6831 case `$LD -v 2>/dev/null` in
6832 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6833 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6834 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6835 *\ 2.11.*) ;; # other 2.11 versions
6836 *) supports_anon_versioning=yes ;;
6838 if test $supports_anon_versioning = yes; then
6839 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6840 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6841 $echo "local: *; };" >> $output_objdir/$libname.ver~
6842 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6844 archive_expsym_cmds="$tmp_archive_cmds"
6852 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6853 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6854 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6861 if test "$ld_shlibs" = yes; then
6862 runpath_var=LD_RUN_PATH
6863 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6864 export_dynamic_flag_spec='${wl}--export-dynamic'
6865 # ancient GNU ld didn't support --whole-archive et. al.
6866 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6867 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6869 whole_archive_flag_spec=
6873 # PORTME fill in a description of your system's linker (not GNU ld)
6876 allow_undefined_flag=unsupported
6877 always_export_symbols=yes
6878 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'
6879 # Note: this linker hardcodes the directories in LIBPATH if there
6880 # are no directories specified by -L.
6881 hardcode_minus_L=yes
6882 if test "$GCC" = yes && test -z "$link_static_flag"; then
6883 # Neither direct hardcoding nor static linking is supported with a
6885 hardcode_direct=unsupported
6890 if test "$host_cpu" = ia64; then
6891 # On IA64, the linker does run time linking by default, so we don't
6892 # have to do anything special.
6893 aix_use_runtimelinking=no
6894 exp_sym_flag='-Bexport'
6897 # If we're using GNU nm, then we don't want the "-C" option.
6898 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6899 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6900 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'
6902 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'
6904 aix_use_runtimelinking=no
6906 # Test if we are trying to use run time linking or normal
6907 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6908 # need to do runtime linking.
6909 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6910 for ld_flag in $LDFLAGS; do
6911 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6912 aix_use_runtimelinking=yes
6918 exp_sym_flag='-bexport'
6919 no_entry_flag='-bnoentry'
6922 # When large executables or shared objects are built, AIX ld can
6923 # have problems creating the table of contents. If linking a library
6924 # or program results in "error TOC overflow" add -mminimal-toc to
6925 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6926 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6930 hardcode_libdir_separator=':'
6931 link_all_deplibs=yes
6933 if test "$GCC" = yes; then
6934 case $host_os in aix4.012|aix4.012.*)
6935 # We only want to do this on AIX 4.2 and lower, the check
6936 # below for broken collect2 doesn't work under 4.3+
6937 collect2name=`${CC} -print-prog-name=collect2`
6938 if test -f "$collect2name" && \
6939 strings "$collect2name" | grep resolve_lib_name >/dev/null
6941 # We have reworked collect2
6944 # We have old collect2
6945 hardcode_direct=unsupported
6946 # It fails to find uninstalled libraries when the uninstalled
6947 # path is not listed in the libpath. Setting hardcode_minus_L
6948 # to unsupported forces relinking
6949 hardcode_minus_L=yes
6950 hardcode_libdir_flag_spec='-L$libdir'
6951 hardcode_libdir_separator=
6954 shared_flag='-shared'
6957 if test "$host_cpu" = ia64; then
6958 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6959 # chokes on -Wl,-G. The following line is correct:
6962 if test "$aix_use_runtimelinking" = yes; then
6963 shared_flag='${wl}-G'
6965 shared_flag='${wl}-bM:SRE'
6970 # It seems that -bexpall does not export symbols beginning with
6971 # underscore (_), so it is better to generate a list of symbols to export.
6972 always_export_symbols=yes
6973 if test "$aix_use_runtimelinking" = yes; then
6974 # Warning - without using the other runtime loading flags (-brtl),
6975 # -berok will link without error, but may produce a broken library.
6976 allow_undefined_flag='-berok'
6977 # Determine the default libpath from the value encoded in an empty executable.
6978 cat >conftest.$ac_ext <<_ACEOF
6979 #line $LINENO "configure"
6982 cat confdefs.h >>conftest.$ac_ext
6983 cat >>conftest.$ac_ext <<_ACEOF
6984 /* end confdefs.h. */
6994 rm -f conftest.$ac_objext conftest$ac_exeext
6995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6996 (eval $ac_link) 2>&5
6998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); } &&
7000 { ac_try='test -s conftest$ac_exeext'
7001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005 (exit $ac_status); }; }; then
7007 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7009 # Check for a 64-bit object if we didn't find anything.
7010 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; }
7013 echo "$as_me: failed program was:" >&5
7014 sed 's/^/| /' conftest.$ac_ext >&5
7017 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7018 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7020 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7021 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7023 if test "$host_cpu" = ia64; then
7024 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7025 allow_undefined_flag="-z nodefs"
7026 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7028 # Determine the default libpath from the value encoded in an empty executable.
7029 cat >conftest.$ac_ext <<_ACEOF
7030 #line $LINENO "configure"
7033 cat confdefs.h >>conftest.$ac_ext
7034 cat >>conftest.$ac_ext <<_ACEOF
7035 /* end confdefs.h. */
7045 rm -f conftest.$ac_objext conftest$ac_exeext
7046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7047 (eval $ac_link) 2>&5
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); } &&
7051 { ac_try='test -s conftest$ac_exeext'
7052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); }; }; then
7058 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7060 # Check for a 64-bit object if we didn't find anything.
7061 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; }
7064 echo "$as_me: failed program was:" >&5
7065 sed 's/^/| /' conftest.$ac_ext >&5
7068 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7069 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7071 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7072 # Warning - without using the other run time loading flags,
7073 # -berok will link without error, but may produce a broken library.
7074 no_undefined_flag=' ${wl}-bernotok'
7075 allow_undefined_flag=' ${wl}-berok'
7076 # -bexpall does not export symbols beginning with underscore (_)
7077 always_export_symbols=yes
7078 # Exported symbols can be pulled into shared objects from archives
7079 whole_archive_flag_spec=' '
7080 archive_cmds_need_lc=yes
7081 # This is similar to how AIX traditionally builds it's shared libraries.
7082 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7088 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)'
7089 hardcode_libdir_flag_spec='-L$libdir'
7090 hardcode_minus_L=yes
7091 # see comment about different semantics on the GNU ld section
7096 export_dynamic_flag_spec=-rdynamic
7099 cygwin* | mingw* | pw32*)
7100 # When not using gcc, we currently assume that we are using
7101 # Microsoft Visual C++.
7102 # hardcode_libdir_flag_spec is actually meaningless, as there is
7103 # no search path for DLLs.
7104 hardcode_libdir_flag_spec=' '
7105 allow_undefined_flag=unsupported
7106 # Tell ltmain to make .lib files, not .a files.
7108 # Tell ltmain to make .dll files, not .so files.
7110 # FIXME: Setting linknames here is a bad hack.
7111 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7112 # The linker will automatically build a .lib file if we build a DLL.
7113 old_archive_From_new_cmds='true'
7114 # FIXME: Should let the user specify the lib program.
7115 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7116 fix_srcfile_path='`cygpath -w "$srcfile"`'
7117 enable_shared_with_static_runtimes=yes
7120 darwin* | rhapsody*)
7121 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7122 archive_cmds_need_lc=no
7124 rhapsody* | darwin1.[012])
7125 allow_undefined_flag='-undefined suppress'
7128 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
7131 # FIXME: Relying on posixy $() will cause problems for
7132 # cross-compilation, but unfortunately the echo tests do not
7133 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
7134 # `"' quotes if we put them in here... so don't!
7135 lt_int_apple_cc_single_mod=no
7136 output_verbose_link_cmd='echo'
7137 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7138 lt_int_apple_cc_single_mod=yes
7140 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7141 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7143 archive_cmds='$CC -r ${wl}-bind_at_load -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'
7145 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7146 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7147 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7148 archive_expsym_cmds='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}'
7150 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
7152 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7154 hardcode_automatic=yes
7155 hardcode_shlibpath_var=unsupported
7156 whole_archive_flag_spec='-all_load $convenience'
7157 link_all_deplibs=yes
7162 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7163 hardcode_libdir_flag_spec='-L$libdir'
7164 hardcode_shlibpath_var=no
7171 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7172 # support. Future versions do this automatically, but an explicit c++rt0.o
7173 # does not break anything, and helps significantly (at the cost of a little
7176 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7177 hardcode_libdir_flag_spec='-R$libdir'
7179 hardcode_shlibpath_var=no
7182 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7184 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7186 hardcode_minus_L=yes
7187 hardcode_shlibpath_var=no
7190 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7192 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7193 hardcode_libdir_flag_spec='-R$libdir'
7195 hardcode_shlibpath_var=no
7199 if test "$GCC" = yes; then
7200 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'
7202 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'
7204 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7205 hardcode_libdir_separator=:
7208 # hardcode_minus_L: Not really in the search PATH,
7209 # but as the default location of the library.
7210 hardcode_minus_L=yes
7211 export_dynamic_flag_spec='${wl}-E'
7215 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7218 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7221 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7227 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7230 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7234 if test "$with_gnu_ld" = no; then
7237 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7238 hardcode_libdir_flag_spec_ld='+b $libdir'
7239 hardcode_libdir_separator=:
7241 hardcode_shlibpath_var=no
7244 hardcode_libdir_flag_spec='-L$libdir'
7246 hardcode_shlibpath_var=no
7248 # hardcode_minus_L: Not really in the search PATH,
7249 # but as the default location of the library.
7250 hardcode_minus_L=yes
7253 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7254 hardcode_libdir_separator=:
7256 export_dynamic_flag_spec='${wl}-E'
7258 # hardcode_minus_L: Not really in the search PATH,
7259 # but as the default location of the library.
7260 hardcode_minus_L=yes
7266 irix5* | irix6* | nonstopux*)
7267 if test "$GCC" = yes; then
7268 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'
7270 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'
7271 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7273 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7274 hardcode_libdir_separator=:
7275 link_all_deplibs=yes
7279 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7280 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7282 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7284 hardcode_libdir_flag_spec='-R$libdir'
7286 hardcode_shlibpath_var=no
7290 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7292 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7293 hardcode_libdir_separator=:
7294 hardcode_shlibpath_var=no
7299 hardcode_shlibpath_var=no
7300 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7301 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7302 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7303 export_dynamic_flag_spec='${wl}-E'
7306 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7307 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7308 hardcode_libdir_flag_spec='-R$libdir'
7311 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7312 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7319 hardcode_libdir_flag_spec='-L$libdir'
7320 hardcode_minus_L=yes
7321 allow_undefined_flag=unsupported
7322 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'
7323 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7327 if test "$GCC" = yes; then
7328 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7329 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'
7331 allow_undefined_flag=' -expect_unresolved \*'
7332 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'
7334 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7335 hardcode_libdir_separator=:
7338 osf4* | osf5*) # as osf3* with the addition of -msym flag
7339 if test "$GCC" = yes; then
7340 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7341 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'
7342 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7344 allow_undefined_flag=' -expect_unresolved \*'
7345 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'
7346 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7347 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7349 # Both c and cxx compiler support -rpath directly
7350 hardcode_libdir_flag_spec='-rpath $libdir'
7352 hardcode_libdir_separator=:
7356 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7357 hardcode_shlibpath_var=no
7358 export_dynamic_flag_spec='${wl}-Bexport'
7359 runpath_var=LD_RUN_PATH
7360 hardcode_runpath_var=yes
7364 no_undefined_flag=' -z text'
7365 if test "$GCC" = yes; then
7366 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7367 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7368 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7370 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7371 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7372 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7374 hardcode_libdir_flag_spec='-R$libdir'
7375 hardcode_shlibpath_var=no
7377 solaris2.[0-5] | solaris2.[0-5].*) ;;
7378 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7379 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7381 link_all_deplibs=yes
7385 if test "x$host_vendor" = xsequent; then
7386 # Use $CC to link under sequent, because it throws in some extra .o
7387 # files that make .init and .fini sections work.
7388 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7390 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7392 hardcode_libdir_flag_spec='-L$libdir'
7394 hardcode_minus_L=yes
7395 hardcode_shlibpath_var=no
7399 case $host_vendor in
7401 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7402 hardcode_direct=yes # is this really true???
7405 ## LD is ld it makes a PLAMLIB
7406 ## CC just makes a GrossModule.
7407 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7408 reload_cmds='$CC -r -o $output$reload_objs'
7412 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7413 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7416 runpath_var='LD_RUN_PATH'
7417 hardcode_shlibpath_var=no
7421 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7422 hardcode_shlibpath_var=no
7423 export_dynamic_flag_spec='-Bexport'
7427 if test -d /usr/nec; then
7428 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7429 hardcode_shlibpath_var=no
7430 runpath_var=LD_RUN_PATH
7431 hardcode_runpath_var=yes
7437 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7440 hardcode_shlibpath_var=no
7441 hardcode_runpath_var=yes
7442 runpath_var=LD_RUN_PATH
7445 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7446 no_undefined_flag='${wl}-z ${wl}text'
7447 if test "$GCC" = yes; then
7448 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7450 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7452 runpath_var='LD_RUN_PATH'
7453 hardcode_shlibpath_var=no
7457 no_undefined_flag=' -z text'
7458 # $CC -shared without GNU ld will not create a library from C++
7459 # object files and a static libstdc++, better avoid it by now
7460 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7461 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7462 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7463 hardcode_libdir_flag_spec=
7464 hardcode_shlibpath_var=no
7465 runpath_var='LD_RUN_PATH'
7469 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7470 hardcode_libdir_flag_spec='-L$libdir'
7471 hardcode_shlibpath_var=no
7480 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7481 echo "${ECHO_T}$ld_shlibs" >&6
7482 test "$ld_shlibs" = no && can_build_shared=no
7484 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7485 if test "$GCC" = yes; then
7486 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7490 # Do we need to explicitly link libc?
7492 case "x$archive_cmds_need_lc" in
7494 # Assume -lc should be added
7495 archive_cmds_need_lc=yes
7497 if test "$enable_shared" = yes && test "$GCC" = yes; then
7498 case $archive_cmds in
7500 # FIXME: we may have to deal with multi-command sequences.
7503 # Test whether the compiler implicitly links with -lc since on some
7504 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7505 # to ld, don't add -lc before -lgcc.
7506 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7507 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7509 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7512 (eval $ac_compile) 2>&5
7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); } 2>conftest.err; then
7518 libobjs=conftest.$ac_objext
7520 wl=$lt_prog_compiler_wl
7526 lt_save_allow_undefined_flag=$allow_undefined_flag
7527 allow_undefined_flag=
7528 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7529 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); }
7534 archive_cmds_need_lc=no
7536 archive_cmds_need_lc=yes
7538 allow_undefined_flag=$lt_save_allow_undefined_flag
7540 cat conftest.err 1>&5
7543 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7544 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7551 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7552 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7554 if test -n "$hardcode_libdir_flag_spec" || \
7555 test -n "$runpath_var " || \
7556 test "X$hardcode_automatic"="Xyes" ; then
7558 # We can hardcode non-existant directories.
7559 if test "$hardcode_direct" != no &&
7560 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7561 # have to relink, otherwise we might link with an installed library
7562 # when we should be linking with a yet-to-be-installed one
7563 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7564 test "$hardcode_minus_L" != no; then
7565 # Linking always hardcodes the temporary library directory.
7566 hardcode_action=relink
7568 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7569 hardcode_action=immediate
7572 # We cannot hardcode anything, or else we can only hardcode existing
7574 hardcode_action=unsupported
7576 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7577 echo "${ECHO_T}$hardcode_action" >&6
7579 if test "$hardcode_action" = relink; then
7580 # Fast installation is not supported
7581 enable_fast_install=no
7582 elif test "$shlibpath_overrides_runpath" = yes ||
7583 test "$enable_shared" = no; then
7584 # Fast installation is not necessary
7585 enable_fast_install=needless
7590 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7591 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7592 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7593 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7594 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7595 echo "$as_me:$LINENO: result: yes" >&5
7596 echo "${ECHO_T}yes" >&6
7598 # FIXME - insert some real tests, host_os isn't really good enough
7601 if test -n "$STRIP" ; then
7602 striplib="$STRIP -x"
7603 echo "$as_me:$LINENO: result: yes" >&5
7604 echo "${ECHO_T}yes" >&6
7606 echo "$as_me:$LINENO: result: no" >&5
7607 echo "${ECHO_T}no" >&6
7611 echo "$as_me:$LINENO: result: no" >&5
7612 echo "${ECHO_T}no" >&6
7617 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7618 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7620 libname_spec='lib$name'
7628 shlibpath_overrides_runpath=unknown
7630 dynamic_linker="$host_os ld.so"
7631 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7632 if test "$GCC" = yes; then
7633 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7634 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7635 # if the path contains ";" then we assume it to be the separator
7636 # otherwise default to the standard path separator (i.e. ":") - it is
7637 # assumed that no part of a normal pathname contains ";" but that should
7638 # okay in the real world where ";" in dirpaths is itself problematic.
7639 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7641 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7644 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7646 need_lib_prefix=unknown
7647 hardcode_into_libs=no
7649 # when you set need_version to no, make sure it does not cause -set_version
7650 # flags to be left without arguments
7651 need_version=unknown
7656 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7657 shlibpath_var=LIBPATH
7659 # AIX 3 has no versioning support, so we append a major version to the name.
7660 soname_spec='${libname}${release}${shared_ext}$major'
7667 hardcode_into_libs=yes
7668 if test "$host_cpu" = ia64; then
7669 # AIX 5 supports IA64
7670 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7671 shlibpath_var=LD_LIBRARY_PATH
7673 # With GCC up to 2.95.x, collect2 would create an import file
7674 # for dependence libraries. The import file would start with
7675 # the line `#! .'. This would cause the generated library to
7676 # depend on `.', always an invalid library. This was fixed in
7677 # development snapshots of GCC prior to 3.0.
7679 aix4 | aix4.[01] | aix4.[01].*)
7680 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7682 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7689 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7690 # soname into executable. Probably we can add versioning support to
7691 # collect2, so additional links can be useful in future.
7692 if test "$aix_use_runtimelinking" = yes; then
7693 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7694 # instead of lib<name>.a to let people know that these are not
7695 # typical AIX shared libraries.
7696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7698 # We preserve .a as extension for shared libraries through AIX4.2
7699 # and later when we are not doing run time linking.
7700 library_names_spec='${libname}${release}.a $libname.a'
7701 soname_spec='${libname}${release}${shared_ext}$major'
7703 shlibpath_var=LIBPATH
7708 library_names_spec='$libname.ixlibrary $libname.a'
7709 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7710 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'
7714 library_names_spec='${libname}${shared_ext}'
7715 dynamic_linker="$host_os ld.so"
7716 shlibpath_var=LIBRARY_PATH
7722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7723 soname_spec='${libname}${release}${shared_ext}$major'
7724 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7725 shlibpath_var=LD_LIBRARY_PATH
7726 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7727 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7728 # the default ld.so.conf also contains /usr/contrib/lib and
7729 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7730 # libtool to hard-code these into programs
7733 cygwin* | mingw* | pw32*)
7734 version_type=windows
7739 case $GCC,$host_os in
7740 yes,cygwin* | yes,mingw* | yes,pw32*)
7741 library_names_spec='$libname.dll.a'
7742 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7743 postinstall_cmds='base_file=`basename \${file}`~
7744 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7745 dldir=$destdir/`dirname \$dlpath`~
7746 test -d \$dldir || mkdir -p \$dldir~
7747 $install_prog $dir/$dlname \$dldir/$dlname'
7748 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7749 dlpath=$dir/\$dldll~
7751 shlibpath_overrides_runpath=yes
7755 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7756 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7757 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7760 # MinGW DLLs use traditional 'lib' prefix
7761 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7762 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7763 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7764 # It is most probably a Windows format PATH printed by
7765 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7766 # path with ; separators, and with drive letters. We can handle the
7767 # drive letters (cygwin fileutils understands them), so leave them,
7768 # especially as we might pass files found there to a mingw objdump,
7769 # which wouldn't understand a cygwinified path. Ahh.
7770 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7772 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7776 # pw32 DLLs use 'pw' prefix rather than 'lib'
7777 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7783 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7786 dynamic_linker='Win32 ld.exe'
7787 # FIXME: first we should search . and the directory the executable is in
7791 darwin* | rhapsody*)
7792 dynamic_linker="$host_os dyld"
7796 # FIXME: Relying on posixy $() will cause problems for
7797 # cross-compilation, but unfortunately the echo tests do not
7798 # yet detect zsh echo's removal of \ escapes.
7799 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7800 soname_spec='${libname}${release}${major}$shared_ext'
7801 shlibpath_overrides_runpath=yes
7802 shlibpath_var=DYLD_LIBRARY_PATH
7803 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7804 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7805 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7806 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"`
7808 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7816 soname_spec='${libname}${release}${shared_ext}$major'
7817 shlibpath_var=LD_LIBRARY_PATH
7825 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7826 version_type=freebsd-$objformat
7827 case $version_type in
7829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7834 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7838 shlibpath_var=LD_LIBRARY_PATH
7841 shlibpath_overrides_runpath=yes
7843 freebsd3.01* | freebsdelf3.01*)
7844 shlibpath_overrides_runpath=yes
7845 hardcode_into_libs=yes
7848 shlibpath_overrides_runpath=no
7849 hardcode_into_libs=yes
7858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7859 soname_spec='${libname}${release}${shared_ext}$major'
7860 shlibpath_var=LD_LIBRARY_PATH
7861 hardcode_into_libs=yes
7864 hpux9* | hpux10* | hpux11*)
7865 # Give a soname corresponding to the major version so that dld.sl refuses to
7866 # link against other versions.
7873 hardcode_into_libs=yes
7874 dynamic_linker="$host_os dld.so"
7875 shlibpath_var=LD_LIBRARY_PATH
7876 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7878 soname_spec='${libname}${release}${shared_ext}$major'
7879 if test "X$HPUX_IA64_MODE" = X32; then
7880 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7882 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7884 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7888 hardcode_into_libs=yes
7889 dynamic_linker="$host_os dld.sl"
7890 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7891 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7893 soname_spec='${libname}${release}${shared_ext}$major'
7894 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7895 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7899 dynamic_linker="$host_os dld.sl"
7900 shlibpath_var=SHLIB_PATH
7901 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7903 soname_spec='${libname}${release}${shared_ext}$major'
7906 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7907 postinstall_cmds='chmod 555 $lib'
7910 irix5* | irix6* | nonstopux*)
7912 nonstopux*) version_type=nonstopux ;;
7914 if test "$lt_cv_prog_gnu_ld" = yes; then
7922 soname_spec='${libname}${release}${shared_ext}$major'
7923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7925 irix5* | nonstopux*)
7929 case $LD in # libtool.m4 will add one of these switches to LD
7930 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7931 libsuff= shlibsuff= libmagic=32-bit;;
7932 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7933 libsuff=32 shlibsuff=N32 libmagic=N32;;
7934 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7935 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7936 *) libsuff= shlibsuff= libmagic=never-match;;
7940 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7941 shlibpath_overrides_runpath=no
7942 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7943 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7944 hardcode_into_libs=yes
7947 # No shared lib support for Linux oldld, aout, or coff.
7948 linux*oldld* | linux*aout* | linux*coff*)
7952 # This must be Linux ELF.
7957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7958 soname_spec='${libname}${release}${shared_ext}$major'
7959 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7960 shlibpath_var=LD_LIBRARY_PATH
7961 shlibpath_overrides_runpath=no
7962 # This implies no fast_install, which is unacceptable.
7963 # Some rework will be needed to allow for fast_install
7964 # before this can be enabled.
7965 hardcode_into_libs=yes
7967 # We used to test for /lib/ld.so.1 and disable shared libraries on
7968 # powerpc, because MkLinux only supported shared libraries with the
7969 # GNU dynamic linker. Since this was broken with cross compilers,
7970 # most powerpc-linux boxes support dynamic linking these days and
7971 # people can always --disable-shared, the test was removed, and we
7972 # assume the GNU/Linux dynamic linker is in use.
7973 dynamic_linker='GNU/Linux ld.so'
7975 # Find out which ABI we are using (multilib Linux x86_64 hack).
7979 echo '#line 7979 "configure"' > conftest.$ac_ext
7980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7981 (eval $ac_compile) 2>&5
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); }; then
7985 case `/usr/bin/file conftest.$ac_objext` in
7996 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
7997 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8004 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8006 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8007 dynamic_linker='NetBSD (a.out) ld.so'
8009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
8010 soname_spec='${libname}${release}${shared_ext}$major'
8011 dynamic_linker='NetBSD ld.elf_so'
8013 shlibpath_var=LD_LIBRARY_PATH
8014 shlibpath_overrides_runpath=yes
8015 hardcode_into_libs=yes
8020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8021 shlibpath_var=LD_LIBRARY_PATH
8022 shlibpath_overrides_runpath=yes
8029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8030 soname_spec='${libname}${release}${shared_ext}$major'
8031 shlibpath_var=LD_LIBRARY_PATH
8032 shlibpath_overrides_runpath=yes
8039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8040 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8041 shlibpath_var=LD_LIBRARY_PATH
8042 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8044 openbsd2.[89] | openbsd2.[89].*)
8045 shlibpath_overrides_runpath=no
8048 shlibpath_overrides_runpath=yes
8052 shlibpath_overrides_runpath=yes
8057 libname_spec='$name'
8060 library_names_spec='$libname${shared_ext} $libname.a'
8061 dynamic_linker='OS/2 ld.exe'
8062 shlibpath_var=LIBPATH
8065 osf3* | osf4* | osf5*)
8069 soname_spec='${libname}${release}${shared_ext}$major'
8070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8071 shlibpath_var=LD_LIBRARY_PATH
8072 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8073 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8078 soname_spec='${libname}${release}${shared_ext}$major'
8079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8080 shlibpath_var=LD_LIBRARY_PATH
8087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8088 soname_spec='${libname}${release}${shared_ext}$major'
8089 shlibpath_var=LD_LIBRARY_PATH
8090 shlibpath_overrides_runpath=yes
8091 hardcode_into_libs=yes
8092 # ldd complains unless libraries are executable
8093 postinstall_cmds='chmod +x $lib'
8098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8099 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8100 shlibpath_var=LD_LIBRARY_PATH
8101 shlibpath_overrides_runpath=yes
8102 if test "$with_gnu_ld" = yes; then
8108 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8111 soname_spec='${libname}${release}${shared_ext}$major'
8112 shlibpath_var=LD_LIBRARY_PATH
8113 case $host_vendor in
8115 shlibpath_overrides_runpath=no
8117 export_dynamic_flag_spec='${wl}-Blargedynsym'
8118 runpath_var=LD_RUN_PATH
8126 shlibpath_overrides_runpath=no
8127 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8133 if test -d /usr/nec ;then
8135 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8136 soname_spec='$libname${shared_ext}.$major'
8137 shlibpath_var=LD_LIBRARY_PATH
8143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8144 soname_spec='${libname}${release}${shared_ext}$major'
8145 shlibpath_var=LD_LIBRARY_PATH
8152 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8153 echo "${ECHO_T}$dynamic_linker" >&6
8154 test "$dynamic_linker" = no && can_build_shared=no
8156 if test "x$enable_dlopen" != xyes; then
8157 enable_dlopen=unknown
8158 enable_dlopen_self=unknown
8159 enable_dlopen_self_static=unknown
8166 lt_cv_dlopen="load_add_on"
8168 lt_cv_dlopen_self=yes
8172 lt_cv_dlopen="LoadLibrary"
8177 lt_cv_dlopen="dlopen"
8182 # if libdl is installed we need to link against it
8183 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8184 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8185 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8186 echo $ECHO_N "(cached) $ECHO_C" >&6
8188 ac_check_lib_save_LIBS=$LIBS
8190 cat >conftest.$ac_ext <<_ACEOF
8191 #line $LINENO "configure"
8194 cat confdefs.h >>conftest.$ac_ext
8195 cat >>conftest.$ac_ext <<_ACEOF
8196 /* end confdefs.h. */
8198 /* Override any gcc2 internal prototype to avoid an error. */
8202 /* We use char because int might match the return type of a gcc2
8203 builtin and then its argument prototype would still apply. */
8213 rm -f conftest.$ac_objext conftest$ac_exeext
8214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8215 (eval $ac_link) 2>&5
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218 (exit $ac_status); } &&
8219 { ac_try='test -s conftest$ac_exeext'
8220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224 (exit $ac_status); }; }; then
8225 ac_cv_lib_dl_dlopen=yes
8227 echo "$as_me: failed program was:" >&5
8228 sed 's/^/| /' conftest.$ac_ext >&5
8230 ac_cv_lib_dl_dlopen=no
8232 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8233 LIBS=$ac_check_lib_save_LIBS
8235 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8236 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8237 if test $ac_cv_lib_dl_dlopen = yes; then
8238 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8243 lt_cv_dlopen_self=yes
8250 echo "$as_me:$LINENO: checking for shl_load" >&5
8251 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8252 if test "${ac_cv_func_shl_load+set}" = set; then
8253 echo $ECHO_N "(cached) $ECHO_C" >&6
8255 cat >conftest.$ac_ext <<_ACEOF
8256 #line $LINENO "configure"
8259 cat confdefs.h >>conftest.$ac_ext
8260 cat >>conftest.$ac_ext <<_ACEOF
8261 /* end confdefs.h. */
8262 /* System header to define __stub macros and hopefully few prototypes,
8263 which can conflict with char shl_load (); below.
8264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8265 <limits.h> exists even on freestanding compilers. */
8267 # include <limits.h>
8269 # include <assert.h>
8271 /* Override any gcc2 internal prototype to avoid an error. */
8276 /* We use char because int might match the return type of a gcc2
8277 builtin and then its argument prototype would still apply. */
8279 /* The GNU C library defines this for functions which it implements
8280 to always fail with ENOSYS. Some functions are actually named
8281 something starting with __ and the normal name is an alias. */
8282 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8285 char (*f) () = shl_load;
8294 return f != shl_load;
8299 rm -f conftest.$ac_objext conftest$ac_exeext
8300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8301 (eval $ac_link) 2>&5
8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); } &&
8305 { ac_try='test -s conftest$ac_exeext'
8306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); }; }; then
8311 ac_cv_func_shl_load=yes
8313 echo "$as_me: failed program was:" >&5
8314 sed 's/^/| /' conftest.$ac_ext >&5
8316 ac_cv_func_shl_load=no
8318 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8320 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8321 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8322 if test $ac_cv_func_shl_load = yes; then
8323 lt_cv_dlopen="shl_load"
8325 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8326 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8327 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8328 echo $ECHO_N "(cached) $ECHO_C" >&6
8330 ac_check_lib_save_LIBS=$LIBS
8332 cat >conftest.$ac_ext <<_ACEOF
8333 #line $LINENO "configure"
8336 cat confdefs.h >>conftest.$ac_ext
8337 cat >>conftest.$ac_ext <<_ACEOF
8338 /* end confdefs.h. */
8340 /* Override any gcc2 internal prototype to avoid an error. */
8344 /* We use char because int might match the return type of a gcc2
8345 builtin and then its argument prototype would still apply. */
8355 rm -f conftest.$ac_objext conftest$ac_exeext
8356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8357 (eval $ac_link) 2>&5
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); } &&
8361 { ac_try='test -s conftest$ac_exeext'
8362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); }; }; then
8367 ac_cv_lib_dld_shl_load=yes
8369 echo "$as_me: failed program was:" >&5
8370 sed 's/^/| /' conftest.$ac_ext >&5
8372 ac_cv_lib_dld_shl_load=no
8374 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8375 LIBS=$ac_check_lib_save_LIBS
8377 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8378 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8379 if test $ac_cv_lib_dld_shl_load = yes; then
8380 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8382 echo "$as_me:$LINENO: checking for dlopen" >&5
8383 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8384 if test "${ac_cv_func_dlopen+set}" = set; then
8385 echo $ECHO_N "(cached) $ECHO_C" >&6
8387 cat >conftest.$ac_ext <<_ACEOF
8388 #line $LINENO "configure"
8391 cat confdefs.h >>conftest.$ac_ext
8392 cat >>conftest.$ac_ext <<_ACEOF
8393 /* end confdefs.h. */
8394 /* System header to define __stub macros and hopefully few prototypes,
8395 which can conflict with char dlopen (); below.
8396 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8397 <limits.h> exists even on freestanding compilers. */
8399 # include <limits.h>
8401 # include <assert.h>
8403 /* Override any gcc2 internal prototype to avoid an error. */
8408 /* We use char because int might match the return type of a gcc2
8409 builtin and then its argument prototype would still apply. */
8411 /* The GNU C library defines this for functions which it implements
8412 to always fail with ENOSYS. Some functions are actually named
8413 something starting with __ and the normal name is an alias. */
8414 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8417 char (*f) () = dlopen;
8431 rm -f conftest.$ac_objext conftest$ac_exeext
8432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8433 (eval $ac_link) 2>&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); } &&
8437 { ac_try='test -s conftest$ac_exeext'
8438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); }; }; then
8443 ac_cv_func_dlopen=yes
8445 echo "$as_me: failed program was:" >&5
8446 sed 's/^/| /' conftest.$ac_ext >&5
8448 ac_cv_func_dlopen=no
8450 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8452 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8453 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8454 if test $ac_cv_func_dlopen = yes; then
8455 lt_cv_dlopen="dlopen"
8457 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8458 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8459 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8460 echo $ECHO_N "(cached) $ECHO_C" >&6
8462 ac_check_lib_save_LIBS=$LIBS
8464 cat >conftest.$ac_ext <<_ACEOF
8465 #line $LINENO "configure"
8468 cat confdefs.h >>conftest.$ac_ext
8469 cat >>conftest.$ac_ext <<_ACEOF
8470 /* end confdefs.h. */
8472 /* Override any gcc2 internal prototype to avoid an error. */
8476 /* We use char because int might match the return type of a gcc2
8477 builtin and then its argument prototype would still apply. */
8487 rm -f conftest.$ac_objext conftest$ac_exeext
8488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8489 (eval $ac_link) 2>&5
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); } &&
8493 { ac_try='test -s conftest$ac_exeext'
8494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); }; }; then
8499 ac_cv_lib_dl_dlopen=yes
8501 echo "$as_me: failed program was:" >&5
8502 sed 's/^/| /' conftest.$ac_ext >&5
8504 ac_cv_lib_dl_dlopen=no
8506 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8507 LIBS=$ac_check_lib_save_LIBS
8509 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8510 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8511 if test $ac_cv_lib_dl_dlopen = yes; then
8512 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8514 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8515 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8516 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8517 echo $ECHO_N "(cached) $ECHO_C" >&6
8519 ac_check_lib_save_LIBS=$LIBS
8521 cat >conftest.$ac_ext <<_ACEOF
8522 #line $LINENO "configure"
8525 cat confdefs.h >>conftest.$ac_ext
8526 cat >>conftest.$ac_ext <<_ACEOF
8527 /* end confdefs.h. */
8529 /* Override any gcc2 internal prototype to avoid an error. */
8533 /* We use char because int might match the return type of a gcc2
8534 builtin and then its argument prototype would still apply. */
8544 rm -f conftest.$ac_objext conftest$ac_exeext
8545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8546 (eval $ac_link) 2>&5
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); } &&
8550 { ac_try='test -s conftest$ac_exeext'
8551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); }; }; then
8556 ac_cv_lib_svld_dlopen=yes
8558 echo "$as_me: failed program was:" >&5
8559 sed 's/^/| /' conftest.$ac_ext >&5
8561 ac_cv_lib_svld_dlopen=no
8563 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8564 LIBS=$ac_check_lib_save_LIBS
8566 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8567 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8568 if test $ac_cv_lib_svld_dlopen = yes; then
8569 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8571 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8572 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8573 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8574 echo $ECHO_N "(cached) $ECHO_C" >&6
8576 ac_check_lib_save_LIBS=$LIBS
8578 cat >conftest.$ac_ext <<_ACEOF
8579 #line $LINENO "configure"
8582 cat confdefs.h >>conftest.$ac_ext
8583 cat >>conftest.$ac_ext <<_ACEOF
8584 /* end confdefs.h. */
8586 /* Override any gcc2 internal prototype to avoid an error. */
8590 /* We use char because int might match the return type of a gcc2
8591 builtin and then its argument prototype would still apply. */
8601 rm -f conftest.$ac_objext conftest$ac_exeext
8602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8603 (eval $ac_link) 2>&5
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); } &&
8607 { ac_try='test -s conftest$ac_exeext'
8608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); }; }; then
8613 ac_cv_lib_dld_dld_link=yes
8615 echo "$as_me: failed program was:" >&5
8616 sed 's/^/| /' conftest.$ac_ext >&5
8618 ac_cv_lib_dld_dld_link=no
8620 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8621 LIBS=$ac_check_lib_save_LIBS
8623 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8624 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8625 if test $ac_cv_lib_dld_dld_link = yes; then
8626 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8647 if test "x$lt_cv_dlopen" != xno; then
8653 case $lt_cv_dlopen in
8655 save_CPPFLAGS="$CPPFLAGS"
8656 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8658 save_LDFLAGS="$LDFLAGS"
8659 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8662 LIBS="$lt_cv_dlopen_libs $LIBS"
8664 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8665 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8666 if test "${lt_cv_dlopen_self+set}" = set; then
8667 echo $ECHO_N "(cached) $ECHO_C" >&6
8669 if test "$cross_compiling" = yes; then :
8670 lt_cv_dlopen_self=cross
8672 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8673 lt_status=$lt_dlunknown
8674 cat > conftest.$ac_ext <<EOF
8675 #line 8675 "configure"
8676 #include "confdefs.h"
8685 # define LT_DLGLOBAL RTLD_GLOBAL
8688 # define LT_DLGLOBAL DL_GLOBAL
8690 # define LT_DLGLOBAL 0
8694 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8695 find out it does not work in some platform. */
8696 #ifndef LT_DLLAZY_OR_NOW
8698 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8701 # define LT_DLLAZY_OR_NOW DL_LAZY
8704 # define LT_DLLAZY_OR_NOW RTLD_NOW
8707 # define LT_DLLAZY_OR_NOW DL_NOW
8709 # define LT_DLLAZY_OR_NOW 0
8717 extern "C" void exit (int);
8720 void fnord() { int i=42;}
8723 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8724 int status = $lt_dlunknown;
8728 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8729 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8730 /* dlclose (self); */
8736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8737 (eval $ac_link) 2>&5
8739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8741 (./conftest; exit; ) 2>/dev/null
8744 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8745 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8746 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8749 # compilation failed
8750 lt_cv_dlopen_self=no
8757 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8758 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8760 if test "x$lt_cv_dlopen_self" = xyes; then
8761 LDFLAGS="$LDFLAGS $link_static_flag"
8762 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8763 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8764 if test "${lt_cv_dlopen_self_static+set}" = set; then
8765 echo $ECHO_N "(cached) $ECHO_C" >&6
8767 if test "$cross_compiling" = yes; then :
8768 lt_cv_dlopen_self_static=cross
8770 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8771 lt_status=$lt_dlunknown
8772 cat > conftest.$ac_ext <<EOF
8773 #line 8773 "configure"
8774 #include "confdefs.h"
8783 # define LT_DLGLOBAL RTLD_GLOBAL
8786 # define LT_DLGLOBAL DL_GLOBAL
8788 # define LT_DLGLOBAL 0
8792 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8793 find out it does not work in some platform. */
8794 #ifndef LT_DLLAZY_OR_NOW
8796 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8799 # define LT_DLLAZY_OR_NOW DL_LAZY
8802 # define LT_DLLAZY_OR_NOW RTLD_NOW
8805 # define LT_DLLAZY_OR_NOW DL_NOW
8807 # define LT_DLLAZY_OR_NOW 0
8815 extern "C" void exit (int);
8818 void fnord() { int i=42;}
8821 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8822 int status = $lt_dlunknown;
8826 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8827 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8828 /* dlclose (self); */
8834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8835 (eval $ac_link) 2>&5
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8839 (./conftest; exit; ) 2>/dev/null
8842 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8843 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8844 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8847 # compilation failed
8848 lt_cv_dlopen_self_static=no
8855 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8856 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8859 CPPFLAGS="$save_CPPFLAGS"
8860 LDFLAGS="$save_LDFLAGS"
8865 case $lt_cv_dlopen_self in
8866 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8867 *) enable_dlopen_self=unknown ;;
8870 case $lt_cv_dlopen_self_static in
8871 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8872 *) enable_dlopen_self_static=unknown ;;
8877 # Report which librarie types wil actually be built
8878 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8879 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8880 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8881 echo "${ECHO_T}$can_build_shared" >&6
8883 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8884 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8885 test "$can_build_shared" = "no" && enable_shared=no
8887 # On AIX, shared libraries and static libraries use the same namespace, and
8888 # are all built from PIC.
8891 test "$enable_shared" = yes && enable_static=no
8892 if test -n "$RANLIB"; then
8893 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8894 postinstall_cmds='$RANLIB $lib'
8899 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8900 test "$enable_shared" = yes && enable_static=no
8903 darwin* | rhapsody*)
8904 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8905 archive_cmds_need_lc=no
8907 rhapsody* | darwin1.[012])
8908 allow_undefined_flag='-undefined suppress'
8911 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8914 # FIXME: Relying on posixy $() will cause problems for
8915 # cross-compilation, but unfortunately the echo tests do not
8916 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8917 # `"' quotes if we put them in here... so don't!
8918 output_verbose_link_cmd='echo'
8919 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8920 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8921 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8922 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}'
8923 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8925 hardcode_automatic=yes
8926 hardcode_shlibpath_var=unsupported
8927 whole_archive_flag_spec='-all_load $convenience'
8928 link_all_deplibs=yes
8932 echo "$as_me:$LINENO: result: $enable_shared" >&5
8933 echo "${ECHO_T}$enable_shared" >&6
8935 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8936 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8937 # Make sure either enable_shared or enable_static is yes.
8938 test "$enable_shared" = yes || enable_static=yes
8939 echo "$as_me:$LINENO: result: $enable_static" >&5
8940 echo "${ECHO_T}$enable_static" >&6
8942 # The else clause should only fire when bootstrapping the
8943 # libtool distribution, otherwise you forgot to ship ltmain.sh
8944 # with your package, and you will get complaints that there are
8945 # no rules to generate ltmain.sh.
8946 if test -f "$ltmain"; then
8947 # See if we are running on zsh, and set the options which allow our commands through
8948 # without removal of \ escapes.
8949 if test -n "${ZSH_VERSION+set}" ; then
8950 setopt NO_GLOB_SUBST
8952 # Now quote all the things that may contain metacharacters while being
8953 # careful not to overquote the AC_SUBSTed values. We take copies of the
8954 # variables and quote the copies for generation of the libtool script.
8955 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8956 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8957 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8958 deplibs_check_method reload_flag reload_cmds need_locks \
8959 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8960 lt_cv_sys_global_symbol_to_c_name_address \
8961 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8962 old_postinstall_cmds old_postuninstall_cmds \
8966 lt_prog_compiler_wl \
8967 lt_prog_compiler_pic \
8968 lt_prog_compiler_static \
8969 lt_prog_compiler_no_builtin_flag \
8970 export_dynamic_flag_spec \
8971 thread_safe_flag_spec \
8972 whole_archive_flag_spec \
8973 enable_shared_with_static_runtimes \
8975 old_archive_from_new_cmds \
8980 compiler_lib_search_path \
8982 archive_expsym_cmds \
8984 postuninstall_cmds \
8985 old_archive_from_expsyms_cmds \
8986 allow_undefined_flag \
8988 export_symbols_cmds \
8989 hardcode_libdir_flag_spec \
8990 hardcode_libdir_flag_spec_ld \
8991 hardcode_libdir_separator \
8992 hardcode_automatic \
8994 module_expsym_cmds \
8995 lt_cv_prog_compiler_c_o \
9000 old_archive_cmds | \
9001 old_archive_from_new_cmds | \
9003 archive_expsym_cmds | \
9005 module_expsym_cmds | \
9006 old_archive_from_expsyms_cmds | \
9007 export_symbols_cmds | \
9008 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9009 postinstall_cmds | postuninstall_cmds | \
9010 old_postinstall_cmds | old_postuninstall_cmds | \
9011 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9012 # Double-quote double-evaled strings.
9013 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9016 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9022 *'\$0 --fallback-echo"')
9023 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9028 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9030 { echo "$as_me:$LINENO: creating $ofile" >&5
9031 echo "$as_me: creating $ofile" >&6;}
9033 cat <<__EOF__ >> "$cfgfile"
9036 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9037 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9038 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9040 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9041 # Free Software Foundation, Inc.
9043 # This file is part of GNU Libtool:
9044 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9046 # This program is free software; you can redistribute it and/or modify
9047 # it under the terms of the GNU General Public License as published by
9048 # the Free Software Foundation; either version 2 of the License, or
9049 # (at your option) any later version.
9051 # This program is distributed in the hope that it will be useful, but
9052 # WITHOUT ANY WARRANTY; without even the implied warranty of
9053 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9054 # General Public License for more details.
9056 # You should have received a copy of the GNU General Public License
9057 # along with this program; if not, write to the Free Software
9058 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9060 # As a special exception to the GNU General Public License, if you
9061 # distribute this file as part of a program that contains a
9062 # configuration script generated by Autoconf, you may include it under
9063 # the same distribution terms that you use for the rest of that program.
9065 # A sed program that does not truncate output.
9068 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9069 Xsed="$SED -e s/^X//"
9071 # The HP-UX ksh and POSIX shell print the target directory to stdout
9073 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9075 # The names of the tagged configurations supported by this script.
9078 # ### BEGIN LIBTOOL CONFIG
9080 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9082 # Shell to use when invoking shell scripts.
9085 # Whether or not to build shared libraries.
9086 build_libtool_libs=$enable_shared
9088 # Whether or not to build static libraries.
9089 build_old_libs=$enable_static
9091 # Whether or not to add -lc for building shared libraries.
9092 build_libtool_need_lc=$archive_cmds_need_lc
9094 # Whether or not to disallow shared libs when runtime libs are static
9095 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9097 # Whether or not to optimize for fast installation.
9098 fast_install=$enable_fast_install
9101 host_alias=$host_alias
9104 # An echo program that does not interpret backslashes.
9109 AR_FLAGS=$lt_AR_FLAGS
9114 # A language-specific compiler.
9117 # Is the compiler the GNU C compiler?
9123 # The linker used to build libraries.
9126 # Whether we need hard or soft links.
9129 # A BSD-compatible nm program.
9132 # A symbol stripping program
9135 # Used to examine libraries when file_magic_cmd begins "file"
9136 MAGIC_CMD=$MAGIC_CMD
9138 # Used on cygwin: DLL creation program.
9141 # Used on cygwin: object dumper.
9144 # Used on cygwin: assembler.
9147 # The name of the directory that contains temporary libtool files.
9150 # How to create reloadable object files.
9151 reload_flag=$lt_reload_flag
9152 reload_cmds=$lt_reload_cmds
9154 # How to pass a linker flag through the compiler.
9155 wl=$lt_lt_prog_compiler_wl
9157 # Object file suffix (normally "o").
9160 # Old archive suffix (normally "a").
9163 # Shared library suffix (normally ".so").
9166 # Executable file suffix (normally "").
9169 # Additional compiler flags for building library objects.
9170 pic_flag=$lt_lt_prog_compiler_pic
9173 # What is the maximum length of a command?
9174 max_cmd_len=$lt_cv_sys_max_cmd_len
9176 # Does compiler simultaneously support -c and -o options?
9177 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9179 # Must we lock files when doing compilation ?
9180 need_locks=$lt_need_locks
9182 # Do we need the lib prefix for modules?
9183 need_lib_prefix=$need_lib_prefix
9185 # Do we need a version for libraries?
9186 need_version=$need_version
9188 # Whether dlopen is supported.
9189 dlopen_support=$enable_dlopen
9191 # Whether dlopen of programs is supported.
9192 dlopen_self=$enable_dlopen_self
9194 # Whether dlopen of statically linked programs is supported.
9195 dlopen_self_static=$enable_dlopen_self_static
9197 # Compiler flag to prevent dynamic linking.
9198 link_static_flag=$lt_lt_prog_compiler_static
9200 # Compiler flag to turn off builtin functions.
9201 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9203 # Compiler flag to allow reflexive dlopens.
9204 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9206 # Compiler flag to generate shared objects directly from archives.
9207 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9209 # Compiler flag to generate thread-safe objects.
9210 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9212 # Library versioning type.
9213 version_type=$version_type
9215 # Format of library name prefix.
9216 libname_spec=$lt_libname_spec
9218 # List of archive names. First name is the real one, the rest are links.
9219 # The last name is the one that the linker finds with -lNAME.
9220 library_names_spec=$lt_library_names_spec
9222 # The coded name of the library, if different from the real name.
9223 soname_spec=$lt_soname_spec
9225 # Commands used to build and install an old-style archive.
9227 old_archive_cmds=$lt_old_archive_cmds
9228 old_postinstall_cmds=$lt_old_postinstall_cmds
9229 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9231 # Create an old-style archive from a shared archive.
9232 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9234 # Create a temporary old-style archive to link instead of a shared archive.
9235 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9237 # Commands used to build and install a shared archive.
9238 archive_cmds=$lt_archive_cmds
9239 archive_expsym_cmds=$lt_archive_expsym_cmds
9240 postinstall_cmds=$lt_postinstall_cmds
9241 postuninstall_cmds=$lt_postuninstall_cmds
9243 # Commands used to build a loadable module (assumed same as above if empty)
9244 module_cmds=$lt_module_cmds
9245 module_expsym_cmds=$lt_module_expsym_cmds
9247 # Commands to strip libraries.
9248 old_striplib=$lt_old_striplib
9249 striplib=$lt_striplib
9251 # Dependencies to place before the objects being linked to create a
9253 predep_objects=$lt_predep_objects
9255 # Dependencies to place after the objects being linked to create a
9257 postdep_objects=$lt_postdep_objects
9259 # Dependencies to place before the objects being linked to create a
9263 # Dependencies to place after the objects being linked to create a
9265 postdeps=$lt_postdeps
9267 # The library search path used internally by the compiler when linking
9269 compiler_lib_search_path=$lt_compiler_lib_search_path
9271 # Method to check whether dependent libraries are shared objects.
9272 deplibs_check_method=$lt_deplibs_check_method
9274 # Command to use when deplibs_check_method == file_magic.
9275 file_magic_cmd=$lt_file_magic_cmd
9277 # Flag that allows shared libraries with undefined symbols to be built.
9278 allow_undefined_flag=$lt_allow_undefined_flag
9280 # Flag that forces no undefined symbols.
9281 no_undefined_flag=$lt_no_undefined_flag
9283 # Commands used to finish a libtool library installation in a directory.
9284 finish_cmds=$lt_finish_cmds
9286 # Same as above, but a single script fragment to be evaled but not shown.
9287 finish_eval=$lt_finish_eval
9289 # Take the output of nm and produce a listing of raw symbols and C names.
9290 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9292 # Transform the output of nm in a proper C declaration
9293 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9295 # Transform the output of nm in a C name address pair
9296 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9298 # This is the shared library runtime path variable.
9299 runpath_var=$runpath_var
9301 # This is the shared library path variable.
9302 shlibpath_var=$shlibpath_var
9304 # Is shlibpath searched before the hard-coded library search path?
9305 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9307 # How to hardcode a shared library path into an executable.
9308 hardcode_action=$hardcode_action
9310 # Whether we should hardcode library paths into libraries.
9311 hardcode_into_libs=$hardcode_into_libs
9313 # Flag to hardcode \$libdir into a binary during linking.
9314 # This must work even if \$libdir does not exist.
9315 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9317 # If ld is used when linking, flag to hardcode \$libdir into
9318 # a binary during linking. This must work even if \$libdir does
9320 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9322 # Whether we need a single -rpath flag with a separated argument.
9323 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9325 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9327 hardcode_direct=$hardcode_direct
9329 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9331 hardcode_minus_L=$hardcode_minus_L
9333 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9334 # the resulting binary.
9335 hardcode_shlibpath_var=$hardcode_shlibpath_var
9337 # Set to yes if building a shared library automatically hardcodes DIR into the library
9338 # and all subsequent libraries and executables linked against it.
9339 hardcode_automatic=$hardcode_automatic
9341 # Variables whose values should be saved in libtool wrapper scripts and
9342 # restored at relink time.
9343 variables_saved_for_relink="$variables_saved_for_relink"
9345 # Whether libtool must link a program against all its dependency libraries.
9346 link_all_deplibs=$link_all_deplibs
9348 # Compile-time system search path for libraries
9349 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9351 # Run-time system search path for libraries
9352 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9354 # Fix the shell variable \$srcfile for the compiler.
9355 fix_srcfile_path="$fix_srcfile_path"
9357 # Set to yes if exported symbols are required.
9358 always_export_symbols=$always_export_symbols
9360 # The commands to list exported symbols.
9361 export_symbols_cmds=$lt_export_symbols_cmds
9363 # The commands to extract the exported symbol list from a shared archive.
9364 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9366 # Symbols that should not be listed in the preloaded symbols.
9367 exclude_expsyms=$lt_exclude_expsyms
9369 # Symbols that must always be exported.
9370 include_expsyms=$lt_include_expsyms
9372 # ### END LIBTOOL CONFIG
9379 cat <<\EOF >> "$cfgfile"
9381 # AIX sometimes has problems with the GCC collect2 program. For some
9382 # reason, if we set the COLLECT_NAMES environment variable, the problems
9383 # vanish in a puff of smoke.
9384 if test "X${COLLECT_NAMES+set}" != Xset; then
9386 export COLLECT_NAMES
9392 # We use sed instead of cat because bash on DJGPP gets confused if
9393 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9394 # text mode, it properly converts lines to CR/LF. This bash problem
9395 # is reportedly fixed, but why not run on old versions too?
9396 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9398 mv -f "$cfgfile" "$ofile" || \
9399 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9403 # If there is no Makefile yet, we rely on a make rule to execute
9404 # `config.status --recheck' to rerun these tests and create the
9405 # libtool script then.
9406 test -f Makefile && make "$ltmain"
9411 ac_cpp='$CPP $CPPFLAGS'
9412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9419 # Check whether --with-tags or --without-tags was given.
9420 if test "${with_tags+set}" = set; then
9421 withval="$with_tags"
9425 if test -f "$ltmain" && test -n "$tagnames"; then
9426 if test ! -f "${ofile}"; then
9427 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9428 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9431 if test -z "$LTCC"; then
9432 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9433 if test -z "$LTCC"; then
9434 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9435 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9437 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9438 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9442 # Extract list of available tagged configurations in $ofile.
9443 # Note that this assumes the entire list is on one line.
9444 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9446 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9447 for tagname in $tagnames; do
9449 # Check whether tagname contains only valid characters
9450 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9452 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9453 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9454 { (exit 1); exit 1; }; }
9458 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9460 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9461 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9462 { (exit 1); exit 1; }; }
9465 # Update the list of available tags.
9466 if test -n "$tagname"; then
9467 echo appending configuration tag \"$tagname\" to $ofile
9471 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9473 ac_cpp='$CXXCPP $CPPFLAGS'
9474 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9475 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9476 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9481 archive_cmds_need_lc_CXX=no
9482 allow_undefined_flag_CXX=
9483 always_export_symbols_CXX=no
9484 archive_expsym_cmds_CXX=
9485 export_dynamic_flag_spec_CXX=
9486 hardcode_direct_CXX=no
9487 hardcode_libdir_flag_spec_CXX=
9488 hardcode_libdir_flag_spec_ld_CXX=
9489 hardcode_libdir_separator_CXX=
9490 hardcode_minus_L_CXX=no
9491 hardcode_automatic_CXX=no
9493 module_expsym_cmds_CXX=
9494 link_all_deplibs_CXX=unknown
9495 old_archive_cmds_CXX=$old_archive_cmds
9496 no_undefined_flag_CXX=
9497 whole_archive_flag_spec_CXX=
9498 enable_shared_with_static_runtimes_CXX=no
9500 # Dependencies to place before and after the object being linked:
9502 postdep_objects_CXX=
9505 compiler_lib_search_path_CXX=
9507 # Source file extension for C++ test sources.
9510 # Object file extension for compiled C++ test sources.
9514 # Code to be used in simple compile tests
9515 lt_simple_compile_test_code="int some_variable = 0;\n"
9517 # Code to be used in simple link tests
9518 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9520 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9522 # If no C compiler was specified, use CC.
9525 # Allow CC to be a program name with arguments.
9529 # Allow CC to be a program name with arguments.
9534 lt_save_with_gnu_ld=$with_gnu_ld
9535 lt_save_path_LD=$lt_cv_path_LD
9536 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9537 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9539 unset lt_cv_prog_gnu_ld
9541 if test -n "${lt_cv_path_LDCXX+set}"; then
9542 lt_cv_path_LD=$lt_cv_path_LDCXX
9546 test -z "${LDCXX+set}" || LD=$LDCXX
9550 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9552 # We don't want -fno-exception wen compiling C++ code, so set the
9553 # no_builtin_flag separately
9554 if test "$GXX" = yes; then
9555 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9557 lt_prog_compiler_no_builtin_flag_CXX=
9560 if test "$GXX" = yes; then
9561 # Set up default GNU C++ configuration
9564 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9565 if test "${with_gnu_ld+set}" = set; then
9566 withval="$with_gnu_ld"
9567 test "$withval" = no || with_gnu_ld=yes
9572 if test "$GCC" = yes; then
9573 # Check if gcc -print-prog-name=ld gives a path.
9574 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9575 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9578 # gcc leaves a trailing carriage return which upsets mingw
9579 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9581 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9584 # Accept absolute paths.
9586 re_direlt='/[^/][^/]*/\.\./'
9587 # Canonicalize the path of ld
9588 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9589 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9590 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9592 test -z "$LD" && LD="$ac_prog"
9595 # If it fails, then pretend we aren't using GCC.
9599 # If it is relative, then search for the first ld in PATH.
9603 elif test "$with_gnu_ld" = yes; then
9604 echo "$as_me:$LINENO: checking for GNU ld" >&5
9605 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9607 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9608 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9610 if test "${lt_cv_path_LD+set}" = set; then
9611 echo $ECHO_N "(cached) $ECHO_C" >&6
9613 if test -z "$LD"; then
9614 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9615 for ac_dir in $PATH; do
9617 test -z "$ac_dir" && ac_dir=.
9618 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9619 lt_cv_path_LD="$ac_dir/$ac_prog"
9620 # Check to see if the program is GNU ld. I'd rather use --version,
9621 # but apparently some GNU ld's only accept -v.
9622 # Break only if it was the GNU/non-GNU ld that we prefer.
9623 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9624 *GNU* | *'with BFD'*)
9625 test "$with_gnu_ld" != no && break
9628 test "$with_gnu_ld" != yes && break
9635 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9640 if test -n "$LD"; then
9641 echo "$as_me:$LINENO: result: $LD" >&5
9642 echo "${ECHO_T}$LD" >&6
9644 echo "$as_me:$LINENO: result: no" >&5
9645 echo "${ECHO_T}no" >&6
9647 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9648 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9649 { (exit 1); exit 1; }; }
9650 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9651 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9652 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9653 echo $ECHO_N "(cached) $ECHO_C" >&6
9655 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9656 case `$LD -v 2>&1 </dev/null` in
9657 *GNU* | *'with BFD'*)
9658 lt_cv_prog_gnu_ld=yes
9661 lt_cv_prog_gnu_ld=no
9665 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9666 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9667 with_gnu_ld=$lt_cv_prog_gnu_ld
9671 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9672 # archiving commands below assume that GNU ld is being used.
9673 if test "$with_gnu_ld" = yes; then
9674 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9675 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'
9677 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9678 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9680 # If archive_cmds runs LD, not CC, wlarc should be empty
9681 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9682 # investigate it a little bit more. (MM)
9685 # ancient GNU ld didn't support --whole-archive et. al.
9686 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9687 grep 'no-whole-archive' > /dev/null; then
9688 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9690 whole_archive_flag_spec_CXX=
9696 # A generic and very simple default shared library creation
9697 # command for GNU C++ for the case where it uses the native
9698 # linker, instead of GNU ld. If possible, this setting should
9699 # overridden to take advantage of the native linker features on
9700 # the platform it is being used on.
9701 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9704 # Commands to make compiler produce verbose output that lists
9705 # what "hidden" libraries, object files and flags are used when
9706 # linking a shared library.
9707 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9715 # PORTME: fill in a description of your system's C++ link characteristics
9716 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9717 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9721 # FIXME: insert proper C++ library support
9725 if test "$host_cpu" = ia64; then
9726 # On IA64, the linker does run time linking by default, so we don't
9727 # have to do anything special.
9728 aix_use_runtimelinking=no
9729 exp_sym_flag='-Bexport'
9732 aix_use_runtimelinking=no
9734 # Test if we are trying to use run time linking or normal
9735 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9736 # need to do runtime linking.
9737 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9738 for ld_flag in $LDFLAGS; do
9741 aix_use_runtimelinking=yes
9748 exp_sym_flag='-bexport'
9749 no_entry_flag='-bnoentry'
9752 # When large executables or shared objects are built, AIX ld can
9753 # have problems creating the table of contents. If linking a library
9754 # or program results in "error TOC overflow" add -mminimal-toc to
9755 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9756 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9759 hardcode_direct_CXX=yes
9760 hardcode_libdir_separator_CXX=':'
9761 link_all_deplibs_CXX=yes
9763 if test "$GXX" = yes; then
9764 case $host_os in aix4.012|aix4.012.*)
9765 # We only want to do this on AIX 4.2 and lower, the check
9766 # below for broken collect2 doesn't work under 4.3+
9767 collect2name=`${CC} -print-prog-name=collect2`
9768 if test -f "$collect2name" && \
9769 strings "$collect2name" | grep resolve_lib_name >/dev/null
9771 # We have reworked collect2
9772 hardcode_direct_CXX=yes
9774 # We have old collect2
9775 hardcode_direct_CXX=unsupported
9776 # It fails to find uninstalled libraries when the uninstalled
9777 # path is not listed in the libpath. Setting hardcode_minus_L
9778 # to unsupported forces relinking
9779 hardcode_minus_L_CXX=yes
9780 hardcode_libdir_flag_spec_CXX='-L$libdir'
9781 hardcode_libdir_separator_CXX=
9784 shared_flag='-shared'
9787 if test "$host_cpu" = ia64; then
9788 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9789 # chokes on -Wl,-G. The following line is correct:
9792 if test "$aix_use_runtimelinking" = yes; then
9793 shared_flag='${wl}-G'
9795 shared_flag='${wl}-bM:SRE'
9800 # It seems that -bexpall does not export symbols beginning with
9801 # underscore (_), so it is better to generate a list of symbols to export.
9802 always_export_symbols_CXX=yes
9803 if test "$aix_use_runtimelinking" = yes; then
9804 # Warning - without using the other runtime loading flags (-brtl),
9805 # -berok will link without error, but may produce a broken library.
9806 allow_undefined_flag_CXX='-berok'
9807 # Determine the default libpath from the value encoded in an empty executable.
9808 cat >conftest.$ac_ext <<_ACEOF
9809 #line $LINENO "configure"
9812 cat confdefs.h >>conftest.$ac_ext
9813 cat >>conftest.$ac_ext <<_ACEOF
9814 /* end confdefs.h. */
9824 rm -f conftest.$ac_objext conftest$ac_exeext
9825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9826 (eval $ac_link) 2>&5
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); } &&
9830 { ac_try='test -s conftest$ac_exeext'
9831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); }; }; then
9837 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9839 # Check for a 64-bit object if we didn't find anything.
9840 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; }
9843 echo "$as_me: failed program was:" >&5
9844 sed 's/^/| /' conftest.$ac_ext >&5
9847 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9848 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9850 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9852 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9854 if test "$host_cpu" = ia64; then
9855 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9856 allow_undefined_flag_CXX="-z nodefs"
9857 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9859 # Determine the default libpath from the value encoded in an empty executable.
9860 cat >conftest.$ac_ext <<_ACEOF
9861 #line $LINENO "configure"
9864 cat confdefs.h >>conftest.$ac_ext
9865 cat >>conftest.$ac_ext <<_ACEOF
9866 /* end confdefs.h. */
9876 rm -f conftest.$ac_objext conftest$ac_exeext
9877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9878 (eval $ac_link) 2>&5
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); } &&
9882 { ac_try='test -s conftest$ac_exeext'
9883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); }; }; then
9889 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9891 # Check for a 64-bit object if we didn't find anything.
9892 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; }
9895 echo "$as_me: failed program was:" >&5
9896 sed 's/^/| /' conftest.$ac_ext >&5
9899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9900 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9902 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9903 # Warning - without using the other run time loading flags,
9904 # -berok will link without error, but may produce a broken library.
9905 no_undefined_flag_CXX=' ${wl}-bernotok'
9906 allow_undefined_flag_CXX=' ${wl}-berok'
9907 # -bexpall does not export symbols beginning with underscore (_)
9908 always_export_symbols_CXX=yes
9909 # Exported symbols can be pulled into shared objects from archives
9910 whole_archive_flag_spec_CXX=' '
9911 archive_cmds_need_lc_CXX=yes
9912 # This is similar to how AIX traditionally builds it's shared libraries.
9913 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9918 case $cc_basename in
9920 # FIXME: insert proper C++ library support
9926 cygwin* | mingw* | pw32*)
9927 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9928 # as there is no search path for DLLs.
9929 hardcode_libdir_flag_spec_CXX='-L$libdir'
9930 allow_undefined_flag_CXX=unsupported
9931 always_export_symbols_CXX=no
9932 enable_shared_with_static_runtimes_CXX=yes
9934 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9935 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9936 # If the export-symbols file already is a .def file (1st line
9937 # is EXPORTS), use it as is; otherwise, prepend...
9938 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9939 cp $export_symbols $output_objdir/$soname.def;
9941 echo EXPORTS > $output_objdir/$soname.def;
9942 cat $export_symbols >> $output_objdir/$soname.def;
9944 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9950 darwin* | rhapsody*)
9951 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9952 archive_cmds_need_lc_CXX=no
9954 rhapsody* | darwin1.[012])
9955 allow_undefined_flag_CXX='-undefined suppress'
9958 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9961 lt_int_apple_cc_single_mod=no
9962 output_verbose_link_cmd='echo'
9963 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9964 lt_int_apple_cc_single_mod=yes
9966 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9967 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9969 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
9971 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9973 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9974 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9975 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}'
9977 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
9979 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9980 hardcode_direct_CXX=no
9981 hardcode_automatic_CXX=yes
9982 hardcode_shlibpath_var_CXX=unsupported
9983 whole_archive_flag_spec_CXX='-all_load $convenience'
9984 link_all_deplibs_CXX=yes
9989 case $cc_basename in
9991 # FIXME: insert proper C++ library support
9995 # Green Hills C++ Compiler
9996 # FIXME: insert proper C++ library support
10000 # FIXME: insert proper C++ library support
10006 # C++ shared libraries reported to be fairly broken before switch to ELF
10010 archive_cmds_need_lc_CXX=no
10013 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10020 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10021 hardcode_libdir_separator_CXX=:
10022 export_dynamic_flag_spec_CXX='${wl}-E'
10023 hardcode_direct_CXX=yes
10024 hardcode_minus_L_CXX=yes # Not in the search PATH,
10025 # but as the default
10026 # location of the library.
10028 case $cc_basename in
10030 # FIXME: insert proper C++ library support
10034 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'
10035 # Commands to make compiler produce verbose output that lists
10036 # what "hidden" libraries, object files and flags are used when
10037 # linking a shared library.
10039 # There doesn't appear to be a way to prevent this compiler from
10040 # explicitly linking system object files so we need to strip them
10041 # from the output so that they don't get included in the library
10043 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10046 if test "$GXX" = yes; then
10047 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'
10049 # FIXME: insert proper C++ library support
10056 if test $with_gnu_ld = no; then
10057 case "$host_cpu" in
10059 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10060 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10061 hardcode_libdir_separator_CXX=:
10064 hardcode_libdir_flag_spec_CXX='-L$libdir'
10067 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10068 hardcode_libdir_separator_CXX=:
10069 export_dynamic_flag_spec_CXX='${wl}-E'
10073 case "$host_cpu" in
10075 hardcode_direct_CXX=no
10076 hardcode_shlibpath_var_CXX=no
10079 hardcode_direct_CXX=no
10080 hardcode_shlibpath_var_CXX=no
10081 hardcode_minus_L_CXX=yes # Not in the search PATH,
10082 # but as the default
10083 # location of the library.
10086 hardcode_direct_CXX=yes
10087 hardcode_minus_L_CXX=yes # Not in the search PATH,
10088 # but as the default
10089 # location of the library.
10093 case $cc_basename in
10095 # FIXME: insert proper C++ library support
10099 case "$host_cpu" in
10101 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10104 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10107 # Commands to make compiler produce verbose output that lists
10108 # what "hidden" libraries, object files and flags are used when
10109 # linking a shared library.
10111 # There doesn't appear to be a way to prevent this compiler from
10112 # explicitly linking system object files so we need to strip them
10113 # from the output so that they don't get included in the library
10115 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'
10118 if test "$GXX" = yes; then
10119 if test $with_gnu_ld = no; then
10120 case "$host_cpu" in
10122 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10125 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'
10130 # FIXME: insert proper C++ library support
10137 case $cc_basename in
10140 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 ${objdir}/so_locations -o $lib'
10142 # Archives containing C++ object files must be created using
10143 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10144 # necessary to make sure instantiated templates are included
10146 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10149 if test "$GXX" = yes; then
10150 if test "$with_gnu_ld" = no; then
10151 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}${objdir}/so_locations -o $lib'
10153 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'
10156 link_all_deplibs_CXX=yes
10159 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10160 hardcode_libdir_separator_CXX=:
10163 case $cc_basename in
10165 # Kuck and Associates, Inc. (KAI) C++ Compiler
10167 # KCC will only create a shared library if the output file
10168 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10169 # to its proper name (with version) after linking.
10170 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'
10171 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'
10172 # Commands to make compiler produce verbose output that lists
10173 # what "hidden" libraries, object files and flags are used when
10174 # linking a shared library.
10176 # There doesn't appear to be a way to prevent this compiler from
10177 # explicitly linking system object files so we need to strip them
10178 # from the output so that they don't get included in the library
10180 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'
10182 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10183 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10185 # Archives containing C++ object files must be created using
10186 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10187 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10192 archive_cmds_need_lc_CXX=no
10193 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10194 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'
10195 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10196 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10197 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10201 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10202 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'
10204 runpath_var=LD_RUN_PATH
10205 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10206 hardcode_libdir_separator_CXX=:
10208 # Commands to make compiler produce verbose output that lists
10209 # what "hidden" libraries, object files and flags are used when
10210 # linking a shared library.
10212 # There doesn't appear to be a way to prevent this compiler from
10213 # explicitly linking system object files so we need to strip them
10214 # from the output so that they don't get included in the library
10216 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'
10221 # FIXME: insert proper C++ library support
10225 # FIXME: insert proper C++ library support
10229 case $cc_basename in
10231 # FIXME: insert proper C++ library support
10235 # FIXME: insert proper C++ library support
10241 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10242 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10244 hardcode_libdir_flag_spec_CXX='-R$libdir'
10245 hardcode_direct_CXX=yes
10246 hardcode_shlibpath_var_CXX=no
10248 # Workaround some broken pre-1.5 toolchains
10249 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10252 case $cc_basename in
10254 # Kuck and Associates, Inc. (KAI) C++ Compiler
10256 # KCC will only create a shared library if the output file
10257 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10258 # to its proper name (with version) after linking.
10259 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'
10261 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10262 hardcode_libdir_separator_CXX=:
10264 # Archives containing C++ object files must be created using
10265 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10266 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10270 # Rational C++ 2.4.1
10271 # FIXME: insert proper C++ library support
10275 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10276 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 ${objdir}/so_locations -o $lib'
10278 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10279 hardcode_libdir_separator_CXX=:
10281 # Commands to make compiler produce verbose output that lists
10282 # what "hidden" libraries, object files and flags are used when
10283 # linking a shared library.
10285 # There doesn't appear to be a way to prevent this compiler from
10286 # explicitly linking system object files so we need to strip them
10287 # from the output so that they don't get included in the library
10289 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'
10292 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10293 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10294 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}${objdir}/so_locations -o $lib'
10296 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10297 hardcode_libdir_separator_CXX=:
10299 # Commands to make compiler produce verbose output that lists
10300 # what "hidden" libraries, object files and flags are used when
10301 # linking a shared library.
10302 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10305 # FIXME: insert proper C++ library support
10312 case $cc_basename in
10314 # Kuck and Associates, Inc. (KAI) C++ Compiler
10316 # KCC will only create a shared library if the output file
10317 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10318 # to its proper name (with version) after linking.
10319 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'
10321 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10322 hardcode_libdir_separator_CXX=:
10324 # Archives containing C++ object files must be created using
10325 # the KAI C++ compiler.
10326 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10329 # Rational C++ 2.4.1
10330 # FIXME: insert proper C++ library support
10334 allow_undefined_flag_CXX=' -expect_unresolved \*'
10335 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 ${objdir}/so_locations -o $lib'
10336 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10337 echo "-hidden">> $lib.exp~
10338 $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 $objdir/so_locations -o $lib~
10341 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10342 hardcode_libdir_separator_CXX=:
10344 # Commands to make compiler produce verbose output that lists
10345 # what "hidden" libraries, object files and flags are used when
10346 # linking a shared library.
10348 # There doesn't appear to be a way to prevent this compiler from
10349 # explicitly linking system object files so we need to strip them
10350 # from the output so that they don't get included in the library
10352 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'
10355 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10356 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10357 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}${objdir}/so_locations -o $lib'
10359 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10360 hardcode_libdir_separator_CXX=:
10362 # Commands to make compiler produce verbose output that lists
10363 # what "hidden" libraries, object files and flags are used when
10364 # linking a shared library.
10365 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10368 # FIXME: insert proper C++ library support
10375 # FIXME: insert proper C++ library support
10379 archive_cmds_need_lc_CXX=no
10380 case $cc_basename in
10382 # FIXME: insert proper C++ library support
10386 # FIXME: insert proper C++ library support
10392 case $cc_basename in
10395 # FIXME: insert proper C++ library support
10400 # FIXME: insert proper C++ library support
10404 # FIXME: insert proper C++ library support
10410 case $cc_basename in
10412 # Sun C++ 4.2, 5.x and Centerline C++
10413 no_undefined_flag_CXX=' -zdefs'
10414 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10415 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10416 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10418 hardcode_libdir_flag_spec_CXX='-R$libdir'
10419 hardcode_shlibpath_var_CXX=no
10421 solaris2.0-5 | solaris2.0-5.*) ;;
10423 # The C++ compiler is used as linker so we must use $wl
10424 # flag to pass the commands to the underlying system
10426 # Supported since Solaris 2.6 (maybe 2.5.1?)
10427 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10430 link_all_deplibs_CXX=yes
10432 # Commands to make compiler produce verbose output that lists
10433 # what "hidden" libraries, object files and flags are used when
10434 # linking a shared library.
10436 # There doesn't appear to be a way to prevent this compiler from
10437 # explicitly linking system object files so we need to strip them
10438 # from the output so that they don't get included in the library
10440 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10442 # Archives containing C++ object files must be created using
10443 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10444 # necessary to make sure instantiated templates are included
10446 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10449 # Green Hills C++ Compiler
10450 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10452 # The C++ compiler must be used to create the archive.
10453 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10456 # GNU C++ compiler with Solaris linker
10457 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10458 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10459 if $CC --version | grep -v '^2\.7' > /dev/null; then
10460 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10461 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10462 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10464 # Commands to make compiler produce verbose output that lists
10465 # what "hidden" libraries, object files and flags are used when
10466 # linking a shared library.
10467 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10469 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10471 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10472 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10473 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10475 # Commands to make compiler produce verbose output that lists
10476 # what "hidden" libraries, object files and flags are used when
10477 # linking a shared library.
10478 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10481 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10486 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10487 archive_cmds_need_lc_CXX=no
10490 case $cc_basename in
10492 # NonStop-UX NCC 3.20
10493 # FIXME: insert proper C++ library support
10497 # FIXME: insert proper C++ library support
10503 # FIXME: insert proper C++ library support
10507 # FIXME: insert proper C++ library support
10511 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10512 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10513 test "$ld_shlibs_CXX" = no && can_build_shared=no
10519 cat > conftest.$ac_ext <<EOF
10523 Foo (void) { a = 0; }
10529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10530 (eval $ac_compile) 2>&5
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); }; then
10534 # Parse the compiler output and extract the necessary
10535 # objects, libraries and library flags.
10537 # Sentinel used to keep track of whether or not we are before
10538 # the conftest object file.
10539 pre_test_object_deps_done=no
10541 # The `*' in the case matches for architectures that use `case' in
10542 # $output_verbose_cmd can trigger glob expansion during the loop
10543 # eval without this substitution.
10544 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10546 for p in `eval $output_verbose_link_cmd`; do
10550 # Some compilers place space between "-{L,R}" and the path.
10551 # Remove the space.
10552 if test $p = "-L" \
10553 || test $p = "-R"; then
10560 if test "$pre_test_object_deps_done" = no; then
10563 # Internal compiler library paths should come after those
10564 # provided the user. The postdeps already come after the
10565 # user supplied libs so there is no need to process them.
10566 if test -z "$compiler_lib_search_path_CXX"; then
10567 compiler_lib_search_path_CXX="${prev}${p}"
10569 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10572 # The "-l" case would never come before the object being
10573 # linked, so don't bother handling this case.
10576 if test -z "$postdeps_CXX"; then
10577 postdeps_CXX="${prev}${p}"
10579 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10585 # This assumes that the test object file only shows up
10586 # once in the compiler output.
10587 if test "$p" = "conftest.$objext"; then
10588 pre_test_object_deps_done=yes
10592 if test "$pre_test_object_deps_done" = no; then
10593 if test -z "$predep_objects_CXX"; then
10594 predep_objects_CXX="$p"
10596 predep_objects_CXX="$predep_objects_CXX $p"
10599 if test -z "$postdep_objects_CXX"; then
10600 postdep_objects_CXX="$p"
10602 postdep_objects_CXX="$postdep_objects_CXX $p"
10607 *) ;; # Ignore the rest.
10615 echo "libtool.m4: error: problem compiling CXX test program"
10618 $rm -f confest.$objext
10620 case " $postdeps_CXX " in
10621 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10624 lt_prog_compiler_wl_CXX=
10625 lt_prog_compiler_pic_CXX=
10626 lt_prog_compiler_static_CXX=
10628 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10629 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10631 # C++ specific cases for pic, static, wl, etc.
10632 if test "$GXX" = yes; then
10633 lt_prog_compiler_wl_CXX='-Wl,'
10634 lt_prog_compiler_static_CXX='-static'
10638 # All AIX code is PIC.
10639 if test "$host_cpu" = ia64; then
10640 # AIX 5 now supports IA64 processor
10641 lt_prog_compiler_static_CXX='-Bstatic'
10645 # FIXME: we need at least 68020 code to build shared libraries, but
10646 # adding the `-m68020' flag to GCC prevents building anything better,
10648 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10650 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10651 # PIC is the default for these OSes.
10653 mingw* | os2* | pw32*)
10654 # This hack is so that the source file can tell whether it is being
10655 # built for inclusion in a dll (and should export symbols for example).
10656 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10658 darwin* | rhapsody*)
10659 # PIC is the default on this platform
10660 # Common symbols not allowed in MH_DYLIB files
10661 lt_prog_compiler_pic_CXX='-fno-common'
10664 # DJGPP does not support shared libraries at all
10665 lt_prog_compiler_pic_CXX=
10668 if test -d /usr/nec; then
10669 lt_prog_compiler_pic_CXX=-Kconform_pic
10673 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10674 # not for PA HP-UX.
10675 case "$host_cpu" in
10679 lt_prog_compiler_pic_CXX='-fPIC'
10684 lt_prog_compiler_pic_CXX='-fPIC'
10690 # All AIX code is PIC.
10691 if test "$host_cpu" = ia64; then
10692 # AIX 5 now supports IA64 processor
10693 lt_prog_compiler_static_CXX='-Bstatic'
10695 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10699 case $cc_basename in
10701 # Green Hills C++ Compiler
10702 # _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"
10707 case $cc_basename in
10709 lt_prog_compiler_pic_CXX='-KPIC'
10712 # Green Hills C++ Compiler
10713 lt_prog_compiler_pic_CXX='-pic'
10720 # FreeBSD uses GNU C++
10722 hpux9* | hpux10* | hpux11*)
10723 case $cc_basename in
10725 lt_prog_compiler_wl_CXX='-Wl,'
10726 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10727 if test "$host_cpu" != ia64; then
10728 lt_prog_compiler_pic_CXX='+Z'
10732 lt_prog_compiler_wl_CXX='-Wl,'
10733 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10734 case "$host_cpu" in
10739 lt_prog_compiler_pic_CXX='+Z'
10747 irix5* | irix6* | nonstopux*)
10748 case $cc_basename in
10750 lt_prog_compiler_wl_CXX='-Wl,'
10751 lt_prog_compiler_static_CXX='-non_shared'
10752 # CC pic flag -KPIC is the default.
10759 case $cc_basename in
10762 lt_prog_compiler_wl_CXX='--backend -Wl,'
10763 lt_prog_compiler_pic_CXX='-fPIC'
10767 lt_prog_compiler_wl_CXX='-Wl,'
10768 lt_prog_compiler_pic_CXX='-KPIC'
10769 lt_prog_compiler_static_CXX='-static'
10773 # Make sure the PIC flag is empty. It appears that all Alpha
10774 # Linux and Compaq Tru64 Unix objects are PIC.
10775 lt_prog_compiler_pic_CXX=
10776 lt_prog_compiler_static_CXX='-non_shared'
10787 case $cc_basename in
10789 lt_prog_compiler_pic_CXX='-W c,exportall'
10797 osf3* | osf4* | osf5*)
10798 case $cc_basename in
10800 lt_prog_compiler_wl_CXX='--backend -Wl,'
10803 # Rational C++ 2.4.1
10804 lt_prog_compiler_pic_CXX='-pic'
10807 # Digital/Compaq C++
10808 lt_prog_compiler_wl_CXX='-Wl,'
10809 # Make sure the PIC flag is empty. It appears that all Alpha
10810 # Linux and Compaq Tru64 Unix objects are PIC.
10811 lt_prog_compiler_pic_CXX=
10812 lt_prog_compiler_static_CXX='-non_shared'
10821 case $cc_basename in
10823 lt_prog_compiler_pic_CXX='-fPIC'
10830 case $cc_basename in
10832 # Sun C++ 4.2, 5.x and Centerline C++
10833 lt_prog_compiler_pic_CXX='-KPIC'
10834 lt_prog_compiler_static_CXX='-Bstatic'
10835 lt_prog_compiler_wl_CXX='-Qoption ld '
10838 # Green Hills C++ Compiler
10839 lt_prog_compiler_pic_CXX='-PIC'
10846 case $cc_basename in
10849 lt_prog_compiler_pic_CXX='-pic'
10850 lt_prog_compiler_static_CXX='-Bstatic'
10854 lt_prog_compiler_pic_CXX='-pic'
10861 case $cc_basename in
10863 # NonStop-UX NCC 3.20
10864 lt_prog_compiler_pic_CXX='-KPIC'
10875 lt_prog_compiler_can_build_shared_CXX=no
10880 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10881 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10884 # Check to make sure the PIC flag actually works.
10886 if test -n "$lt_prog_compiler_pic_CXX"; then
10887 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10888 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10889 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10890 echo $ECHO_N "(cached) $ECHO_C" >&6
10892 lt_prog_compiler_pic_works_CXX=no
10893 ac_outfile=conftest.$ac_objext
10894 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10895 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10896 # Insert the option either (1) after the last *FLAGS variable, or
10897 # (2) before a word containing "conftest.", or (3) at the end.
10898 # Note that $ac_compile itself does not contain backslashes and begins
10899 # with a dollar sign (not a hyphen), so the echo should work correctly.
10900 # The option is referenced via a variable to avoid confusing sed.
10901 lt_compile=`echo "$ac_compile" | $SED \
10902 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10903 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10904 -e 's:$: $lt_compiler_flag:'`
10905 (eval echo "\"\$as_me:10905: $lt_compile\"" >&5)
10906 (eval "$lt_compile" 2>conftest.err)
10908 cat conftest.err >&5
10909 echo "$as_me:10909: \$? = $ac_status" >&5
10910 if (exit $ac_status) && test -s "$ac_outfile"; then
10911 # The compiler can only warn and ignore the option if not recognized
10912 # So say no if there are warnings
10913 if test ! -s conftest.err; then
10914 lt_prog_compiler_pic_works_CXX=yes
10920 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10921 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10923 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10924 case $lt_prog_compiler_pic_CXX in
10926 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10929 lt_prog_compiler_pic_CXX=
10930 lt_prog_compiler_can_build_shared_CXX=no
10935 # For platforms which do not support PIC, -DPIC is meaningless:
10937 lt_prog_compiler_pic_CXX=
10940 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10944 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10945 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10946 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10947 echo $ECHO_N "(cached) $ECHO_C" >&6
10949 lt_cv_prog_compiler_c_o_CXX=no
10950 $rm -r conftest 2>/dev/null
10954 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10956 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10957 # that will create temporary files in the current directory regardless of
10958 # the output directory. Thus, making CWD read-only will cause this test
10959 # to fail, enabling locking or at least warning the user not to do parallel
10963 lt_compiler_flag="-o out/conftest2.$ac_objext"
10964 # Insert the option either (1) after the last *FLAGS variable, or
10965 # (2) before a word containing "conftest.", or (3) at the end.
10966 # Note that $ac_compile itself does not contain backslashes and begins
10967 # with a dollar sign (not a hyphen), so the echo should work correctly.
10968 lt_compile=`echo "$ac_compile" | $SED \
10969 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10970 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10971 -e 's:$: $lt_compiler_flag:'`
10972 (eval echo "\"\$as_me:10972: $lt_compile\"" >&5)
10973 (eval "$lt_compile" 2>out/conftest.err)
10975 cat out/conftest.err >&5
10976 echo "$as_me:10976: \$? = $ac_status" >&5
10977 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10979 # The compiler can only warn and ignore the option if not recognized
10980 # So say no if there are warnings
10981 if test ! -s out/conftest.err; then
10982 lt_cv_prog_compiler_c_o_CXX=yes
10986 $rm conftest* out/*
10993 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10994 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10997 hard_links="nottested"
10998 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10999 # do not overwrite the value of need_locks provided by the user
11000 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11001 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11004 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11006 ln conftest.a conftest.b 2>&5 || hard_links=no
11007 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11008 echo "$as_me:$LINENO: result: $hard_links" >&5
11009 echo "${ECHO_T}$hard_links" >&6
11010 if test "$hard_links" = no; then
11011 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11012 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11019 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11020 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11022 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11025 # If we're using GNU nm, then we don't want the "-C" option.
11026 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11027 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11028 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'
11030 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'
11034 export_symbols_cmds_CXX="$ltdll_cmds"
11037 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11040 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11044 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11045 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11046 test "$ld_shlibs_CXX" = no && can_build_shared=no
11048 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11049 if test "$GCC" = yes; then
11050 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11054 # Do we need to explicitly link libc?
11056 case "x$archive_cmds_need_lc_CXX" in
11058 # Assume -lc should be added
11059 archive_cmds_need_lc_CXX=yes
11061 if test "$enable_shared" = yes && test "$GCC" = yes; then
11062 case $archive_cmds_CXX in
11064 # FIXME: we may have to deal with multi-command sequences.
11067 # Test whether the compiler implicitly links with -lc since on some
11068 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11069 # to ld, don't add -lc before -lgcc.
11070 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11071 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11073 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11076 (eval $ac_compile) 2>&5
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); } 2>conftest.err; then
11082 libobjs=conftest.$ac_objext
11084 wl=$lt_prog_compiler_wl_CXX
11090 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11091 allow_undefined_flag_CXX=
11092 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11093 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); }
11098 archive_cmds_need_lc_CXX=no
11100 archive_cmds_need_lc_CXX=yes
11102 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11104 cat conftest.err 1>&5
11107 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11108 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11115 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11116 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11117 hardcode_action_CXX=
11118 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11119 test -n "$runpath_var CXX" || \
11120 test "X$hardcode_automatic_CXX"="Xyes" ; then
11122 # We can hardcode non-existant directories.
11123 if test "$hardcode_direct_CXX" != no &&
11124 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11125 # have to relink, otherwise we might link with an installed library
11126 # when we should be linking with a yet-to-be-installed one
11127 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11128 test "$hardcode_minus_L_CXX" != no; then
11129 # Linking always hardcodes the temporary library directory.
11130 hardcode_action_CXX=relink
11132 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11133 hardcode_action_CXX=immediate
11136 # We cannot hardcode anything, or else we can only hardcode existing
11138 hardcode_action_CXX=unsupported
11140 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11141 echo "${ECHO_T}$hardcode_action_CXX" >&6
11143 if test "$hardcode_action_CXX" = relink; then
11144 # Fast installation is not supported
11145 enable_fast_install=no
11146 elif test "$shlibpath_overrides_runpath" = yes ||
11147 test "$enable_shared" = no; then
11148 # Fast installation is not necessary
11149 enable_fast_install=needless
11154 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11155 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11156 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11157 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11158 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11159 echo "$as_me:$LINENO: result: yes" >&5
11160 echo "${ECHO_T}yes" >&6
11162 # FIXME - insert some real tests, host_os isn't really good enough
11165 if test -n "$STRIP" ; then
11166 striplib="$STRIP -x"
11167 echo "$as_me:$LINENO: result: yes" >&5
11168 echo "${ECHO_T}yes" >&6
11170 echo "$as_me:$LINENO: result: no" >&5
11171 echo "${ECHO_T}no" >&6
11175 echo "$as_me:$LINENO: result: no" >&5
11176 echo "${ECHO_T}no" >&6
11181 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11182 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11183 library_names_spec=
11184 libname_spec='lib$name'
11188 postuninstall_cmds=
11192 shlibpath_overrides_runpath=unknown
11194 dynamic_linker="$host_os ld.so"
11195 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11196 if test "$GCC" = yes; then
11197 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11198 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11199 # if the path contains ";" then we assume it to be the separator
11200 # otherwise default to the standard path separator (i.e. ":") - it is
11201 # assumed that no part of a normal pathname contains ";" but that should
11202 # okay in the real world where ";" in dirpaths is itself problematic.
11203 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11205 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11208 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11210 need_lib_prefix=unknown
11211 hardcode_into_libs=no
11213 # when you set need_version to no, make sure it does not cause -set_version
11214 # flags to be left without arguments
11215 need_version=unknown
11220 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11221 shlibpath_var=LIBPATH
11223 # AIX 3 has no versioning support, so we append a major version to the name.
11224 soname_spec='${libname}${release}${shared_ext}$major'
11231 hardcode_into_libs=yes
11232 if test "$host_cpu" = ia64; then
11233 # AIX 5 supports IA64
11234 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11235 shlibpath_var=LD_LIBRARY_PATH
11237 # With GCC up to 2.95.x, collect2 would create an import file
11238 # for dependence libraries. The import file would start with
11239 # the line `#! .'. This would cause the generated library to
11240 # depend on `.', always an invalid library. This was fixed in
11241 # development snapshots of GCC prior to 3.0.
11243 aix4 | aix4.[01] | aix4.[01].*)
11244 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11246 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11249 can_build_shared=no
11253 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11254 # soname into executable. Probably we can add versioning support to
11255 # collect2, so additional links can be useful in future.
11256 if test "$aix_use_runtimelinking" = yes; then
11257 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11258 # instead of lib<name>.a to let people know that these are not
11259 # typical AIX shared libraries.
11260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11262 # We preserve .a as extension for shared libraries through AIX4.2
11263 # and later when we are not doing run time linking.
11264 library_names_spec='${libname}${release}.a $libname.a'
11265 soname_spec='${libname}${release}${shared_ext}$major'
11267 shlibpath_var=LIBPATH
11272 library_names_spec='$libname.ixlibrary $libname.a'
11273 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11274 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'
11278 library_names_spec='${libname}${shared_ext}'
11279 dynamic_linker="$host_os ld.so"
11280 shlibpath_var=LIBRARY_PATH
11286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11287 soname_spec='${libname}${release}${shared_ext}$major'
11288 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11289 shlibpath_var=LD_LIBRARY_PATH
11290 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11291 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11292 # the default ld.so.conf also contains /usr/contrib/lib and
11293 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11294 # libtool to hard-code these into programs
11297 cygwin* | mingw* | pw32*)
11298 version_type=windows
11303 case $GCC,$host_os in
11304 yes,cygwin* | yes,mingw* | yes,pw32*)
11305 library_names_spec='$libname.dll.a'
11306 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11307 postinstall_cmds='base_file=`basename \${file}`~
11308 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11309 dldir=$destdir/`dirname \$dlpath`~
11310 test -d \$dldir || mkdir -p \$dldir~
11311 $install_prog $dir/$dlname \$dldir/$dlname'
11312 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11313 dlpath=$dir/\$dldll~
11315 shlibpath_overrides_runpath=yes
11319 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11320 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11321 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11324 # MinGW DLLs use traditional 'lib' prefix
11325 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11326 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11327 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11328 # It is most probably a Windows format PATH printed by
11329 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11330 # path with ; separators, and with drive letters. We can handle the
11331 # drive letters (cygwin fileutils understands them), so leave them,
11332 # especially as we might pass files found there to a mingw objdump,
11333 # which wouldn't understand a cygwinified path. Ahh.
11334 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11336 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11340 # pw32 DLLs use 'pw' prefix rather than 'lib'
11341 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11347 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11350 dynamic_linker='Win32 ld.exe'
11351 # FIXME: first we should search . and the directory the executable is in
11355 darwin* | rhapsody*)
11356 dynamic_linker="$host_os dyld"
11357 version_type=darwin
11360 # FIXME: Relying on posixy $() will cause problems for
11361 # cross-compilation, but unfortunately the echo tests do not
11362 # yet detect zsh echo's removal of \ escapes.
11363 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11364 soname_spec='${libname}${release}${major}$shared_ext'
11365 shlibpath_overrides_runpath=yes
11366 shlibpath_var=DYLD_LIBRARY_PATH
11367 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11368 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11369 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11370 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"`
11372 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11380 soname_spec='${libname}${release}${shared_ext}$major'
11381 shlibpath_var=LD_LIBRARY_PATH
11389 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11390 version_type=freebsd-$objformat
11391 case $version_type in
11393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11398 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11402 shlibpath_var=LD_LIBRARY_PATH
11405 shlibpath_overrides_runpath=yes
11407 freebsd3.01* | freebsdelf3.01*)
11408 shlibpath_overrides_runpath=yes
11409 hardcode_into_libs=yes
11412 shlibpath_overrides_runpath=no
11413 hardcode_into_libs=yes
11422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11423 soname_spec='${libname}${release}${shared_ext}$major'
11424 shlibpath_var=LD_LIBRARY_PATH
11425 hardcode_into_libs=yes
11428 hpux9* | hpux10* | hpux11*)
11429 # Give a soname corresponding to the major version so that dld.sl refuses to
11430 # link against other versions.
11434 case "$host_cpu" in
11437 hardcode_into_libs=yes
11438 dynamic_linker="$host_os dld.so"
11439 shlibpath_var=LD_LIBRARY_PATH
11440 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11442 soname_spec='${libname}${release}${shared_ext}$major'
11443 if test "X$HPUX_IA64_MODE" = X32; then
11444 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11446 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11448 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11452 hardcode_into_libs=yes
11453 dynamic_linker="$host_os dld.sl"
11454 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11455 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11457 soname_spec='${libname}${release}${shared_ext}$major'
11458 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11459 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11463 dynamic_linker="$host_os dld.sl"
11464 shlibpath_var=SHLIB_PATH
11465 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11467 soname_spec='${libname}${release}${shared_ext}$major'
11470 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11471 postinstall_cmds='chmod 555 $lib'
11474 irix5* | irix6* | nonstopux*)
11476 nonstopux*) version_type=nonstopux ;;
11478 if test "$lt_cv_prog_gnu_ld" = yes; then
11486 soname_spec='${libname}${release}${shared_ext}$major'
11487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11489 irix5* | nonstopux*)
11490 libsuff= shlibsuff=
11493 case $LD in # libtool.m4 will add one of these switches to LD
11494 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11495 libsuff= shlibsuff= libmagic=32-bit;;
11496 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11497 libsuff=32 shlibsuff=N32 libmagic=N32;;
11498 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11499 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11500 *) libsuff= shlibsuff= libmagic=never-match;;
11504 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11505 shlibpath_overrides_runpath=no
11506 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11507 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11508 hardcode_into_libs=yes
11511 # No shared lib support for Linux oldld, aout, or coff.
11512 linux*oldld* | linux*aout* | linux*coff*)
11516 # This must be Linux ELF.
11521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11522 soname_spec='${libname}${release}${shared_ext}$major'
11523 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11524 shlibpath_var=LD_LIBRARY_PATH
11525 shlibpath_overrides_runpath=no
11526 # This implies no fast_install, which is unacceptable.
11527 # Some rework will be needed to allow for fast_install
11528 # before this can be enabled.
11529 hardcode_into_libs=yes
11531 # We used to test for /lib/ld.so.1 and disable shared libraries on
11532 # powerpc, because MkLinux only supported shared libraries with the
11533 # GNU dynamic linker. Since this was broken with cross compilers,
11534 # most powerpc-linux boxes support dynamic linking these days and
11535 # people can always --disable-shared, the test was removed, and we
11536 # assume the GNU/Linux dynamic linker is in use.
11537 dynamic_linker='GNU/Linux ld.so'
11539 # Find out which ABI we are using (multilib Linux x86_64 hack).
11541 case "$host_cpu" in
11543 echo '#line 11543 "configure"' > conftest.$ac_ext
11544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11545 (eval $ac_compile) 2>&5
11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); }; then
11549 case `/usr/bin/file conftest.$ac_objext` in
11560 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
11561 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
11568 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11570 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11571 dynamic_linker='NetBSD (a.out) ld.so'
11573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11574 soname_spec='${libname}${release}${shared_ext}$major'
11575 dynamic_linker='NetBSD ld.elf_so'
11577 shlibpath_var=LD_LIBRARY_PATH
11578 shlibpath_overrides_runpath=yes
11579 hardcode_into_libs=yes
11584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11585 shlibpath_var=LD_LIBRARY_PATH
11586 shlibpath_overrides_runpath=yes
11593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11594 soname_spec='${libname}${release}${shared_ext}$major'
11595 shlibpath_var=LD_LIBRARY_PATH
11596 shlibpath_overrides_runpath=yes
11603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11604 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11605 shlibpath_var=LD_LIBRARY_PATH
11606 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11608 openbsd2.[89] | openbsd2.[89].*)
11609 shlibpath_overrides_runpath=no
11612 shlibpath_overrides_runpath=yes
11616 shlibpath_overrides_runpath=yes
11621 libname_spec='$name'
11624 library_names_spec='$libname${shared_ext} $libname.a'
11625 dynamic_linker='OS/2 ld.exe'
11626 shlibpath_var=LIBPATH
11629 osf3* | osf4* | osf5*)
11633 soname_spec='${libname}${release}${shared_ext}$major'
11634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11635 shlibpath_var=LD_LIBRARY_PATH
11636 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11637 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11642 soname_spec='${libname}${release}${shared_ext}$major'
11643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11644 shlibpath_var=LD_LIBRARY_PATH
11651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11652 soname_spec='${libname}${release}${shared_ext}$major'
11653 shlibpath_var=LD_LIBRARY_PATH
11654 shlibpath_overrides_runpath=yes
11655 hardcode_into_libs=yes
11656 # ldd complains unless libraries are executable
11657 postinstall_cmds='chmod +x $lib'
11662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11663 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11664 shlibpath_var=LD_LIBRARY_PATH
11665 shlibpath_overrides_runpath=yes
11666 if test "$with_gnu_ld" = yes; then
11672 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11675 soname_spec='${libname}${release}${shared_ext}$major'
11676 shlibpath_var=LD_LIBRARY_PATH
11677 case $host_vendor in
11679 shlibpath_overrides_runpath=no
11681 export_dynamic_flag_spec='${wl}-Blargedynsym'
11682 runpath_var=LD_RUN_PATH
11690 shlibpath_overrides_runpath=no
11691 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11697 if test -d /usr/nec ;then
11699 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11700 soname_spec='$libname${shared_ext}.$major'
11701 shlibpath_var=LD_LIBRARY_PATH
11707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11708 soname_spec='${libname}${release}${shared_ext}$major'
11709 shlibpath_var=LD_LIBRARY_PATH
11716 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11717 echo "${ECHO_T}$dynamic_linker" >&6
11718 test "$dynamic_linker" = no && can_build_shared=no
11720 if test "x$enable_dlopen" != xyes; then
11721 enable_dlopen=unknown
11722 enable_dlopen_self=unknown
11723 enable_dlopen_self_static=unknown
11730 lt_cv_dlopen="load_add_on"
11732 lt_cv_dlopen_self=yes
11736 lt_cv_dlopen="LoadLibrary"
11741 lt_cv_dlopen="dlopen"
11746 # if libdl is installed we need to link against it
11747 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11748 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11749 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11750 echo $ECHO_N "(cached) $ECHO_C" >&6
11752 ac_check_lib_save_LIBS=$LIBS
11754 cat >conftest.$ac_ext <<_ACEOF
11755 #line $LINENO "configure"
11758 cat confdefs.h >>conftest.$ac_ext
11759 cat >>conftest.$ac_ext <<_ACEOF
11760 /* end confdefs.h. */
11762 /* Override any gcc2 internal prototype to avoid an error. */
11766 /* We use char because int might match the return type of a gcc2
11767 builtin and then its argument prototype would still apply. */
11777 rm -f conftest.$ac_objext conftest$ac_exeext
11778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11779 (eval $ac_link) 2>&5
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); } &&
11783 { ac_try='test -s conftest$ac_exeext'
11784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11785 (eval $ac_try) 2>&5
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); }; }; then
11789 ac_cv_lib_dl_dlopen=yes
11791 echo "$as_me: failed program was:" >&5
11792 sed 's/^/| /' conftest.$ac_ext >&5
11794 ac_cv_lib_dl_dlopen=no
11796 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11797 LIBS=$ac_check_lib_save_LIBS
11799 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11800 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11801 if test $ac_cv_lib_dl_dlopen = yes; then
11802 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11805 lt_cv_dlopen="dyld"
11807 lt_cv_dlopen_self=yes
11814 echo "$as_me:$LINENO: checking for shl_load" >&5
11815 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11816 if test "${ac_cv_func_shl_load+set}" = set; then
11817 echo $ECHO_N "(cached) $ECHO_C" >&6
11819 cat >conftest.$ac_ext <<_ACEOF
11820 #line $LINENO "configure"
11823 cat confdefs.h >>conftest.$ac_ext
11824 cat >>conftest.$ac_ext <<_ACEOF
11825 /* end confdefs.h. */
11826 /* System header to define __stub macros and hopefully few prototypes,
11827 which can conflict with char shl_load (); below.
11828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11829 <limits.h> exists even on freestanding compilers. */
11831 # include <limits.h>
11833 # include <assert.h>
11835 /* Override any gcc2 internal prototype to avoid an error. */
11840 /* We use char because int might match the return type of a gcc2
11841 builtin and then its argument prototype would still apply. */
11843 /* The GNU C library defines this for functions which it implements
11844 to always fail with ENOSYS. Some functions are actually named
11845 something starting with __ and the normal name is an alias. */
11846 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11849 char (*f) () = shl_load;
11858 return f != shl_load;
11863 rm -f conftest.$ac_objext conftest$ac_exeext
11864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11865 (eval $ac_link) 2>&5
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); } &&
11869 { ac_try='test -s conftest$ac_exeext'
11870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11871 (eval $ac_try) 2>&5
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); }; }; then
11875 ac_cv_func_shl_load=yes
11877 echo "$as_me: failed program was:" >&5
11878 sed 's/^/| /' conftest.$ac_ext >&5
11880 ac_cv_func_shl_load=no
11882 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11884 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11885 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11886 if test $ac_cv_func_shl_load = yes; then
11887 lt_cv_dlopen="shl_load"
11889 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11890 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11891 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11892 echo $ECHO_N "(cached) $ECHO_C" >&6
11894 ac_check_lib_save_LIBS=$LIBS
11896 cat >conftest.$ac_ext <<_ACEOF
11897 #line $LINENO "configure"
11900 cat confdefs.h >>conftest.$ac_ext
11901 cat >>conftest.$ac_ext <<_ACEOF
11902 /* end confdefs.h. */
11904 /* Override any gcc2 internal prototype to avoid an error. */
11908 /* We use char because int might match the return type of a gcc2
11909 builtin and then its argument prototype would still apply. */
11919 rm -f conftest.$ac_objext conftest$ac_exeext
11920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11921 (eval $ac_link) 2>&5
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); } &&
11925 { ac_try='test -s conftest$ac_exeext'
11926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11927 (eval $ac_try) 2>&5
11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); }; }; then
11931 ac_cv_lib_dld_shl_load=yes
11933 echo "$as_me: failed program was:" >&5
11934 sed 's/^/| /' conftest.$ac_ext >&5
11936 ac_cv_lib_dld_shl_load=no
11938 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11939 LIBS=$ac_check_lib_save_LIBS
11941 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11942 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11943 if test $ac_cv_lib_dld_shl_load = yes; then
11944 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11946 echo "$as_me:$LINENO: checking for dlopen" >&5
11947 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11948 if test "${ac_cv_func_dlopen+set}" = set; then
11949 echo $ECHO_N "(cached) $ECHO_C" >&6
11951 cat >conftest.$ac_ext <<_ACEOF
11952 #line $LINENO "configure"
11955 cat confdefs.h >>conftest.$ac_ext
11956 cat >>conftest.$ac_ext <<_ACEOF
11957 /* end confdefs.h. */
11958 /* System header to define __stub macros and hopefully few prototypes,
11959 which can conflict with char dlopen (); below.
11960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11961 <limits.h> exists even on freestanding compilers. */
11963 # include <limits.h>
11965 # include <assert.h>
11967 /* Override any gcc2 internal prototype to avoid an error. */
11972 /* We use char because int might match the return type of a gcc2
11973 builtin and then its argument prototype would still apply. */
11975 /* The GNU C library defines this for functions which it implements
11976 to always fail with ENOSYS. Some functions are actually named
11977 something starting with __ and the normal name is an alias. */
11978 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11981 char (*f) () = dlopen;
11990 return f != dlopen;
11995 rm -f conftest.$ac_objext conftest$ac_exeext
11996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11997 (eval $ac_link) 2>&5
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); } &&
12001 { ac_try='test -s conftest$ac_exeext'
12002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12003 (eval $ac_try) 2>&5
12005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006 (exit $ac_status); }; }; then
12007 ac_cv_func_dlopen=yes
12009 echo "$as_me: failed program was:" >&5
12010 sed 's/^/| /' conftest.$ac_ext >&5
12012 ac_cv_func_dlopen=no
12014 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12016 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12017 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12018 if test $ac_cv_func_dlopen = yes; then
12019 lt_cv_dlopen="dlopen"
12021 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12022 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12023 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12024 echo $ECHO_N "(cached) $ECHO_C" >&6
12026 ac_check_lib_save_LIBS=$LIBS
12028 cat >conftest.$ac_ext <<_ACEOF
12029 #line $LINENO "configure"
12032 cat confdefs.h >>conftest.$ac_ext
12033 cat >>conftest.$ac_ext <<_ACEOF
12034 /* end confdefs.h. */
12036 /* Override any gcc2 internal prototype to avoid an error. */
12040 /* We use char because int might match the return type of a gcc2
12041 builtin and then its argument prototype would still apply. */
12051 rm -f conftest.$ac_objext conftest$ac_exeext
12052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12053 (eval $ac_link) 2>&5
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); } &&
12057 { ac_try='test -s conftest$ac_exeext'
12058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12059 (eval $ac_try) 2>&5
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); }; }; then
12063 ac_cv_lib_dl_dlopen=yes
12065 echo "$as_me: failed program was:" >&5
12066 sed 's/^/| /' conftest.$ac_ext >&5
12068 ac_cv_lib_dl_dlopen=no
12070 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12071 LIBS=$ac_check_lib_save_LIBS
12073 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12074 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12075 if test $ac_cv_lib_dl_dlopen = yes; then
12076 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12078 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12079 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12080 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12081 echo $ECHO_N "(cached) $ECHO_C" >&6
12083 ac_check_lib_save_LIBS=$LIBS
12084 LIBS="-lsvld $LIBS"
12085 cat >conftest.$ac_ext <<_ACEOF
12086 #line $LINENO "configure"
12089 cat confdefs.h >>conftest.$ac_ext
12090 cat >>conftest.$ac_ext <<_ACEOF
12091 /* end confdefs.h. */
12093 /* Override any gcc2 internal prototype to avoid an error. */
12097 /* We use char because int might match the return type of a gcc2
12098 builtin and then its argument prototype would still apply. */
12108 rm -f conftest.$ac_objext conftest$ac_exeext
12109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12110 (eval $ac_link) 2>&5
12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); } &&
12114 { ac_try='test -s conftest$ac_exeext'
12115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12116 (eval $ac_try) 2>&5
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 (exit $ac_status); }; }; then
12120 ac_cv_lib_svld_dlopen=yes
12122 echo "$as_me: failed program was:" >&5
12123 sed 's/^/| /' conftest.$ac_ext >&5
12125 ac_cv_lib_svld_dlopen=no
12127 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12128 LIBS=$ac_check_lib_save_LIBS
12130 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12131 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12132 if test $ac_cv_lib_svld_dlopen = yes; then
12133 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12135 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12136 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12137 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12138 echo $ECHO_N "(cached) $ECHO_C" >&6
12140 ac_check_lib_save_LIBS=$LIBS
12142 cat >conftest.$ac_ext <<_ACEOF
12143 #line $LINENO "configure"
12146 cat confdefs.h >>conftest.$ac_ext
12147 cat >>conftest.$ac_ext <<_ACEOF
12148 /* end confdefs.h. */
12150 /* Override any gcc2 internal prototype to avoid an error. */
12154 /* We use char because int might match the return type of a gcc2
12155 builtin and then its argument prototype would still apply. */
12165 rm -f conftest.$ac_objext conftest$ac_exeext
12166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12167 (eval $ac_link) 2>&5
12169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); } &&
12171 { ac_try='test -s conftest$ac_exeext'
12172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12173 (eval $ac_try) 2>&5
12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); }; }; then
12177 ac_cv_lib_dld_dld_link=yes
12179 echo "$as_me: failed program was:" >&5
12180 sed 's/^/| /' conftest.$ac_ext >&5
12182 ac_cv_lib_dld_dld_link=no
12184 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12185 LIBS=$ac_check_lib_save_LIBS
12187 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12188 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12189 if test $ac_cv_lib_dld_dld_link = yes; then
12190 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12211 if test "x$lt_cv_dlopen" != xno; then
12217 case $lt_cv_dlopen in
12219 save_CPPFLAGS="$CPPFLAGS"
12220 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12222 save_LDFLAGS="$LDFLAGS"
12223 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12226 LIBS="$lt_cv_dlopen_libs $LIBS"
12228 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12229 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12230 if test "${lt_cv_dlopen_self+set}" = set; then
12231 echo $ECHO_N "(cached) $ECHO_C" >&6
12233 if test "$cross_compiling" = yes; then :
12234 lt_cv_dlopen_self=cross
12236 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12237 lt_status=$lt_dlunknown
12238 cat > conftest.$ac_ext <<EOF
12239 #line 12239 "configure"
12240 #include "confdefs.h"
12249 # define LT_DLGLOBAL RTLD_GLOBAL
12252 # define LT_DLGLOBAL DL_GLOBAL
12254 # define LT_DLGLOBAL 0
12258 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12259 find out it does not work in some platform. */
12260 #ifndef LT_DLLAZY_OR_NOW
12262 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12265 # define LT_DLLAZY_OR_NOW DL_LAZY
12268 # define LT_DLLAZY_OR_NOW RTLD_NOW
12271 # define LT_DLLAZY_OR_NOW DL_NOW
12273 # define LT_DLLAZY_OR_NOW 0
12281 extern "C" void exit (int);
12284 void fnord() { int i=42;}
12287 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12288 int status = $lt_dlunknown;
12292 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12293 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12294 /* dlclose (self); */
12300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12301 (eval $ac_link) 2>&5
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12305 (./conftest; exit; ) 2>/dev/null
12307 case x$lt_status in
12308 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12309 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12310 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12313 # compilation failed
12314 lt_cv_dlopen_self=no
12321 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12322 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12324 if test "x$lt_cv_dlopen_self" = xyes; then
12325 LDFLAGS="$LDFLAGS $link_static_flag"
12326 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12327 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12328 if test "${lt_cv_dlopen_self_static+set}" = set; then
12329 echo $ECHO_N "(cached) $ECHO_C" >&6
12331 if test "$cross_compiling" = yes; then :
12332 lt_cv_dlopen_self_static=cross
12334 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12335 lt_status=$lt_dlunknown
12336 cat > conftest.$ac_ext <<EOF
12337 #line 12337 "configure"
12338 #include "confdefs.h"
12347 # define LT_DLGLOBAL RTLD_GLOBAL
12350 # define LT_DLGLOBAL DL_GLOBAL
12352 # define LT_DLGLOBAL 0
12356 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12357 find out it does not work in some platform. */
12358 #ifndef LT_DLLAZY_OR_NOW
12360 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12363 # define LT_DLLAZY_OR_NOW DL_LAZY
12366 # define LT_DLLAZY_OR_NOW RTLD_NOW
12369 # define LT_DLLAZY_OR_NOW DL_NOW
12371 # define LT_DLLAZY_OR_NOW 0
12379 extern "C" void exit (int);
12382 void fnord() { int i=42;}
12385 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12386 int status = $lt_dlunknown;
12390 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12391 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12392 /* dlclose (self); */
12398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12399 (eval $ac_link) 2>&5
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12403 (./conftest; exit; ) 2>/dev/null
12405 case x$lt_status in
12406 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12407 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12408 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12411 # compilation failed
12412 lt_cv_dlopen_self_static=no
12419 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12420 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12423 CPPFLAGS="$save_CPPFLAGS"
12424 LDFLAGS="$save_LDFLAGS"
12429 case $lt_cv_dlopen_self in
12430 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12431 *) enable_dlopen_self=unknown ;;
12434 case $lt_cv_dlopen_self_static in
12435 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12436 *) enable_dlopen_self_static=unknown ;;
12441 # The else clause should only fire when bootstrapping the
12442 # libtool distribution, otherwise you forgot to ship ltmain.sh
12443 # with your package, and you will get complaints that there are
12444 # no rules to generate ltmain.sh.
12445 if test -f "$ltmain"; then
12446 # See if we are running on zsh, and set the options which allow our commands through
12447 # without removal of \ escapes.
12448 if test -n "${ZSH_VERSION+set}" ; then
12449 setopt NO_GLOB_SUBST
12451 # Now quote all the things that may contain metacharacters while being
12452 # careful not to overquote the AC_SUBSTed values. We take copies of the
12453 # variables and quote the copies for generation of the libtool script.
12454 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12455 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12456 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12457 deplibs_check_method reload_flag reload_cmds need_locks \
12458 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12459 lt_cv_sys_global_symbol_to_c_name_address \
12460 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12461 old_postinstall_cmds old_postuninstall_cmds \
12465 lt_prog_compiler_wl_CXX \
12466 lt_prog_compiler_pic_CXX \
12467 lt_prog_compiler_static_CXX \
12468 lt_prog_compiler_no_builtin_flag_CXX \
12469 export_dynamic_flag_spec_CXX \
12470 thread_safe_flag_spec_CXX \
12471 whole_archive_flag_spec_CXX \
12472 enable_shared_with_static_runtimes_CXX \
12473 old_archive_cmds_CXX \
12474 old_archive_from_new_cmds_CXX \
12475 predep_objects_CXX \
12476 postdep_objects_CXX \
12479 compiler_lib_search_path_CXX \
12481 archive_expsym_cmds_CXX \
12482 postinstall_cmds_CXX \
12483 postuninstall_cmds_CXX \
12484 old_archive_from_expsyms_cmds_CXX \
12485 allow_undefined_flag_CXX \
12486 no_undefined_flag_CXX \
12487 export_symbols_cmds_CXX \
12488 hardcode_libdir_flag_spec_CXX \
12489 hardcode_libdir_flag_spec_ld_CXX \
12490 hardcode_libdir_separator_CXX \
12491 hardcode_automatic_CXX \
12493 module_expsym_cmds_CXX \
12494 lt_cv_prog_compiler_c_o_CXX \
12495 exclude_expsyms_CXX \
12496 include_expsyms_CXX; do
12499 old_archive_cmds_CXX | \
12500 old_archive_from_new_cmds_CXX | \
12501 archive_cmds_CXX | \
12502 archive_expsym_cmds_CXX | \
12503 module_cmds_CXX | \
12504 module_expsym_cmds_CXX | \
12505 old_archive_from_expsyms_cmds_CXX | \
12506 export_symbols_cmds_CXX | \
12507 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12508 postinstall_cmds | postuninstall_cmds | \
12509 old_postinstall_cmds | old_postuninstall_cmds | \
12510 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12511 # Double-quote double-evaled strings.
12512 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12515 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12521 *'\$0 --fallback-echo"')
12522 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12528 cat <<__EOF__ >> "$cfgfile"
12529 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12531 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12533 # Shell to use when invoking shell scripts.
12536 # Whether or not to build shared libraries.
12537 build_libtool_libs=$enable_shared
12539 # Whether or not to build static libraries.
12540 build_old_libs=$enable_static
12542 # Whether or not to add -lc for building shared libraries.
12543 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12545 # Whether or not to disallow shared libs when runtime libs are static
12546 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12548 # Whether or not to optimize for fast installation.
12549 fast_install=$enable_fast_install
12552 host_alias=$host_alias
12555 # An echo program that does not interpret backslashes.
12560 AR_FLAGS=$lt_AR_FLAGS
12565 # A language-specific compiler.
12566 CC=$lt_compiler_CXX
12568 # Is the compiler the GNU C compiler?
12574 # The linker used to build libraries.
12577 # Whether we need hard or soft links.
12580 # A BSD-compatible nm program.
12583 # A symbol stripping program
12586 # Used to examine libraries when file_magic_cmd begins "file"
12587 MAGIC_CMD=$MAGIC_CMD
12589 # Used on cygwin: DLL creation program.
12592 # Used on cygwin: object dumper.
12595 # Used on cygwin: assembler.
12598 # The name of the directory that contains temporary libtool files.
12601 # How to create reloadable object files.
12602 reload_flag=$lt_reload_flag
12603 reload_cmds=$lt_reload_cmds
12605 # How to pass a linker flag through the compiler.
12606 wl=$lt_lt_prog_compiler_wl_CXX
12608 # Object file suffix (normally "o").
12609 objext="$ac_objext"
12611 # Old archive suffix (normally "a").
12614 # Shared library suffix (normally ".so").
12617 # Executable file suffix (normally "").
12620 # Additional compiler flags for building library objects.
12621 pic_flag=$lt_lt_prog_compiler_pic_CXX
12624 # What is the maximum length of a command?
12625 max_cmd_len=$lt_cv_sys_max_cmd_len
12627 # Does compiler simultaneously support -c and -o options?
12628 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12630 # Must we lock files when doing compilation ?
12631 need_locks=$lt_need_locks
12633 # Do we need the lib prefix for modules?
12634 need_lib_prefix=$need_lib_prefix
12636 # Do we need a version for libraries?
12637 need_version=$need_version
12639 # Whether dlopen is supported.
12640 dlopen_support=$enable_dlopen
12642 # Whether dlopen of programs is supported.
12643 dlopen_self=$enable_dlopen_self
12645 # Whether dlopen of statically linked programs is supported.
12646 dlopen_self_static=$enable_dlopen_self_static
12648 # Compiler flag to prevent dynamic linking.
12649 link_static_flag=$lt_lt_prog_compiler_static_CXX
12651 # Compiler flag to turn off builtin functions.
12652 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12654 # Compiler flag to allow reflexive dlopens.
12655 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12657 # Compiler flag to generate shared objects directly from archives.
12658 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12660 # Compiler flag to generate thread-safe objects.
12661 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12663 # Library versioning type.
12664 version_type=$version_type
12666 # Format of library name prefix.
12667 libname_spec=$lt_libname_spec
12669 # List of archive names. First name is the real one, the rest are links.
12670 # The last name is the one that the linker finds with -lNAME.
12671 library_names_spec=$lt_library_names_spec
12673 # The coded name of the library, if different from the real name.
12674 soname_spec=$lt_soname_spec
12676 # Commands used to build and install an old-style archive.
12678 old_archive_cmds=$lt_old_archive_cmds_CXX
12679 old_postinstall_cmds=$lt_old_postinstall_cmds
12680 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12682 # Create an old-style archive from a shared archive.
12683 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12685 # Create a temporary old-style archive to link instead of a shared archive.
12686 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12688 # Commands used to build and install a shared archive.
12689 archive_cmds=$lt_archive_cmds_CXX
12690 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12691 postinstall_cmds=$lt_postinstall_cmds
12692 postuninstall_cmds=$lt_postuninstall_cmds
12694 # Commands used to build a loadable module (assumed same as above if empty)
12695 module_cmds=$lt_module_cmds_CXX
12696 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12698 # Commands to strip libraries.
12699 old_striplib=$lt_old_striplib
12700 striplib=$lt_striplib
12702 # Dependencies to place before the objects being linked to create a
12704 predep_objects=$lt_predep_objects_CXX
12706 # Dependencies to place after the objects being linked to create a
12708 postdep_objects=$lt_postdep_objects_CXX
12710 # Dependencies to place before the objects being linked to create a
12712 predeps=$lt_predeps_CXX
12714 # Dependencies to place after the objects being linked to create a
12716 postdeps=$lt_postdeps_CXX
12718 # The library search path used internally by the compiler when linking
12719 # a shared library.
12720 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12722 # Method to check whether dependent libraries are shared objects.
12723 deplibs_check_method=$lt_deplibs_check_method
12725 # Command to use when deplibs_check_method == file_magic.
12726 file_magic_cmd=$lt_file_magic_cmd
12728 # Flag that allows shared libraries with undefined symbols to be built.
12729 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12731 # Flag that forces no undefined symbols.
12732 no_undefined_flag=$lt_no_undefined_flag_CXX
12734 # Commands used to finish a libtool library installation in a directory.
12735 finish_cmds=$lt_finish_cmds
12737 # Same as above, but a single script fragment to be evaled but not shown.
12738 finish_eval=$lt_finish_eval
12740 # Take the output of nm and produce a listing of raw symbols and C names.
12741 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12743 # Transform the output of nm in a proper C declaration
12744 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12746 # Transform the output of nm in a C name address pair
12747 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12749 # This is the shared library runtime path variable.
12750 runpath_var=$runpath_var
12752 # This is the shared library path variable.
12753 shlibpath_var=$shlibpath_var
12755 # Is shlibpath searched before the hard-coded library search path?
12756 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12758 # How to hardcode a shared library path into an executable.
12759 hardcode_action=$hardcode_action_CXX
12761 # Whether we should hardcode library paths into libraries.
12762 hardcode_into_libs=$hardcode_into_libs
12764 # Flag to hardcode \$libdir into a binary during linking.
12765 # This must work even if \$libdir does not exist.
12766 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12768 # If ld is used when linking, flag to hardcode \$libdir into
12769 # a binary during linking. This must work even if \$libdir does
12771 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12773 # Whether we need a single -rpath flag with a separated argument.
12774 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12776 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12777 # resulting binary.
12778 hardcode_direct=$hardcode_direct_CXX
12780 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12781 # resulting binary.
12782 hardcode_minus_L=$hardcode_minus_L_CXX
12784 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12785 # the resulting binary.
12786 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12788 # Set to yes if building a shared library automatically hardcodes DIR into the library
12789 # and all subsequent libraries and executables linked against it.
12790 hardcode_automatic=$hardcode_automatic_CXX
12792 # Variables whose values should be saved in libtool wrapper scripts and
12793 # restored at relink time.
12794 variables_saved_for_relink="$variables_saved_for_relink"
12796 # Whether libtool must link a program against all its dependency libraries.
12797 link_all_deplibs=$link_all_deplibs_CXX
12799 # Compile-time system search path for libraries
12800 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12802 # Run-time system search path for libraries
12803 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12805 # Fix the shell variable \$srcfile for the compiler.
12806 fix_srcfile_path="$fix_srcfile_path_CXX"
12808 # Set to yes if exported symbols are required.
12809 always_export_symbols=$always_export_symbols_CXX
12811 # The commands to list exported symbols.
12812 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12814 # The commands to extract the exported symbol list from a shared archive.
12815 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12817 # Symbols that should not be listed in the preloaded symbols.
12818 exclude_expsyms=$lt_exclude_expsyms_CXX
12820 # Symbols that must always be exported.
12821 include_expsyms=$lt_include_expsyms_CXX
12823 # ### END LIBTOOL TAG CONFIG: $tagname
12829 # If there is no Makefile yet, we rely on a make rule to execute
12830 # `config.status --recheck' to rerun these tests and create the
12831 # libtool script then.
12832 test -f Makefile && make "$ltmain"
12837 ac_cpp='$CPP $CPPFLAGS'
12838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12846 with_gnu_ldcxx=$with_gnu_ld
12847 with_gnu_ld=$lt_save_with_gnu_ld
12848 lt_cv_path_LDCXX=$lt_cv_path_LD
12849 lt_cv_path_LD=$lt_save_path_LD
12850 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12851 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12859 if test -n "$F77" && test "X$F77" != "Xno"; then
12862 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12863 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12864 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12867 archive_cmds_need_lc_F77=no
12868 allow_undefined_flag_F77=
12869 always_export_symbols_F77=no
12870 archive_expsym_cmds_F77=
12871 export_dynamic_flag_spec_F77=
12872 hardcode_direct_F77=no
12873 hardcode_libdir_flag_spec_F77=
12874 hardcode_libdir_flag_spec_ld_F77=
12875 hardcode_libdir_separator_F77=
12876 hardcode_minus_L_F77=no
12877 hardcode_automatic_F77=no
12879 module_expsym_cmds_F77=
12880 link_all_deplibs_F77=unknown
12881 old_archive_cmds_F77=$old_archive_cmds
12882 no_undefined_flag_F77=
12883 whole_archive_flag_spec_F77=
12884 enable_shared_with_static_runtimes_F77=no
12886 # Source file extension for f77 test sources.
12889 # Object file extension for compiled f77 test sources.
12893 # Code to be used in simple compile tests
12894 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12896 # Code to be used in simple link tests
12897 lt_simple_link_test_code=" program t\n end\n"
12899 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12901 # If no C compiler was specified, use CC.
12904 # Allow CC to be a program name with arguments.
12908 # Allow CC to be a program name with arguments.
12913 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12915 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12916 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12917 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12918 echo "${ECHO_T}$can_build_shared" >&6
12920 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12921 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12922 test "$can_build_shared" = "no" && enable_shared=no
12924 # On AIX, shared libraries and static libraries use the same namespace, and
12925 # are all built from PIC.
12928 test "$enable_shared" = yes && enable_static=no
12929 if test -n "$RANLIB"; then
12930 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12931 postinstall_cmds='$RANLIB $lib'
12935 test "$enable_shared" = yes && enable_static=no
12938 echo "$as_me:$LINENO: result: $enable_shared" >&5
12939 echo "${ECHO_T}$enable_shared" >&6
12941 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12942 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12943 # Make sure either enable_shared or enable_static is yes.
12944 test "$enable_shared" = yes || enable_static=yes
12945 echo "$as_me:$LINENO: result: $enable_static" >&5
12946 echo "${ECHO_T}$enable_static" >&6
12948 test "$ld_shlibs_F77" = no && can_build_shared=no
12953 lt_prog_compiler_wl_F77=
12954 lt_prog_compiler_pic_F77=
12955 lt_prog_compiler_static_F77=
12957 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12958 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12960 if test "$GCC" = yes; then
12961 lt_prog_compiler_wl_F77='-Wl,'
12962 lt_prog_compiler_static_F77='-static'
12966 # All AIX code is PIC.
12967 if test "$host_cpu" = ia64; then
12968 # AIX 5 now supports IA64 processor
12969 lt_prog_compiler_static_F77='-Bstatic'
12974 # FIXME: we need at least 68020 code to build shared libraries, but
12975 # adding the `-m68020' flag to GCC prevents building anything better,
12977 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12980 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12981 # PIC is the default for these OSes.
12984 mingw* | pw32* | os2*)
12985 # This hack is so that the source file can tell whether it is being
12986 # built for inclusion in a dll (and should export symbols for example).
12987 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12990 darwin* | rhapsody*)
12991 # PIC is the default on this platform
12992 # Common symbols not allowed in MH_DYLIB files
12993 lt_prog_compiler_pic_F77='-fno-common'
12997 # Just because we use GCC doesn't mean we suddenly get shared libraries
12998 # on systems that don't support them.
12999 lt_prog_compiler_can_build_shared_F77=no
13004 if test -d /usr/nec; then
13005 lt_prog_compiler_pic_F77=-Kconform_pic
13010 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13011 # not for PA HP-UX.
13012 case "$host_cpu" in
13017 lt_prog_compiler_pic_F77='-fPIC'
13023 lt_prog_compiler_pic_F77='-fPIC'
13027 # PORTME Check for flag to pass linker flags through the system compiler.
13030 lt_prog_compiler_wl_F77='-Wl,'
13031 if test "$host_cpu" = ia64; then
13032 # AIX 5 now supports IA64 processor
13033 lt_prog_compiler_static_F77='-Bstatic'
13035 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13039 mingw* | pw32* | os2*)
13040 # This hack is so that the source file can tell whether it is being
13041 # built for inclusion in a dll (and should export symbols for example).
13042 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13045 hpux9* | hpux10* | hpux11*)
13046 lt_prog_compiler_wl_F77='-Wl,'
13047 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13048 # not for PA HP-UX.
13049 case "$host_cpu" in
13054 lt_prog_compiler_pic_F77='+Z'
13057 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13058 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13061 irix5* | irix6* | nonstopux*)
13062 lt_prog_compiler_wl_F77='-Wl,'
13063 # PIC (with -KPIC) is the default.
13064 lt_prog_compiler_static_F77='-non_shared'
13068 lt_prog_compiler_pic_F77='-KPIC'
13069 lt_prog_compiler_static_F77='-Bstatic'
13075 lt_prog_compiler_wl_F77='-Wl,'
13076 lt_prog_compiler_pic_F77='-KPIC'
13077 lt_prog_compiler_static_F77='-static'
13080 lt_prog_compiler_wl_F77='-Wl,'
13081 # All Alpha code is PIC.
13082 lt_prog_compiler_static_F77='-non_shared'
13087 osf3* | osf4* | osf5*)
13088 lt_prog_compiler_wl_F77='-Wl,'
13089 # All OSF/1 code is PIC.
13090 lt_prog_compiler_static_F77='-non_shared'
13094 lt_prog_compiler_pic_F77='-Kpic'
13095 lt_prog_compiler_static_F77='-dn'
13099 lt_prog_compiler_wl_F77='-Wl,'
13100 lt_prog_compiler_pic_F77='-KPIC'
13101 lt_prog_compiler_static_F77='-Bstatic'
13105 lt_prog_compiler_wl_F77='-Qoption ld '
13106 lt_prog_compiler_pic_F77='-PIC'
13107 lt_prog_compiler_static_F77='-Bstatic'
13110 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13111 lt_prog_compiler_wl_F77='-Wl,'
13112 lt_prog_compiler_pic_F77='-KPIC'
13113 lt_prog_compiler_static_F77='-Bstatic'
13117 if test -d /usr/nec ;then
13118 lt_prog_compiler_pic_F77='-Kconform_pic'
13119 lt_prog_compiler_static_F77='-Bstatic'
13124 lt_prog_compiler_pic_F77='-pic'
13125 lt_prog_compiler_static_F77='-Bstatic'
13129 lt_prog_compiler_can_build_shared_F77=no
13134 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13135 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13138 # Check to make sure the PIC flag actually works.
13140 if test -n "$lt_prog_compiler_pic_F77"; then
13141 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13142 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13143 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13144 echo $ECHO_N "(cached) $ECHO_C" >&6
13146 lt_prog_compiler_pic_works_F77=no
13147 ac_outfile=conftest.$ac_objext
13148 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13149 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13150 # Insert the option either (1) after the last *FLAGS variable, or
13151 # (2) before a word containing "conftest.", or (3) at the end.
13152 # Note that $ac_compile itself does not contain backslashes and begins
13153 # with a dollar sign (not a hyphen), so the echo should work correctly.
13154 # The option is referenced via a variable to avoid confusing sed.
13155 lt_compile=`echo "$ac_compile" | $SED \
13156 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13157 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13158 -e 's:$: $lt_compiler_flag:'`
13159 (eval echo "\"\$as_me:13159: $lt_compile\"" >&5)
13160 (eval "$lt_compile" 2>conftest.err)
13162 cat conftest.err >&5
13163 echo "$as_me:13163: \$? = $ac_status" >&5
13164 if (exit $ac_status) && test -s "$ac_outfile"; then
13165 # The compiler can only warn and ignore the option if not recognized
13166 # So say no if there are warnings
13167 if test ! -s conftest.err; then
13168 lt_prog_compiler_pic_works_F77=yes
13174 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13175 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13177 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13178 case $lt_prog_compiler_pic_F77 in
13180 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13183 lt_prog_compiler_pic_F77=
13184 lt_prog_compiler_can_build_shared_F77=no
13189 # For platforms which do not support PIC, -DPIC is meaningless:
13191 lt_prog_compiler_pic_F77=
13194 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13198 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13199 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13200 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13201 echo $ECHO_N "(cached) $ECHO_C" >&6
13203 lt_cv_prog_compiler_c_o_F77=no
13204 $rm -r conftest 2>/dev/null
13208 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13210 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13211 # that will create temporary files in the current directory regardless of
13212 # the output directory. Thus, making CWD read-only will cause this test
13213 # to fail, enabling locking or at least warning the user not to do parallel
13217 lt_compiler_flag="-o out/conftest2.$ac_objext"
13218 # Insert the option either (1) after the last *FLAGS variable, or
13219 # (2) before a word containing "conftest.", or (3) at the end.
13220 # Note that $ac_compile itself does not contain backslashes and begins
13221 # with a dollar sign (not a hyphen), so the echo should work correctly.
13222 lt_compile=`echo "$ac_compile" | $SED \
13223 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13224 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13225 -e 's:$: $lt_compiler_flag:'`
13226 (eval echo "\"\$as_me:13226: $lt_compile\"" >&5)
13227 (eval "$lt_compile" 2>out/conftest.err)
13229 cat out/conftest.err >&5
13230 echo "$as_me:13230: \$? = $ac_status" >&5
13231 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13233 # The compiler can only warn and ignore the option if not recognized
13234 # So say no if there are warnings
13235 if test ! -s out/conftest.err; then
13236 lt_cv_prog_compiler_c_o_F77=yes
13240 $rm conftest* out/*
13247 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13248 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13251 hard_links="nottested"
13252 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13253 # do not overwrite the value of need_locks provided by the user
13254 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13255 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13258 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13260 ln conftest.a conftest.b 2>&5 || hard_links=no
13261 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13262 echo "$as_me:$LINENO: result: $hard_links" >&5
13263 echo "${ECHO_T}$hard_links" >&6
13264 if test "$hard_links" = no; then
13265 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13266 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13273 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13274 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13277 allow_undefined_flag_F77=
13278 enable_shared_with_static_runtimes_F77=no
13280 archive_expsym_cmds_F77=
13281 old_archive_From_new_cmds_F77=
13282 old_archive_from_expsyms_cmds_F77=
13283 export_dynamic_flag_spec_F77=
13284 whole_archive_flag_spec_F77=
13285 thread_safe_flag_spec_F77=
13286 hardcode_libdir_flag_spec_F77=
13287 hardcode_libdir_flag_spec_ld_F77=
13288 hardcode_libdir_separator_F77=
13289 hardcode_direct_F77=no
13290 hardcode_minus_L_F77=no
13291 hardcode_shlibpath_var_F77=unsupported
13292 link_all_deplibs_F77=unknown
13293 hardcode_automatic_F77=no
13295 module_expsym_cmds_F77=
13296 always_export_symbols_F77=no
13297 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13298 # include_expsyms should be a list of space-separated symbols to be *always*
13299 # included in the symbol list
13300 include_expsyms_F77=
13301 # exclude_expsyms can be an extended regexp of symbols to exclude
13302 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13303 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13304 # as well as any symbol that contains `d'.
13305 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13306 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13307 # platforms (ab)use it in PIC code, but their linkers get confused if
13308 # the symbol is explicitly referenced. Since portable code cannot
13309 # rely on this symbol name, it's probably fine to never include it in
13310 # preloaded symbol tables.
13311 extract_expsyms_cmds=
13314 cygwin* | mingw* | pw32*)
13315 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13316 # When not using gcc, we currently assume that we are using
13317 # Microsoft Visual C++.
13318 if test "$GCC" != yes; then
13328 if test "$with_gnu_ld" = yes; then
13329 # If archive_cmds runs LD, not CC, wlarc should be empty
13332 # See if GNU ld supports shared libraries.
13334 aix3* | aix4* | aix5*)
13335 # On AIX/PPC, the GNU linker is very broken
13336 if test "$host_cpu" != ia64; then
13340 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13341 *** to be unable to reliably create shared libraries on AIX.
13342 *** Therefore, libtool is disabling shared libraries support. If you
13343 *** really care for shared libraries, you may want to modify your PATH
13344 *** so that a non-GNU linker is found, and then restart.
13351 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)'
13352 hardcode_libdir_flag_spec_F77='-L$libdir'
13353 hardcode_minus_L_F77=yes
13355 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13356 # that the semantics of dynamic libraries on AmigaOS, at least up
13357 # to version 4, is to share data among multiple programs linked
13358 # with the same dynamic library. Since this doesn't match the
13359 # behavior of shared libraries on other platforms, we can't use
13365 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13366 allow_undefined_flag_F77=unsupported
13367 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13368 # support --undefined. This deserves some investigation. FIXME
13369 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13375 cygwin* | mingw* | pw32*)
13376 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13377 # as there is no search path for DLLs.
13378 hardcode_libdir_flag_spec_F77='-L$libdir'
13379 allow_undefined_flag_F77=unsupported
13380 always_export_symbols_F77=no
13381 enable_shared_with_static_runtimes_F77=yes
13382 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13384 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13385 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13386 # If the export-symbols file already is a .def file (1st line
13387 # is EXPORTS), use it as is; otherwise, prepend...
13388 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13389 cp $export_symbols $output_objdir/$soname.def;
13391 echo EXPORTS > $output_objdir/$soname.def;
13392 cat $export_symbols >> $output_objdir/$soname.def;
13394 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13401 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13402 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13405 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13406 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13411 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13415 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13416 *** create shared libraries on Solaris systems. Therefore, libtool
13417 *** is disabling shared libraries support. We urge you to upgrade GNU
13418 *** binutils to release 2.9.1 or newer. Another option is to modify
13419 *** your PATH or compiler configuration so that the native linker is
13420 *** used, and then restart.
13423 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13424 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13425 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13432 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13434 hardcode_direct_F77=yes
13435 hardcode_shlibpath_var_F77=no
13439 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13440 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13441 archive_cmds_F77="$tmp_archive_cmds"
13442 supports_anon_versioning=no
13443 case `$LD -v 2>/dev/null` in
13444 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13445 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13446 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13447 *\ 2.11.*) ;; # other 2.11 versions
13448 *) supports_anon_versioning=yes ;;
13450 if test $supports_anon_versioning = yes; then
13451 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13452 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13453 $echo "local: *; };" >> $output_objdir/$libname.ver~
13454 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13456 archive_expsym_cmds_F77="$tmp_archive_cmds"
13464 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13465 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13466 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13473 if test "$ld_shlibs_F77" = yes; then
13474 runpath_var=LD_RUN_PATH
13475 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13476 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13477 # ancient GNU ld didn't support --whole-archive et. al.
13478 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13479 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13481 whole_archive_flag_spec_F77=
13485 # PORTME fill in a description of your system's linker (not GNU ld)
13488 allow_undefined_flag_F77=unsupported
13489 always_export_symbols_F77=yes
13490 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'
13491 # Note: this linker hardcodes the directories in LIBPATH if there
13492 # are no directories specified by -L.
13493 hardcode_minus_L_F77=yes
13494 if test "$GCC" = yes && test -z "$link_static_flag"; then
13495 # Neither direct hardcoding nor static linking is supported with a
13497 hardcode_direct_F77=unsupported
13502 if test "$host_cpu" = ia64; then
13503 # On IA64, the linker does run time linking by default, so we don't
13504 # have to do anything special.
13505 aix_use_runtimelinking=no
13506 exp_sym_flag='-Bexport'
13509 # If we're using GNU nm, then we don't want the "-C" option.
13510 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13511 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13512 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'
13514 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'
13516 aix_use_runtimelinking=no
13518 # Test if we are trying to use run time linking or normal
13519 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13520 # need to do runtime linking.
13521 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13522 for ld_flag in $LDFLAGS; do
13523 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13524 aix_use_runtimelinking=yes
13530 exp_sym_flag='-bexport'
13531 no_entry_flag='-bnoentry'
13534 # When large executables or shared objects are built, AIX ld can
13535 # have problems creating the table of contents. If linking a library
13536 # or program results in "error TOC overflow" add -mminimal-toc to
13537 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13538 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13540 archive_cmds_F77=''
13541 hardcode_direct_F77=yes
13542 hardcode_libdir_separator_F77=':'
13543 link_all_deplibs_F77=yes
13545 if test "$GCC" = yes; then
13546 case $host_os in aix4.012|aix4.012.*)
13547 # We only want to do this on AIX 4.2 and lower, the check
13548 # below for broken collect2 doesn't work under 4.3+
13549 collect2name=`${CC} -print-prog-name=collect2`
13550 if test -f "$collect2name" && \
13551 strings "$collect2name" | grep resolve_lib_name >/dev/null
13553 # We have reworked collect2
13554 hardcode_direct_F77=yes
13556 # We have old collect2
13557 hardcode_direct_F77=unsupported
13558 # It fails to find uninstalled libraries when the uninstalled
13559 # path is not listed in the libpath. Setting hardcode_minus_L
13560 # to unsupported forces relinking
13561 hardcode_minus_L_F77=yes
13562 hardcode_libdir_flag_spec_F77='-L$libdir'
13563 hardcode_libdir_separator_F77=
13566 shared_flag='-shared'
13569 if test "$host_cpu" = ia64; then
13570 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13571 # chokes on -Wl,-G. The following line is correct:
13574 if test "$aix_use_runtimelinking" = yes; then
13575 shared_flag='${wl}-G'
13577 shared_flag='${wl}-bM:SRE'
13582 # It seems that -bexpall does not export symbols beginning with
13583 # underscore (_), so it is better to generate a list of symbols to export.
13584 always_export_symbols_F77=yes
13585 if test "$aix_use_runtimelinking" = yes; then
13586 # Warning - without using the other runtime loading flags (-brtl),
13587 # -berok will link without error, but may produce a broken library.
13588 allow_undefined_flag_F77='-berok'
13589 # Determine the default libpath from the value encoded in an empty executable.
13590 cat >conftest.$ac_ext <<_ACEOF
13595 rm -f conftest.$ac_objext conftest$ac_exeext
13596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13597 (eval $ac_link) 2>&5
13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); } &&
13601 { ac_try='test -s conftest$ac_exeext'
13602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13603 (eval $ac_try) 2>&5
13605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606 (exit $ac_status); }; }; then
13608 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13610 # Check for a 64-bit object if we didn't find anything.
13611 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; }
13614 echo "$as_me: failed program was:" >&5
13615 sed 's/^/| /' conftest.$ac_ext >&5
13618 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13619 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13621 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13622 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13624 if test "$host_cpu" = ia64; then
13625 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13626 allow_undefined_flag_F77="-z nodefs"
13627 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13629 # Determine the default libpath from the value encoded in an empty executable.
13630 cat >conftest.$ac_ext <<_ACEOF
13635 rm -f conftest.$ac_objext conftest$ac_exeext
13636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13637 (eval $ac_link) 2>&5
13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); } &&
13641 { ac_try='test -s conftest$ac_exeext'
13642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13643 (eval $ac_try) 2>&5
13645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); }; }; then
13648 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13650 # Check for a 64-bit object if we didn't find anything.
13651 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; }
13654 echo "$as_me: failed program was:" >&5
13655 sed 's/^/| /' conftest.$ac_ext >&5
13658 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13659 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13661 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13662 # Warning - without using the other run time loading flags,
13663 # -berok will link without error, but may produce a broken library.
13664 no_undefined_flag_F77=' ${wl}-bernotok'
13665 allow_undefined_flag_F77=' ${wl}-berok'
13666 # -bexpall does not export symbols beginning with underscore (_)
13667 always_export_symbols_F77=yes
13668 # Exported symbols can be pulled into shared objects from archives
13669 whole_archive_flag_spec_F77=' '
13670 archive_cmds_need_lc_F77=yes
13671 # This is similar to how AIX traditionally builds it's shared libraries.
13672 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13678 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)'
13679 hardcode_libdir_flag_spec_F77='-L$libdir'
13680 hardcode_minus_L_F77=yes
13681 # see comment about different semantics on the GNU ld section
13686 export_dynamic_flag_spec_F77=-rdynamic
13689 cygwin* | mingw* | pw32*)
13690 # When not using gcc, we currently assume that we are using
13691 # Microsoft Visual C++.
13692 # hardcode_libdir_flag_spec is actually meaningless, as there is
13693 # no search path for DLLs.
13694 hardcode_libdir_flag_spec_F77=' '
13695 allow_undefined_flag_F77=unsupported
13696 # Tell ltmain to make .lib files, not .a files.
13698 # Tell ltmain to make .dll files, not .so files.
13700 # FIXME: Setting linknames here is a bad hack.
13701 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13702 # The linker will automatically build a .lib file if we build a DLL.
13703 old_archive_From_new_cmds_F77='true'
13704 # FIXME: Should let the user specify the lib program.
13705 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13706 fix_srcfile_path='`cygpath -w "$srcfile"`'
13707 enable_shared_with_static_runtimes_F77=yes
13710 darwin* | rhapsody*)
13711 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13712 archive_cmds_need_lc_F77=no
13714 rhapsody* | darwin1.[012])
13715 allow_undefined_flag_F77='-undefined suppress'
13718 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13721 # FIXME: Relying on posixy $() will cause problems for
13722 # cross-compilation, but unfortunately the echo tests do not
13723 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13724 # `"' quotes if we put them in here... so don't!
13725 lt_int_apple_cc_single_mod=no
13726 output_verbose_link_cmd='echo'
13727 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13728 lt_int_apple_cc_single_mod=yes
13730 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13731 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13733 archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
13735 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13736 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13737 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13738 archive_expsym_cmds_F77='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}'
13740 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
13742 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13743 hardcode_direct_F77=no
13744 hardcode_automatic_F77=yes
13745 hardcode_shlibpath_var_F77=unsupported
13746 whole_archive_flag_spec_F77='-all_load $convenience'
13747 link_all_deplibs_F77=yes
13752 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13753 hardcode_libdir_flag_spec_F77='-L$libdir'
13754 hardcode_shlibpath_var_F77=no
13761 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13762 # support. Future versions do this automatically, but an explicit c++rt0.o
13763 # does not break anything, and helps significantly (at the cost of a little
13766 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13767 hardcode_libdir_flag_spec_F77='-R$libdir'
13768 hardcode_direct_F77=yes
13769 hardcode_shlibpath_var_F77=no
13772 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13774 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13775 hardcode_direct_F77=yes
13776 hardcode_minus_L_F77=yes
13777 hardcode_shlibpath_var_F77=no
13780 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13782 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13783 hardcode_libdir_flag_spec_F77='-R$libdir'
13784 hardcode_direct_F77=yes
13785 hardcode_shlibpath_var_F77=no
13789 if test "$GCC" = yes; then
13790 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'
13792 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'
13794 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13795 hardcode_libdir_separator_F77=:
13796 hardcode_direct_F77=yes
13798 # hardcode_minus_L: Not really in the search PATH,
13799 # but as the default location of the library.
13800 hardcode_minus_L_F77=yes
13801 export_dynamic_flag_spec_F77='${wl}-E'
13805 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13806 case "$host_cpu" in
13808 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13811 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13815 case "$host_cpu" in
13817 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13820 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13824 if test "$with_gnu_ld" = no; then
13825 case "$host_cpu" in
13827 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13828 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13829 hardcode_libdir_separator_F77=:
13830 hardcode_direct_F77=no
13831 hardcode_shlibpath_var_F77=no
13834 hardcode_libdir_flag_spec_F77='-L$libdir'
13835 hardcode_direct_F77=no
13836 hardcode_shlibpath_var_F77=no
13838 # hardcode_minus_L: Not really in the search PATH,
13839 # but as the default location of the library.
13840 hardcode_minus_L_F77=yes
13843 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13844 hardcode_libdir_separator_F77=:
13845 hardcode_direct_F77=yes
13846 export_dynamic_flag_spec_F77='${wl}-E'
13848 # hardcode_minus_L: Not really in the search PATH,
13849 # but as the default location of the library.
13850 hardcode_minus_L_F77=yes
13856 irix5* | irix6* | nonstopux*)
13857 if test "$GCC" = yes; then
13858 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'
13860 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'
13861 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13863 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13864 hardcode_libdir_separator_F77=:
13865 link_all_deplibs_F77=yes
13869 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13870 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13872 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13874 hardcode_libdir_flag_spec_F77='-R$libdir'
13875 hardcode_direct_F77=yes
13876 hardcode_shlibpath_var_F77=no
13880 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13881 hardcode_direct_F77=yes
13882 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13883 hardcode_libdir_separator_F77=:
13884 hardcode_shlibpath_var_F77=no
13888 hardcode_direct_F77=yes
13889 hardcode_shlibpath_var_F77=no
13890 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13891 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13892 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13893 export_dynamic_flag_spec_F77='${wl}-E'
13896 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13897 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13898 hardcode_libdir_flag_spec_F77='-R$libdir'
13901 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13902 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13909 hardcode_libdir_flag_spec_F77='-L$libdir'
13910 hardcode_minus_L_F77=yes
13911 allow_undefined_flag_F77=unsupported
13912 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'
13913 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13917 if test "$GCC" = yes; then
13918 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13919 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'
13921 allow_undefined_flag_F77=' -expect_unresolved \*'
13922 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'
13924 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13925 hardcode_libdir_separator_F77=:
13928 osf4* | osf5*) # as osf3* with the addition of -msym flag
13929 if test "$GCC" = yes; then
13930 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13931 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'
13932 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13934 allow_undefined_flag_F77=' -expect_unresolved \*'
13935 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'
13936 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~
13937 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
13939 # Both c and cxx compiler support -rpath directly
13940 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13942 hardcode_libdir_separator_F77=:
13946 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13947 hardcode_shlibpath_var_F77=no
13948 export_dynamic_flag_spec_F77='${wl}-Bexport'
13949 runpath_var=LD_RUN_PATH
13950 hardcode_runpath_var=yes
13954 no_undefined_flag_F77=' -z text'
13955 if test "$GCC" = yes; then
13956 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13957 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13958 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13960 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13961 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13962 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13964 hardcode_libdir_flag_spec_F77='-R$libdir'
13965 hardcode_shlibpath_var_F77=no
13967 solaris2.[0-5] | solaris2.[0-5].*) ;;
13968 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13969 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13971 link_all_deplibs_F77=yes
13975 if test "x$host_vendor" = xsequent; then
13976 # Use $CC to link under sequent, because it throws in some extra .o
13977 # files that make .init and .fini sections work.
13978 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13980 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13982 hardcode_libdir_flag_spec_F77='-L$libdir'
13983 hardcode_direct_F77=yes
13984 hardcode_minus_L_F77=yes
13985 hardcode_shlibpath_var_F77=no
13989 case $host_vendor in
13991 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13992 hardcode_direct_F77=yes # is this really true???
13995 ## LD is ld it makes a PLAMLIB
13996 ## CC just makes a GrossModule.
13997 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13998 reload_cmds_F77='$CC -r -o $output$reload_objs'
13999 hardcode_direct_F77=no
14002 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14003 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14006 runpath_var='LD_RUN_PATH'
14007 hardcode_shlibpath_var_F77=no
14011 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14012 hardcode_shlibpath_var_F77=no
14013 export_dynamic_flag_spec_F77='-Bexport'
14017 if test -d /usr/nec; then
14018 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14019 hardcode_shlibpath_var_F77=no
14020 runpath_var=LD_RUN_PATH
14021 hardcode_runpath_var=yes
14027 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14028 hardcode_direct_F77=yes
14029 hardcode_minus_L_F77=no
14030 hardcode_shlibpath_var_F77=no
14031 hardcode_runpath_var=yes
14032 runpath_var=LD_RUN_PATH
14035 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14036 no_undefined_flag_F77='${wl}-z ${wl}text'
14037 if test "$GCC" = yes; then
14038 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14040 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14042 runpath_var='LD_RUN_PATH'
14043 hardcode_shlibpath_var_F77=no
14047 no_undefined_flag_F77=' -z text'
14048 # $CC -shared without GNU ld will not create a library from C++
14049 # object files and a static libstdc++, better avoid it by now
14050 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14051 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14052 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14053 hardcode_libdir_flag_spec_F77=
14054 hardcode_shlibpath_var_F77=no
14055 runpath_var='LD_RUN_PATH'
14059 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14060 hardcode_libdir_flag_spec_F77='-L$libdir'
14061 hardcode_shlibpath_var_F77=no
14070 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14071 echo "${ECHO_T}$ld_shlibs_F77" >&6
14072 test "$ld_shlibs_F77" = no && can_build_shared=no
14074 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14075 if test "$GCC" = yes; then
14076 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14080 # Do we need to explicitly link libc?
14082 case "x$archive_cmds_need_lc_F77" in
14084 # Assume -lc should be added
14085 archive_cmds_need_lc_F77=yes
14087 if test "$enable_shared" = yes && test "$GCC" = yes; then
14088 case $archive_cmds_F77 in
14090 # FIXME: we may have to deal with multi-command sequences.
14093 # Test whether the compiler implicitly links with -lc since on some
14094 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14095 # to ld, don't add -lc before -lgcc.
14096 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14097 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14099 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14102 (eval $ac_compile) 2>&5
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); } 2>conftest.err; then
14108 libobjs=conftest.$ac_objext
14110 wl=$lt_prog_compiler_wl_F77
14116 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14117 allow_undefined_flag_F77=
14118 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14119 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); }
14124 archive_cmds_need_lc_F77=no
14126 archive_cmds_need_lc_F77=yes
14128 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14130 cat conftest.err 1>&5
14133 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14134 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14141 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14142 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14143 hardcode_action_F77=
14144 if test -n "$hardcode_libdir_flag_spec_F77" || \
14145 test -n "$runpath_var F77" || \
14146 test "X$hardcode_automatic_F77"="Xyes" ; then
14148 # We can hardcode non-existant directories.
14149 if test "$hardcode_direct_F77" != no &&
14150 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14151 # have to relink, otherwise we might link with an installed library
14152 # when we should be linking with a yet-to-be-installed one
14153 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14154 test "$hardcode_minus_L_F77" != no; then
14155 # Linking always hardcodes the temporary library directory.
14156 hardcode_action_F77=relink
14158 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14159 hardcode_action_F77=immediate
14162 # We cannot hardcode anything, or else we can only hardcode existing
14164 hardcode_action_F77=unsupported
14166 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14167 echo "${ECHO_T}$hardcode_action_F77" >&6
14169 if test "$hardcode_action_F77" = relink; then
14170 # Fast installation is not supported
14171 enable_fast_install=no
14172 elif test "$shlibpath_overrides_runpath" = yes ||
14173 test "$enable_shared" = no; then
14174 # Fast installation is not necessary
14175 enable_fast_install=needless
14180 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14181 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14182 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14183 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14184 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14185 echo "$as_me:$LINENO: result: yes" >&5
14186 echo "${ECHO_T}yes" >&6
14188 # FIXME - insert some real tests, host_os isn't really good enough
14191 if test -n "$STRIP" ; then
14192 striplib="$STRIP -x"
14193 echo "$as_me:$LINENO: result: yes" >&5
14194 echo "${ECHO_T}yes" >&6
14196 echo "$as_me:$LINENO: result: no" >&5
14197 echo "${ECHO_T}no" >&6
14201 echo "$as_me:$LINENO: result: no" >&5
14202 echo "${ECHO_T}no" >&6
14207 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14208 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14209 library_names_spec=
14210 libname_spec='lib$name'
14214 postuninstall_cmds=
14218 shlibpath_overrides_runpath=unknown
14220 dynamic_linker="$host_os ld.so"
14221 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14222 if test "$GCC" = yes; then
14223 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14224 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14225 # if the path contains ";" then we assume it to be the separator
14226 # otherwise default to the standard path separator (i.e. ":") - it is
14227 # assumed that no part of a normal pathname contains ";" but that should
14228 # okay in the real world where ";" in dirpaths is itself problematic.
14229 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14231 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14234 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14236 need_lib_prefix=unknown
14237 hardcode_into_libs=no
14239 # when you set need_version to no, make sure it does not cause -set_version
14240 # flags to be left without arguments
14241 need_version=unknown
14246 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14247 shlibpath_var=LIBPATH
14249 # AIX 3 has no versioning support, so we append a major version to the name.
14250 soname_spec='${libname}${release}${shared_ext}$major'
14257 hardcode_into_libs=yes
14258 if test "$host_cpu" = ia64; then
14259 # AIX 5 supports IA64
14260 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14261 shlibpath_var=LD_LIBRARY_PATH
14263 # With GCC up to 2.95.x, collect2 would create an import file
14264 # for dependence libraries. The import file would start with
14265 # the line `#! .'. This would cause the generated library to
14266 # depend on `.', always an invalid library. This was fixed in
14267 # development snapshots of GCC prior to 3.0.
14269 aix4 | aix4.[01] | aix4.[01].*)
14270 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14272 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14275 can_build_shared=no
14279 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14280 # soname into executable. Probably we can add versioning support to
14281 # collect2, so additional links can be useful in future.
14282 if test "$aix_use_runtimelinking" = yes; then
14283 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14284 # instead of lib<name>.a to let people know that these are not
14285 # typical AIX shared libraries.
14286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14288 # We preserve .a as extension for shared libraries through AIX4.2
14289 # and later when we are not doing run time linking.
14290 library_names_spec='${libname}${release}.a $libname.a'
14291 soname_spec='${libname}${release}${shared_ext}$major'
14293 shlibpath_var=LIBPATH
14298 library_names_spec='$libname.ixlibrary $libname.a'
14299 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14300 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'
14304 library_names_spec='${libname}${shared_ext}'
14305 dynamic_linker="$host_os ld.so"
14306 shlibpath_var=LIBRARY_PATH
14312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14313 soname_spec='${libname}${release}${shared_ext}$major'
14314 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14315 shlibpath_var=LD_LIBRARY_PATH
14316 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14317 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14318 # the default ld.so.conf also contains /usr/contrib/lib and
14319 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14320 # libtool to hard-code these into programs
14323 cygwin* | mingw* | pw32*)
14324 version_type=windows
14329 case $GCC,$host_os in
14330 yes,cygwin* | yes,mingw* | yes,pw32*)
14331 library_names_spec='$libname.dll.a'
14332 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14333 postinstall_cmds='base_file=`basename \${file}`~
14334 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14335 dldir=$destdir/`dirname \$dlpath`~
14336 test -d \$dldir || mkdir -p \$dldir~
14337 $install_prog $dir/$dlname \$dldir/$dlname'
14338 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14339 dlpath=$dir/\$dldll~
14341 shlibpath_overrides_runpath=yes
14345 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14346 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14347 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14350 # MinGW DLLs use traditional 'lib' prefix
14351 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14352 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14353 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14354 # It is most probably a Windows format PATH printed by
14355 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14356 # path with ; separators, and with drive letters. We can handle the
14357 # drive letters (cygwin fileutils understands them), so leave them,
14358 # especially as we might pass files found there to a mingw objdump,
14359 # which wouldn't understand a cygwinified path. Ahh.
14360 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14362 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14366 # pw32 DLLs use 'pw' prefix rather than 'lib'
14367 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14373 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14376 dynamic_linker='Win32 ld.exe'
14377 # FIXME: first we should search . and the directory the executable is in
14381 darwin* | rhapsody*)
14382 dynamic_linker="$host_os dyld"
14383 version_type=darwin
14386 # FIXME: Relying on posixy $() will cause problems for
14387 # cross-compilation, but unfortunately the echo tests do not
14388 # yet detect zsh echo's removal of \ escapes.
14389 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14390 soname_spec='${libname}${release}${major}$shared_ext'
14391 shlibpath_overrides_runpath=yes
14392 shlibpath_var=DYLD_LIBRARY_PATH
14393 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14394 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14395 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14396 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"`
14398 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14406 soname_spec='${libname}${release}${shared_ext}$major'
14407 shlibpath_var=LD_LIBRARY_PATH
14415 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14416 version_type=freebsd-$objformat
14417 case $version_type in
14419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14424 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14428 shlibpath_var=LD_LIBRARY_PATH
14431 shlibpath_overrides_runpath=yes
14433 freebsd3.01* | freebsdelf3.01*)
14434 shlibpath_overrides_runpath=yes
14435 hardcode_into_libs=yes
14438 shlibpath_overrides_runpath=no
14439 hardcode_into_libs=yes
14448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14449 soname_spec='${libname}${release}${shared_ext}$major'
14450 shlibpath_var=LD_LIBRARY_PATH
14451 hardcode_into_libs=yes
14454 hpux9* | hpux10* | hpux11*)
14455 # Give a soname corresponding to the major version so that dld.sl refuses to
14456 # link against other versions.
14460 case "$host_cpu" in
14463 hardcode_into_libs=yes
14464 dynamic_linker="$host_os dld.so"
14465 shlibpath_var=LD_LIBRARY_PATH
14466 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14468 soname_spec='${libname}${release}${shared_ext}$major'
14469 if test "X$HPUX_IA64_MODE" = X32; then
14470 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14472 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14474 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14478 hardcode_into_libs=yes
14479 dynamic_linker="$host_os dld.sl"
14480 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14481 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14483 soname_spec='${libname}${release}${shared_ext}$major'
14484 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14485 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14489 dynamic_linker="$host_os dld.sl"
14490 shlibpath_var=SHLIB_PATH
14491 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14493 soname_spec='${libname}${release}${shared_ext}$major'
14496 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14497 postinstall_cmds='chmod 555 $lib'
14500 irix5* | irix6* | nonstopux*)
14502 nonstopux*) version_type=nonstopux ;;
14504 if test "$lt_cv_prog_gnu_ld" = yes; then
14512 soname_spec='${libname}${release}${shared_ext}$major'
14513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14515 irix5* | nonstopux*)
14516 libsuff= shlibsuff=
14519 case $LD in # libtool.m4 will add one of these switches to LD
14520 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14521 libsuff= shlibsuff= libmagic=32-bit;;
14522 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14523 libsuff=32 shlibsuff=N32 libmagic=N32;;
14524 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14525 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14526 *) libsuff= shlibsuff= libmagic=never-match;;
14530 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14531 shlibpath_overrides_runpath=no
14532 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14533 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14534 hardcode_into_libs=yes
14537 # No shared lib support for Linux oldld, aout, or coff.
14538 linux*oldld* | linux*aout* | linux*coff*)
14542 # This must be Linux ELF.
14547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14548 soname_spec='${libname}${release}${shared_ext}$major'
14549 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14550 shlibpath_var=LD_LIBRARY_PATH
14551 shlibpath_overrides_runpath=no
14552 # This implies no fast_install, which is unacceptable.
14553 # Some rework will be needed to allow for fast_install
14554 # before this can be enabled.
14555 hardcode_into_libs=yes
14557 # We used to test for /lib/ld.so.1 and disable shared libraries on
14558 # powerpc, because MkLinux only supported shared libraries with the
14559 # GNU dynamic linker. Since this was broken with cross compilers,
14560 # most powerpc-linux boxes support dynamic linking these days and
14561 # people can always --disable-shared, the test was removed, and we
14562 # assume the GNU/Linux dynamic linker is in use.
14563 dynamic_linker='GNU/Linux ld.so'
14565 # Find out which ABI we are using (multilib Linux x86_64 hack).
14567 case "$host_cpu" in
14569 echo '#line 14569 "configure"' > conftest.$ac_ext
14570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14571 (eval $ac_compile) 2>&5
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); }; then
14575 case `/usr/bin/file conftest.$ac_objext` in
14586 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
14587 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14594 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14596 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14597 dynamic_linker='NetBSD (a.out) ld.so'
14599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14600 soname_spec='${libname}${release}${shared_ext}$major'
14601 dynamic_linker='NetBSD ld.elf_so'
14603 shlibpath_var=LD_LIBRARY_PATH
14604 shlibpath_overrides_runpath=yes
14605 hardcode_into_libs=yes
14610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14611 shlibpath_var=LD_LIBRARY_PATH
14612 shlibpath_overrides_runpath=yes
14619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14620 soname_spec='${libname}${release}${shared_ext}$major'
14621 shlibpath_var=LD_LIBRARY_PATH
14622 shlibpath_overrides_runpath=yes
14629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14630 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14631 shlibpath_var=LD_LIBRARY_PATH
14632 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14634 openbsd2.[89] | openbsd2.[89].*)
14635 shlibpath_overrides_runpath=no
14638 shlibpath_overrides_runpath=yes
14642 shlibpath_overrides_runpath=yes
14647 libname_spec='$name'
14650 library_names_spec='$libname${shared_ext} $libname.a'
14651 dynamic_linker='OS/2 ld.exe'
14652 shlibpath_var=LIBPATH
14655 osf3* | osf4* | osf5*)
14659 soname_spec='${libname}${release}${shared_ext}$major'
14660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14661 shlibpath_var=LD_LIBRARY_PATH
14662 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14663 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14668 soname_spec='${libname}${release}${shared_ext}$major'
14669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14670 shlibpath_var=LD_LIBRARY_PATH
14677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14678 soname_spec='${libname}${release}${shared_ext}$major'
14679 shlibpath_var=LD_LIBRARY_PATH
14680 shlibpath_overrides_runpath=yes
14681 hardcode_into_libs=yes
14682 # ldd complains unless libraries are executable
14683 postinstall_cmds='chmod +x $lib'
14688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14689 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14690 shlibpath_var=LD_LIBRARY_PATH
14691 shlibpath_overrides_runpath=yes
14692 if test "$with_gnu_ld" = yes; then
14698 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14701 soname_spec='${libname}${release}${shared_ext}$major'
14702 shlibpath_var=LD_LIBRARY_PATH
14703 case $host_vendor in
14705 shlibpath_overrides_runpath=no
14707 export_dynamic_flag_spec='${wl}-Blargedynsym'
14708 runpath_var=LD_RUN_PATH
14716 shlibpath_overrides_runpath=no
14717 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14723 if test -d /usr/nec ;then
14725 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14726 soname_spec='$libname${shared_ext}.$major'
14727 shlibpath_var=LD_LIBRARY_PATH
14733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14734 soname_spec='${libname}${release}${shared_ext}$major'
14735 shlibpath_var=LD_LIBRARY_PATH
14742 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14743 echo "${ECHO_T}$dynamic_linker" >&6
14744 test "$dynamic_linker" = no && can_build_shared=no
14747 # The else clause should only fire when bootstrapping the
14748 # libtool distribution, otherwise you forgot to ship ltmain.sh
14749 # with your package, and you will get complaints that there are
14750 # no rules to generate ltmain.sh.
14751 if test -f "$ltmain"; then
14752 # See if we are running on zsh, and set the options which allow our commands through
14753 # without removal of \ escapes.
14754 if test -n "${ZSH_VERSION+set}" ; then
14755 setopt NO_GLOB_SUBST
14757 # Now quote all the things that may contain metacharacters while being
14758 # careful not to overquote the AC_SUBSTed values. We take copies of the
14759 # variables and quote the copies for generation of the libtool script.
14760 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14761 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14762 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14763 deplibs_check_method reload_flag reload_cmds need_locks \
14764 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14765 lt_cv_sys_global_symbol_to_c_name_address \
14766 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14767 old_postinstall_cmds old_postuninstall_cmds \
14771 lt_prog_compiler_wl_F77 \
14772 lt_prog_compiler_pic_F77 \
14773 lt_prog_compiler_static_F77 \
14774 lt_prog_compiler_no_builtin_flag_F77 \
14775 export_dynamic_flag_spec_F77 \
14776 thread_safe_flag_spec_F77 \
14777 whole_archive_flag_spec_F77 \
14778 enable_shared_with_static_runtimes_F77 \
14779 old_archive_cmds_F77 \
14780 old_archive_from_new_cmds_F77 \
14781 predep_objects_F77 \
14782 postdep_objects_F77 \
14785 compiler_lib_search_path_F77 \
14787 archive_expsym_cmds_F77 \
14788 postinstall_cmds_F77 \
14789 postuninstall_cmds_F77 \
14790 old_archive_from_expsyms_cmds_F77 \
14791 allow_undefined_flag_F77 \
14792 no_undefined_flag_F77 \
14793 export_symbols_cmds_F77 \
14794 hardcode_libdir_flag_spec_F77 \
14795 hardcode_libdir_flag_spec_ld_F77 \
14796 hardcode_libdir_separator_F77 \
14797 hardcode_automatic_F77 \
14799 module_expsym_cmds_F77 \
14800 lt_cv_prog_compiler_c_o_F77 \
14801 exclude_expsyms_F77 \
14802 include_expsyms_F77; do
14805 old_archive_cmds_F77 | \
14806 old_archive_from_new_cmds_F77 | \
14807 archive_cmds_F77 | \
14808 archive_expsym_cmds_F77 | \
14809 module_cmds_F77 | \
14810 module_expsym_cmds_F77 | \
14811 old_archive_from_expsyms_cmds_F77 | \
14812 export_symbols_cmds_F77 | \
14813 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14814 postinstall_cmds | postuninstall_cmds | \
14815 old_postinstall_cmds | old_postuninstall_cmds | \
14816 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14817 # Double-quote double-evaled strings.
14818 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14821 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14827 *'\$0 --fallback-echo"')
14828 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14834 cat <<__EOF__ >> "$cfgfile"
14835 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14837 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14839 # Shell to use when invoking shell scripts.
14842 # Whether or not to build shared libraries.
14843 build_libtool_libs=$enable_shared
14845 # Whether or not to build static libraries.
14846 build_old_libs=$enable_static
14848 # Whether or not to add -lc for building shared libraries.
14849 build_libtool_need_lc=$archive_cmds_need_lc_F77
14851 # Whether or not to disallow shared libs when runtime libs are static
14852 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14854 # Whether or not to optimize for fast installation.
14855 fast_install=$enable_fast_install
14858 host_alias=$host_alias
14861 # An echo program that does not interpret backslashes.
14866 AR_FLAGS=$lt_AR_FLAGS
14871 # A language-specific compiler.
14872 CC=$lt_compiler_F77
14874 # Is the compiler the GNU C compiler?
14880 # The linker used to build libraries.
14883 # Whether we need hard or soft links.
14886 # A BSD-compatible nm program.
14889 # A symbol stripping program
14892 # Used to examine libraries when file_magic_cmd begins "file"
14893 MAGIC_CMD=$MAGIC_CMD
14895 # Used on cygwin: DLL creation program.
14898 # Used on cygwin: object dumper.
14901 # Used on cygwin: assembler.
14904 # The name of the directory that contains temporary libtool files.
14907 # How to create reloadable object files.
14908 reload_flag=$lt_reload_flag
14909 reload_cmds=$lt_reload_cmds
14911 # How to pass a linker flag through the compiler.
14912 wl=$lt_lt_prog_compiler_wl_F77
14914 # Object file suffix (normally "o").
14915 objext="$ac_objext"
14917 # Old archive suffix (normally "a").
14920 # Shared library suffix (normally ".so").
14923 # Executable file suffix (normally "").
14926 # Additional compiler flags for building library objects.
14927 pic_flag=$lt_lt_prog_compiler_pic_F77
14930 # What is the maximum length of a command?
14931 max_cmd_len=$lt_cv_sys_max_cmd_len
14933 # Does compiler simultaneously support -c and -o options?
14934 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14936 # Must we lock files when doing compilation ?
14937 need_locks=$lt_need_locks
14939 # Do we need the lib prefix for modules?
14940 need_lib_prefix=$need_lib_prefix
14942 # Do we need a version for libraries?
14943 need_version=$need_version
14945 # Whether dlopen is supported.
14946 dlopen_support=$enable_dlopen
14948 # Whether dlopen of programs is supported.
14949 dlopen_self=$enable_dlopen_self
14951 # Whether dlopen of statically linked programs is supported.
14952 dlopen_self_static=$enable_dlopen_self_static
14954 # Compiler flag to prevent dynamic linking.
14955 link_static_flag=$lt_lt_prog_compiler_static_F77
14957 # Compiler flag to turn off builtin functions.
14958 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14960 # Compiler flag to allow reflexive dlopens.
14961 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14963 # Compiler flag to generate shared objects directly from archives.
14964 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14966 # Compiler flag to generate thread-safe objects.
14967 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14969 # Library versioning type.
14970 version_type=$version_type
14972 # Format of library name prefix.
14973 libname_spec=$lt_libname_spec
14975 # List of archive names. First name is the real one, the rest are links.
14976 # The last name is the one that the linker finds with -lNAME.
14977 library_names_spec=$lt_library_names_spec
14979 # The coded name of the library, if different from the real name.
14980 soname_spec=$lt_soname_spec
14982 # Commands used to build and install an old-style archive.
14984 old_archive_cmds=$lt_old_archive_cmds_F77
14985 old_postinstall_cmds=$lt_old_postinstall_cmds
14986 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14988 # Create an old-style archive from a shared archive.
14989 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14991 # Create a temporary old-style archive to link instead of a shared archive.
14992 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14994 # Commands used to build and install a shared archive.
14995 archive_cmds=$lt_archive_cmds_F77
14996 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14997 postinstall_cmds=$lt_postinstall_cmds
14998 postuninstall_cmds=$lt_postuninstall_cmds
15000 # Commands used to build a loadable module (assumed same as above if empty)
15001 module_cmds=$lt_module_cmds_F77
15002 module_expsym_cmds=$lt_module_expsym_cmds_F77
15004 # Commands to strip libraries.
15005 old_striplib=$lt_old_striplib
15006 striplib=$lt_striplib
15008 # Dependencies to place before the objects being linked to create a
15010 predep_objects=$lt_predep_objects_F77
15012 # Dependencies to place after the objects being linked to create a
15014 postdep_objects=$lt_postdep_objects_F77
15016 # Dependencies to place before the objects being linked to create a
15018 predeps=$lt_predeps_F77
15020 # Dependencies to place after the objects being linked to create a
15022 postdeps=$lt_postdeps_F77
15024 # The library search path used internally by the compiler when linking
15025 # a shared library.
15026 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15028 # Method to check whether dependent libraries are shared objects.
15029 deplibs_check_method=$lt_deplibs_check_method
15031 # Command to use when deplibs_check_method == file_magic.
15032 file_magic_cmd=$lt_file_magic_cmd
15034 # Flag that allows shared libraries with undefined symbols to be built.
15035 allow_undefined_flag=$lt_allow_undefined_flag_F77
15037 # Flag that forces no undefined symbols.
15038 no_undefined_flag=$lt_no_undefined_flag_F77
15040 # Commands used to finish a libtool library installation in a directory.
15041 finish_cmds=$lt_finish_cmds
15043 # Same as above, but a single script fragment to be evaled but not shown.
15044 finish_eval=$lt_finish_eval
15046 # Take the output of nm and produce a listing of raw symbols and C names.
15047 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15049 # Transform the output of nm in a proper C declaration
15050 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15052 # Transform the output of nm in a C name address pair
15053 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15055 # This is the shared library runtime path variable.
15056 runpath_var=$runpath_var
15058 # This is the shared library path variable.
15059 shlibpath_var=$shlibpath_var
15061 # Is shlibpath searched before the hard-coded library search path?
15062 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15064 # How to hardcode a shared library path into an executable.
15065 hardcode_action=$hardcode_action_F77
15067 # Whether we should hardcode library paths into libraries.
15068 hardcode_into_libs=$hardcode_into_libs
15070 # Flag to hardcode \$libdir into a binary during linking.
15071 # This must work even if \$libdir does not exist.
15072 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15074 # If ld is used when linking, flag to hardcode \$libdir into
15075 # a binary during linking. This must work even if \$libdir does
15077 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15079 # Whether we need a single -rpath flag with a separated argument.
15080 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15082 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15083 # resulting binary.
15084 hardcode_direct=$hardcode_direct_F77
15086 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15087 # resulting binary.
15088 hardcode_minus_L=$hardcode_minus_L_F77
15090 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15091 # the resulting binary.
15092 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15094 # Set to yes if building a shared library automatically hardcodes DIR into the library
15095 # and all subsequent libraries and executables linked against it.
15096 hardcode_automatic=$hardcode_automatic_F77
15098 # Variables whose values should be saved in libtool wrapper scripts and
15099 # restored at relink time.
15100 variables_saved_for_relink="$variables_saved_for_relink"
15102 # Whether libtool must link a program against all its dependency libraries.
15103 link_all_deplibs=$link_all_deplibs_F77
15105 # Compile-time system search path for libraries
15106 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15108 # Run-time system search path for libraries
15109 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15111 # Fix the shell variable \$srcfile for the compiler.
15112 fix_srcfile_path="$fix_srcfile_path_F77"
15114 # Set to yes if exported symbols are required.
15115 always_export_symbols=$always_export_symbols_F77
15117 # The commands to list exported symbols.
15118 export_symbols_cmds=$lt_export_symbols_cmds_F77
15120 # The commands to extract the exported symbol list from a shared archive.
15121 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15123 # Symbols that should not be listed in the preloaded symbols.
15124 exclude_expsyms=$lt_exclude_expsyms_F77
15126 # Symbols that must always be exported.
15127 include_expsyms=$lt_include_expsyms_F77
15129 # ### END LIBTOOL TAG CONFIG: $tagname
15135 # If there is no Makefile yet, we rely on a make rule to execute
15136 # `config.status --recheck' to rerun these tests and create the
15137 # libtool script then.
15138 test -f Makefile && make "$ltmain"
15143 ac_cpp='$CPP $CPPFLAGS'
15144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15156 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15160 # Source file extension for Java test sources.
15163 # Object file extension for compiled Java test sources.
15167 # Code to be used in simple compile tests
15168 lt_simple_compile_test_code="class foo {}\n"
15170 # Code to be used in simple link tests
15171 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15173 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15175 # If no C compiler was specified, use CC.
15178 # Allow CC to be a program name with arguments.
15182 # Allow CC to be a program name with arguments.
15188 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15189 archive_cmds_need_lc_GCJ=no
15192 lt_prog_compiler_no_builtin_flag_GCJ=
15194 if test "$GCC" = yes; then
15195 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15197 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15198 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15199 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15200 echo $ECHO_N "(cached) $ECHO_C" >&6
15202 lt_cv_prog_compiler_rtti_exceptions=no
15203 ac_outfile=conftest.$ac_objext
15204 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15205 lt_compiler_flag="-fno-rtti -fno-exceptions"
15206 # Insert the option either (1) after the last *FLAGS variable, or
15207 # (2) before a word containing "conftest.", or (3) at the end.
15208 # Note that $ac_compile itself does not contain backslashes and begins
15209 # with a dollar sign (not a hyphen), so the echo should work correctly.
15210 # The option is referenced via a variable to avoid confusing sed.
15211 lt_compile=`echo "$ac_compile" | $SED \
15212 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15213 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15214 -e 's:$: $lt_compiler_flag:'`
15215 (eval echo "\"\$as_me:15215: $lt_compile\"" >&5)
15216 (eval "$lt_compile" 2>conftest.err)
15218 cat conftest.err >&5
15219 echo "$as_me:15219: \$? = $ac_status" >&5
15220 if (exit $ac_status) && test -s "$ac_outfile"; then
15221 # The compiler can only warn and ignore the option if not recognized
15222 # So say no if there are warnings
15223 if test ! -s conftest.err; then
15224 lt_cv_prog_compiler_rtti_exceptions=yes
15230 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15231 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15233 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15234 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15241 lt_prog_compiler_wl_GCJ=
15242 lt_prog_compiler_pic_GCJ=
15243 lt_prog_compiler_static_GCJ=
15245 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15246 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15248 if test "$GCC" = yes; then
15249 lt_prog_compiler_wl_GCJ='-Wl,'
15250 lt_prog_compiler_static_GCJ='-static'
15254 # All AIX code is PIC.
15255 if test "$host_cpu" = ia64; then
15256 # AIX 5 now supports IA64 processor
15257 lt_prog_compiler_static_GCJ='-Bstatic'
15262 # FIXME: we need at least 68020 code to build shared libraries, but
15263 # adding the `-m68020' flag to GCC prevents building anything better,
15265 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15268 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15269 # PIC is the default for these OSes.
15272 mingw* | pw32* | os2*)
15273 # This hack is so that the source file can tell whether it is being
15274 # built for inclusion in a dll (and should export symbols for example).
15275 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15278 darwin* | rhapsody*)
15279 # PIC is the default on this platform
15280 # Common symbols not allowed in MH_DYLIB files
15281 lt_prog_compiler_pic_GCJ='-fno-common'
15285 # Just because we use GCC doesn't mean we suddenly get shared libraries
15286 # on systems that don't support them.
15287 lt_prog_compiler_can_build_shared_GCJ=no
15292 if test -d /usr/nec; then
15293 lt_prog_compiler_pic_GCJ=-Kconform_pic
15298 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15299 # not for PA HP-UX.
15300 case "$host_cpu" in
15305 lt_prog_compiler_pic_GCJ='-fPIC'
15311 lt_prog_compiler_pic_GCJ='-fPIC'
15315 # PORTME Check for flag to pass linker flags through the system compiler.
15318 lt_prog_compiler_wl_GCJ='-Wl,'
15319 if test "$host_cpu" = ia64; then
15320 # AIX 5 now supports IA64 processor
15321 lt_prog_compiler_static_GCJ='-Bstatic'
15323 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15327 mingw* | pw32* | os2*)
15328 # This hack is so that the source file can tell whether it is being
15329 # built for inclusion in a dll (and should export symbols for example).
15330 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15333 hpux9* | hpux10* | hpux11*)
15334 lt_prog_compiler_wl_GCJ='-Wl,'
15335 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15336 # not for PA HP-UX.
15337 case "$host_cpu" in
15342 lt_prog_compiler_pic_GCJ='+Z'
15345 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15346 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15349 irix5* | irix6* | nonstopux*)
15350 lt_prog_compiler_wl_GCJ='-Wl,'
15351 # PIC (with -KPIC) is the default.
15352 lt_prog_compiler_static_GCJ='-non_shared'
15356 lt_prog_compiler_pic_GCJ='-KPIC'
15357 lt_prog_compiler_static_GCJ='-Bstatic'
15363 lt_prog_compiler_wl_GCJ='-Wl,'
15364 lt_prog_compiler_pic_GCJ='-KPIC'
15365 lt_prog_compiler_static_GCJ='-static'
15368 lt_prog_compiler_wl_GCJ='-Wl,'
15369 # All Alpha code is PIC.
15370 lt_prog_compiler_static_GCJ='-non_shared'
15375 osf3* | osf4* | osf5*)
15376 lt_prog_compiler_wl_GCJ='-Wl,'
15377 # All OSF/1 code is PIC.
15378 lt_prog_compiler_static_GCJ='-non_shared'
15382 lt_prog_compiler_pic_GCJ='-Kpic'
15383 lt_prog_compiler_static_GCJ='-dn'
15387 lt_prog_compiler_wl_GCJ='-Wl,'
15388 lt_prog_compiler_pic_GCJ='-KPIC'
15389 lt_prog_compiler_static_GCJ='-Bstatic'
15393 lt_prog_compiler_wl_GCJ='-Qoption ld '
15394 lt_prog_compiler_pic_GCJ='-PIC'
15395 lt_prog_compiler_static_GCJ='-Bstatic'
15398 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15399 lt_prog_compiler_wl_GCJ='-Wl,'
15400 lt_prog_compiler_pic_GCJ='-KPIC'
15401 lt_prog_compiler_static_GCJ='-Bstatic'
15405 if test -d /usr/nec ;then
15406 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15407 lt_prog_compiler_static_GCJ='-Bstatic'
15412 lt_prog_compiler_pic_GCJ='-pic'
15413 lt_prog_compiler_static_GCJ='-Bstatic'
15417 lt_prog_compiler_can_build_shared_GCJ=no
15422 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15423 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15426 # Check to make sure the PIC flag actually works.
15428 if test -n "$lt_prog_compiler_pic_GCJ"; then
15429 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15430 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15431 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15432 echo $ECHO_N "(cached) $ECHO_C" >&6
15434 lt_prog_compiler_pic_works_GCJ=no
15435 ac_outfile=conftest.$ac_objext
15436 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15437 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15438 # Insert the option either (1) after the last *FLAGS variable, or
15439 # (2) before a word containing "conftest.", or (3) at the end.
15440 # Note that $ac_compile itself does not contain backslashes and begins
15441 # with a dollar sign (not a hyphen), so the echo should work correctly.
15442 # The option is referenced via a variable to avoid confusing sed.
15443 lt_compile=`echo "$ac_compile" | $SED \
15444 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15445 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15446 -e 's:$: $lt_compiler_flag:'`
15447 (eval echo "\"\$as_me:15447: $lt_compile\"" >&5)
15448 (eval "$lt_compile" 2>conftest.err)
15450 cat conftest.err >&5
15451 echo "$as_me:15451: \$? = $ac_status" >&5
15452 if (exit $ac_status) && test -s "$ac_outfile"; then
15453 # The compiler can only warn and ignore the option if not recognized
15454 # So say no if there are warnings
15455 if test ! -s conftest.err; then
15456 lt_prog_compiler_pic_works_GCJ=yes
15462 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15463 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15465 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15466 case $lt_prog_compiler_pic_GCJ in
15468 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15471 lt_prog_compiler_pic_GCJ=
15472 lt_prog_compiler_can_build_shared_GCJ=no
15477 # For platforms which do not support PIC, -DPIC is meaningless:
15479 lt_prog_compiler_pic_GCJ=
15482 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15486 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15487 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15488 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15489 echo $ECHO_N "(cached) $ECHO_C" >&6
15491 lt_cv_prog_compiler_c_o_GCJ=no
15492 $rm -r conftest 2>/dev/null
15496 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15498 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15499 # that will create temporary files in the current directory regardless of
15500 # the output directory. Thus, making CWD read-only will cause this test
15501 # to fail, enabling locking or at least warning the user not to do parallel
15505 lt_compiler_flag="-o out/conftest2.$ac_objext"
15506 # Insert the option either (1) after the last *FLAGS variable, or
15507 # (2) before a word containing "conftest.", or (3) at the end.
15508 # Note that $ac_compile itself does not contain backslashes and begins
15509 # with a dollar sign (not a hyphen), so the echo should work correctly.
15510 lt_compile=`echo "$ac_compile" | $SED \
15511 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15512 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15513 -e 's:$: $lt_compiler_flag:'`
15514 (eval echo "\"\$as_me:15514: $lt_compile\"" >&5)
15515 (eval "$lt_compile" 2>out/conftest.err)
15517 cat out/conftest.err >&5
15518 echo "$as_me:15518: \$? = $ac_status" >&5
15519 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15521 # The compiler can only warn and ignore the option if not recognized
15522 # So say no if there are warnings
15523 if test ! -s out/conftest.err; then
15524 lt_cv_prog_compiler_c_o_GCJ=yes
15528 $rm conftest* out/*
15535 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15536 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15539 hard_links="nottested"
15540 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15541 # do not overwrite the value of need_locks provided by the user
15542 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15543 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15546 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15548 ln conftest.a conftest.b 2>&5 || hard_links=no
15549 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15550 echo "$as_me:$LINENO: result: $hard_links" >&5
15551 echo "${ECHO_T}$hard_links" >&6
15552 if test "$hard_links" = no; then
15553 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15554 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15561 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15562 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15565 allow_undefined_flag_GCJ=
15566 enable_shared_with_static_runtimes_GCJ=no
15568 archive_expsym_cmds_GCJ=
15569 old_archive_From_new_cmds_GCJ=
15570 old_archive_from_expsyms_cmds_GCJ=
15571 export_dynamic_flag_spec_GCJ=
15572 whole_archive_flag_spec_GCJ=
15573 thread_safe_flag_spec_GCJ=
15574 hardcode_libdir_flag_spec_GCJ=
15575 hardcode_libdir_flag_spec_ld_GCJ=
15576 hardcode_libdir_separator_GCJ=
15577 hardcode_direct_GCJ=no
15578 hardcode_minus_L_GCJ=no
15579 hardcode_shlibpath_var_GCJ=unsupported
15580 link_all_deplibs_GCJ=unknown
15581 hardcode_automatic_GCJ=no
15583 module_expsym_cmds_GCJ=
15584 always_export_symbols_GCJ=no
15585 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15586 # include_expsyms should be a list of space-separated symbols to be *always*
15587 # included in the symbol list
15588 include_expsyms_GCJ=
15589 # exclude_expsyms can be an extended regexp of symbols to exclude
15590 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15591 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15592 # as well as any symbol that contains `d'.
15593 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15594 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15595 # platforms (ab)use it in PIC code, but their linkers get confused if
15596 # the symbol is explicitly referenced. Since portable code cannot
15597 # rely on this symbol name, it's probably fine to never include it in
15598 # preloaded symbol tables.
15599 extract_expsyms_cmds=
15602 cygwin* | mingw* | pw32*)
15603 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15604 # When not using gcc, we currently assume that we are using
15605 # Microsoft Visual C++.
15606 if test "$GCC" != yes; then
15616 if test "$with_gnu_ld" = yes; then
15617 # If archive_cmds runs LD, not CC, wlarc should be empty
15620 # See if GNU ld supports shared libraries.
15622 aix3* | aix4* | aix5*)
15623 # On AIX/PPC, the GNU linker is very broken
15624 if test "$host_cpu" != ia64; then
15628 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15629 *** to be unable to reliably create shared libraries on AIX.
15630 *** Therefore, libtool is disabling shared libraries support. If you
15631 *** really care for shared libraries, you may want to modify your PATH
15632 *** so that a non-GNU linker is found, and then restart.
15639 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)'
15640 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15641 hardcode_minus_L_GCJ=yes
15643 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15644 # that the semantics of dynamic libraries on AmigaOS, at least up
15645 # to version 4, is to share data among multiple programs linked
15646 # with the same dynamic library. Since this doesn't match the
15647 # behavior of shared libraries on other platforms, we can't use
15653 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15654 allow_undefined_flag_GCJ=unsupported
15655 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15656 # support --undefined. This deserves some investigation. FIXME
15657 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15663 cygwin* | mingw* | pw32*)
15664 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15665 # as there is no search path for DLLs.
15666 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15667 allow_undefined_flag_GCJ=unsupported
15668 always_export_symbols_GCJ=no
15669 enable_shared_with_static_runtimes_GCJ=yes
15670 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15672 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15673 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15674 # If the export-symbols file already is a .def file (1st line
15675 # is EXPORTS), use it as is; otherwise, prepend...
15676 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15677 cp $export_symbols $output_objdir/$soname.def;
15679 echo EXPORTS > $output_objdir/$soname.def;
15680 cat $export_symbols >> $output_objdir/$soname.def;
15682 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15689 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15690 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15693 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15694 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15699 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15703 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15704 *** create shared libraries on Solaris systems. Therefore, libtool
15705 *** is disabling shared libraries support. We urge you to upgrade GNU
15706 *** binutils to release 2.9.1 or newer. Another option is to modify
15707 *** your PATH or compiler configuration so that the native linker is
15708 *** used, and then restart.
15711 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15712 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15713 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15720 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15722 hardcode_direct_GCJ=yes
15723 hardcode_shlibpath_var_GCJ=no
15727 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15728 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15729 archive_cmds_GCJ="$tmp_archive_cmds"
15730 supports_anon_versioning=no
15731 case `$LD -v 2>/dev/null` in
15732 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15733 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15734 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15735 *\ 2.11.*) ;; # other 2.11 versions
15736 *) supports_anon_versioning=yes ;;
15738 if test $supports_anon_versioning = yes; then
15739 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15740 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15741 $echo "local: *; };" >> $output_objdir/$libname.ver~
15742 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15744 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15752 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15753 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15754 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15761 if test "$ld_shlibs_GCJ" = yes; then
15762 runpath_var=LD_RUN_PATH
15763 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15764 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15765 # ancient GNU ld didn't support --whole-archive et. al.
15766 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15767 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15769 whole_archive_flag_spec_GCJ=
15773 # PORTME fill in a description of your system's linker (not GNU ld)
15776 allow_undefined_flag_GCJ=unsupported
15777 always_export_symbols_GCJ=yes
15778 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'
15779 # Note: this linker hardcodes the directories in LIBPATH if there
15780 # are no directories specified by -L.
15781 hardcode_minus_L_GCJ=yes
15782 if test "$GCC" = yes && test -z "$link_static_flag"; then
15783 # Neither direct hardcoding nor static linking is supported with a
15785 hardcode_direct_GCJ=unsupported
15790 if test "$host_cpu" = ia64; then
15791 # On IA64, the linker does run time linking by default, so we don't
15792 # have to do anything special.
15793 aix_use_runtimelinking=no
15794 exp_sym_flag='-Bexport'
15797 # If we're using GNU nm, then we don't want the "-C" option.
15798 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15799 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15800 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'
15802 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'
15804 aix_use_runtimelinking=no
15806 # Test if we are trying to use run time linking or normal
15807 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15808 # need to do runtime linking.
15809 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15810 for ld_flag in $LDFLAGS; do
15811 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15812 aix_use_runtimelinking=yes
15818 exp_sym_flag='-bexport'
15819 no_entry_flag='-bnoentry'
15822 # When large executables or shared objects are built, AIX ld can
15823 # have problems creating the table of contents. If linking a library
15824 # or program results in "error TOC overflow" add -mminimal-toc to
15825 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15826 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15828 archive_cmds_GCJ=''
15829 hardcode_direct_GCJ=yes
15830 hardcode_libdir_separator_GCJ=':'
15831 link_all_deplibs_GCJ=yes
15833 if test "$GCC" = yes; then
15834 case $host_os in aix4.012|aix4.012.*)
15835 # We only want to do this on AIX 4.2 and lower, the check
15836 # below for broken collect2 doesn't work under 4.3+
15837 collect2name=`${CC} -print-prog-name=collect2`
15838 if test -f "$collect2name" && \
15839 strings "$collect2name" | grep resolve_lib_name >/dev/null
15841 # We have reworked collect2
15842 hardcode_direct_GCJ=yes
15844 # We have old collect2
15845 hardcode_direct_GCJ=unsupported
15846 # It fails to find uninstalled libraries when the uninstalled
15847 # path is not listed in the libpath. Setting hardcode_minus_L
15848 # to unsupported forces relinking
15849 hardcode_minus_L_GCJ=yes
15850 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15851 hardcode_libdir_separator_GCJ=
15854 shared_flag='-shared'
15857 if test "$host_cpu" = ia64; then
15858 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15859 # chokes on -Wl,-G. The following line is correct:
15862 if test "$aix_use_runtimelinking" = yes; then
15863 shared_flag='${wl}-G'
15865 shared_flag='${wl}-bM:SRE'
15870 # It seems that -bexpall does not export symbols beginning with
15871 # underscore (_), so it is better to generate a list of symbols to export.
15872 always_export_symbols_GCJ=yes
15873 if test "$aix_use_runtimelinking" = yes; then
15874 # Warning - without using the other runtime loading flags (-brtl),
15875 # -berok will link without error, but may produce a broken library.
15876 allow_undefined_flag_GCJ='-berok'
15877 # Determine the default libpath from the value encoded in an empty executable.
15878 cat >conftest.$ac_ext <<_ACEOF
15879 #line $LINENO "configure"
15882 cat confdefs.h >>conftest.$ac_ext
15883 cat >>conftest.$ac_ext <<_ACEOF
15884 /* end confdefs.h. */
15894 rm -f conftest.$ac_objext conftest$ac_exeext
15895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15896 (eval $ac_link) 2>&5
15898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899 (exit $ac_status); } &&
15900 { ac_try='test -s conftest$ac_exeext'
15901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15902 (eval $ac_try) 2>&5
15904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905 (exit $ac_status); }; }; then
15907 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15909 # Check for a 64-bit object if we didn't find anything.
15910 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; }
15913 echo "$as_me: failed program was:" >&5
15914 sed 's/^/| /' conftest.$ac_ext >&5
15917 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15918 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15920 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15921 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15923 if test "$host_cpu" = ia64; then
15924 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15925 allow_undefined_flag_GCJ="-z nodefs"
15926 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15928 # Determine the default libpath from the value encoded in an empty executable.
15929 cat >conftest.$ac_ext <<_ACEOF
15930 #line $LINENO "configure"
15933 cat confdefs.h >>conftest.$ac_ext
15934 cat >>conftest.$ac_ext <<_ACEOF
15935 /* end confdefs.h. */
15945 rm -f conftest.$ac_objext conftest$ac_exeext
15946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15947 (eval $ac_link) 2>&5
15949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); } &&
15951 { ac_try='test -s conftest$ac_exeext'
15952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15953 (eval $ac_try) 2>&5
15955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956 (exit $ac_status); }; }; then
15958 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15960 # Check for a 64-bit object if we didn't find anything.
15961 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; }
15964 echo "$as_me: failed program was:" >&5
15965 sed 's/^/| /' conftest.$ac_ext >&5
15968 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15969 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15971 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15972 # Warning - without using the other run time loading flags,
15973 # -berok will link without error, but may produce a broken library.
15974 no_undefined_flag_GCJ=' ${wl}-bernotok'
15975 allow_undefined_flag_GCJ=' ${wl}-berok'
15976 # -bexpall does not export symbols beginning with underscore (_)
15977 always_export_symbols_GCJ=yes
15978 # Exported symbols can be pulled into shared objects from archives
15979 whole_archive_flag_spec_GCJ=' '
15980 archive_cmds_need_lc_GCJ=yes
15981 # This is similar to how AIX traditionally builds it's shared libraries.
15982 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15988 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)'
15989 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15990 hardcode_minus_L_GCJ=yes
15991 # see comment about different semantics on the GNU ld section
15996 export_dynamic_flag_spec_GCJ=-rdynamic
15999 cygwin* | mingw* | pw32*)
16000 # When not using gcc, we currently assume that we are using
16001 # Microsoft Visual C++.
16002 # hardcode_libdir_flag_spec is actually meaningless, as there is
16003 # no search path for DLLs.
16004 hardcode_libdir_flag_spec_GCJ=' '
16005 allow_undefined_flag_GCJ=unsupported
16006 # Tell ltmain to make .lib files, not .a files.
16008 # Tell ltmain to make .dll files, not .so files.
16010 # FIXME: Setting linknames here is a bad hack.
16011 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16012 # The linker will automatically build a .lib file if we build a DLL.
16013 old_archive_From_new_cmds_GCJ='true'
16014 # FIXME: Should let the user specify the lib program.
16015 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16016 fix_srcfile_path='`cygpath -w "$srcfile"`'
16017 enable_shared_with_static_runtimes_GCJ=yes
16020 darwin* | rhapsody*)
16021 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16022 archive_cmds_need_lc_GCJ=no
16024 rhapsody* | darwin1.[012])
16025 allow_undefined_flag_GCJ='-undefined suppress'
16028 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16031 # FIXME: Relying on posixy $() will cause problems for
16032 # cross-compilation, but unfortunately the echo tests do not
16033 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
16034 # `"' quotes if we put them in here... so don't!
16035 lt_int_apple_cc_single_mod=no
16036 output_verbose_link_cmd='echo'
16037 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16038 lt_int_apple_cc_single_mod=yes
16040 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16041 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16043 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
16045 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
16046 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16047 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16048 archive_expsym_cmds_GCJ='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}'
16050 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
16052 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16053 hardcode_direct_GCJ=no
16054 hardcode_automatic_GCJ=yes
16055 hardcode_shlibpath_var_GCJ=unsupported
16056 whole_archive_flag_spec_GCJ='-all_load $convenience'
16057 link_all_deplibs_GCJ=yes
16062 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16063 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16064 hardcode_shlibpath_var_GCJ=no
16071 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16072 # support. Future versions do this automatically, but an explicit c++rt0.o
16073 # does not break anything, and helps significantly (at the cost of a little
16076 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16077 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16078 hardcode_direct_GCJ=yes
16079 hardcode_shlibpath_var_GCJ=no
16082 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16084 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16085 hardcode_direct_GCJ=yes
16086 hardcode_minus_L_GCJ=yes
16087 hardcode_shlibpath_var_GCJ=no
16090 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16092 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16093 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16094 hardcode_direct_GCJ=yes
16095 hardcode_shlibpath_var_GCJ=no
16099 if test "$GCC" = yes; then
16100 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'
16102 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'
16104 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16105 hardcode_libdir_separator_GCJ=:
16106 hardcode_direct_GCJ=yes
16108 # hardcode_minus_L: Not really in the search PATH,
16109 # but as the default location of the library.
16110 hardcode_minus_L_GCJ=yes
16111 export_dynamic_flag_spec_GCJ='${wl}-E'
16115 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16116 case "$host_cpu" in
16118 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16121 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16125 case "$host_cpu" in
16127 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16130 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16134 if test "$with_gnu_ld" = no; then
16135 case "$host_cpu" in
16137 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16138 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16139 hardcode_libdir_separator_GCJ=:
16140 hardcode_direct_GCJ=no
16141 hardcode_shlibpath_var_GCJ=no
16144 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16145 hardcode_direct_GCJ=no
16146 hardcode_shlibpath_var_GCJ=no
16148 # hardcode_minus_L: Not really in the search PATH,
16149 # but as the default location of the library.
16150 hardcode_minus_L_GCJ=yes
16153 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16154 hardcode_libdir_separator_GCJ=:
16155 hardcode_direct_GCJ=yes
16156 export_dynamic_flag_spec_GCJ='${wl}-E'
16158 # hardcode_minus_L: Not really in the search PATH,
16159 # but as the default location of the library.
16160 hardcode_minus_L_GCJ=yes
16166 irix5* | irix6* | nonstopux*)
16167 if test "$GCC" = yes; then
16168 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'
16170 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'
16171 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16173 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16174 hardcode_libdir_separator_GCJ=:
16175 link_all_deplibs_GCJ=yes
16179 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16180 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16182 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16184 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16185 hardcode_direct_GCJ=yes
16186 hardcode_shlibpath_var_GCJ=no
16190 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16191 hardcode_direct_GCJ=yes
16192 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16193 hardcode_libdir_separator_GCJ=:
16194 hardcode_shlibpath_var_GCJ=no
16198 hardcode_direct_GCJ=yes
16199 hardcode_shlibpath_var_GCJ=no
16200 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16201 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16202 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16203 export_dynamic_flag_spec_GCJ='${wl}-E'
16206 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16207 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16208 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16211 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16212 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16219 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16220 hardcode_minus_L_GCJ=yes
16221 allow_undefined_flag_GCJ=unsupported
16222 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'
16223 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16227 if test "$GCC" = yes; then
16228 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16229 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'
16231 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16232 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'
16234 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16235 hardcode_libdir_separator_GCJ=:
16238 osf4* | osf5*) # as osf3* with the addition of -msym flag
16239 if test "$GCC" = yes; then
16240 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16241 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'
16242 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16244 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16245 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'
16246 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~
16247 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16249 # Both c and cxx compiler support -rpath directly
16250 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16252 hardcode_libdir_separator_GCJ=:
16256 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16257 hardcode_shlibpath_var_GCJ=no
16258 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16259 runpath_var=LD_RUN_PATH
16260 hardcode_runpath_var=yes
16264 no_undefined_flag_GCJ=' -z text'
16265 if test "$GCC" = yes; then
16266 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16267 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16268 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16270 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16271 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16272 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16274 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16275 hardcode_shlibpath_var_GCJ=no
16277 solaris2.[0-5] | solaris2.[0-5].*) ;;
16278 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16279 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16281 link_all_deplibs_GCJ=yes
16285 if test "x$host_vendor" = xsequent; then
16286 # Use $CC to link under sequent, because it throws in some extra .o
16287 # files that make .init and .fini sections work.
16288 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16290 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16292 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16293 hardcode_direct_GCJ=yes
16294 hardcode_minus_L_GCJ=yes
16295 hardcode_shlibpath_var_GCJ=no
16299 case $host_vendor in
16301 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16302 hardcode_direct_GCJ=yes # is this really true???
16305 ## LD is ld it makes a PLAMLIB
16306 ## CC just makes a GrossModule.
16307 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16308 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16309 hardcode_direct_GCJ=no
16312 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16313 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16316 runpath_var='LD_RUN_PATH'
16317 hardcode_shlibpath_var_GCJ=no
16321 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16322 hardcode_shlibpath_var_GCJ=no
16323 export_dynamic_flag_spec_GCJ='-Bexport'
16327 if test -d /usr/nec; then
16328 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16329 hardcode_shlibpath_var_GCJ=no
16330 runpath_var=LD_RUN_PATH
16331 hardcode_runpath_var=yes
16337 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16338 hardcode_direct_GCJ=yes
16339 hardcode_minus_L_GCJ=no
16340 hardcode_shlibpath_var_GCJ=no
16341 hardcode_runpath_var=yes
16342 runpath_var=LD_RUN_PATH
16345 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16346 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16347 if test "$GCC" = yes; then
16348 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16350 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16352 runpath_var='LD_RUN_PATH'
16353 hardcode_shlibpath_var_GCJ=no
16357 no_undefined_flag_GCJ=' -z text'
16358 # $CC -shared without GNU ld will not create a library from C++
16359 # object files and a static libstdc++, better avoid it by now
16360 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16361 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16362 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16363 hardcode_libdir_flag_spec_GCJ=
16364 hardcode_shlibpath_var_GCJ=no
16365 runpath_var='LD_RUN_PATH'
16369 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16370 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16371 hardcode_shlibpath_var_GCJ=no
16380 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16381 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16382 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16384 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16385 if test "$GCC" = yes; then
16386 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16390 # Do we need to explicitly link libc?
16392 case "x$archive_cmds_need_lc_GCJ" in
16394 # Assume -lc should be added
16395 archive_cmds_need_lc_GCJ=yes
16397 if test "$enable_shared" = yes && test "$GCC" = yes; then
16398 case $archive_cmds_GCJ in
16400 # FIXME: we may have to deal with multi-command sequences.
16403 # Test whether the compiler implicitly links with -lc since on some
16404 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16405 # to ld, don't add -lc before -lgcc.
16406 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16407 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16409 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16412 (eval $ac_compile) 2>&5
16414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415 (exit $ac_status); } 2>conftest.err; then
16418 libobjs=conftest.$ac_objext
16420 wl=$lt_prog_compiler_wl_GCJ
16426 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16427 allow_undefined_flag_GCJ=
16428 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16429 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432 (exit $ac_status); }
16434 archive_cmds_need_lc_GCJ=no
16436 archive_cmds_need_lc_GCJ=yes
16438 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16440 cat conftest.err 1>&5
16443 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16444 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16451 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16452 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16453 hardcode_action_GCJ=
16454 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16455 test -n "$runpath_var GCJ" || \
16456 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16458 # We can hardcode non-existant directories.
16459 if test "$hardcode_direct_GCJ" != no &&
16460 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16461 # have to relink, otherwise we might link with an installed library
16462 # when we should be linking with a yet-to-be-installed one
16463 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16464 test "$hardcode_minus_L_GCJ" != no; then
16465 # Linking always hardcodes the temporary library directory.
16466 hardcode_action_GCJ=relink
16468 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16469 hardcode_action_GCJ=immediate
16472 # We cannot hardcode anything, or else we can only hardcode existing
16474 hardcode_action_GCJ=unsupported
16476 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16477 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16479 if test "$hardcode_action_GCJ" = relink; then
16480 # Fast installation is not supported
16481 enable_fast_install=no
16482 elif test "$shlibpath_overrides_runpath" = yes ||
16483 test "$enable_shared" = no; then
16484 # Fast installation is not necessary
16485 enable_fast_install=needless
16490 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16491 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16492 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16493 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16494 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16495 echo "$as_me:$LINENO: result: yes" >&5
16496 echo "${ECHO_T}yes" >&6
16498 # FIXME - insert some real tests, host_os isn't really good enough
16501 if test -n "$STRIP" ; then
16502 striplib="$STRIP -x"
16503 echo "$as_me:$LINENO: result: yes" >&5
16504 echo "${ECHO_T}yes" >&6
16506 echo "$as_me:$LINENO: result: no" >&5
16507 echo "${ECHO_T}no" >&6
16511 echo "$as_me:$LINENO: result: no" >&5
16512 echo "${ECHO_T}no" >&6
16517 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16518 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16519 library_names_spec=
16520 libname_spec='lib$name'
16524 postuninstall_cmds=
16528 shlibpath_overrides_runpath=unknown
16530 dynamic_linker="$host_os ld.so"
16531 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16532 if test "$GCC" = yes; then
16533 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16534 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16535 # if the path contains ";" then we assume it to be the separator
16536 # otherwise default to the standard path separator (i.e. ":") - it is
16537 # assumed that no part of a normal pathname contains ";" but that should
16538 # okay in the real world where ";" in dirpaths is itself problematic.
16539 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16541 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16544 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16546 need_lib_prefix=unknown
16547 hardcode_into_libs=no
16549 # when you set need_version to no, make sure it does not cause -set_version
16550 # flags to be left without arguments
16551 need_version=unknown
16556 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16557 shlibpath_var=LIBPATH
16559 # AIX 3 has no versioning support, so we append a major version to the name.
16560 soname_spec='${libname}${release}${shared_ext}$major'
16567 hardcode_into_libs=yes
16568 if test "$host_cpu" = ia64; then
16569 # AIX 5 supports IA64
16570 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16571 shlibpath_var=LD_LIBRARY_PATH
16573 # With GCC up to 2.95.x, collect2 would create an import file
16574 # for dependence libraries. The import file would start with
16575 # the line `#! .'. This would cause the generated library to
16576 # depend on `.', always an invalid library. This was fixed in
16577 # development snapshots of GCC prior to 3.0.
16579 aix4 | aix4.[01] | aix4.[01].*)
16580 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16582 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16585 can_build_shared=no
16589 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16590 # soname into executable. Probably we can add versioning support to
16591 # collect2, so additional links can be useful in future.
16592 if test "$aix_use_runtimelinking" = yes; then
16593 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16594 # instead of lib<name>.a to let people know that these are not
16595 # typical AIX shared libraries.
16596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16598 # We preserve .a as extension for shared libraries through AIX4.2
16599 # and later when we are not doing run time linking.
16600 library_names_spec='${libname}${release}.a $libname.a'
16601 soname_spec='${libname}${release}${shared_ext}$major'
16603 shlibpath_var=LIBPATH
16608 library_names_spec='$libname.ixlibrary $libname.a'
16609 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16610 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'
16614 library_names_spec='${libname}${shared_ext}'
16615 dynamic_linker="$host_os ld.so"
16616 shlibpath_var=LIBRARY_PATH
16622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16623 soname_spec='${libname}${release}${shared_ext}$major'
16624 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16625 shlibpath_var=LD_LIBRARY_PATH
16626 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16627 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16628 # the default ld.so.conf also contains /usr/contrib/lib and
16629 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16630 # libtool to hard-code these into programs
16633 cygwin* | mingw* | pw32*)
16634 version_type=windows
16639 case $GCC,$host_os in
16640 yes,cygwin* | yes,mingw* | yes,pw32*)
16641 library_names_spec='$libname.dll.a'
16642 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16643 postinstall_cmds='base_file=`basename \${file}`~
16644 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16645 dldir=$destdir/`dirname \$dlpath`~
16646 test -d \$dldir || mkdir -p \$dldir~
16647 $install_prog $dir/$dlname \$dldir/$dlname'
16648 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16649 dlpath=$dir/\$dldll~
16651 shlibpath_overrides_runpath=yes
16655 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16656 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16657 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16660 # MinGW DLLs use traditional 'lib' prefix
16661 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16662 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16663 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16664 # It is most probably a Windows format PATH printed by
16665 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16666 # path with ; separators, and with drive letters. We can handle the
16667 # drive letters (cygwin fileutils understands them), so leave them,
16668 # especially as we might pass files found there to a mingw objdump,
16669 # which wouldn't understand a cygwinified path. Ahh.
16670 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16672 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16676 # pw32 DLLs use 'pw' prefix rather than 'lib'
16677 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16683 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16686 dynamic_linker='Win32 ld.exe'
16687 # FIXME: first we should search . and the directory the executable is in
16691 darwin* | rhapsody*)
16692 dynamic_linker="$host_os dyld"
16693 version_type=darwin
16696 # FIXME: Relying on posixy $() will cause problems for
16697 # cross-compilation, but unfortunately the echo tests do not
16698 # yet detect zsh echo's removal of \ escapes.
16699 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16700 soname_spec='${libname}${release}${major}$shared_ext'
16701 shlibpath_overrides_runpath=yes
16702 shlibpath_var=DYLD_LIBRARY_PATH
16703 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16704 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16705 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16706 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"`
16708 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16716 soname_spec='${libname}${release}${shared_ext}$major'
16717 shlibpath_var=LD_LIBRARY_PATH
16725 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16726 version_type=freebsd-$objformat
16727 case $version_type in
16729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16734 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16738 shlibpath_var=LD_LIBRARY_PATH
16741 shlibpath_overrides_runpath=yes
16743 freebsd3.01* | freebsdelf3.01*)
16744 shlibpath_overrides_runpath=yes
16745 hardcode_into_libs=yes
16748 shlibpath_overrides_runpath=no
16749 hardcode_into_libs=yes
16758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16759 soname_spec='${libname}${release}${shared_ext}$major'
16760 shlibpath_var=LD_LIBRARY_PATH
16761 hardcode_into_libs=yes
16764 hpux9* | hpux10* | hpux11*)
16765 # Give a soname corresponding to the major version so that dld.sl refuses to
16766 # link against other versions.
16770 case "$host_cpu" in
16773 hardcode_into_libs=yes
16774 dynamic_linker="$host_os dld.so"
16775 shlibpath_var=LD_LIBRARY_PATH
16776 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16778 soname_spec='${libname}${release}${shared_ext}$major'
16779 if test "X$HPUX_IA64_MODE" = X32; then
16780 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16782 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16784 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16788 hardcode_into_libs=yes
16789 dynamic_linker="$host_os dld.sl"
16790 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16791 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16793 soname_spec='${libname}${release}${shared_ext}$major'
16794 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16795 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16799 dynamic_linker="$host_os dld.sl"
16800 shlibpath_var=SHLIB_PATH
16801 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16803 soname_spec='${libname}${release}${shared_ext}$major'
16806 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16807 postinstall_cmds='chmod 555 $lib'
16810 irix5* | irix6* | nonstopux*)
16812 nonstopux*) version_type=nonstopux ;;
16814 if test "$lt_cv_prog_gnu_ld" = yes; then
16822 soname_spec='${libname}${release}${shared_ext}$major'
16823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16825 irix5* | nonstopux*)
16826 libsuff= shlibsuff=
16829 case $LD in # libtool.m4 will add one of these switches to LD
16830 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16831 libsuff= shlibsuff= libmagic=32-bit;;
16832 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16833 libsuff=32 shlibsuff=N32 libmagic=N32;;
16834 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16835 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16836 *) libsuff= shlibsuff= libmagic=never-match;;
16840 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16841 shlibpath_overrides_runpath=no
16842 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16843 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16844 hardcode_into_libs=yes
16847 # No shared lib support for Linux oldld, aout, or coff.
16848 linux*oldld* | linux*aout* | linux*coff*)
16852 # This must be Linux ELF.
16857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16858 soname_spec='${libname}${release}${shared_ext}$major'
16859 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16860 shlibpath_var=LD_LIBRARY_PATH
16861 shlibpath_overrides_runpath=no
16862 # This implies no fast_install, which is unacceptable.
16863 # Some rework will be needed to allow for fast_install
16864 # before this can be enabled.
16865 hardcode_into_libs=yes
16867 # We used to test for /lib/ld.so.1 and disable shared libraries on
16868 # powerpc, because MkLinux only supported shared libraries with the
16869 # GNU dynamic linker. Since this was broken with cross compilers,
16870 # most powerpc-linux boxes support dynamic linking these days and
16871 # people can always --disable-shared, the test was removed, and we
16872 # assume the GNU/Linux dynamic linker is in use.
16873 dynamic_linker='GNU/Linux ld.so'
16875 # Find out which ABI we are using (multilib Linux x86_64 hack).
16877 case "$host_cpu" in
16879 echo '#line 16879 "configure"' > conftest.$ac_ext
16880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16881 (eval $ac_compile) 2>&5
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); }; then
16885 case `/usr/bin/file conftest.$ac_objext` in
16896 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
16897 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
16904 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16906 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16907 dynamic_linker='NetBSD (a.out) ld.so'
16909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16910 soname_spec='${libname}${release}${shared_ext}$major'
16911 dynamic_linker='NetBSD ld.elf_so'
16913 shlibpath_var=LD_LIBRARY_PATH
16914 shlibpath_overrides_runpath=yes
16915 hardcode_into_libs=yes
16920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16921 shlibpath_var=LD_LIBRARY_PATH
16922 shlibpath_overrides_runpath=yes
16929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16930 soname_spec='${libname}${release}${shared_ext}$major'
16931 shlibpath_var=LD_LIBRARY_PATH
16932 shlibpath_overrides_runpath=yes
16939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16941 shlibpath_var=LD_LIBRARY_PATH
16942 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16944 openbsd2.[89] | openbsd2.[89].*)
16945 shlibpath_overrides_runpath=no
16948 shlibpath_overrides_runpath=yes
16952 shlibpath_overrides_runpath=yes
16957 libname_spec='$name'
16960 library_names_spec='$libname${shared_ext} $libname.a'
16961 dynamic_linker='OS/2 ld.exe'
16962 shlibpath_var=LIBPATH
16965 osf3* | osf4* | osf5*)
16969 soname_spec='${libname}${release}${shared_ext}$major'
16970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16971 shlibpath_var=LD_LIBRARY_PATH
16972 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16973 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16978 soname_spec='${libname}${release}${shared_ext}$major'
16979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16980 shlibpath_var=LD_LIBRARY_PATH
16987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16988 soname_spec='${libname}${release}${shared_ext}$major'
16989 shlibpath_var=LD_LIBRARY_PATH
16990 shlibpath_overrides_runpath=yes
16991 hardcode_into_libs=yes
16992 # ldd complains unless libraries are executable
16993 postinstall_cmds='chmod +x $lib'
16998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16999 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17000 shlibpath_var=LD_LIBRARY_PATH
17001 shlibpath_overrides_runpath=yes
17002 if test "$with_gnu_ld" = yes; then
17008 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17011 soname_spec='${libname}${release}${shared_ext}$major'
17012 shlibpath_var=LD_LIBRARY_PATH
17013 case $host_vendor in
17015 shlibpath_overrides_runpath=no
17017 export_dynamic_flag_spec='${wl}-Blargedynsym'
17018 runpath_var=LD_RUN_PATH
17026 shlibpath_overrides_runpath=no
17027 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17033 if test -d /usr/nec ;then
17035 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17036 soname_spec='$libname${shared_ext}.$major'
17037 shlibpath_var=LD_LIBRARY_PATH
17043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17044 soname_spec='${libname}${release}${shared_ext}$major'
17045 shlibpath_var=LD_LIBRARY_PATH
17052 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17053 echo "${ECHO_T}$dynamic_linker" >&6
17054 test "$dynamic_linker" = no && can_build_shared=no
17056 if test "x$enable_dlopen" != xyes; then
17057 enable_dlopen=unknown
17058 enable_dlopen_self=unknown
17059 enable_dlopen_self_static=unknown
17066 lt_cv_dlopen="load_add_on"
17068 lt_cv_dlopen_self=yes
17072 lt_cv_dlopen="LoadLibrary"
17077 lt_cv_dlopen="dlopen"
17082 # if libdl is installed we need to link against it
17083 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17084 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17085 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17086 echo $ECHO_N "(cached) $ECHO_C" >&6
17088 ac_check_lib_save_LIBS=$LIBS
17090 cat >conftest.$ac_ext <<_ACEOF
17091 #line $LINENO "configure"
17094 cat confdefs.h >>conftest.$ac_ext
17095 cat >>conftest.$ac_ext <<_ACEOF
17096 /* end confdefs.h. */
17098 /* Override any gcc2 internal prototype to avoid an error. */
17102 /* We use char because int might match the return type of a gcc2
17103 builtin and then its argument prototype would still apply. */
17113 rm -f conftest.$ac_objext conftest$ac_exeext
17114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17115 (eval $ac_link) 2>&5
17117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118 (exit $ac_status); } &&
17119 { ac_try='test -s conftest$ac_exeext'
17120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17121 (eval $ac_try) 2>&5
17123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124 (exit $ac_status); }; }; then
17125 ac_cv_lib_dl_dlopen=yes
17127 echo "$as_me: failed program was:" >&5
17128 sed 's/^/| /' conftest.$ac_ext >&5
17130 ac_cv_lib_dl_dlopen=no
17132 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17133 LIBS=$ac_check_lib_save_LIBS
17135 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17136 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17137 if test $ac_cv_lib_dl_dlopen = yes; then
17138 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17141 lt_cv_dlopen="dyld"
17143 lt_cv_dlopen_self=yes
17150 echo "$as_me:$LINENO: checking for shl_load" >&5
17151 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17152 if test "${ac_cv_func_shl_load+set}" = set; then
17153 echo $ECHO_N "(cached) $ECHO_C" >&6
17155 cat >conftest.$ac_ext <<_ACEOF
17156 #line $LINENO "configure"
17159 cat confdefs.h >>conftest.$ac_ext
17160 cat >>conftest.$ac_ext <<_ACEOF
17161 /* end confdefs.h. */
17162 /* System header to define __stub macros and hopefully few prototypes,
17163 which can conflict with char shl_load (); below.
17164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17165 <limits.h> exists even on freestanding compilers. */
17167 # include <limits.h>
17169 # include <assert.h>
17171 /* Override any gcc2 internal prototype to avoid an error. */
17176 /* We use char because int might match the return type of a gcc2
17177 builtin and then its argument prototype would still apply. */
17179 /* The GNU C library defines this for functions which it implements
17180 to always fail with ENOSYS. Some functions are actually named
17181 something starting with __ and the normal name is an alias. */
17182 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17185 char (*f) () = shl_load;
17194 return f != shl_load;
17199 rm -f conftest.$ac_objext conftest$ac_exeext
17200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17201 (eval $ac_link) 2>&5
17203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 (exit $ac_status); } &&
17205 { ac_try='test -s conftest$ac_exeext'
17206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17207 (eval $ac_try) 2>&5
17209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210 (exit $ac_status); }; }; then
17211 ac_cv_func_shl_load=yes
17213 echo "$as_me: failed program was:" >&5
17214 sed 's/^/| /' conftest.$ac_ext >&5
17216 ac_cv_func_shl_load=no
17218 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17220 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17221 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17222 if test $ac_cv_func_shl_load = yes; then
17223 lt_cv_dlopen="shl_load"
17225 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17226 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17227 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17228 echo $ECHO_N "(cached) $ECHO_C" >&6
17230 ac_check_lib_save_LIBS=$LIBS
17232 cat >conftest.$ac_ext <<_ACEOF
17233 #line $LINENO "configure"
17236 cat confdefs.h >>conftest.$ac_ext
17237 cat >>conftest.$ac_ext <<_ACEOF
17238 /* end confdefs.h. */
17240 /* Override any gcc2 internal prototype to avoid an error. */
17244 /* We use char because int might match the return type of a gcc2
17245 builtin and then its argument prototype would still apply. */
17255 rm -f conftest.$ac_objext conftest$ac_exeext
17256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17257 (eval $ac_link) 2>&5
17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); } &&
17261 { ac_try='test -s conftest$ac_exeext'
17262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17263 (eval $ac_try) 2>&5
17265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); }; }; then
17267 ac_cv_lib_dld_shl_load=yes
17269 echo "$as_me: failed program was:" >&5
17270 sed 's/^/| /' conftest.$ac_ext >&5
17272 ac_cv_lib_dld_shl_load=no
17274 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17275 LIBS=$ac_check_lib_save_LIBS
17277 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17278 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17279 if test $ac_cv_lib_dld_shl_load = yes; then
17280 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17282 echo "$as_me:$LINENO: checking for dlopen" >&5
17283 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17284 if test "${ac_cv_func_dlopen+set}" = set; then
17285 echo $ECHO_N "(cached) $ECHO_C" >&6
17287 cat >conftest.$ac_ext <<_ACEOF
17288 #line $LINENO "configure"
17291 cat confdefs.h >>conftest.$ac_ext
17292 cat >>conftest.$ac_ext <<_ACEOF
17293 /* end confdefs.h. */
17294 /* System header to define __stub macros and hopefully few prototypes,
17295 which can conflict with char dlopen (); below.
17296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17297 <limits.h> exists even on freestanding compilers. */
17299 # include <limits.h>
17301 # include <assert.h>
17303 /* Override any gcc2 internal prototype to avoid an error. */
17308 /* We use char because int might match the return type of a gcc2
17309 builtin and then its argument prototype would still apply. */
17311 /* The GNU C library defines this for functions which it implements
17312 to always fail with ENOSYS. Some functions are actually named
17313 something starting with __ and the normal name is an alias. */
17314 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17317 char (*f) () = dlopen;
17326 return f != dlopen;
17331 rm -f conftest.$ac_objext conftest$ac_exeext
17332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17333 (eval $ac_link) 2>&5
17335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336 (exit $ac_status); } &&
17337 { ac_try='test -s conftest$ac_exeext'
17338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17339 (eval $ac_try) 2>&5
17341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); }; }; then
17343 ac_cv_func_dlopen=yes
17345 echo "$as_me: failed program was:" >&5
17346 sed 's/^/| /' conftest.$ac_ext >&5
17348 ac_cv_func_dlopen=no
17350 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17352 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17353 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17354 if test $ac_cv_func_dlopen = yes; then
17355 lt_cv_dlopen="dlopen"
17357 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17358 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17359 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17360 echo $ECHO_N "(cached) $ECHO_C" >&6
17362 ac_check_lib_save_LIBS=$LIBS
17364 cat >conftest.$ac_ext <<_ACEOF
17365 #line $LINENO "configure"
17368 cat confdefs.h >>conftest.$ac_ext
17369 cat >>conftest.$ac_ext <<_ACEOF
17370 /* end confdefs.h. */
17372 /* Override any gcc2 internal prototype to avoid an error. */
17376 /* We use char because int might match the return type of a gcc2
17377 builtin and then its argument prototype would still apply. */
17387 rm -f conftest.$ac_objext conftest$ac_exeext
17388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17389 (eval $ac_link) 2>&5
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); } &&
17393 { ac_try='test -s conftest$ac_exeext'
17394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17395 (eval $ac_try) 2>&5
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); }; }; then
17399 ac_cv_lib_dl_dlopen=yes
17401 echo "$as_me: failed program was:" >&5
17402 sed 's/^/| /' conftest.$ac_ext >&5
17404 ac_cv_lib_dl_dlopen=no
17406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17407 LIBS=$ac_check_lib_save_LIBS
17409 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17410 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17411 if test $ac_cv_lib_dl_dlopen = yes; then
17412 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17414 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17415 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17416 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17417 echo $ECHO_N "(cached) $ECHO_C" >&6
17419 ac_check_lib_save_LIBS=$LIBS
17420 LIBS="-lsvld $LIBS"
17421 cat >conftest.$ac_ext <<_ACEOF
17422 #line $LINENO "configure"
17425 cat confdefs.h >>conftest.$ac_ext
17426 cat >>conftest.$ac_ext <<_ACEOF
17427 /* end confdefs.h. */
17429 /* Override any gcc2 internal prototype to avoid an error. */
17433 /* We use char because int might match the return type of a gcc2
17434 builtin and then its argument prototype would still apply. */
17444 rm -f conftest.$ac_objext conftest$ac_exeext
17445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17446 (eval $ac_link) 2>&5
17448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449 (exit $ac_status); } &&
17450 { ac_try='test -s conftest$ac_exeext'
17451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17452 (eval $ac_try) 2>&5
17454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455 (exit $ac_status); }; }; then
17456 ac_cv_lib_svld_dlopen=yes
17458 echo "$as_me: failed program was:" >&5
17459 sed 's/^/| /' conftest.$ac_ext >&5
17461 ac_cv_lib_svld_dlopen=no
17463 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17464 LIBS=$ac_check_lib_save_LIBS
17466 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17467 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17468 if test $ac_cv_lib_svld_dlopen = yes; then
17469 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17471 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17472 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17473 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17474 echo $ECHO_N "(cached) $ECHO_C" >&6
17476 ac_check_lib_save_LIBS=$LIBS
17478 cat >conftest.$ac_ext <<_ACEOF
17479 #line $LINENO "configure"
17482 cat confdefs.h >>conftest.$ac_ext
17483 cat >>conftest.$ac_ext <<_ACEOF
17484 /* end confdefs.h. */
17486 /* Override any gcc2 internal prototype to avoid an error. */
17490 /* We use char because int might match the return type of a gcc2
17491 builtin and then its argument prototype would still apply. */
17501 rm -f conftest.$ac_objext conftest$ac_exeext
17502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17503 (eval $ac_link) 2>&5
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); } &&
17507 { ac_try='test -s conftest$ac_exeext'
17508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17509 (eval $ac_try) 2>&5
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); }; }; then
17513 ac_cv_lib_dld_dld_link=yes
17515 echo "$as_me: failed program was:" >&5
17516 sed 's/^/| /' conftest.$ac_ext >&5
17518 ac_cv_lib_dld_dld_link=no
17520 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17521 LIBS=$ac_check_lib_save_LIBS
17523 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17524 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17525 if test $ac_cv_lib_dld_dld_link = yes; then
17526 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17547 if test "x$lt_cv_dlopen" != xno; then
17553 case $lt_cv_dlopen in
17555 save_CPPFLAGS="$CPPFLAGS"
17556 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17558 save_LDFLAGS="$LDFLAGS"
17559 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17562 LIBS="$lt_cv_dlopen_libs $LIBS"
17564 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17565 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17566 if test "${lt_cv_dlopen_self+set}" = set; then
17567 echo $ECHO_N "(cached) $ECHO_C" >&6
17569 if test "$cross_compiling" = yes; then :
17570 lt_cv_dlopen_self=cross
17572 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17573 lt_status=$lt_dlunknown
17574 cat > conftest.$ac_ext <<EOF
17575 #line 17575 "configure"
17576 #include "confdefs.h"
17585 # define LT_DLGLOBAL RTLD_GLOBAL
17588 # define LT_DLGLOBAL DL_GLOBAL
17590 # define LT_DLGLOBAL 0
17594 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17595 find out it does not work in some platform. */
17596 #ifndef LT_DLLAZY_OR_NOW
17598 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17601 # define LT_DLLAZY_OR_NOW DL_LAZY
17604 # define LT_DLLAZY_OR_NOW RTLD_NOW
17607 # define LT_DLLAZY_OR_NOW DL_NOW
17609 # define LT_DLLAZY_OR_NOW 0
17617 extern "C" void exit (int);
17620 void fnord() { int i=42;}
17623 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17624 int status = $lt_dlunknown;
17628 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17629 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17630 /* dlclose (self); */
17636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17637 (eval $ac_link) 2>&5
17639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17641 (./conftest; exit; ) 2>/dev/null
17643 case x$lt_status in
17644 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17645 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17646 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17649 # compilation failed
17650 lt_cv_dlopen_self=no
17657 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17658 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17660 if test "x$lt_cv_dlopen_self" = xyes; then
17661 LDFLAGS="$LDFLAGS $link_static_flag"
17662 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17663 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17664 if test "${lt_cv_dlopen_self_static+set}" = set; then
17665 echo $ECHO_N "(cached) $ECHO_C" >&6
17667 if test "$cross_compiling" = yes; then :
17668 lt_cv_dlopen_self_static=cross
17670 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17671 lt_status=$lt_dlunknown
17672 cat > conftest.$ac_ext <<EOF
17673 #line 17673 "configure"
17674 #include "confdefs.h"
17683 # define LT_DLGLOBAL RTLD_GLOBAL
17686 # define LT_DLGLOBAL DL_GLOBAL
17688 # define LT_DLGLOBAL 0
17692 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17693 find out it does not work in some platform. */
17694 #ifndef LT_DLLAZY_OR_NOW
17696 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17699 # define LT_DLLAZY_OR_NOW DL_LAZY
17702 # define LT_DLLAZY_OR_NOW RTLD_NOW
17705 # define LT_DLLAZY_OR_NOW DL_NOW
17707 # define LT_DLLAZY_OR_NOW 0
17715 extern "C" void exit (int);
17718 void fnord() { int i=42;}
17721 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17722 int status = $lt_dlunknown;
17726 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17727 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17728 /* dlclose (self); */
17734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17735 (eval $ac_link) 2>&5
17737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17739 (./conftest; exit; ) 2>/dev/null
17741 case x$lt_status in
17742 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17743 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17744 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17747 # compilation failed
17748 lt_cv_dlopen_self_static=no
17755 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17756 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17759 CPPFLAGS="$save_CPPFLAGS"
17760 LDFLAGS="$save_LDFLAGS"
17765 case $lt_cv_dlopen_self in
17766 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17767 *) enable_dlopen_self=unknown ;;
17770 case $lt_cv_dlopen_self_static in
17771 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17772 *) enable_dlopen_self_static=unknown ;;
17777 # The else clause should only fire when bootstrapping the
17778 # libtool distribution, otherwise you forgot to ship ltmain.sh
17779 # with your package, and you will get complaints that there are
17780 # no rules to generate ltmain.sh.
17781 if test -f "$ltmain"; then
17782 # See if we are running on zsh, and set the options which allow our commands through
17783 # without removal of \ escapes.
17784 if test -n "${ZSH_VERSION+set}" ; then
17785 setopt NO_GLOB_SUBST
17787 # Now quote all the things that may contain metacharacters while being
17788 # careful not to overquote the AC_SUBSTed values. We take copies of the
17789 # variables and quote the copies for generation of the libtool script.
17790 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17791 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17792 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17793 deplibs_check_method reload_flag reload_cmds need_locks \
17794 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17795 lt_cv_sys_global_symbol_to_c_name_address \
17796 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17797 old_postinstall_cmds old_postuninstall_cmds \
17801 lt_prog_compiler_wl_GCJ \
17802 lt_prog_compiler_pic_GCJ \
17803 lt_prog_compiler_static_GCJ \
17804 lt_prog_compiler_no_builtin_flag_GCJ \
17805 export_dynamic_flag_spec_GCJ \
17806 thread_safe_flag_spec_GCJ \
17807 whole_archive_flag_spec_GCJ \
17808 enable_shared_with_static_runtimes_GCJ \
17809 old_archive_cmds_GCJ \
17810 old_archive_from_new_cmds_GCJ \
17811 predep_objects_GCJ \
17812 postdep_objects_GCJ \
17815 compiler_lib_search_path_GCJ \
17817 archive_expsym_cmds_GCJ \
17818 postinstall_cmds_GCJ \
17819 postuninstall_cmds_GCJ \
17820 old_archive_from_expsyms_cmds_GCJ \
17821 allow_undefined_flag_GCJ \
17822 no_undefined_flag_GCJ \
17823 export_symbols_cmds_GCJ \
17824 hardcode_libdir_flag_spec_GCJ \
17825 hardcode_libdir_flag_spec_ld_GCJ \
17826 hardcode_libdir_separator_GCJ \
17827 hardcode_automatic_GCJ \
17829 module_expsym_cmds_GCJ \
17830 lt_cv_prog_compiler_c_o_GCJ \
17831 exclude_expsyms_GCJ \
17832 include_expsyms_GCJ; do
17835 old_archive_cmds_GCJ | \
17836 old_archive_from_new_cmds_GCJ | \
17837 archive_cmds_GCJ | \
17838 archive_expsym_cmds_GCJ | \
17839 module_cmds_GCJ | \
17840 module_expsym_cmds_GCJ | \
17841 old_archive_from_expsyms_cmds_GCJ | \
17842 export_symbols_cmds_GCJ | \
17843 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17844 postinstall_cmds | postuninstall_cmds | \
17845 old_postinstall_cmds | old_postuninstall_cmds | \
17846 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17847 # Double-quote double-evaled strings.
17848 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17851 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17857 *'\$0 --fallback-echo"')
17858 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17864 cat <<__EOF__ >> "$cfgfile"
17865 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17867 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17869 # Shell to use when invoking shell scripts.
17872 # Whether or not to build shared libraries.
17873 build_libtool_libs=$enable_shared
17875 # Whether or not to build static libraries.
17876 build_old_libs=$enable_static
17878 # Whether or not to add -lc for building shared libraries.
17879 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17881 # Whether or not to disallow shared libs when runtime libs are static
17882 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17884 # Whether or not to optimize for fast installation.
17885 fast_install=$enable_fast_install
17888 host_alias=$host_alias
17891 # An echo program that does not interpret backslashes.
17896 AR_FLAGS=$lt_AR_FLAGS
17901 # A language-specific compiler.
17902 CC=$lt_compiler_GCJ
17904 # Is the compiler the GNU C compiler?
17910 # The linker used to build libraries.
17913 # Whether we need hard or soft links.
17916 # A BSD-compatible nm program.
17919 # A symbol stripping program
17922 # Used to examine libraries when file_magic_cmd begins "file"
17923 MAGIC_CMD=$MAGIC_CMD
17925 # Used on cygwin: DLL creation program.
17928 # Used on cygwin: object dumper.
17931 # Used on cygwin: assembler.
17934 # The name of the directory that contains temporary libtool files.
17937 # How to create reloadable object files.
17938 reload_flag=$lt_reload_flag
17939 reload_cmds=$lt_reload_cmds
17941 # How to pass a linker flag through the compiler.
17942 wl=$lt_lt_prog_compiler_wl_GCJ
17944 # Object file suffix (normally "o").
17945 objext="$ac_objext"
17947 # Old archive suffix (normally "a").
17950 # Shared library suffix (normally ".so").
17953 # Executable file suffix (normally "").
17956 # Additional compiler flags for building library objects.
17957 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17960 # What is the maximum length of a command?
17961 max_cmd_len=$lt_cv_sys_max_cmd_len
17963 # Does compiler simultaneously support -c and -o options?
17964 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17966 # Must we lock files when doing compilation ?
17967 need_locks=$lt_need_locks
17969 # Do we need the lib prefix for modules?
17970 need_lib_prefix=$need_lib_prefix
17972 # Do we need a version for libraries?
17973 need_version=$need_version
17975 # Whether dlopen is supported.
17976 dlopen_support=$enable_dlopen
17978 # Whether dlopen of programs is supported.
17979 dlopen_self=$enable_dlopen_self
17981 # Whether dlopen of statically linked programs is supported.
17982 dlopen_self_static=$enable_dlopen_self_static
17984 # Compiler flag to prevent dynamic linking.
17985 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17987 # Compiler flag to turn off builtin functions.
17988 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17990 # Compiler flag to allow reflexive dlopens.
17991 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17993 # Compiler flag to generate shared objects directly from archives.
17994 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17996 # Compiler flag to generate thread-safe objects.
17997 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17999 # Library versioning type.
18000 version_type=$version_type
18002 # Format of library name prefix.
18003 libname_spec=$lt_libname_spec
18005 # List of archive names. First name is the real one, the rest are links.
18006 # The last name is the one that the linker finds with -lNAME.
18007 library_names_spec=$lt_library_names_spec
18009 # The coded name of the library, if different from the real name.
18010 soname_spec=$lt_soname_spec
18012 # Commands used to build and install an old-style archive.
18014 old_archive_cmds=$lt_old_archive_cmds_GCJ
18015 old_postinstall_cmds=$lt_old_postinstall_cmds
18016 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18018 # Create an old-style archive from a shared archive.
18019 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18021 # Create a temporary old-style archive to link instead of a shared archive.
18022 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18024 # Commands used to build and install a shared archive.
18025 archive_cmds=$lt_archive_cmds_GCJ
18026 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18027 postinstall_cmds=$lt_postinstall_cmds
18028 postuninstall_cmds=$lt_postuninstall_cmds
18030 # Commands used to build a loadable module (assumed same as above if empty)
18031 module_cmds=$lt_module_cmds_GCJ
18032 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18034 # Commands to strip libraries.
18035 old_striplib=$lt_old_striplib
18036 striplib=$lt_striplib
18038 # Dependencies to place before the objects being linked to create a
18040 predep_objects=$lt_predep_objects_GCJ
18042 # Dependencies to place after the objects being linked to create a
18044 postdep_objects=$lt_postdep_objects_GCJ
18046 # Dependencies to place before the objects being linked to create a
18048 predeps=$lt_predeps_GCJ
18050 # Dependencies to place after the objects being linked to create a
18052 postdeps=$lt_postdeps_GCJ
18054 # The library search path used internally by the compiler when linking
18055 # a shared library.
18056 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18058 # Method to check whether dependent libraries are shared objects.
18059 deplibs_check_method=$lt_deplibs_check_method
18061 # Command to use when deplibs_check_method == file_magic.
18062 file_magic_cmd=$lt_file_magic_cmd
18064 # Flag that allows shared libraries with undefined symbols to be built.
18065 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18067 # Flag that forces no undefined symbols.
18068 no_undefined_flag=$lt_no_undefined_flag_GCJ
18070 # Commands used to finish a libtool library installation in a directory.
18071 finish_cmds=$lt_finish_cmds
18073 # Same as above, but a single script fragment to be evaled but not shown.
18074 finish_eval=$lt_finish_eval
18076 # Take the output of nm and produce a listing of raw symbols and C names.
18077 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18079 # Transform the output of nm in a proper C declaration
18080 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18082 # Transform the output of nm in a C name address pair
18083 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18085 # This is the shared library runtime path variable.
18086 runpath_var=$runpath_var
18088 # This is the shared library path variable.
18089 shlibpath_var=$shlibpath_var
18091 # Is shlibpath searched before the hard-coded library search path?
18092 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18094 # How to hardcode a shared library path into an executable.
18095 hardcode_action=$hardcode_action_GCJ
18097 # Whether we should hardcode library paths into libraries.
18098 hardcode_into_libs=$hardcode_into_libs
18100 # Flag to hardcode \$libdir into a binary during linking.
18101 # This must work even if \$libdir does not exist.
18102 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18104 # If ld is used when linking, flag to hardcode \$libdir into
18105 # a binary during linking. This must work even if \$libdir does
18107 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18109 # Whether we need a single -rpath flag with a separated argument.
18110 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18112 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18113 # resulting binary.
18114 hardcode_direct=$hardcode_direct_GCJ
18116 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18117 # resulting binary.
18118 hardcode_minus_L=$hardcode_minus_L_GCJ
18120 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18121 # the resulting binary.
18122 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18124 # Set to yes if building a shared library automatically hardcodes DIR into the library
18125 # and all subsequent libraries and executables linked against it.
18126 hardcode_automatic=$hardcode_automatic_GCJ
18128 # Variables whose values should be saved in libtool wrapper scripts and
18129 # restored at relink time.
18130 variables_saved_for_relink="$variables_saved_for_relink"
18132 # Whether libtool must link a program against all its dependency libraries.
18133 link_all_deplibs=$link_all_deplibs_GCJ
18135 # Compile-time system search path for libraries
18136 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18138 # Run-time system search path for libraries
18139 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18141 # Fix the shell variable \$srcfile for the compiler.
18142 fix_srcfile_path="$fix_srcfile_path_GCJ"
18144 # Set to yes if exported symbols are required.
18145 always_export_symbols=$always_export_symbols_GCJ
18147 # The commands to list exported symbols.
18148 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18150 # The commands to extract the exported symbol list from a shared archive.
18151 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18153 # Symbols that should not be listed in the preloaded symbols.
18154 exclude_expsyms=$lt_exclude_expsyms_GCJ
18156 # Symbols that must always be exported.
18157 include_expsyms=$lt_include_expsyms_GCJ
18159 # ### END LIBTOOL TAG CONFIG: $tagname
18165 # If there is no Makefile yet, we rely on a make rule to execute
18166 # `config.status --recheck' to rerun these tests and create the
18167 # libtool script then.
18168 test -f Makefile && make "$ltmain"
18173 ac_cpp='$CPP $CPPFLAGS'
18174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18189 # Source file extension for RC test sources.
18192 # Object file extension for compiled RC test sources.
18196 # Code to be used in simple compile tests
18197 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18199 # Code to be used in simple link tests
18200 lt_simple_link_test_code="$lt_simple_compile_test_code"
18202 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18204 # If no C compiler was specified, use CC.
18207 # Allow CC to be a program name with arguments.
18211 # Allow CC to be a program name with arguments.
18216 lt_cv_prog_compiler_c_o_RC=yes
18218 # The else clause should only fire when bootstrapping the
18219 # libtool distribution, otherwise you forgot to ship ltmain.sh
18220 # with your package, and you will get complaints that there are
18221 # no rules to generate ltmain.sh.
18222 if test -f "$ltmain"; then
18223 # See if we are running on zsh, and set the options which allow our commands through
18224 # without removal of \ escapes.
18225 if test -n "${ZSH_VERSION+set}" ; then
18226 setopt NO_GLOB_SUBST
18228 # Now quote all the things that may contain metacharacters while being
18229 # careful not to overquote the AC_SUBSTed values. We take copies of the
18230 # variables and quote the copies for generation of the libtool script.
18231 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18232 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18233 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18234 deplibs_check_method reload_flag reload_cmds need_locks \
18235 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18236 lt_cv_sys_global_symbol_to_c_name_address \
18237 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18238 old_postinstall_cmds old_postuninstall_cmds \
18242 lt_prog_compiler_wl_RC \
18243 lt_prog_compiler_pic_RC \
18244 lt_prog_compiler_static_RC \
18245 lt_prog_compiler_no_builtin_flag_RC \
18246 export_dynamic_flag_spec_RC \
18247 thread_safe_flag_spec_RC \
18248 whole_archive_flag_spec_RC \
18249 enable_shared_with_static_runtimes_RC \
18250 old_archive_cmds_RC \
18251 old_archive_from_new_cmds_RC \
18252 predep_objects_RC \
18253 postdep_objects_RC \
18256 compiler_lib_search_path_RC \
18258 archive_expsym_cmds_RC \
18259 postinstall_cmds_RC \
18260 postuninstall_cmds_RC \
18261 old_archive_from_expsyms_cmds_RC \
18262 allow_undefined_flag_RC \
18263 no_undefined_flag_RC \
18264 export_symbols_cmds_RC \
18265 hardcode_libdir_flag_spec_RC \
18266 hardcode_libdir_flag_spec_ld_RC \
18267 hardcode_libdir_separator_RC \
18268 hardcode_automatic_RC \
18270 module_expsym_cmds_RC \
18271 lt_cv_prog_compiler_c_o_RC \
18272 exclude_expsyms_RC \
18273 include_expsyms_RC; do
18276 old_archive_cmds_RC | \
18277 old_archive_from_new_cmds_RC | \
18278 archive_cmds_RC | \
18279 archive_expsym_cmds_RC | \
18281 module_expsym_cmds_RC | \
18282 old_archive_from_expsyms_cmds_RC | \
18283 export_symbols_cmds_RC | \
18284 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18285 postinstall_cmds | postuninstall_cmds | \
18286 old_postinstall_cmds | old_postuninstall_cmds | \
18287 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18288 # Double-quote double-evaled strings.
18289 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18292 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18298 *'\$0 --fallback-echo"')
18299 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18305 cat <<__EOF__ >> "$cfgfile"
18306 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18308 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18310 # Shell to use when invoking shell scripts.
18313 # Whether or not to build shared libraries.
18314 build_libtool_libs=$enable_shared
18316 # Whether or not to build static libraries.
18317 build_old_libs=$enable_static
18319 # Whether or not to add -lc for building shared libraries.
18320 build_libtool_need_lc=$archive_cmds_need_lc_RC
18322 # Whether or not to disallow shared libs when runtime libs are static
18323 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18325 # Whether or not to optimize for fast installation.
18326 fast_install=$enable_fast_install
18329 host_alias=$host_alias
18332 # An echo program that does not interpret backslashes.
18337 AR_FLAGS=$lt_AR_FLAGS
18342 # A language-specific compiler.
18345 # Is the compiler the GNU C compiler?
18351 # The linker used to build libraries.
18354 # Whether we need hard or soft links.
18357 # A BSD-compatible nm program.
18360 # A symbol stripping program
18363 # Used to examine libraries when file_magic_cmd begins "file"
18364 MAGIC_CMD=$MAGIC_CMD
18366 # Used on cygwin: DLL creation program.
18369 # Used on cygwin: object dumper.
18372 # Used on cygwin: assembler.
18375 # The name of the directory that contains temporary libtool files.
18378 # How to create reloadable object files.
18379 reload_flag=$lt_reload_flag
18380 reload_cmds=$lt_reload_cmds
18382 # How to pass a linker flag through the compiler.
18383 wl=$lt_lt_prog_compiler_wl_RC
18385 # Object file suffix (normally "o").
18386 objext="$ac_objext"
18388 # Old archive suffix (normally "a").
18391 # Shared library suffix (normally ".so").
18394 # Executable file suffix (normally "").
18397 # Additional compiler flags for building library objects.
18398 pic_flag=$lt_lt_prog_compiler_pic_RC
18401 # What is the maximum length of a command?
18402 max_cmd_len=$lt_cv_sys_max_cmd_len
18404 # Does compiler simultaneously support -c and -o options?
18405 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18407 # Must we lock files when doing compilation ?
18408 need_locks=$lt_need_locks
18410 # Do we need the lib prefix for modules?
18411 need_lib_prefix=$need_lib_prefix
18413 # Do we need a version for libraries?
18414 need_version=$need_version
18416 # Whether dlopen is supported.
18417 dlopen_support=$enable_dlopen
18419 # Whether dlopen of programs is supported.
18420 dlopen_self=$enable_dlopen_self
18422 # Whether dlopen of statically linked programs is supported.
18423 dlopen_self_static=$enable_dlopen_self_static
18425 # Compiler flag to prevent dynamic linking.
18426 link_static_flag=$lt_lt_prog_compiler_static_RC
18428 # Compiler flag to turn off builtin functions.
18429 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18431 # Compiler flag to allow reflexive dlopens.
18432 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18434 # Compiler flag to generate shared objects directly from archives.
18435 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18437 # Compiler flag to generate thread-safe objects.
18438 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18440 # Library versioning type.
18441 version_type=$version_type
18443 # Format of library name prefix.
18444 libname_spec=$lt_libname_spec
18446 # List of archive names. First name is the real one, the rest are links.
18447 # The last name is the one that the linker finds with -lNAME.
18448 library_names_spec=$lt_library_names_spec
18450 # The coded name of the library, if different from the real name.
18451 soname_spec=$lt_soname_spec
18453 # Commands used to build and install an old-style archive.
18455 old_archive_cmds=$lt_old_archive_cmds_RC
18456 old_postinstall_cmds=$lt_old_postinstall_cmds
18457 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18459 # Create an old-style archive from a shared archive.
18460 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18462 # Create a temporary old-style archive to link instead of a shared archive.
18463 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18465 # Commands used to build and install a shared archive.
18466 archive_cmds=$lt_archive_cmds_RC
18467 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18468 postinstall_cmds=$lt_postinstall_cmds
18469 postuninstall_cmds=$lt_postuninstall_cmds
18471 # Commands used to build a loadable module (assumed same as above if empty)
18472 module_cmds=$lt_module_cmds_RC
18473 module_expsym_cmds=$lt_module_expsym_cmds_RC
18475 # Commands to strip libraries.
18476 old_striplib=$lt_old_striplib
18477 striplib=$lt_striplib
18479 # Dependencies to place before the objects being linked to create a
18481 predep_objects=$lt_predep_objects_RC
18483 # Dependencies to place after the objects being linked to create a
18485 postdep_objects=$lt_postdep_objects_RC
18487 # Dependencies to place before the objects being linked to create a
18489 predeps=$lt_predeps_RC
18491 # Dependencies to place after the objects being linked to create a
18493 postdeps=$lt_postdeps_RC
18495 # The library search path used internally by the compiler when linking
18496 # a shared library.
18497 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18499 # Method to check whether dependent libraries are shared objects.
18500 deplibs_check_method=$lt_deplibs_check_method
18502 # Command to use when deplibs_check_method == file_magic.
18503 file_magic_cmd=$lt_file_magic_cmd
18505 # Flag that allows shared libraries with undefined symbols to be built.
18506 allow_undefined_flag=$lt_allow_undefined_flag_RC
18508 # Flag that forces no undefined symbols.
18509 no_undefined_flag=$lt_no_undefined_flag_RC
18511 # Commands used to finish a libtool library installation in a directory.
18512 finish_cmds=$lt_finish_cmds
18514 # Same as above, but a single script fragment to be evaled but not shown.
18515 finish_eval=$lt_finish_eval
18517 # Take the output of nm and produce a listing of raw symbols and C names.
18518 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18520 # Transform the output of nm in a proper C declaration
18521 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18523 # Transform the output of nm in a C name address pair
18524 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18526 # This is the shared library runtime path variable.
18527 runpath_var=$runpath_var
18529 # This is the shared library path variable.
18530 shlibpath_var=$shlibpath_var
18532 # Is shlibpath searched before the hard-coded library search path?
18533 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18535 # How to hardcode a shared library path into an executable.
18536 hardcode_action=$hardcode_action_RC
18538 # Whether we should hardcode library paths into libraries.
18539 hardcode_into_libs=$hardcode_into_libs
18541 # Flag to hardcode \$libdir into a binary during linking.
18542 # This must work even if \$libdir does not exist.
18543 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18545 # If ld is used when linking, flag to hardcode \$libdir into
18546 # a binary during linking. This must work even if \$libdir does
18548 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18550 # Whether we need a single -rpath flag with a separated argument.
18551 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18553 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18554 # resulting binary.
18555 hardcode_direct=$hardcode_direct_RC
18557 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18558 # resulting binary.
18559 hardcode_minus_L=$hardcode_minus_L_RC
18561 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18562 # the resulting binary.
18563 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18565 # Set to yes if building a shared library automatically hardcodes DIR into the library
18566 # and all subsequent libraries and executables linked against it.
18567 hardcode_automatic=$hardcode_automatic_RC
18569 # Variables whose values should be saved in libtool wrapper scripts and
18570 # restored at relink time.
18571 variables_saved_for_relink="$variables_saved_for_relink"
18573 # Whether libtool must link a program against all its dependency libraries.
18574 link_all_deplibs=$link_all_deplibs_RC
18576 # Compile-time system search path for libraries
18577 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18579 # Run-time system search path for libraries
18580 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18582 # Fix the shell variable \$srcfile for the compiler.
18583 fix_srcfile_path="$fix_srcfile_path_RC"
18585 # Set to yes if exported symbols are required.
18586 always_export_symbols=$always_export_symbols_RC
18588 # The commands to list exported symbols.
18589 export_symbols_cmds=$lt_export_symbols_cmds_RC
18591 # The commands to extract the exported symbol list from a shared archive.
18592 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18594 # Symbols that should not be listed in the preloaded symbols.
18595 exclude_expsyms=$lt_exclude_expsyms_RC
18597 # Symbols that must always be exported.
18598 include_expsyms=$lt_include_expsyms_RC
18600 # ### END LIBTOOL TAG CONFIG: $tagname
18606 # If there is no Makefile yet, we rely on a make rule to execute
18607 # `config.status --recheck' to rerun these tests and create the
18608 # libtool script then.
18609 test -f Makefile && make "$ltmain"
18614 ac_cpp='$CPP $CPPFLAGS'
18615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18624 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18625 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18626 { (exit 1); exit 1; }; }
18630 # Append the new tag name to the list of available tags.
18631 if test -n "$tagname" ; then
18632 available_tags="$available_tags $tagname"
18638 # Now substitute the updated list of available tags.
18639 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18640 mv "${ofile}T" "$ofile"
18644 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18645 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18646 { (exit 1); exit 1; }; }
18652 # This can be used to rebuild libtool when needed
18653 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18655 # Always use our own libtool.
18656 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18658 # Prevent multiple expansion
18679 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
18680 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
18681 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
18682 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
18683 echo $ECHO_N "(cached) $ECHO_C" >&6
18685 cat >conftest.make <<\_ACEOF
18687 @echo 'ac_maketemp="$(MAKE)"'
18689 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18690 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
18691 if test -n "$ac_maketemp"; then
18692 eval ac_cv_prog_make_${ac_make}_set=yes
18694 eval ac_cv_prog_make_${ac_make}_set=no
18696 rm -f conftest.make
18698 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
18699 echo "$as_me:$LINENO: result: yes" >&5
18700 echo "${ECHO_T}yes" >&6
18703 echo "$as_me:$LINENO: result: no" >&5
18704 echo "${ECHO_T}no" >&6
18705 SET_MAKE="MAKE=${MAKE-make}"
18710 echo "$as_me:$LINENO: checking for ssh" >&5
18711 echo $ECHO_N "checking for ssh... $ECHO_C" >&6
18713 # Check whether --with-ssh or --without-ssh was given.
18714 if test "${with_ssh+set}" = set; then
18715 withval="$with_ssh"
18718 SSHPROG=`which ssh 2>/dev/null`
18720 if test ! -x "$SSHPROG"
18722 echo "$as_me:$LINENO: result: not found (sshfs support disabled)" >&5
18723 echo "${ECHO_T}not found (sshfs support disabled)" >&6
18725 echo "$as_me:$LINENO: result: found ($SSHPROG)" >&5
18726 echo "${ECHO_T}found ($SSHPROG)" >&6
18728 cat >>confdefs.h <<\_ACEOF
18732 opt_fs="$opt_fs sshfs"
18737 # Extract the first word of "gnome-config", so it can be a program name with args.
18738 set dummy gnome-config; ac_word=$2
18739 echo "$as_me:$LINENO: checking for $ac_word" >&5
18740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18741 if test "${ac_cv_prog_GCONF+set}" = set; then
18742 echo $ECHO_N "(cached) $ECHO_C" >&6
18744 if test -n "$GCONF"; then
18745 ac_cv_prog_GCONF="$GCONF" # Let the user override the test.
18747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18748 for as_dir in $PATH
18751 test -z "$as_dir" && as_dir=.
18752 for ac_exec_ext in '' $ac_executable_extensions; do
18753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18754 ac_cv_prog_GCONF="gnome-config"
18755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18763 GCONF=$ac_cv_prog_GCONF
18764 if test -n "$GCONF"; then
18765 echo "$as_me:$LINENO: result: $GCONF" >&5
18766 echo "${ECHO_T}$GCONF" >&6
18768 echo "$as_me:$LINENO: result: no" >&5
18769 echo "${ECHO_T}no" >&6
18772 # Extract the first word of "gnome-vfs-config", so it can be a program name with args.
18773 set dummy gnome-vfs-config; ac_word=$2
18774 echo "$as_me:$LINENO: checking for $ac_word" >&5
18775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18776 if test "${ac_cv_prog_GVFSCONF+set}" = set; then
18777 echo $ECHO_N "(cached) $ECHO_C" >&6
18779 if test -n "$GVFSCONF"; then
18780 ac_cv_prog_GVFSCONF="$GVFSCONF" # Let the user override the test.
18782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18783 for as_dir in $PATH
18786 test -z "$as_dir" && as_dir=.
18787 for ac_exec_ext in '' $ac_executable_extensions; do
18788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18789 ac_cv_prog_GVFSCONF="gnome-vfs-config"
18790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18798 GVFSCONF=$ac_cv_prog_GVFSCONF
18799 if test -n "$GVFSCONF"; then
18800 echo "$as_me:$LINENO: result: $GVFSCONF" >&5
18801 echo "${ECHO_T}$GVFSCONF" >&6
18803 echo "$as_me:$LINENO: result: no" >&5
18804 echo "${ECHO_T}no" >&6
18807 echo "$as_me:$LINENO: checking for gnome_vfs_init in -lgnomevfs" >&5
18808 echo $ECHO_N "checking for gnome_vfs_init in -lgnomevfs... $ECHO_C" >&6
18809 if test "${ac_cv_lib_gnomevfs_gnome_vfs_init+set}" = set; then
18810 echo $ECHO_N "(cached) $ECHO_C" >&6
18812 ac_check_lib_save_LIBS=$LIBS
18813 LIBS="-lgnomevfs $LIBS"
18814 cat >conftest.$ac_ext <<_ACEOF
18815 #line $LINENO "configure"
18818 cat confdefs.h >>conftest.$ac_ext
18819 cat >>conftest.$ac_ext <<_ACEOF
18820 /* end confdefs.h. */
18822 /* Override any gcc2 internal prototype to avoid an error. */
18826 /* We use char because int might match the return type of a gcc2
18827 builtin and then its argument prototype would still apply. */
18828 char gnome_vfs_init ();
18837 rm -f conftest.$ac_objext conftest$ac_exeext
18838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18839 (eval $ac_link) 2>&5
18841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18842 (exit $ac_status); } &&
18843 { ac_try='test -s conftest$ac_exeext'
18844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18845 (eval $ac_try) 2>&5
18847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848 (exit $ac_status); }; }; then
18849 ac_cv_lib_gnomevfs_gnome_vfs_init=yes
18851 echo "$as_me: failed program was:" >&5
18852 sed 's/^/| /' conftest.$ac_ext >&5
18854 ac_cv_lib_gnomevfs_gnome_vfs_init=no
18856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18857 LIBS=$ac_check_lib_save_LIBS
18859 echo "$as_me:$LINENO: result: $ac_cv_lib_gnomevfs_gnome_vfs_init" >&5
18860 echo "${ECHO_T}$ac_cv_lib_gnomevfs_gnome_vfs_init" >&6
18861 if test $ac_cv_lib_gnomevfs_gnome_vfs_init = yes; then
18865 if test "$GCONF" -a "$GVFSCONF" -a "$HAS_GNOMEVFS"
18868 cat >>confdefs.h <<\_ACEOF
18873 GVFS_LDADD="`$GCONF --libs gnome` `$GVFSCONF --libs`"
18874 GVFS_CFLAGS="`$GCONF --cflags gnome` `$GVFSCONF --cflags`"
18875 opt_fs="$opt_fs gvfs"
18880 # Check whether --enable-wavfs or --disable-wavfs was given.
18881 if test "${enable_wavfs+set}" = set; then
18882 enableval="$enable_wavfs"
18883 opt_fs="$opt_fs wavfs"
18887 # Check whether --enable-cefs or --disable-cefs was given.
18888 if test "${enable_cefs+set}" = set; then
18889 enableval="$enable_cefs"
18890 opt_fs="$opt_fs cefs"
18893 if test -n "$cefs_dir"; then
18895 cat >>confdefs.h <<\_ACEOF
18900 cat >>confdefs.h <<\_ACEOF
18901 #define INFOFILE "/tmp/cedevices"
18906 # Check whether --enable-cardfs or --disable-cardfs was given.
18907 if test "${enable_cardfs+set}" = set; then
18908 enableval="$enable_cardfs"
18913 echo "$as_me:$LINENO: checking for pthread_detach in -lpthread" >&5
18914 echo $ECHO_N "checking for pthread_detach in -lpthread... $ECHO_C" >&6
18915 if test "${ac_cv_lib_pthread_pthread_detach+set}" = set; then
18916 echo $ECHO_N "(cached) $ECHO_C" >&6
18918 ac_check_lib_save_LIBS=$LIBS
18919 LIBS="-lpthread $LIBS"
18920 cat >conftest.$ac_ext <<_ACEOF
18921 #line $LINENO "configure"
18924 cat confdefs.h >>conftest.$ac_ext
18925 cat >>conftest.$ac_ext <<_ACEOF
18926 /* end confdefs.h. */
18928 /* Override any gcc2 internal prototype to avoid an error. */
18932 /* We use char because int might match the return type of a gcc2
18933 builtin and then its argument prototype would still apply. */
18934 char pthread_detach ();
18943 rm -f conftest.$ac_objext conftest$ac_exeext
18944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18945 (eval $ac_link) 2>&5
18947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); } &&
18949 { ac_try='test -s conftest$ac_exeext'
18950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18951 (eval $ac_try) 2>&5
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); }; }; then
18955 ac_cv_lib_pthread_pthread_detach=yes
18957 echo "$as_me: failed program was:" >&5
18958 sed 's/^/| /' conftest.$ac_ext >&5
18960 ac_cv_lib_pthread_pthread_detach=no
18962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18963 LIBS=$ac_check_lib_save_LIBS
18965 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_detach" >&5
18966 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_detach" >&6
18967 if test $ac_cv_lib_pthread_pthread_detach = yes; then
18968 cat >>confdefs.h <<_ACEOF
18969 #define HAVE_LIBPTHREAD 1
18972 LIBS="-lpthread $LIBS"
18975 { { echo "$as_me:$LINENO: error: libpthread is needed by lufs" >&5
18976 echo "$as_me: error: libpthread is needed by lufs" >&2;}
18977 { (exit 1); exit 1; }; }
18982 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18983 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18984 if test "${ac_cv_header_stdc+set}" = set; then
18985 echo $ECHO_N "(cached) $ECHO_C" >&6
18987 cat >conftest.$ac_ext <<_ACEOF
18988 #line $LINENO "configure"
18991 cat confdefs.h >>conftest.$ac_ext
18992 cat >>conftest.$ac_ext <<_ACEOF
18993 /* end confdefs.h. */
18994 #include <stdlib.h>
18995 #include <stdarg.h>
18996 #include <string.h>
19007 rm -f conftest.$ac_objext
19008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19009 (eval $ac_compile) 2>&5
19011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012 (exit $ac_status); } &&
19013 { ac_try='test -s conftest.$ac_objext'
19014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19015 (eval $ac_try) 2>&5
19017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19018 (exit $ac_status); }; }; then
19019 ac_cv_header_stdc=yes
19021 echo "$as_me: failed program was:" >&5
19022 sed 's/^/| /' conftest.$ac_ext >&5
19024 ac_cv_header_stdc=no
19026 rm -f conftest.$ac_objext conftest.$ac_ext
19028 if test $ac_cv_header_stdc = yes; then
19029 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19030 cat >conftest.$ac_ext <<_ACEOF
19031 #line $LINENO "configure"
19034 cat confdefs.h >>conftest.$ac_ext
19035 cat >>conftest.$ac_ext <<_ACEOF
19036 /* end confdefs.h. */
19037 #include <string.h>
19040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19041 $EGREP "memchr" >/dev/null 2>&1; then
19044 ac_cv_header_stdc=no
19050 if test $ac_cv_header_stdc = yes; then
19051 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19052 cat >conftest.$ac_ext <<_ACEOF
19053 #line $LINENO "configure"
19056 cat confdefs.h >>conftest.$ac_ext
19057 cat >>conftest.$ac_ext <<_ACEOF
19058 /* end confdefs.h. */
19059 #include <stdlib.h>
19062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19063 $EGREP "free" >/dev/null 2>&1; then
19066 ac_cv_header_stdc=no
19072 if test $ac_cv_header_stdc = yes; then
19073 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19074 if test "$cross_compiling" = yes; then
19077 cat >conftest.$ac_ext <<_ACEOF
19078 #line $LINENO "configure"
19081 cat confdefs.h >>conftest.$ac_ext
19082 cat >>conftest.$ac_ext <<_ACEOF
19083 /* end confdefs.h. */
19085 #if ((' ' & 0x0FF) == 0x020)
19086 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19087 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19089 # define ISLOWER(c) \
19090 (('a' <= (c) && (c) <= 'i') \
19091 || ('j' <= (c) && (c) <= 'r') \
19092 || ('s' <= (c) && (c) <= 'z'))
19093 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19096 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19101 for (i = 0; i < 256; i++)
19102 if (XOR (islower (i), ISLOWER (i))
19103 || toupper (i) != TOUPPER (i))
19108 rm -f conftest$ac_exeext
19109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19110 (eval $ac_link) 2>&5
19112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19115 (eval $ac_try) 2>&5
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); }; }; then
19121 echo "$as_me: program exited with status $ac_status" >&5
19122 echo "$as_me: failed program was:" >&5
19123 sed 's/^/| /' conftest.$ac_ext >&5
19125 ( exit $ac_status )
19126 ac_cv_header_stdc=no
19128 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19132 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19133 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19134 if test $ac_cv_header_stdc = yes; then
19136 cat >>confdefs.h <<\_ACEOF
19137 #define STDC_HEADERS 1
19143 for ac_header in unistd.h
19145 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19147 echo "$as_me:$LINENO: checking for $ac_header" >&5
19148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19150 echo $ECHO_N "(cached) $ECHO_C" >&6
19152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19153 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19155 # Is the header compilable?
19156 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19157 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19158 cat >conftest.$ac_ext <<_ACEOF
19159 #line $LINENO "configure"
19162 cat confdefs.h >>conftest.$ac_ext
19163 cat >>conftest.$ac_ext <<_ACEOF
19164 /* end confdefs.h. */
19165 $ac_includes_default
19166 #include <$ac_header>
19168 rm -f conftest.$ac_objext
19169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19170 (eval $ac_compile) 2>&5
19172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173 (exit $ac_status); } &&
19174 { ac_try='test -s conftest.$ac_objext'
19175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19176 (eval $ac_try) 2>&5
19178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179 (exit $ac_status); }; }; then
19180 ac_header_compiler=yes
19182 echo "$as_me: failed program was:" >&5
19183 sed 's/^/| /' conftest.$ac_ext >&5
19185 ac_header_compiler=no
19187 rm -f conftest.$ac_objext conftest.$ac_ext
19188 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19189 echo "${ECHO_T}$ac_header_compiler" >&6
19191 # Is the header present?
19192 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19193 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19194 cat >conftest.$ac_ext <<_ACEOF
19195 #line $LINENO "configure"
19198 cat confdefs.h >>conftest.$ac_ext
19199 cat >>conftest.$ac_ext <<_ACEOF
19200 /* end confdefs.h. */
19201 #include <$ac_header>
19203 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19204 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19206 grep -v '^ *+' conftest.er1 >conftest.err
19208 cat conftest.err >&5
19209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210 (exit $ac_status); } >/dev/null; then
19211 if test -s conftest.err; then
19212 ac_cpp_err=$ac_c_preproc_warn_flag
19219 if test -z "$ac_cpp_err"; then
19220 ac_header_preproc=yes
19222 echo "$as_me: failed program was:" >&5
19223 sed 's/^/| /' conftest.$ac_ext >&5
19225 ac_header_preproc=no
19227 rm -f conftest.err conftest.$ac_ext
19228 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19229 echo "${ECHO_T}$ac_header_preproc" >&6
19231 # So? What about this header?
19232 case $ac_header_compiler:$ac_header_preproc in
19234 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19235 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19237 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19240 ## ------------------------------------ ##
19241 ## Report this to bug-autoconf@gnu.org. ##
19242 ## ------------------------------------ ##
19245 sed "s/^/$as_me: WARNING: /" >&2
19248 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19249 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19250 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19251 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19253 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19256 ## ------------------------------------ ##
19257 ## Report this to bug-autoconf@gnu.org. ##
19258 ## ------------------------------------ ##
19261 sed "s/^/$as_me: WARNING: /" >&2
19264 echo "$as_me:$LINENO: checking for $ac_header" >&5
19265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19267 echo $ECHO_N "(cached) $ECHO_C" >&6
19269 eval "$as_ac_Header=$ac_header_preproc"
19271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19272 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19276 cat >>confdefs.h <<_ACEOF
19277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19291 for ac_header in byteswap.h sys/byteswap.h endian.h machine/endian.h sys/types.h
19293 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19295 echo "$as_me:$LINENO: checking for $ac_header" >&5
19296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19298 echo $ECHO_N "(cached) $ECHO_C" >&6
19300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19301 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19303 # Is the header compilable?
19304 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19305 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19306 cat >conftest.$ac_ext <<_ACEOF
19307 #line $LINENO "configure"
19310 cat confdefs.h >>conftest.$ac_ext
19311 cat >>conftest.$ac_ext <<_ACEOF
19312 /* end confdefs.h. */
19313 $ac_includes_default
19314 #include <$ac_header>
19316 rm -f conftest.$ac_objext
19317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19318 (eval $ac_compile) 2>&5
19320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321 (exit $ac_status); } &&
19322 { ac_try='test -s conftest.$ac_objext'
19323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19324 (eval $ac_try) 2>&5
19326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19327 (exit $ac_status); }; }; then
19328 ac_header_compiler=yes
19330 echo "$as_me: failed program was:" >&5
19331 sed 's/^/| /' conftest.$ac_ext >&5
19333 ac_header_compiler=no
19335 rm -f conftest.$ac_objext conftest.$ac_ext
19336 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19337 echo "${ECHO_T}$ac_header_compiler" >&6
19339 # Is the header present?
19340 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19341 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19342 cat >conftest.$ac_ext <<_ACEOF
19343 #line $LINENO "configure"
19346 cat confdefs.h >>conftest.$ac_ext
19347 cat >>conftest.$ac_ext <<_ACEOF
19348 /* end confdefs.h. */
19349 #include <$ac_header>
19351 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19354 grep -v '^ *+' conftest.er1 >conftest.err
19356 cat conftest.err >&5
19357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358 (exit $ac_status); } >/dev/null; then
19359 if test -s conftest.err; then
19360 ac_cpp_err=$ac_c_preproc_warn_flag
19367 if test -z "$ac_cpp_err"; then
19368 ac_header_preproc=yes
19370 echo "$as_me: failed program was:" >&5
19371 sed 's/^/| /' conftest.$ac_ext >&5
19373 ac_header_preproc=no
19375 rm -f conftest.err conftest.$ac_ext
19376 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19377 echo "${ECHO_T}$ac_header_preproc" >&6
19379 # So? What about this header?
19380 case $ac_header_compiler:$ac_header_preproc in
19382 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19383 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19385 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19388 ## ------------------------------------ ##
19389 ## Report this to bug-autoconf@gnu.org. ##
19390 ## ------------------------------------ ##
19393 sed "s/^/$as_me: WARNING: /" >&2
19396 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19397 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19398 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19399 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19401 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19404 ## ------------------------------------ ##
19405 ## Report this to bug-autoconf@gnu.org. ##
19406 ## ------------------------------------ ##
19409 sed "s/^/$as_me: WARNING: /" >&2
19412 echo "$as_me:$LINENO: checking for $ac_header" >&5
19413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19415 echo $ECHO_N "(cached) $ECHO_C" >&6
19417 eval "$as_ac_Header=$ac_header_preproc"
19419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19424 cat >>confdefs.h <<_ACEOF
19425 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19434 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19435 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19436 if test "${ac_cv_c_const+set}" = set; then
19437 echo $ECHO_N "(cached) $ECHO_C" >&6
19439 cat >conftest.$ac_ext <<_ACEOF
19440 #line $LINENO "configure"
19443 cat confdefs.h >>conftest.$ac_ext
19444 cat >>conftest.$ac_ext <<_ACEOF
19445 /* end confdefs.h. */
19450 /* FIXME: Include the comments suggested by Paul. */
19451 #ifndef __cplusplus
19452 /* Ultrix mips cc rejects this. */
19453 typedef int charset[2];
19455 /* SunOS 4.1.1 cc rejects this. */
19456 char const *const *ccp;
19458 /* NEC SVR4.0.2 mips cc rejects this. */
19459 struct point {int x, y;};
19460 static struct point const zero = {0,0};
19461 /* AIX XL C 1.02.0.0 rejects this.
19462 It does not let you subtract one const X* pointer from another in
19463 an arm of an if-expression whose if-part is not a constant
19465 const char *g = "string";
19466 ccp = &g + (g ? g-g : 0);
19467 /* HPUX 7.0 cc rejects these. */
19470 ccp = (char const *const *) p;
19471 { /* SCO 3.2v4 cc rejects this. */
19473 char const *s = 0 ? (char *) 0 : (char const *) 0;
19477 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19478 int x[] = {25, 17};
19479 const int *foo = &x[0];
19482 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19483 typedef const int *iptr;
19487 { /* AIX XL C 1.02.0.0 rejects this saying
19488 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19489 struct s { int j; const int *ap[3]; };
19490 struct s *b; b->j = 5;
19492 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19493 const int foo = 10;
19501 rm -f conftest.$ac_objext
19502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19503 (eval $ac_compile) 2>&5
19505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19506 (exit $ac_status); } &&
19507 { ac_try='test -s conftest.$ac_objext'
19508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19509 (eval $ac_try) 2>&5
19511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512 (exit $ac_status); }; }; then
19515 echo "$as_me: failed program was:" >&5
19516 sed 's/^/| /' conftest.$ac_ext >&5
19520 rm -f conftest.$ac_objext conftest.$ac_ext
19522 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19523 echo "${ECHO_T}$ac_cv_c_const" >&6
19524 if test $ac_cv_c_const = no; then
19526 cat >>confdefs.h <<\_ACEOF
19532 echo "$as_me:$LINENO: checking for pid_t" >&5
19533 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19534 if test "${ac_cv_type_pid_t+set}" = set; then
19535 echo $ECHO_N "(cached) $ECHO_C" >&6
19537 cat >conftest.$ac_ext <<_ACEOF
19538 #line $LINENO "configure"
19541 cat confdefs.h >>conftest.$ac_ext
19542 cat >>conftest.$ac_ext <<_ACEOF
19543 /* end confdefs.h. */
19544 $ac_includes_default
19550 if (sizeof (pid_t))
19556 rm -f conftest.$ac_objext
19557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19558 (eval $ac_compile) 2>&5
19560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561 (exit $ac_status); } &&
19562 { ac_try='test -s conftest.$ac_objext'
19563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19564 (eval $ac_try) 2>&5
19566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567 (exit $ac_status); }; }; then
19568 ac_cv_type_pid_t=yes
19570 echo "$as_me: failed program was:" >&5
19571 sed 's/^/| /' conftest.$ac_ext >&5
19573 ac_cv_type_pid_t=no
19575 rm -f conftest.$ac_objext conftest.$ac_ext
19577 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19578 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19579 if test $ac_cv_type_pid_t = yes; then
19583 cat >>confdefs.h <<_ACEOF
19592 for ac_func in mkdir rmdir
19594 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19595 echo "$as_me:$LINENO: checking for $ac_func" >&5
19596 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19597 if eval "test \"\${$as_ac_var+set}\" = set"; then
19598 echo $ECHO_N "(cached) $ECHO_C" >&6
19600 cat >conftest.$ac_ext <<_ACEOF
19601 #line $LINENO "configure"
19604 cat confdefs.h >>conftest.$ac_ext
19605 cat >>conftest.$ac_ext <<_ACEOF
19606 /* end confdefs.h. */
19607 /* System header to define __stub macros and hopefully few prototypes,
19608 which can conflict with char $ac_func (); below.
19609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19610 <limits.h> exists even on freestanding compilers. */
19612 # include <limits.h>
19614 # include <assert.h>
19616 /* Override any gcc2 internal prototype to avoid an error. */
19621 /* We use char because int might match the return type of a gcc2
19622 builtin and then its argument prototype would still apply. */
19624 /* The GNU C library defines this for functions which it implements
19625 to always fail with ENOSYS. Some functions are actually named
19626 something starting with __ and the normal name is an alias. */
19627 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19630 char (*f) () = $ac_func;
19639 return f != $ac_func;
19644 rm -f conftest.$ac_objext conftest$ac_exeext
19645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19646 (eval $ac_link) 2>&5
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); } &&
19650 { ac_try='test -s conftest$ac_exeext'
19651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19652 (eval $ac_try) 2>&5
19654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655 (exit $ac_status); }; }; then
19656 eval "$as_ac_var=yes"
19658 echo "$as_me: failed program was:" >&5
19659 sed 's/^/| /' conftest.$ac_ext >&5
19661 eval "$as_ac_var=no"
19663 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19666 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19667 if test `eval echo '${'$as_ac_var'}'` = yes; then
19668 cat >>confdefs.h <<_ACEOF
19669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19676 if test -n "$WITH_CARDFS"; then
19677 echo checking for cardfs
19678 echo "$as_me:$LINENO: checking for libchipcard" >&5
19679 echo $ECHO_N "checking for libchipcard... $ECHO_C" >&6
19681 # Check whether --with-chipcard-dir or --without-chipcard-dir was given.
19682 if test "${with_chipcard_dir+set}" = set; then
19683 withval="$with_chipcard_dir"
19686 cc_dir="/usr/local/libchipcard \
19692 for li in $cc_dir; do
19693 if test -x "$li/bin/libchipcard-config"; then
19697 if test -z "$chipcard_dir"; then
19698 echo "$as_me:$LINENO: result: not found (chipcard support disabled)" >&5
19699 echo "${ECHO_T}not found (chipcard support disabled)" >&6
19701 all_libraries="$all_libraries `$chipcard_dir/bin/libchipcard-config --libraries`"
19702 all_includes="$all_includes `$chipcard_dir/bin/libchipcard-config --includes`"
19704 cat >>confdefs.h <<\_ACEOF
19705 #define HAS_LIBCHIPCARD 1
19708 define_has_libchipcard="#define HAS_LIBCHIPCARD"
19710 LIBCHIPCARD_LIB="`$chipcard_dir/bin/libchipcard-config --libraries` -lcardfs"
19711 LIBCHIPCARD_INCLUDES="`$chipcard_dir/bin/libchipcard-config --includes`"
19712 echo "$as_me:$LINENO: result: $chipcard_dir" >&5
19713 echo "${ECHO_T}$chipcard_dir" >&6
19714 all_libraries="$all_libraries $libchipcard_libs"
19715 all_includes="$all_includes $libchipcard_includes"
19716 opt_fs="$opt_fs cardfs"
19722 all_includes="$all_includes -I`pwd`/include"
19728 ac_config_files="$ac_config_files Makefile lufsd/Makefile filesystems/Makefile filesystems/localfs/Makefile filesystems/locasefs/Makefile filesystems/sshfs/Makefile filesystems/ftpfs/Makefile filesystems/cardfs/Makefile filesystems/cefs/Makefile filesystems/cefs/asyncd/Makefile filesystems/gvfs/Makefile filesystems/gnetfs/Makefile filesystems/wavfs/Makefile util/Makefile kernel/Makefile kernel/Linux/Makefile kernel/Linux/2.4/Makefile include/Makefile config/Makefile docs/Makefile man/Makefile"
19729 cat >confcache <<\_ACEOF
19730 # This file is a shell script that caches the results of configure
19731 # tests run on this system so they can be shared between configure
19732 # scripts and configure runs, see configure's option --config-cache.
19733 # It is not useful on other systems. If it contains results you don't
19734 # want to keep, you may remove or edit it.
19736 # config.status only pays attention to the cache file if you give it
19737 # the --recheck option to rerun configure.
19739 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19740 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19741 # following values.
19745 # The following way of writing the cache mishandles newlines in values,
19746 # but we know of no workaround that is simple, portable, and efficient.
19747 # So, don't put newlines in cache variables' values.
19748 # Ultrix sh set writes to stderr and can't be redirected directly,
19749 # and sets the high bit in the cache file unless we assign to the vars.
19752 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19754 # `set' does not quote correctly, so add quotes (double-quote
19755 # substitution turns \\\\ into \\, and sed turns \\ into \).
19758 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19761 # `set' quotes correctly as required by POSIX, so do not add quotes.
19763 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19770 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19772 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19774 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19775 if test -w $cache_file; then
19776 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19777 cat confcache >$cache_file
19779 echo "not updating unwritable cache $cache_file"
19784 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19785 # Let make expand exec_prefix.
19786 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19788 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19789 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19790 # trailing colons and then remove the whole line if VPATH becomes empty
19791 # (actually we leave an empty line to preserve line numbers).
19792 if test "x$srcdir" = x.; then
19793 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19794 s/:*\$(srcdir):*/:/;
19795 s/:*\${srcdir}:*/:/;
19797 s/^\([^=]*=[ ]*\):*/\1/;
19803 DEFS=-DHAVE_CONFIG_H
19807 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19808 # 1. Remove the extension, and $U if already installed.
19809 ac_i=`echo "$ac_i" |
19810 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19812 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19813 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19815 LIBOBJS=$ac_libobjs
19817 LTLIBOBJS=$ac_ltlibobjs
19820 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19821 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19822 Usually this means the macro was only invoked conditionally." >&5
19823 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19824 Usually this means the macro was only invoked conditionally." >&2;}
19825 { (exit 1); exit 1; }; }
19827 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19828 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19829 Usually this means the macro was only invoked conditionally." >&5
19830 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19831 Usually this means the macro was only invoked conditionally." >&2;}
19832 { (exit 1); exit 1; }; }
19834 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19835 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19836 Usually this means the macro was only invoked conditionally." >&5
19837 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19838 Usually this means the macro was only invoked conditionally." >&2;}
19839 { (exit 1); exit 1; }; }
19842 : ${CONFIG_STATUS=./config.status}
19843 ac_clean_files_save=$ac_clean_files
19844 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19845 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19846 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19847 cat >$CONFIG_STATUS <<_ACEOF
19849 # Generated by $as_me.
19850 # Run this file to recreate the current configuration.
19851 # Compiler output produced by configure, useful for debugging
19852 # configure, is in config.log if it exists.
19855 ac_cs_recheck=false
19857 SHELL=\${CONFIG_SHELL-$SHELL}
19860 cat >>$CONFIG_STATUS <<\_ACEOF
19861 ## --------------------- ##
19862 ## M4sh Initialization. ##
19863 ## --------------------- ##
19865 # Be Bourne compatible
19866 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19869 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19870 # is contrary to our usage. Disable this feature.
19871 alias -g '${1+"$@"}'='"$@"'
19872 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19876 # Support unset when possible.
19877 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
19884 # Work around bugs in pre-3.0 UWIN ksh.
19885 $as_unset ENV MAIL MAILPATH
19892 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19893 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19894 LC_TELEPHONE LC_TIME
19896 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
19897 eval $as_var=C; export $as_var
19903 # Required to use basename.
19904 if expr a : '\(a\)' >/dev/null 2>&1; then
19910 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19911 as_basename=basename
19917 # Name of the executable.
19918 as_me=`$as_basename "$0" ||
19919 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19920 X"$0" : 'X\(//\)$' \| \
19921 X"$0" : 'X\(/\)$' \| \
19922 . : '\(.\)' 2>/dev/null ||
19924 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19925 /^X\/\(\/\/\)$/{ s//\1/; q; }
19926 /^X\/\(\/\).*/{ s//\1/; q; }
19930 # PATH needs CR, and LINENO needs CR and PATH.
19931 # Avoid depending upon Character Ranges.
19932 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19933 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19934 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19935 as_cr_digits='0123456789'
19936 as_cr_alnum=$as_cr_Letters$as_cr_digits
19938 # The user is always right.
19939 if test "${PATH_SEPARATOR+set}" != set; then
19940 echo "#! /bin/sh" >conf$$.sh
19941 echo "exit 0" >>conf$$.sh
19943 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19952 as_lineno_1=$LINENO
19953 as_lineno_2=$LINENO
19954 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19955 test "x$as_lineno_1" != "x$as_lineno_2" &&
19956 test "x$as_lineno_3" = "x$as_lineno_2" || {
19957 # Find who we are. Look in the path if we contain no path at all
19960 *[\\/]* ) as_myself=$0 ;;
19961 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19962 for as_dir in $PATH
19965 test -z "$as_dir" && as_dir=.
19966 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19971 # We did not find ourselves, most probably we were run as `sh COMMAND'
19972 # in which case we are not to be found in the path.
19973 if test "x$as_myself" = x; then
19976 if test ! -f "$as_myself"; then
19977 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19978 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19979 { (exit 1); exit 1; }; }
19981 case $CONFIG_SHELL in
19983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19984 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19987 test -z "$as_dir" && as_dir=.
19988 for as_base in sh bash ksh sh5; do
19991 if ("$as_dir/$as_base" -c '
19992 as_lineno_1=$LINENO
19993 as_lineno_2=$LINENO
19994 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19995 test "x$as_lineno_1" != "x$as_lineno_2" &&
19996 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19997 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19998 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19999 CONFIG_SHELL=$as_dir/$as_base
20000 export CONFIG_SHELL
20001 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20009 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20010 # uniformly replaced by the line number. The first 'sed' inserts a
20011 # line-number line before each line; the second 'sed' does the real
20012 # work. The second script uses 'N' to pair each line-number line
20013 # with the numbered line, and appends trailing '-' during
20014 # substitution so that $LINENO is not a special case at line end.
20015 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20016 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20017 sed '=' <$as_myself |
20022 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20025 s,^['$as_cr_digits']*\n,,
20026 ' >$as_me.lineno &&
20027 chmod +x $as_me.lineno ||
20028 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20029 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20030 { (exit 1); exit 1; }; }
20032 # Don't try to exec as it changes $[0], causing all sort of problems
20033 # (the dirname of $[0] is not the place where we might find the
20034 # original and so on. Autoconf is especially sensible to this).
20036 # Exit status is that of the last command.
20041 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20042 *c*,-n*) ECHO_N= ECHO_C='
20044 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20045 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20048 if expr a : '\(a\)' >/dev/null 2>&1; then
20054 rm -f conf$$ conf$$.exe conf$$.file
20056 if ln -s conf$$.file conf$$ 2>/dev/null; then
20057 # We could just check for DJGPP; but this test a) works b) is more generic
20058 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20059 if test -f conf$$.exe; then
20060 # Don't use ln at all; we don't have any links
20065 elif ln conf$$.file conf$$ 2>/dev/null; then
20070 rm -f conf$$ conf$$.exe conf$$.file
20072 if mkdir -p . 2>/dev/null; then
20078 as_executable_p="test -f"
20080 # Sed expression to map a string onto a valid CPP name.
20081 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
20083 # Sed expression to map a string onto a valid variable name.
20084 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20088 # We need space, tab and new line, in precisely that order.
20098 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20099 # report actual input values of CONFIG_FILES etc. instead of their
20100 # values after options handling. Logging --version etc. is OK.
20104 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20105 ## Running $as_me. ##
20110 This file was extended by $as_me, which was
20111 generated by GNU Autoconf 2.57. Invocation command line was
20113 CONFIG_FILES = $CONFIG_FILES
20114 CONFIG_HEADERS = $CONFIG_HEADERS
20115 CONFIG_LINKS = $CONFIG_LINKS
20116 CONFIG_COMMANDS = $CONFIG_COMMANDS
20120 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20124 # Files that config.status was made for.
20125 if test -n "$ac_config_files"; then
20126 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20129 if test -n "$ac_config_headers"; then
20130 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20133 if test -n "$ac_config_links"; then
20134 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20137 if test -n "$ac_config_commands"; then
20138 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20141 cat >>$CONFIG_STATUS <<\_ACEOF
20144 \`$as_me' instantiates files from templates according to the
20145 current configuration.
20147 Usage: $0 [OPTIONS] [FILE]...
20149 -h, --help print this help, then exit
20150 -V, --version print version number, then exit
20151 -q, --quiet do not print progress messages
20152 -d, --debug don't remove temporary files
20153 --recheck update $as_me by reconfiguring in the same conditions
20154 --file=FILE[:TEMPLATE]
20155 instantiate the configuration file FILE
20156 --header=FILE[:TEMPLATE]
20157 instantiate the configuration header FILE
20159 Configuration files:
20162 Configuration headers:
20165 Configuration commands:
20168 Report bugs to <bug-autoconf@gnu.org>."
20171 cat >>$CONFIG_STATUS <<_ACEOF
20174 configured by $0, generated by GNU Autoconf 2.57,
20175 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20177 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
20178 Free Software Foundation, Inc.
20179 This config.status script is free software; the Free Software Foundation
20180 gives unlimited permission to copy, distribute and modify it."
20185 cat >>$CONFIG_STATUS <<\_ACEOF
20186 # If no file are specified by the user, then we need to provide default
20187 # value. By we need to know if files were specified by the user.
20193 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20194 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20202 *) # This is not an option, so the user has probably given explicit
20205 ac_need_defaults=false;;
20209 # Handling of the options.
20211 cat >>$CONFIG_STATUS <<\_ACEOF
20212 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20214 --version | --vers* | -V )
20215 echo "$ac_cs_version"; exit 0 ;;
20217 # Conflict between --help and --header
20218 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20219 Try \`$0 --help' for more information." >&5
20220 echo "$as_me: error: ambiguous option: $1
20221 Try \`$0 --help' for more information." >&2;}
20222 { (exit 1); exit 1; }; };;
20223 --help | --hel | -h )
20224 echo "$ac_cs_usage"; exit 0 ;;
20225 --debug | --d* | -d )
20227 --file | --fil | --fi | --f )
20229 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20230 ac_need_defaults=false;;
20231 --header | --heade | --head | --hea )
20233 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20234 ac_need_defaults=false;;
20235 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20236 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20239 # This is an error.
20240 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20241 Try \`$0 --help' for more information." >&5
20242 echo "$as_me: error: unrecognized option: $1
20243 Try \`$0 --help' for more information." >&2;}
20244 { (exit 1); exit 1; }; } ;;
20246 *) ac_config_targets="$ac_config_targets $1" ;;
20252 ac_configure_extra_args=
20254 if $ac_cs_silent; then
20256 ac_configure_extra_args="$ac_configure_extra_args --silent"
20260 cat >>$CONFIG_STATUS <<_ACEOF
20261 if \$ac_cs_recheck; then
20262 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20263 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20268 cat >>$CONFIG_STATUS <<_ACEOF
20270 # INIT-COMMANDS section.
20273 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20279 cat >>$CONFIG_STATUS <<\_ACEOF
20280 for ac_config_target in $ac_config_targets
20282 case "$ac_config_target" in
20283 # Handling of arguments.
20284 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20285 "lufsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES lufsd/Makefile" ;;
20286 "filesystems/Makefile" ) CONFIG_FILES="$CONFIG_FILES filesystems/Makefile" ;;
20287 "filesystems/localfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES filesystems/localfs/Makefile" ;;
20288 "filesystems/locasefs/Makefile" ) CONFIG_FILES="$CONFIG_FILES filesystems/locasefs/Makefile" ;;
20289 "filesystems/sshfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES filesystems/sshfs/Makefile" ;;
20290 "filesystems/ftpfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES filesystems/ftpfs/Makefile" ;;
20291 "filesystems/cardfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES filesystems/cardfs/Makefile" ;;
20292 "filesystems/cefs/Makefile" ) CONFIG_FILES="$CONFIG_FILES filesystems/cefs/Makefile" ;;
20293 "filesystems/cefs/asyncd/Makefile" ) CONFIG_FILES="$CONFIG_FILES filesystems/cefs/asyncd/Makefile" ;;
20294 "filesystems/gvfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES filesystems/gvfs/Makefile" ;;
20295 "filesystems/gnetfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES filesystems/gnetfs/Makefile" ;;
20296 "filesystems/wavfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES filesystems/wavfs/Makefile" ;;
20297 "util/Makefile" ) CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
20298 "kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;;
20299 "kernel/Linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES kernel/Linux/Makefile" ;;
20300 "kernel/Linux/2.4/Makefile" ) CONFIG_FILES="$CONFIG_FILES kernel/Linux/2.4/Makefile" ;;
20301 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20302 "config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
20303 "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
20304 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20305 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20306 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20307 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20308 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20309 { (exit 1); exit 1; }; };;
20313 # If the user did not use the arguments to specify the items to instantiate,
20314 # then the envvar interface is used. Set only those that are not.
20315 # We use the long form for the default assignment because of an extremely
20316 # bizarre bug on SunOS 4.1.3.
20317 if $ac_need_defaults; then
20318 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20319 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20320 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20323 # Have a temporary directory for convenience. Make it in the build tree
20324 # simply because there is no reason to put it here, and in addition,
20325 # creating and moving files from /tmp can sometimes cause problems.
20326 # Create a temporary directory, and hook for its removal unless debugging.
20329 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20330 trap '{ (exit 1); exit 1; }' 1 2 13 15
20333 # Create a (secure) tmp directory for tmp files.
20336 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20337 test -n "$tmp" && test -d "$tmp"
20340 tmp=./confstat$$-$RANDOM
20341 (umask 077 && mkdir $tmp)
20344 echo "$me: cannot create a temporary directory in ." >&2
20345 { (exit 1); exit 1; }
20350 cat >>$CONFIG_STATUS <<_ACEOF
20353 # CONFIG_FILES section.
20356 # No need to generate the scripts if there are no CONFIG_FILES.
20357 # This happens for instance when ./config.status config.h
20358 if test -n "\$CONFIG_FILES"; then
20359 # Protect against being on the right side of a sed subst in config.status.
20360 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20361 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20362 s,@SHELL@,$SHELL,;t t
20363 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20364 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20365 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20366 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20367 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20368 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20369 s,@exec_prefix@,$exec_prefix,;t t
20370 s,@prefix@,$prefix,;t t
20371 s,@program_transform_name@,$program_transform_name,;t t
20372 s,@bindir@,$bindir,;t t
20373 s,@sbindir@,$sbindir,;t t
20374 s,@libexecdir@,$libexecdir,;t t
20375 s,@datadir@,$datadir,;t t
20376 s,@sysconfdir@,$sysconfdir,;t t
20377 s,@sharedstatedir@,$sharedstatedir,;t t
20378 s,@localstatedir@,$localstatedir,;t t
20379 s,@libdir@,$libdir,;t t
20380 s,@includedir@,$includedir,;t t
20381 s,@oldincludedir@,$oldincludedir,;t t
20382 s,@infodir@,$infodir,;t t
20383 s,@mandir@,$mandir,;t t
20384 s,@build_alias@,$build_alias,;t t
20385 s,@host_alias@,$host_alias,;t t
20386 s,@target_alias@,$target_alias,;t t
20387 s,@DEFS@,$DEFS,;t t
20388 s,@ECHO_C@,$ECHO_C,;t t
20389 s,@ECHO_N@,$ECHO_N,;t t
20390 s,@ECHO_T@,$ECHO_T,;t t
20391 s,@LIBS@,$LIBS,;t t
20392 s,@build@,$build,;t t
20393 s,@build_cpu@,$build_cpu,;t t
20394 s,@build_vendor@,$build_vendor,;t t
20395 s,@build_os@,$build_os,;t t
20396 s,@host@,$host,;t t
20397 s,@host_cpu@,$host_cpu,;t t
20398 s,@host_vendor@,$host_vendor,;t t
20399 s,@host_os@,$host_os,;t t
20400 s,@target@,$target,;t t
20401 s,@target_cpu@,$target_cpu,;t t
20402 s,@target_vendor@,$target_vendor,;t t
20403 s,@target_os@,$target_os,;t t
20404 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20405 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20406 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20407 s,@CYGPATH_W@,$CYGPATH_W,;t t
20408 s,@PACKAGE@,$PACKAGE,;t t
20409 s,@VERSION@,$VERSION,;t t
20410 s,@ACLOCAL@,$ACLOCAL,;t t
20411 s,@AUTOCONF@,$AUTOCONF,;t t
20412 s,@AUTOMAKE@,$AUTOMAKE,;t t
20413 s,@AUTOHEADER@,$AUTOHEADER,;t t
20414 s,@MAKEINFO@,$MAKEINFO,;t t
20415 s,@AMTAR@,$AMTAR,;t t
20416 s,@install_sh@,$install_sh,;t t
20417 s,@STRIP@,$STRIP,;t t
20418 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20419 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20421 s,@SET_MAKE@,$SET_MAKE,;t t
20422 s,@am__leading_dot@,$am__leading_dot,;t t
20423 s,@MODV_FLAGS@,$MODV_FLAGS,;t t
20424 s,@KERNEL_DIR@,$KERNEL_DIR,;t t
20425 s,@MODULES_DIR@,$MODULES_DIR,;t t
20426 s,@KERNEL_HDR@,$KERNEL_HDR,;t t
20427 s,@OS_DIR@,$OS_DIR,;t t
20428 s,@DEBUG_FLAGS@,$DEBUG_FLAGS,;t t
20429 s,@KDEBUG_FLAGS@,$KDEBUG_FLAGS,;t t
20430 s,@AUTOFS_INSTALL@,$AUTOFS_INSTALL,;t t
20431 s,@LUFS_SUID@,$LUFS_SUID,;t t
20433 s,@CFLAGS@,$CFLAGS,;t t
20434 s,@LDFLAGS@,$LDFLAGS,;t t
20435 s,@CPPFLAGS@,$CPPFLAGS,;t t
20436 s,@ac_ct_CC@,$ac_ct_CC,;t t
20437 s,@EXEEXT@,$EXEEXT,;t t
20438 s,@OBJEXT@,$OBJEXT,;t t
20439 s,@DEPDIR@,$DEPDIR,;t t
20440 s,@am__include@,$am__include,;t t
20441 s,@am__quote@,$am__quote,;t t
20442 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20443 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20444 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20445 s,@CCDEPMODE@,$CCDEPMODE,;t t
20446 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20447 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20450 s,@CXXFLAGS@,$CXXFLAGS,;t t
20451 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20452 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20453 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20454 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20455 s,@LN_S@,$LN_S,;t t
20456 s,@EGREP@,$EGREP,;t t
20457 s,@ECHO@,$ECHO,;t t
20459 s,@ac_ct_AR@,$ac_ct_AR,;t t
20460 s,@RANLIB@,$RANLIB,;t t
20461 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20462 s,@CXXCPP@,$CXXCPP,;t t
20464 s,@FFLAGS@,$FFLAGS,;t t
20465 s,@ac_ct_F77@,$ac_ct_F77,;t t
20466 s,@LIBTOOL@,$LIBTOOL,;t t
20467 s,@SSHPROG@,$SSHPROG,;t t
20468 s,@GCONF@,$GCONF,;t t
20469 s,@GVFSCONF@,$GVFSCONF,;t t
20470 s,@GVFS_LDADD@,$GVFS_LDADD,;t t
20471 s,@GVFS_CFLAGS@,$GVFS_CFLAGS,;t t
20472 s,@define_has_libchipcard@,$define_has_libchipcard,;t t
20473 s,@LIBCHIPCARD_LIB@,$LIBCHIPCARD_LIB,;t t
20474 s,@LIBCHIPCARD_INCLUDES@,$LIBCHIPCARD_INCLUDES,;t t
20475 s,@opt_fs@,$opt_fs,;t t
20476 s,@all_includes@,$all_includes,;t t
20477 s,@all_libraries@,$all_libraries,;t t
20478 s,@LIBOBJS@,$LIBOBJS,;t t
20479 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20484 cat >>$CONFIG_STATUS <<\_ACEOF
20485 # Split the substitutions into bite-sized pieces for seds with
20486 # small command number limits, like on Digital OSF/1 and HP-UX.
20487 ac_max_sed_lines=48
20488 ac_sed_frag=1 # Number of current file.
20489 ac_beg=1 # First line for current file.
20490 ac_end=$ac_max_sed_lines # Line after last line for current file.
20493 while $ac_more_lines; do
20494 if test $ac_beg -gt 1; then
20495 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20497 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20499 if test ! -s $tmp/subs.frag; then
20500 ac_more_lines=false
20502 # The purpose of the label and of the branching condition is to
20503 # speed up the sed processing (if there are no `@' at all, there
20504 # is no need to browse any of the substitutions).
20505 # These are the two extra sed commands mentioned above.
20507 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20508 if test -z "$ac_sed_cmds"; then
20509 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20511 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20513 ac_sed_frag=`expr $ac_sed_frag + 1`
20515 ac_end=`expr $ac_end + $ac_max_sed_lines`
20518 if test -z "$ac_sed_cmds"; then
20521 fi # test -n "$CONFIG_FILES"
20524 cat >>$CONFIG_STATUS <<\_ACEOF
20525 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20526 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20528 - | *:- | *:-:* ) # input from stdin
20530 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20531 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20532 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20533 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20534 * ) ac_file_in=$ac_file.in ;;
20537 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20538 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20539 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20540 X"$ac_file" : 'X\(//\)[^/]' \| \
20541 X"$ac_file" : 'X\(//\)$' \| \
20542 X"$ac_file" : 'X\(/\)' \| \
20543 . : '\(.\)' 2>/dev/null ||
20545 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20546 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20547 /^X\(\/\/\)$/{ s//\1/; q; }
20548 /^X\(\/\).*/{ s//\1/; q; }
20550 { if $as_mkdir_p; then
20555 while test ! -d "$as_dir"; do
20556 as_dirs="$as_dir $as_dirs"
20557 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20558 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20559 X"$as_dir" : 'X\(//\)[^/]' \| \
20560 X"$as_dir" : 'X\(//\)$' \| \
20561 X"$as_dir" : 'X\(/\)' \| \
20562 . : '\(.\)' 2>/dev/null ||
20564 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20565 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20566 /^X\(\/\/\)$/{ s//\1/; q; }
20567 /^X\(\/\).*/{ s//\1/; q; }
20570 test ! -n "$as_dirs" || mkdir $as_dirs
20571 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20572 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20573 { (exit 1); exit 1; }; }; }
20577 if test "$ac_dir" != .; then
20578 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20579 # A "../" for each directory in $ac_dir_suffix.
20580 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20582 ac_dir_suffix= ac_top_builddir=
20586 .) # No --srcdir option. We are building in place.
20588 if test -z "$ac_top_builddir"; then
20591 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20593 [\\/]* | ?:[\\/]* ) # Absolute path.
20594 ac_srcdir=$srcdir$ac_dir_suffix;
20595 ac_top_srcdir=$srcdir ;;
20596 *) # Relative path.
20597 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20598 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20600 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20602 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20603 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20604 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20605 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20609 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20610 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20613 if test x"$ac_file" != x-; then
20614 { echo "$as_me:$LINENO: creating $ac_file" >&5
20615 echo "$as_me: creating $ac_file" >&6;}
20618 # Let's still pretend it is `configure' which instantiates (i.e., don't
20619 # use $as_me), people would be surprised to read:
20620 # /* config.h. Generated by config.status. */
20621 if test x"$ac_file" = x-; then
20624 configure_input="$ac_file. "
20626 configure_input=$configure_input"Generated from `echo $ac_file_in |
20627 sed 's,.*/,,'` by configure."
20629 # First look for the input files in the build tree, otherwise in the
20631 ac_file_inputs=`IFS=:
20632 for f in $ac_file_in; do
20634 -) echo $tmp/stdin ;;
20636 # Absolute (can't be DOS-style, as IFS=:)
20637 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20638 echo "$as_me: error: cannot find input file: $f" >&2;}
20639 { (exit 1); exit 1; }; }
20642 if test -f "$f"; then
20645 elif test -f "$srcdir/$f"; then
20650 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20651 echo "$as_me: error: cannot find input file: $f" >&2;}
20652 { (exit 1); exit 1; }; }
20655 done` || { (exit 1); exit 1; }
20657 cat >>$CONFIG_STATUS <<_ACEOF
20661 cat >>$CONFIG_STATUS <<\_ACEOF
20663 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20664 s,@configure_input@,$configure_input,;t t
20665 s,@srcdir@,$ac_srcdir,;t t
20666 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20667 s,@top_srcdir@,$ac_top_srcdir,;t t
20668 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20669 s,@builddir@,$ac_builddir,;t t
20670 s,@abs_builddir@,$ac_abs_builddir,;t t
20671 s,@top_builddir@,$ac_top_builddir,;t t
20672 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20673 s,@INSTALL@,$ac_INSTALL,;t t
20674 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20676 if test x"$ac_file" != x-; then
20677 mv $tmp/out $ac_file
20685 cat >>$CONFIG_STATUS <<\_ACEOF
20688 # CONFIG_HEADER section.
20691 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20692 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20694 # ac_d sets the value in "#define NAME VALUE" lines.
20695 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20696 ac_dB='[ ].*$,\1#\2'
20699 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20700 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20701 ac_uB='$,\1#\2define\3'
20705 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20706 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20708 - | *:- | *:-:* ) # input from stdin
20710 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20711 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20712 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20713 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20714 * ) ac_file_in=$ac_file.in ;;
20717 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20718 echo "$as_me: creating $ac_file" >&6;}
20720 # First look for the input files in the build tree, otherwise in the
20722 ac_file_inputs=`IFS=:
20723 for f in $ac_file_in; do
20725 -) echo $tmp/stdin ;;
20727 # Absolute (can't be DOS-style, as IFS=:)
20728 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20729 echo "$as_me: error: cannot find input file: $f" >&2;}
20730 { (exit 1); exit 1; }; }
20733 if test -f "$f"; then
20736 elif test -f "$srcdir/$f"; then
20741 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20742 echo "$as_me: error: cannot find input file: $f" >&2;}
20743 { (exit 1); exit 1; }; }
20746 done` || { (exit 1); exit 1; }
20747 # Remove the trailing spaces.
20748 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20752 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20753 # `conftest.undefs', that substitutes the proper values into
20754 # config.h.in to produce config.h. The first handles `#define'
20755 # templates, and the second `#undef' templates.
20756 # And first: Protect against being on the right side of a sed subst in
20757 # config.status. Protect against being in an unquoted here document
20758 # in config.status.
20759 rm -f conftest.defines conftest.undefs
20760 # Using a here document instead of a string reduces the quoting nightmare.
20761 # Putting comments in sed scripts is not portable.
20763 # `end' is used to avoid that the second main sed command (meant for
20764 # 0-ary CPP macros) applies to n-ary macro definitions.
20765 # See the Autoconf documentation for `clear'.
20766 cat >confdef2sed.sed <<\_ACEOF
20771 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20773 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20776 # If some macros were called several times there might be several times
20777 # the same #defines, which is useless. Nevertheless, we may not want to
20778 # sort them, since we want the *last* AC-DEFINE to be honored.
20779 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20780 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20781 rm -f confdef2sed.sed
20783 # This sed command replaces #undef with comments. This is necessary, for
20784 # example, in the case of _POSIX_SOURCE, which is predefined and required
20785 # on some systems where configure will not decide to define it.
20786 cat >>conftest.undefs <<\_ACEOF
20787 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20790 # Break up conftest.defines because some shells have a limit on the size
20791 # of here documents, and old seds have small limits too (100 cmds).
20792 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20793 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20794 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20795 echo ' :' >>$CONFIG_STATUS
20796 rm -f conftest.tail
20797 while grep . conftest.defines >/dev/null
20799 # Write a limited-size here document to $tmp/defines.sed.
20800 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20801 # Speed up: don't consider the non `#define' lines.
20802 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20803 # Work around the forget-to-reset-the-flag bug.
20804 echo 't clr' >>$CONFIG_STATUS
20805 echo ': clr' >>$CONFIG_STATUS
20806 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20808 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20810 mv $tmp/out $tmp/in
20812 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20813 rm -f conftest.defines
20814 mv conftest.tail conftest.defines
20816 rm -f conftest.defines
20817 echo ' fi # grep' >>$CONFIG_STATUS
20818 echo >>$CONFIG_STATUS
20820 # Break up conftest.undefs because some shells have a limit on the size
20821 # of here documents, and old seds have small limits too (100 cmds).
20822 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20823 rm -f conftest.tail
20824 while grep . conftest.undefs >/dev/null
20826 # Write a limited-size here document to $tmp/undefs.sed.
20827 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20828 # Speed up: don't consider the non `#undef'
20829 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20830 # Work around the forget-to-reset-the-flag bug.
20831 echo 't clr' >>$CONFIG_STATUS
20832 echo ': clr' >>$CONFIG_STATUS
20833 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20835 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20837 mv $tmp/out $tmp/in
20839 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20840 rm -f conftest.undefs
20841 mv conftest.tail conftest.undefs
20843 rm -f conftest.undefs
20845 cat >>$CONFIG_STATUS <<\_ACEOF
20846 # Let's still pretend it is `configure' which instantiates (i.e., don't
20847 # use $as_me), people would be surprised to read:
20848 # /* config.h. Generated by config.status. */
20849 if test x"$ac_file" = x-; then
20850 echo "/* Generated by configure. */" >$tmp/config.h
20852 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20854 cat $tmp/in >>$tmp/config.h
20856 if test x"$ac_file" != x-; then
20857 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20858 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20859 echo "$as_me: $ac_file is unchanged" >&6;}
20861 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20862 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20863 X"$ac_file" : 'X\(//\)[^/]' \| \
20864 X"$ac_file" : 'X\(//\)$' \| \
20865 X"$ac_file" : 'X\(/\)' \| \
20866 . : '\(.\)' 2>/dev/null ||
20868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20869 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20870 /^X\(\/\/\)$/{ s//\1/; q; }
20871 /^X\(\/\).*/{ s//\1/; q; }
20873 { if $as_mkdir_p; then
20878 while test ! -d "$as_dir"; do
20879 as_dirs="$as_dir $as_dirs"
20880 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20881 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20882 X"$as_dir" : 'X\(//\)[^/]' \| \
20883 X"$as_dir" : 'X\(//\)$' \| \
20884 X"$as_dir" : 'X\(/\)' \| \
20885 . : '\(.\)' 2>/dev/null ||
20887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20888 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20889 /^X\(\/\/\)$/{ s//\1/; q; }
20890 /^X\(\/\).*/{ s//\1/; q; }
20893 test ! -n "$as_dirs" || mkdir $as_dirs
20894 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20895 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20896 { (exit 1); exit 1; }; }; }
20899 mv $tmp/config.h $ac_file
20903 rm -f $tmp/config.h
20905 # Compute $ac_file's index in $config_headers.
20907 for _am_header in $config_headers :; do
20908 case $_am_header in
20909 $ac_file | $ac_file:* )
20912 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20915 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20916 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20917 X$ac_file : 'X\(//\)[^/]' \| \
20918 X$ac_file : 'X\(//\)$' \| \
20919 X$ac_file : 'X\(/\)' \| \
20920 . : '\(.\)' 2>/dev/null ||
20922 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20923 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20924 /^X\(\/\/\)$/{ s//\1/; q; }
20925 /^X\(\/\).*/{ s//\1/; q; }
20926 s/.*/./; q'`/stamp-h$_am_stamp_count
20929 cat >>$CONFIG_STATUS <<\_ACEOF
20932 # CONFIG_COMMANDS section.
20934 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20935 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20936 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20937 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20938 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20939 X"$ac_dest" : 'X\(//\)[^/]' \| \
20940 X"$ac_dest" : 'X\(//\)$' \| \
20941 X"$ac_dest" : 'X\(/\)' \| \
20942 . : '\(.\)' 2>/dev/null ||
20944 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20945 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20946 /^X\(\/\/\)$/{ s//\1/; q; }
20947 /^X\(\/\).*/{ s//\1/; q; }
20951 if test "$ac_dir" != .; then
20952 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20953 # A "../" for each directory in $ac_dir_suffix.
20954 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20956 ac_dir_suffix= ac_top_builddir=
20960 .) # No --srcdir option. We are building in place.
20962 if test -z "$ac_top_builddir"; then
20965 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20967 [\\/]* | ?:[\\/]* ) # Absolute path.
20968 ac_srcdir=$srcdir$ac_dir_suffix;
20969 ac_top_srcdir=$srcdir ;;
20970 *) # Relative path.
20971 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20972 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20974 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20976 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20977 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20978 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20979 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20982 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20983 echo "$as_me: executing $ac_dest commands" >&6;}
20985 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20986 # Strip MF so we end up with the name of the file.
20987 mf=`echo "$mf" | sed -e 's/:.*$//'`
20988 # Check whether this is an Automake generated Makefile or not.
20989 # We used to match only the files named `Makefile.in', but
20990 # some people rename them; so instead we look at the file content.
20991 # Grep'ing the first line is not enough: some people post-process
20992 # each Makefile.in and add a new line on top of each file to say so.
20993 # So let's grep whole file.
20994 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20995 dirpart=`(dirname "$mf") 2>/dev/null ||
20996 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20997 X"$mf" : 'X\(//\)[^/]' \| \
20998 X"$mf" : 'X\(//\)$' \| \
20999 X"$mf" : 'X\(/\)' \| \
21000 . : '\(.\)' 2>/dev/null ||
21002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21003 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21004 /^X\(\/\/\)$/{ s//\1/; q; }
21005 /^X\(\/\).*/{ s//\1/; q; }
21010 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
21011 # Extract the definition of DEP_FILES from the Makefile without
21013 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
21014 test -z "$DEPDIR" && continue
21015 # When using ansi2knr, U may be empty or an underscore; expand it
21016 U=`sed -n -e '/^U = / s///p' < "$mf"`
21017 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
21018 # We invoke sed twice because it is the simplest approach to
21019 # changing $(DEPDIR) to its actual value in the expansion.
21020 for file in `sed -n -e '
21021 /^DEP_FILES = .*\\\\$/ {
21030 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
21031 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21032 # Make sure the directory exists.
21033 test -f "$dirpart/$file" && continue
21034 fdir=`(dirname "$file") 2>/dev/null ||
21035 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21036 X"$file" : 'X\(//\)[^/]' \| \
21037 X"$file" : 'X\(//\)$' \| \
21038 X"$file" : 'X\(/\)' \| \
21039 . : '\(.\)' 2>/dev/null ||
21041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21042 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21043 /^X\(\/\/\)$/{ s//\1/; q; }
21044 /^X\(\/\).*/{ s//\1/; q; }
21046 { if $as_mkdir_p; then
21047 mkdir -p $dirpart/$fdir
21049 as_dir=$dirpart/$fdir
21051 while test ! -d "$as_dir"; do
21052 as_dirs="$as_dir $as_dirs"
21053 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21054 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21055 X"$as_dir" : 'X\(//\)[^/]' \| \
21056 X"$as_dir" : 'X\(//\)$' \| \
21057 X"$as_dir" : 'X\(/\)' \| \
21058 . : '\(.\)' 2>/dev/null ||
21060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21061 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21062 /^X\(\/\/\)$/{ s//\1/; q; }
21063 /^X\(\/\).*/{ s//\1/; q; }
21066 test ! -n "$as_dirs" || mkdir $as_dirs
21067 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21068 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21069 { (exit 1); exit 1; }; }; }
21071 # echo "creating $dirpart/$file"
21072 echo '# dummy' > "$dirpart/$file"
21080 cat >>$CONFIG_STATUS <<\_ACEOF
21082 { (exit 0); exit 0; }
21084 chmod +x $CONFIG_STATUS
21085 ac_clean_files=$ac_clean_files_save
21088 # configure is writing to config.log, and then calls config.status.
21089 # config.status does its own redirection, appending to config.log.
21090 # Unfortunately, on DOS this fails, as config.log is still kept open
21091 # by configure, so config.status won't be able to write to it; its
21092 # output is simply discarded. So we exec the FD to /dev/null,
21093 # effectively closing config.log, so it can be properly (re)opened and
21094 # appended to by config.status. When coming back to configure, we
21095 # need to make the FD available again.
21096 if test "$no_create" != yes; then
21098 ac_config_status_args=
21099 test "$silent" = yes &&
21100 ac_config_status_args="$ac_config_status_args --quiet"
21102 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21104 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21105 # would make configure fail if this is the last instruction.
21106 $ac_cs_success || { (exit 1); exit 1; }
21110 echo "###############################################################################"
21111 echo " supported filesystems: $opt_fs"
21112 echo -n " suid files: "
21113 if test $LUFS_SUID; then echo "lufsmnt & lufsumount."; else echo "none."; fi
21114 echo "###############################################################################"