2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for [LLVM] [1.0].
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
226 as_executable_p="test -f"
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
236 # We need space, tab and new line, in precisely that order.
246 # Check that we are running under the correct shell.
247 SHELL=${CONFIG_SHELL-/bin/sh}
251 # Remove one level of quotation (which was required for Make).
252 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
257 if test "X$1" = X--no-reexec; then
258 # Discard the --no-reexec flag, and continue.
260 elif test "X$1" = X--fallback-echo; then
261 # Avoid inline document here, it may be left over
263 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
264 # Yippee, $echo works!
267 # Restart under the correct shell.
268 exec $SHELL "$0" --no-reexec ${1+"$@"}
271 if test "X$1" = X--fallback-echo; then
272 # used as fallback echo
280 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
284 if test -z "$ECHO"; then
285 if test "X${echo_test_string+set}" != Xset; then
286 # find a string as large as possible, as long as the shell can cope with it
287 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290 echo_test_string="`eval $cmd`" &&
291 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
298 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300 test "X$echo_testing_string" = "X$echo_test_string"; then
303 # The Solaris, AIX, and Digital Unix default echo programs unquote
304 # backslashes. This makes it impossible to quote backslashes using
305 # echo "$something" | sed 's/\\/\\\\/g'
307 # So, first we look for a working echo in the user's PATH.
309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310 for dir in $PATH /usr/ucb; do
312 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315 test "X$echo_testing_string" = "X$echo_test_string"; then
322 if test "X$echo" = Xecho; then
323 # We didn't find a better echo, so look for alternatives.
324 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326 test "X$echo_testing_string" = "X$echo_test_string"; then
327 # This shell has a builtin print -r that does the trick.
329 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330 test "X$CONFIG_SHELL" != X/bin/ksh; then
331 # If we have ksh, try running configure again with it.
332 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333 export ORIGINAL_CONFIG_SHELL
334 CONFIG_SHELL=/bin/ksh
336 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342 test "X$echo_testing_string" = "X$echo_test_string"; then
345 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346 test "X$echo_testing_string" = 'X\t' &&
347 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348 test "X$echo_testing_string" = "X$echo_test_string"; then
349 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351 SHELL="$CONFIG_SHELL"
353 echo="$CONFIG_SHELL $0 --fallback-echo"
354 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355 test "X$echo_testing_string" = 'X\t' &&
356 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 echo="$CONFIG_SHELL $0 --fallback-echo"
360 # maybe with a smaller string...
363 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
371 if test "$prev" != 'sed 50q "$0"'; then
372 echo_test_string=`eval $prev`
373 export echo_test_string
374 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376 # Oops. We lost completely, so just stick with echo.
385 # Copy echo and quote the copy suitably for passing to libtool from
386 # the Makefile, instead of quoting the original, which is used later.
388 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
395 tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
397 tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
400 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401 # so uname gets run too.
402 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
409 ac_default_prefix=/usr/local
410 ac_config_libobj_dir=.
415 SHELL=${CONFIG_SHELL-/bin/sh}
417 # Maximum number of lines to put in a shell here document.
418 # This variable seems obsolete. It should probably be removed, and
419 # only ac_max_sed_lines should be used.
420 : ${ac_max_here_lines=38}
422 # Identity of this package.
423 PACKAGE_NAME='[LLVM]'
424 PACKAGE_TARNAME='--llvm--'
425 PACKAGE_VERSION='[1.0]'
426 PACKAGE_STRING='[LLVM] [1.0]'
427 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
429 # Factoring default headers for most tests.
430 ac_includes_default="\
433 # include <sys/types.h>
436 # include <sys/stat.h>
447 # if !STDC_HEADERS && HAVE_MEMORY_H
453 # include <strings.h>
456 # include <inttypes.h>
466 ac_unique_file=""Makefile.config.in""
467 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT YACC EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL SED RM MKDIR DATE MV DOT ETAGS PURIFY ALLOCA LIBOBJS MMAP_FILE ENABLE_PURIFY ENABLE_OPTIMIZED USE_SPEC UPB JIT SPEC_ROOT BCR PAPIDIR OBJROOT LTLIBOBJS'
470 # Initialize some variables set by options.
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
482 program_transform_name=s,x,x,
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
511 # If the previous option needs an argument, assign it.
512 if test -n "$ac_prev"; then
513 eval "$ac_prev=\$ac_option"
518 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520 # Accept the important Cygnus configure options, so we can diagnose typos.
524 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529 -build | --build | --buil | --bui | --bu)
530 ac_prev=build_alias ;;
531 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532 build_alias=$ac_optarg ;;
534 -cache-file | --cache-file | --cache-fil | --cache-fi \
535 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536 ac_prev=cache_file ;;
537 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539 cache_file=$ac_optarg ;;
542 cache_file=config.cache ;;
544 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 datadir=$ac_optarg ;;
550 -disable-* | --disable-*)
551 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555 { (exit 1); exit 1; }; }
556 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557 eval "enable_$ac_feature=no" ;;
559 -enable-* | --enable-*)
560 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561 # Reject names that are not valid shell variable names.
562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564 { (exit 1); exit 1; }; }
565 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570 eval "enable_$ac_feature='$ac_optarg'" ;;
572 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574 | --exec | --exe | --ex)
575 ac_prev=exec_prefix ;;
576 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578 | --exec=* | --exe=* | --ex=*)
579 exec_prefix=$ac_optarg ;;
581 -gas | --gas | --ga | --g)
582 # Obsolete; use --with-gas.
585 -help | --help | --hel | --he | -h)
587 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588 ac_init_help=recursive ;;
589 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590 ac_init_help=short ;;
592 -host | --host | --hos | --ho)
593 ac_prev=host_alias ;;
594 -host=* | --host=* | --hos=* | --ho=*)
595 host_alias=$ac_optarg ;;
597 -includedir | --includedir | --includedi | --included | --include \
598 | --includ | --inclu | --incl | --inc)
599 ac_prev=includedir ;;
600 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601 | --includ=* | --inclu=* | --incl=* | --inc=*)
602 includedir=$ac_optarg ;;
604 -infodir | --infodir | --infodi | --infod | --info | --inf)
606 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607 infodir=$ac_optarg ;;
609 -libdir | --libdir | --libdi | --libd)
611 -libdir=* | --libdir=* | --libdi=* | --libd=*)
614 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615 | --libexe | --libex | --libe)
616 ac_prev=libexecdir ;;
617 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618 | --libexe=* | --libex=* | --libe=*)
619 libexecdir=$ac_optarg ;;
621 -localstatedir | --localstatedir | --localstatedi | --localstated \
622 | --localstate | --localstat | --localsta | --localst \
623 | --locals | --local | --loca | --loc | --lo)
624 ac_prev=localstatedir ;;
625 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628 localstatedir=$ac_optarg ;;
630 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636 # Obsolete; use --without-fp.
639 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640 | --no-cr | --no-c | -n)
643 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649 | --oldin | --oldi | --old | --ol | --o)
650 ac_prev=oldincludedir ;;
651 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654 oldincludedir=$ac_optarg ;;
656 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661 -program-prefix | --program-prefix | --program-prefi | --program-pref \
662 | --program-pre | --program-pr | --program-p)
663 ac_prev=program_prefix ;;
664 -program-prefix=* | --program-prefix=* | --program-prefi=* \
665 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666 program_prefix=$ac_optarg ;;
668 -program-suffix | --program-suffix | --program-suffi | --program-suff \
669 | --program-suf | --program-su | --program-s)
670 ac_prev=program_suffix ;;
671 -program-suffix=* | --program-suffix=* | --program-suffi=* \
672 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673 program_suffix=$ac_optarg ;;
675 -program-transform-name | --program-transform-name \
676 | --program-transform-nam | --program-transform-na \
677 | --program-transform-n | --program-transform- \
678 | --program-transform | --program-transfor \
679 | --program-transfo | --program-transf \
680 | --program-trans | --program-tran \
681 | --progr-tra | --program-tr | --program-t)
682 ac_prev=program_transform_name ;;
683 -program-transform-name=* | --program-transform-name=* \
684 | --program-transform-nam=* | --program-transform-na=* \
685 | --program-transform-n=* | --program-transform-=* \
686 | --program-transform=* | --program-transfor=* \
687 | --program-transfo=* | --program-transf=* \
688 | --program-trans=* | --program-tran=* \
689 | --progr-tra=* | --program-tr=* | --program-t=*)
690 program_transform_name=$ac_optarg ;;
692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693 | -silent | --silent | --silen | --sile | --sil)
696 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700 sbindir=$ac_optarg ;;
702 -sharedstatedir | --sharedstatedir | --sharedstatedi \
703 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704 | --sharedst | --shareds | --shared | --share | --shar \
706 ac_prev=sharedstatedir ;;
707 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711 sharedstatedir=$ac_optarg ;;
713 -site | --site | --sit)
715 -site=* | --site=* | --sit=*)
718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724 | --syscon | --sysco | --sysc | --sys | --sy)
725 ac_prev=sysconfdir ;;
726 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728 sysconfdir=$ac_optarg ;;
730 -target | --target | --targe | --targ | --tar | --ta | --t)
731 ac_prev=target_alias ;;
732 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733 target_alias=$ac_optarg ;;
735 -v | -verbose | --verbose | --verbos | --verbo | --verb)
738 -version | --version | --versio | --versi | --vers | -V)
742 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743 # Reject names that are not valid shell variable names.
744 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745 { echo "$as_me: error: invalid package name: $ac_package" >&2
746 { (exit 1); exit 1; }; }
747 ac_package=`echo $ac_package| sed 's/-/_/g'`
749 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752 eval "with_$ac_package='$ac_optarg'" ;;
754 -without-* | --without-*)
755 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756 # Reject names that are not valid shell variable names.
757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758 { echo "$as_me: error: invalid package name: $ac_package" >&2
759 { (exit 1); exit 1; }; }
760 ac_package=`echo $ac_package | sed 's/-/_/g'`
761 eval "with_$ac_package=no" ;;
764 # Obsolete; use --with-x.
767 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768 | --x-incl | --x-inc | --x-in | --x-i)
769 ac_prev=x_includes ;;
770 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772 x_includes=$ac_optarg ;;
774 -x-libraries | --x-libraries | --x-librarie | --x-librari \
775 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776 ac_prev=x_libraries ;;
777 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779 x_libraries=$ac_optarg ;;
781 -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783 { (exit 1); exit 1; }; }
787 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788 # Reject names that are not valid shell variable names.
789 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791 { (exit 1); exit 1; }; }
792 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793 eval "$ac_envvar='$ac_optarg'"
797 # FIXME: should be removed in autoconf 3.0.
798 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
807 if test -n "$ac_prev"; then
808 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809 { echo "$as_me: error: missing argument to $ac_option" >&2
810 { (exit 1); exit 1; }; }
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
816 eval ac_val=$`echo $ac_var`
818 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820 { (exit 1); exit 1; }; };;
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826 localstatedir libdir includedir oldincludedir infodir mandir
828 eval ac_val=$`echo $ac_var`
830 [\\/$]* | ?:[\\/]* ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845 if test "x$build_alias" = x; then
846 cross_compiling=maybe
847 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848 If a cross compiler is detected then cross compile mode will be used." >&2
849 elif test "x$build_alias" != "x$host_alias"; then
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857 test "$silent" = yes && exec 6>/dev/null
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862 ac_srcdir_defaulted=yes
863 # Try the directory containing this script, then its parent.
864 ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866 X"$0" : 'X\(//\)[^/]' \| \
867 X"$0" : 'X\(//\)$' \| \
868 X"$0" : 'X\(/\)' \| \
869 . : '\(.\)' 2>/dev/null ||
871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873 /^X\(\/\/\)$/{ s//\1/; q; }
874 /^X\(\/\).*/{ s//\1/; q; }
877 if test ! -r $srcdir/$ac_unique_file; then
881 ac_srcdir_defaulted=no
883 if test ! -r $srcdir/$ac_unique_file; then
884 if test "$ac_srcdir_defaulted" = yes; then
885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886 { (exit 1); exit 1; }; }
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889 { (exit 1); exit 1; }; }
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894 { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_CXX_set=${CXX+set}
909 ac_env_CXX_value=$CXX
910 ac_cv_env_CXX_set=${CXX+set}
911 ac_cv_env_CXX_value=$CXX
912 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
913 ac_env_CXXFLAGS_value=$CXXFLAGS
914 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
915 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
916 ac_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_env_LDFLAGS_value=$LDFLAGS
918 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_cv_env_LDFLAGS_value=$LDFLAGS
920 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_env_CPPFLAGS_value=$CPPFLAGS
922 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924 ac_env_CC_set=${CC+set}
926 ac_cv_env_CC_set=${CC+set}
927 ac_cv_env_CC_value=$CC
928 ac_env_CFLAGS_set=${CFLAGS+set}
929 ac_env_CFLAGS_value=$CFLAGS
930 ac_cv_env_CFLAGS_set=${CFLAGS+set}
931 ac_cv_env_CFLAGS_value=$CFLAGS
932 ac_env_CPP_set=${CPP+set}
933 ac_env_CPP_value=$CPP
934 ac_cv_env_CPP_set=${CPP+set}
935 ac_cv_env_CPP_value=$CPP
936 ac_env_CXXCPP_set=${CXXCPP+set}
937 ac_env_CXXCPP_value=$CXXCPP
938 ac_cv_env_CXXCPP_set=${CXXCPP+set}
939 ac_cv_env_CXXCPP_value=$CXXCPP
940 ac_env_F77_set=${F77+set}
941 ac_env_F77_value=$F77
942 ac_cv_env_F77_set=${F77+set}
943 ac_cv_env_F77_value=$F77
944 ac_env_FFLAGS_set=${FFLAGS+set}
945 ac_env_FFLAGS_value=$FFLAGS
946 ac_cv_env_FFLAGS_set=${FFLAGS+set}
947 ac_cv_env_FFLAGS_value=$FFLAGS
950 # Report the --help message.
952 if test "$ac_init_help" = "long"; then
953 # Omit some internal or obsolete options to make the list less imposing.
954 # This message is too long to be a string in the A/UX 3.1 sh.
956 \`configure' configures [LLVM] [1.0] to adapt to many kinds of systems.
958 Usage: $0 [OPTION]... [VAR=VALUE]...
960 To assign environment variables (e.g., CC, CFLAGS...), specify them as
961 VAR=VALUE. See below for descriptions of some of the useful variables.
963 Defaults for the options are specified in brackets.
966 -h, --help display this help and exit
967 --help=short display options specific to this package
968 --help=recursive display the short help of all the included packages
969 -V, --version display version information and exit
970 -q, --quiet, --silent do not print \`checking...' messages
971 --cache-file=FILE cache test results in FILE [disabled]
972 -C, --config-cache alias for \`--cache-file=config.cache'
973 -n, --no-create do not create output files
974 --srcdir=DIR find the sources in DIR [configure dir or \`..']
979 Installation directories:
980 --prefix=PREFIX install architecture-independent files in PREFIX
982 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
985 By default, \`make install' will install all the files in
986 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
987 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988 for instance \`--prefix=\$HOME'.
990 For better control, use the options below.
992 Fine tuning of the installation directories:
993 --bindir=DIR user executables [EPREFIX/bin]
994 --sbindir=DIR system admin executables [EPREFIX/sbin]
995 --libexecdir=DIR program executables [EPREFIX/libexec]
996 --datadir=DIR read-only architecture-independent data [PREFIX/share]
997 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
998 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
999 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1000 --libdir=DIR object code libraries [EPREFIX/lib]
1001 --includedir=DIR C header files [PREFIX/include]
1002 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1003 --infodir=DIR info documentation [PREFIX/info]
1004 --mandir=DIR man documentation [PREFIX/man]
1010 --build=BUILD configure for building on BUILD [guessed]
1011 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1012 --target=TARGET configure for building compilers for TARGET [HOST]
1016 if test -n "$ac_init_help"; then
1017 case $ac_init_help in
1018 short | recursive ) echo "Configuration of [LLVM] [1.0]:";;
1023 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1024 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1025 --enable-shared[=PKGS]
1026 build shared libraries [default=yes]
1027 --enable-static[=PKGS]
1028 build static libraries [default=yes]
1029 --enable-fast-install[=PKGS]
1030 optimize for fast installation [default=yes]
1031 --disable-libtool-lock avoid locking (might break parallel builds)
1032 --enable-purify Compile with purify (default is NO)
1033 --enable-optimized Compile with optimizations enabled (default is NO)
1034 --enable-spec Compile SPEC benchmarks (default is NO)
1035 --enable-precompiled_bytecode
1036 Use pre-compiled bytecode (default is NO)
1037 --enable-jit Enable Just In Time Compiling (default is NO)
1040 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1041 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1042 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1043 --with-pic try to use only PIC/non-PIC objects [default=use
1046 include additional configurations [automatic]
1047 --with-spec Location of SPEC benchmarks
1048 --with-llvmgccdir Location of LLVM GCC front-end
1049 --with-bcrepos Location of Bytecode Repository
1050 --with-papi Location of PAPI
1051 --with-objroot Location where object files should be placed
1053 --with-purify Location of purify program
1055 Some influential environment variables:
1056 CXX C++ compiler command
1057 CXXFLAGS C++ compiler flags
1058 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1059 nonstandard directory <lib dir>
1060 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1061 headers in a nonstandard directory <include dir>
1062 CC C compiler command
1063 CFLAGS C compiler flags
1065 CXXCPP C++ preprocessor
1066 F77 Fortran 77 compiler command
1067 FFLAGS Fortran 77 compiler flags
1069 Use these variables to override the choices made by `configure' or to help
1070 it to find libraries and programs with nonstandard names/locations.
1072 Report bugs to <llvmbugs@cs.uiuc.edu>.
1076 if test "$ac_init_help" = "recursive"; then
1077 # If there are subdirs, report their specific --help.
1079 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1080 test -d $ac_dir || continue
1083 if test "$ac_dir" != .; then
1084 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1085 # A "../" for each directory in $ac_dir_suffix.
1086 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1088 ac_dir_suffix= ac_top_builddir=
1092 .) # No --srcdir option. We are building in place.
1094 if test -z "$ac_top_builddir"; then
1097 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1099 [\\/]* | ?:[\\/]* ) # Absolute path.
1100 ac_srcdir=$srcdir$ac_dir_suffix;
1101 ac_top_srcdir=$srcdir ;;
1103 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1104 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1106 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1108 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1109 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1110 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1111 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1114 # Check for guested configure; otherwise get Cygnus style configure.
1115 if test -f $ac_srcdir/configure.gnu; then
1117 $SHELL $ac_srcdir/configure.gnu --help=recursive
1118 elif test -f $ac_srcdir/configure; then
1120 $SHELL $ac_srcdir/configure --help=recursive
1121 elif test -f $ac_srcdir/configure.ac ||
1122 test -f $ac_srcdir/configure.in; then
1124 $ac_configure --help
1126 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1132 test -n "$ac_init_help" && exit 0
1133 if $ac_init_version; then
1135 [LLVM] configure [1.0]
1136 generated by GNU Autoconf 2.57
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 [LLVM] $as_me [1.0], 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
1488 for ac_dir in autoconf $srcdir/autoconf; do
1489 if test -f $ac_dir/install-sh; then
1491 ac_install_sh="$ac_aux_dir/install-sh -c"
1493 elif test -f $ac_dir/install.sh; then
1495 ac_install_sh="$ac_aux_dir/install.sh -c"
1497 elif test -f $ac_dir/shtool; then
1499 ac_install_sh="$ac_aux_dir/shtool install -c"
1503 if test -z "$ac_aux_dir"; then
1504 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1505 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1506 { (exit 1); exit 1; }; }
1508 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1509 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1510 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1513 ac_config_headers="$ac_config_headers include/Config/config.h"
1517 # Find a good install program. We prefer a C program (faster),
1518 # so one script is as good as another. But avoid the broken or
1519 # incompatible versions:
1520 # SysV /etc/install, /usr/sbin/install
1521 # SunOS /usr/etc/install
1522 # IRIX /sbin/install
1524 # AmigaOS /C/install, which installs bootblocks on floppy discs
1525 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1526 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1527 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1528 # ./install, which can be erroneously created by make from ./install.sh.
1529 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1530 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1531 if test -z "$INSTALL"; then
1532 if test "${ac_cv_path_install+set}" = set; then
1533 echo $ECHO_N "(cached) $ECHO_C" >&6
1535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1539 test -z "$as_dir" && as_dir=.
1540 # Account for people who put trailing slashes in PATH elements.
1542 ./ | .// | /cC/* | \
1543 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1546 # OSF1 and SCO ODT 3.0 have their own names for install.
1547 # Don't use installbsd from OSF since it installs stuff as root
1549 for ac_prog in ginstall scoinst install; do
1550 for ac_exec_ext in '' $ac_executable_extensions; do
1551 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1552 if test $ac_prog = install &&
1553 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1554 # AIX install. It has an incompatible calling convention.
1556 elif test $ac_prog = install &&
1557 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1558 # program-specific install script used by HP pwplus--don't use.
1561 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1573 if test "${ac_cv_path_install+set}" = set; then
1574 INSTALL=$ac_cv_path_install
1576 # As a last resort, use the slow shell script. We don't cache a
1577 # path for INSTALL within a source directory, because that will
1578 # break other packages using the cache if that directory is
1579 # removed, or if the path is relative.
1580 INSTALL=$ac_install_sh
1583 echo "$as_me:$LINENO: result: $INSTALL" >&5
1584 echo "${ECHO_T}$INSTALL" >&6
1586 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1587 # It thinks the first close brace ends the variable substitution.
1588 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1590 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1592 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1595 # Make sure we can run config.sub.
1596 $ac_config_sub sun4 >/dev/null 2>&1 ||
1597 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1598 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1599 { (exit 1); exit 1; }; }
1601 echo "$as_me:$LINENO: checking build system type" >&5
1602 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1603 if test "${ac_cv_build+set}" = set; then
1604 echo $ECHO_N "(cached) $ECHO_C" >&6
1606 ac_cv_build_alias=$build_alias
1607 test -z "$ac_cv_build_alias" &&
1608 ac_cv_build_alias=`$ac_config_guess`
1609 test -z "$ac_cv_build_alias" &&
1610 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1611 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1612 { (exit 1); exit 1; }; }
1613 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1614 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1615 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1616 { (exit 1); exit 1; }; }
1619 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1620 echo "${ECHO_T}$ac_cv_build" >&6
1622 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1623 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1624 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1627 echo "$as_me:$LINENO: checking host system type" >&5
1628 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1629 if test "${ac_cv_host+set}" = set; then
1630 echo $ECHO_N "(cached) $ECHO_C" >&6
1632 ac_cv_host_alias=$host_alias
1633 test -z "$ac_cv_host_alias" &&
1634 ac_cv_host_alias=$ac_cv_build_alias
1635 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1636 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1637 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1638 { (exit 1); exit 1; }; }
1641 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1642 echo "${ECHO_T}$ac_cv_host" >&6
1644 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1645 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1646 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1649 echo "$as_me:$LINENO: checking target system type" >&5
1650 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1651 if test "${ac_cv_target+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1654 ac_cv_target_alias=$target_alias
1655 test "x$ac_cv_target_alias" = "x" &&
1656 ac_cv_target_alias=$ac_cv_host_alias
1657 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1658 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1659 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1660 { (exit 1); exit 1; }; }
1663 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1664 echo "${ECHO_T}$ac_cv_target" >&6
1665 target=$ac_cv_target
1666 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1667 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1668 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1671 # The aliases save the names the user supplied, while $host etc.
1672 # will get canonicalized.
1673 test -n "$target_alias" &&
1674 test "$program_prefix$program_suffix$program_transform_name" = \
1676 program_prefix=${target_alias}-
1681 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1687 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1697 *sparc*solaris*) target=sparcv9-sun-solaris2.8
1706 *sparc*solaris*) ARCH=Sparc
1713 ac_cpp='$CXXCPP $CPPFLAGS'
1714 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1715 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1716 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1717 if test -n "$ac_tool_prefix"; then
1718 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1720 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1721 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1722 echo "$as_me:$LINENO: checking for $ac_word" >&5
1723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1724 if test "${ac_cv_prog_CXX+set}" = set; then
1725 echo $ECHO_N "(cached) $ECHO_C" >&6
1727 if test -n "$CXX"; then
1728 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1734 test -z "$as_dir" && as_dir=.
1735 for ac_exec_ext in '' $ac_executable_extensions; do
1736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1737 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1747 if test -n "$CXX"; then
1748 echo "$as_me:$LINENO: result: $CXX" >&5
1749 echo "${ECHO_T}$CXX" >&6
1751 echo "$as_me:$LINENO: result: no" >&5
1752 echo "${ECHO_T}no" >&6
1755 test -n "$CXX" && break
1758 if test -z "$CXX"; then
1760 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1762 # Extract the first word of "$ac_prog", so it can be a program name with args.
1763 set dummy $ac_prog; ac_word=$2
1764 echo "$as_me:$LINENO: checking for $ac_word" >&5
1765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1766 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1767 echo $ECHO_N "(cached) $ECHO_C" >&6
1769 if test -n "$ac_ct_CXX"; then
1770 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1776 test -z "$as_dir" && as_dir=.
1777 for ac_exec_ext in '' $ac_executable_extensions; do
1778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1779 ac_cv_prog_ac_ct_CXX="$ac_prog"
1780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1788 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1789 if test -n "$ac_ct_CXX"; then
1790 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1791 echo "${ECHO_T}$ac_ct_CXX" >&6
1793 echo "$as_me:$LINENO: result: no" >&5
1794 echo "${ECHO_T}no" >&6
1797 test -n "$ac_ct_CXX" && break
1799 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1805 # Provide some information about the compiler.
1806 echo "$as_me:$LINENO:" \
1807 "checking for C++ compiler version" >&5
1808 ac_compiler=`set X $ac_compile; echo $2`
1809 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1810 (eval $ac_compiler --version </dev/null >&5) 2>&5
1812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1813 (exit $ac_status); }
1814 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1815 (eval $ac_compiler -v </dev/null >&5) 2>&5
1817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1818 (exit $ac_status); }
1819 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1820 (eval $ac_compiler -V </dev/null >&5) 2>&5
1822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1823 (exit $ac_status); }
1825 cat >conftest.$ac_ext <<_ACEOF
1826 #line $LINENO "configure"
1829 cat confdefs.h >>conftest.$ac_ext
1830 cat >>conftest.$ac_ext <<_ACEOF
1831 /* end confdefs.h. */
1841 ac_clean_files_save=$ac_clean_files
1842 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1843 # Try to create an executable without -o first, disregard a.out.
1844 # It will help us diagnose broken compilers, and finding out an intuition
1846 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
1847 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
1848 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1849 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1850 (eval $ac_link_default) 2>&5
1852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1853 (exit $ac_status); }; then
1854 # Find the output, starting from the most likely. This scheme is
1855 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1858 # Be careful to initialize this variable, since it used to be cached.
1859 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1861 # b.out is created by i960 compilers.
1862 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1864 test -f "$ac_file" || continue
1866 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1869 # This is the source file.
1872 # We found the default executable, but exeext='' is most
1876 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1877 # FIXME: I believe we export ac_cv_exeext for Libtool,
1878 # but it would be cool to find out if it's true. Does anybody
1879 # maintain Libtool? --akim.
1887 echo "$as_me: failed program was:" >&5
1888 sed 's/^/| /' conftest.$ac_ext >&5
1890 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1891 See \`config.log' for more details." >&5
1892 echo "$as_me: error: C++ compiler cannot create executables
1893 See \`config.log' for more details." >&2;}
1894 { (exit 77); exit 77; }; }
1897 ac_exeext=$ac_cv_exeext
1898 echo "$as_me:$LINENO: result: $ac_file" >&5
1899 echo "${ECHO_T}$ac_file" >&6
1901 # Check the compiler produces executables we can run. If not, either
1902 # the compiler is broken, or we cross compile.
1903 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1904 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1905 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1906 # If not cross compiling, check that we can run a simple program.
1907 if test "$cross_compiling" != yes; then
1908 if { ac_try='./$ac_file'
1909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1913 (exit $ac_status); }; }; then
1916 if test "$cross_compiling" = maybe; then
1919 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1920 If you meant to cross compile, use \`--host'.
1921 See \`config.log' for more details." >&5
1922 echo "$as_me: error: cannot run C++ compiled programs.
1923 If you meant to cross compile, use \`--host'.
1924 See \`config.log' for more details." >&2;}
1925 { (exit 1); exit 1; }; }
1929 echo "$as_me:$LINENO: result: yes" >&5
1930 echo "${ECHO_T}yes" >&6
1932 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1933 ac_clean_files=$ac_clean_files_save
1934 # Check the compiler produces executables we can run. If not, either
1935 # the compiler is broken, or we cross compile.
1936 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1937 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1938 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1939 echo "${ECHO_T}$cross_compiling" >&6
1941 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1942 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1944 (eval $ac_link) 2>&5
1946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1947 (exit $ac_status); }; then
1948 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1949 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1950 # work properly (i.e., refer to `conftest.exe'), while it won't with
1952 for ac_file in conftest.exe conftest conftest.*; do
1953 test -f "$ac_file" || continue
1955 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1956 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1963 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1964 See \`config.log' for more details." >&5
1965 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1966 See \`config.log' for more details." >&2;}
1967 { (exit 1); exit 1; }; }
1970 rm -f conftest$ac_cv_exeext
1971 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1972 echo "${ECHO_T}$ac_cv_exeext" >&6
1974 rm -f conftest.$ac_ext
1975 EXEEXT=$ac_cv_exeext
1977 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1978 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1979 if test "${ac_cv_objext+set}" = set; then
1980 echo $ECHO_N "(cached) $ECHO_C" >&6
1982 cat >conftest.$ac_ext <<_ACEOF
1983 #line $LINENO "configure"
1986 cat confdefs.h >>conftest.$ac_ext
1987 cat >>conftest.$ac_ext <<_ACEOF
1988 /* end confdefs.h. */
1998 rm -f conftest.o conftest.obj
1999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2000 (eval $ac_compile) 2>&5
2002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003 (exit $ac_status); }; then
2004 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2006 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2007 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2012 echo "$as_me: failed program was:" >&5
2013 sed 's/^/| /' conftest.$ac_ext >&5
2015 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2016 See \`config.log' for more details." >&5
2017 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2018 See \`config.log' for more details." >&2;}
2019 { (exit 1); exit 1; }; }
2022 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2024 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2025 echo "${ECHO_T}$ac_cv_objext" >&6
2026 OBJEXT=$ac_cv_objext
2028 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2029 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2030 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2033 cat >conftest.$ac_ext <<_ACEOF
2034 #line $LINENO "configure"
2037 cat confdefs.h >>conftest.$ac_ext
2038 cat >>conftest.$ac_ext <<_ACEOF
2039 /* end confdefs.h. */
2052 rm -f conftest.$ac_objext
2053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2054 (eval $ac_compile) 2>&5
2056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057 (exit $ac_status); } &&
2058 { ac_try='test -s conftest.$ac_objext'
2059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063 (exit $ac_status); }; }; then
2066 echo "$as_me: failed program was:" >&5
2067 sed 's/^/| /' conftest.$ac_ext >&5
2071 rm -f conftest.$ac_objext conftest.$ac_ext
2072 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2075 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2076 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2077 GXX=`test $ac_compiler_gnu = yes && echo yes`
2078 ac_test_CXXFLAGS=${CXXFLAGS+set}
2079 ac_save_CXXFLAGS=$CXXFLAGS
2081 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2082 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2083 if test "${ac_cv_prog_cxx_g+set}" = set; then
2084 echo $ECHO_N "(cached) $ECHO_C" >&6
2086 cat >conftest.$ac_ext <<_ACEOF
2087 #line $LINENO "configure"
2090 cat confdefs.h >>conftest.$ac_ext
2091 cat >>conftest.$ac_ext <<_ACEOF
2092 /* end confdefs.h. */
2102 rm -f conftest.$ac_objext
2103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2104 (eval $ac_compile) 2>&5
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); } &&
2108 { ac_try='test -s conftest.$ac_objext'
2109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 (exit $ac_status); }; }; then
2114 ac_cv_prog_cxx_g=yes
2116 echo "$as_me: failed program was:" >&5
2117 sed 's/^/| /' conftest.$ac_ext >&5
2121 rm -f conftest.$ac_objext conftest.$ac_ext
2123 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2124 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2125 if test "$ac_test_CXXFLAGS" = set; then
2126 CXXFLAGS=$ac_save_CXXFLAGS
2127 elif test $ac_cv_prog_cxx_g = yes; then
2128 if test "$GXX" = yes; then
2134 if test "$GXX" = yes; then
2140 for ac_declaration in \
2142 '#include <stdlib.h>' \
2143 'extern "C" void std::exit (int) throw (); using std::exit;' \
2144 'extern "C" void std::exit (int); using std::exit;' \
2145 'extern "C" void exit (int) throw ();' \
2146 'extern "C" void exit (int);' \
2149 cat >conftest.$ac_ext <<_ACEOF
2150 #line $LINENO "configure"
2153 cat confdefs.h >>conftest.$ac_ext
2154 cat >>conftest.$ac_ext <<_ACEOF
2155 /* end confdefs.h. */
2166 rm -f conftest.$ac_objext
2167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2168 (eval $ac_compile) 2>&5
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); } &&
2172 { ac_try='test -s conftest.$ac_objext'
2173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); }; }; then
2180 echo "$as_me: failed program was:" >&5
2181 sed 's/^/| /' conftest.$ac_ext >&5
2185 rm -f conftest.$ac_objext conftest.$ac_ext
2186 cat >conftest.$ac_ext <<_ACEOF
2187 #line $LINENO "configure"
2190 cat confdefs.h >>conftest.$ac_ext
2191 cat >>conftest.$ac_ext <<_ACEOF
2192 /* end confdefs.h. */
2202 rm -f conftest.$ac_objext
2203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2204 (eval $ac_compile) 2>&5
2206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207 (exit $ac_status); } &&
2208 { ac_try='test -s conftest.$ac_objext'
2209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); }; }; then
2216 echo "$as_me: failed program was:" >&5
2217 sed 's/^/| /' conftest.$ac_ext >&5
2220 rm -f conftest.$ac_objext conftest.$ac_ext
2223 if test -n "$ac_declaration"; then
2224 echo '#ifdef __cplusplus' >>confdefs.h
2225 echo $ac_declaration >>confdefs.h
2226 echo '#endif' >>confdefs.h
2230 ac_cpp='$CPP $CPPFLAGS'
2231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2236 ac_cpp='$CPP $CPPFLAGS'
2237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2240 if test -n "$ac_tool_prefix"; then
2243 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2244 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2245 echo "$as_me:$LINENO: checking for $ac_word" >&5
2246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2247 if test "${ac_cv_prog_CC+set}" = set; then
2248 echo $ECHO_N "(cached) $ECHO_C" >&6
2250 if test -n "$CC"; then
2251 ac_cv_prog_CC="$CC" # Let the user override the test.
2253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2257 test -z "$as_dir" && as_dir=.
2258 for ac_exec_ext in '' $ac_executable_extensions; do
2259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2260 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2270 if test -n "$CC"; then
2271 echo "$as_me:$LINENO: result: $CC" >&5
2272 echo "${ECHO_T}$CC" >&6
2274 echo "$as_me:$LINENO: result: no" >&5
2275 echo "${ECHO_T}no" >&6
2278 test -n "$CC" && break
2281 if test -z "$CC"; then
2285 # Extract the first word of "$ac_prog", so it can be a program name with args.
2286 set dummy $ac_prog; ac_word=$2
2287 echo "$as_me:$LINENO: checking for $ac_word" >&5
2288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2289 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2290 echo $ECHO_N "(cached) $ECHO_C" >&6
2292 if test -n "$ac_ct_CC"; then
2293 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2299 test -z "$as_dir" && as_dir=.
2300 for ac_exec_ext in '' $ac_executable_extensions; do
2301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2302 ac_cv_prog_ac_ct_CC="$ac_prog"
2303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2311 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2312 if test -n "$ac_ct_CC"; then
2313 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2314 echo "${ECHO_T}$ac_ct_CC" >&6
2316 echo "$as_me:$LINENO: result: no" >&5
2317 echo "${ECHO_T}no" >&6
2320 test -n "$ac_ct_CC" && break
2327 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2328 See \`config.log' for more details." >&5
2329 echo "$as_me: error: no acceptable C compiler found in \$PATH
2330 See \`config.log' for more details." >&2;}
2331 { (exit 1); exit 1; }; }
2333 # Provide some information about the compiler.
2334 echo "$as_me:$LINENO:" \
2335 "checking for C compiler version" >&5
2336 ac_compiler=`set X $ac_compile; echo $2`
2337 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2338 (eval $ac_compiler --version </dev/null >&5) 2>&5
2340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341 (exit $ac_status); }
2342 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2343 (eval $ac_compiler -v </dev/null >&5) 2>&5
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }
2347 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2348 (eval $ac_compiler -V </dev/null >&5) 2>&5
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); }
2353 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2354 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2355 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2356 echo $ECHO_N "(cached) $ECHO_C" >&6
2358 cat >conftest.$ac_ext <<_ACEOF
2359 #line $LINENO "configure"
2362 cat confdefs.h >>conftest.$ac_ext
2363 cat >>conftest.$ac_ext <<_ACEOF
2364 /* end confdefs.h. */
2377 rm -f conftest.$ac_objext
2378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2379 (eval $ac_compile) 2>&5
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); } &&
2383 { ac_try='test -s conftest.$ac_objext'
2384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); }; }; then
2391 echo "$as_me: failed program was:" >&5
2392 sed 's/^/| /' conftest.$ac_ext >&5
2396 rm -f conftest.$ac_objext conftest.$ac_ext
2397 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2400 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2401 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2402 GCC=`test $ac_compiler_gnu = yes && echo yes`
2403 ac_test_CFLAGS=${CFLAGS+set}
2404 ac_save_CFLAGS=$CFLAGS
2406 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2407 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2408 if test "${ac_cv_prog_cc_g+set}" = set; then
2409 echo $ECHO_N "(cached) $ECHO_C" >&6
2411 cat >conftest.$ac_ext <<_ACEOF
2412 #line $LINENO "configure"
2415 cat confdefs.h >>conftest.$ac_ext
2416 cat >>conftest.$ac_ext <<_ACEOF
2417 /* end confdefs.h. */
2427 rm -f conftest.$ac_objext
2428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2429 (eval $ac_compile) 2>&5
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); } &&
2433 { ac_try='test -s conftest.$ac_objext'
2434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); }; }; then
2441 echo "$as_me: failed program was:" >&5
2442 sed 's/^/| /' conftest.$ac_ext >&5
2446 rm -f conftest.$ac_objext conftest.$ac_ext
2448 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2449 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2450 if test "$ac_test_CFLAGS" = set; then
2451 CFLAGS=$ac_save_CFLAGS
2452 elif test $ac_cv_prog_cc_g = yes; then
2453 if test "$GCC" = yes; then
2459 if test "$GCC" = yes; then
2465 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2466 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2467 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2468 echo $ECHO_N "(cached) $ECHO_C" >&6
2470 ac_cv_prog_cc_stdc=no
2472 cat >conftest.$ac_ext <<_ACEOF
2473 #line $LINENO "configure"
2476 cat confdefs.h >>conftest.$ac_ext
2477 cat >>conftest.$ac_ext <<_ACEOF
2478 /* end confdefs.h. */
2481 #include <sys/types.h>
2482 #include <sys/stat.h>
2483 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2484 struct buf { int x; };
2485 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2486 static char *e (p, i)
2492 static char *f (char * (*g) (char **, int), char **p, ...)
2497 s = g (p, va_arg (v,int));
2501 int test (int i, double x);
2502 struct s1 {int (*f) (int a);};
2503 struct s2 {int (*f) (double a);};
2504 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2510 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2515 # Don't try gcc -ansi; that turns off useful extensions and
2516 # breaks some systems' header files.
2517 # AIX -qlanglvl=ansi
2518 # Ultrix and OSF/1 -std1
2519 # HP-UX 10.20 and later -Ae
2520 # HP-UX older versions -Aa -D_HPUX_SOURCE
2521 # SVR4 -Xc -D__EXTENSIONS__
2522 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2524 CC="$ac_save_CC $ac_arg"
2525 rm -f conftest.$ac_objext
2526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2527 (eval $ac_compile) 2>&5
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); } &&
2531 { ac_try='test -s conftest.$ac_objext'
2532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }; }; then
2537 ac_cv_prog_cc_stdc=$ac_arg
2540 echo "$as_me: failed program was:" >&5
2541 sed 's/^/| /' conftest.$ac_ext >&5
2544 rm -f conftest.$ac_objext
2546 rm -f conftest.$ac_ext conftest.$ac_objext
2551 case "x$ac_cv_prog_cc_stdc" in
2553 echo "$as_me:$LINENO: result: none needed" >&5
2554 echo "${ECHO_T}none needed" >&6 ;;
2556 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2557 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2558 CC="$CC $ac_cv_prog_cc_stdc" ;;
2561 # Some people use a C++ compiler to compile C. Since we use `exit',
2562 # in C++ we need to declare it. In case someone uses the same compiler
2563 # for both compiling C and C++ we need to have the C++ compiler decide
2564 # the declaration of exit, since it's the most demanding environment.
2565 cat >conftest.$ac_ext <<_ACEOF
2570 rm -f conftest.$ac_objext
2571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2572 (eval $ac_compile) 2>&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); } &&
2576 { ac_try='test -s conftest.$ac_objext'
2577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); }; }; then
2582 for ac_declaration in \
2584 '#include <stdlib.h>' \
2585 'extern "C" void std::exit (int) throw (); using std::exit;' \
2586 'extern "C" void std::exit (int); using std::exit;' \
2587 'extern "C" void exit (int) throw ();' \
2588 'extern "C" void exit (int);' \
2591 cat >conftest.$ac_ext <<_ACEOF
2592 #line $LINENO "configure"
2595 cat confdefs.h >>conftest.$ac_ext
2596 cat >>conftest.$ac_ext <<_ACEOF
2597 /* end confdefs.h. */
2608 rm -f conftest.$ac_objext
2609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2610 (eval $ac_compile) 2>&5
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); } &&
2614 { ac_try='test -s conftest.$ac_objext'
2615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }; }; then
2622 echo "$as_me: failed program was:" >&5
2623 sed 's/^/| /' conftest.$ac_ext >&5
2627 rm -f conftest.$ac_objext conftest.$ac_ext
2628 cat >conftest.$ac_ext <<_ACEOF
2629 #line $LINENO "configure"
2632 cat confdefs.h >>conftest.$ac_ext
2633 cat >>conftest.$ac_ext <<_ACEOF
2634 /* end confdefs.h. */
2644 rm -f conftest.$ac_objext
2645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2646 (eval $ac_compile) 2>&5
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); } &&
2650 { ac_try='test -s conftest.$ac_objext'
2651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }; }; then
2658 echo "$as_me: failed program was:" >&5
2659 sed 's/^/| /' conftest.$ac_ext >&5
2662 rm -f conftest.$ac_objext conftest.$ac_ext
2665 if test -n "$ac_declaration"; then
2666 echo '#ifdef __cplusplus' >>confdefs.h
2667 echo $ac_declaration >>confdefs.h
2668 echo '#endif' >>confdefs.h
2672 echo "$as_me: failed program was:" >&5
2673 sed 's/^/| /' conftest.$ac_ext >&5
2676 rm -f conftest.$ac_objext conftest.$ac_ext
2678 ac_cpp='$CPP $CPPFLAGS'
2679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2684 ac_cpp='$CPP $CPPFLAGS'
2685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2688 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2689 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2690 # On Suns, sometimes $CPP names a directory.
2691 if test -n "$CPP" && test -d "$CPP"; then
2694 if test -z "$CPP"; then
2695 if test "${ac_cv_prog_CPP+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2698 # Double quotes because CPP needs to be expanded
2699 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2702 for ac_c_preproc_warn_flag in '' yes
2704 # Use a header file that comes with gcc, so configuring glibc
2705 # with a fresh cross-compiler works.
2706 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2707 # <limits.h> exists even on freestanding compilers.
2708 # On the NeXT, cc -E runs the code through the compiler's parser,
2709 # not just through cpp. "Syntax error" is here to catch this case.
2710 cat >conftest.$ac_ext <<_ACEOF
2711 #line $LINENO "configure"
2714 cat confdefs.h >>conftest.$ac_ext
2715 cat >>conftest.$ac_ext <<_ACEOF
2716 /* end confdefs.h. */
2718 # include <limits.h>
2720 # include <assert.h>
2724 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2725 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2727 grep -v '^ *+' conftest.er1 >conftest.err
2729 cat conftest.err >&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); } >/dev/null; then
2732 if test -s conftest.err; then
2733 ac_cpp_err=$ac_c_preproc_warn_flag
2740 if test -z "$ac_cpp_err"; then
2743 echo "$as_me: failed program was:" >&5
2744 sed 's/^/| /' conftest.$ac_ext >&5
2746 # Broken: fails on valid input.
2749 rm -f conftest.err conftest.$ac_ext
2751 # OK, works on sane cases. Now check whether non-existent headers
2752 # can be detected and how.
2753 cat >conftest.$ac_ext <<_ACEOF
2754 #line $LINENO "configure"
2757 cat confdefs.h >>conftest.$ac_ext
2758 cat >>conftest.$ac_ext <<_ACEOF
2759 /* end confdefs.h. */
2760 #include <ac_nonexistent.h>
2762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2763 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2765 grep -v '^ *+' conftest.er1 >conftest.err
2767 cat conftest.err >&5
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); } >/dev/null; then
2770 if test -s conftest.err; then
2771 ac_cpp_err=$ac_c_preproc_warn_flag
2778 if test -z "$ac_cpp_err"; then
2779 # Broken: success on invalid input.
2782 echo "$as_me: failed program was:" >&5
2783 sed 's/^/| /' conftest.$ac_ext >&5
2785 # Passes both tests.
2789 rm -f conftest.err conftest.$ac_ext
2792 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2793 rm -f conftest.err conftest.$ac_ext
2794 if $ac_preproc_ok; then
2806 echo "$as_me:$LINENO: result: $CPP" >&5
2807 echo "${ECHO_T}$CPP" >&6
2809 for ac_c_preproc_warn_flag in '' yes
2811 # Use a header file that comes with gcc, so configuring glibc
2812 # with a fresh cross-compiler works.
2813 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2814 # <limits.h> exists even on freestanding compilers.
2815 # On the NeXT, cc -E runs the code through the compiler's parser,
2816 # not just through cpp. "Syntax error" is here to catch this case.
2817 cat >conftest.$ac_ext <<_ACEOF
2818 #line $LINENO "configure"
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h. */
2825 # include <limits.h>
2827 # include <assert.h>
2831 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2832 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2834 grep -v '^ *+' conftest.er1 >conftest.err
2836 cat conftest.err >&5
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); } >/dev/null; then
2839 if test -s conftest.err; then
2840 ac_cpp_err=$ac_c_preproc_warn_flag
2847 if test -z "$ac_cpp_err"; then
2850 echo "$as_me: failed program was:" >&5
2851 sed 's/^/| /' conftest.$ac_ext >&5
2853 # Broken: fails on valid input.
2856 rm -f conftest.err conftest.$ac_ext
2858 # OK, works on sane cases. Now check whether non-existent headers
2859 # can be detected and how.
2860 cat >conftest.$ac_ext <<_ACEOF
2861 #line $LINENO "configure"
2864 cat confdefs.h >>conftest.$ac_ext
2865 cat >>conftest.$ac_ext <<_ACEOF
2866 /* end confdefs.h. */
2867 #include <ac_nonexistent.h>
2869 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2870 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2872 grep -v '^ *+' conftest.er1 >conftest.err
2874 cat conftest.err >&5
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); } >/dev/null; then
2877 if test -s conftest.err; then
2878 ac_cpp_err=$ac_c_preproc_warn_flag
2885 if test -z "$ac_cpp_err"; then
2886 # Broken: success on invalid input.
2889 echo "$as_me: failed program was:" >&5
2890 sed 's/^/| /' conftest.$ac_ext >&5
2892 # Passes both tests.
2896 rm -f conftest.err conftest.$ac_ext
2899 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2900 rm -f conftest.err conftest.$ac_ext
2901 if $ac_preproc_ok; then
2904 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2905 See \`config.log' for more details." >&5
2906 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2907 See \`config.log' for more details." >&2;}
2908 { (exit 1); exit 1; }; }
2912 ac_cpp='$CPP $CPPFLAGS'
2913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2918 if test "$GCC" != "yes"
2920 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
2921 echo "$as_me: error: gcc required but not found" >&2;}
2922 { (exit 1); exit 1; }; }
2925 if test "$GXX" != "yes"
2927 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
2928 echo "$as_me: error: g++ required but not found" >&2;}
2929 { (exit 1); exit 1; }; }
2932 echo "$as_me:$LINENO: checking for GNU make" >&5
2933 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
2934 if test "${_cv_gnu_make_command+set}" = set; then
2935 echo $ECHO_N "(cached) $ECHO_C" >&6
2937 _cv_gnu_make_command='' ;
2938 for a in "$MAKE" make gmake gnumake ; do
2939 if test -z "$a" ; then continue ; fi ;
2940 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
2941 _cv_gnu_make_command=$a ;
2947 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
2948 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
2949 if test "x$_cv_gnu_make_command" != "x" ; then
2953 echo "$as_me:$LINENO: result: \"Not found\"" >&5
2954 echo "${ECHO_T}\"Not found\"" >&6;
2958 if test -z "$_cv_gnu_make_command"
2960 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
2961 echo "$as_me: error: GNU Make required but not found" >&2;}
2962 { (exit 1); exit 1; }; }
2966 echo "$as_me:$LINENO: checking " >&5
2967 echo $ECHO_N "checking ... $ECHO_C" >&6
2968 if test "${ac_cv_has_flex+set}" = set; then
2969 echo $ECHO_N "(cached) $ECHO_C" >&6
2971 for ac_prog in flex lex
2973 # Extract the first word of "$ac_prog", so it can be a program name with args.
2974 set dummy $ac_prog; ac_word=$2
2975 echo "$as_me:$LINENO: checking for $ac_word" >&5
2976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2977 if test "${ac_cv_prog_LEX+set}" = set; then
2978 echo $ECHO_N "(cached) $ECHO_C" >&6
2980 if test -n "$LEX"; then
2981 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987 test -z "$as_dir" && as_dir=.
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2990 ac_cv_prog_LEX="$ac_prog"
2991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3000 if test -n "$LEX"; then
3001 echo "$as_me:$LINENO: result: $LEX" >&5
3002 echo "${ECHO_T}$LEX" >&6
3004 echo "$as_me:$LINENO: result: no" >&5
3005 echo "${ECHO_T}no" >&6
3008 test -n "$LEX" && break
3010 test -n "$LEX" || LEX=":"
3012 if test -z "$LEXLIB"
3014 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3015 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3016 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3017 echo $ECHO_N "(cached) $ECHO_C" >&6
3019 ac_check_lib_save_LIBS=$LIBS
3021 cat >conftest.$ac_ext <<_ACEOF
3022 #line $LINENO "configure"
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h. */
3029 /* Override any gcc2 internal prototype to avoid an error. */
3033 /* We use char because int might match the return type of a gcc2
3034 builtin and then its argument prototype would still apply. */
3044 rm -f conftest.$ac_objext conftest$ac_exeext
3045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3046 (eval $ac_link) 2>&5
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); } &&
3050 { ac_try='test -s conftest$ac_exeext'
3051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); }; }; then
3056 ac_cv_lib_fl_yywrap=yes
3058 echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.$ac_ext >&5
3061 ac_cv_lib_fl_yywrap=no
3063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3064 LIBS=$ac_check_lib_save_LIBS
3066 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3067 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3068 if test $ac_cv_lib_fl_yywrap = yes; then
3071 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3072 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3073 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3074 echo $ECHO_N "(cached) $ECHO_C" >&6
3076 ac_check_lib_save_LIBS=$LIBS
3078 cat >conftest.$ac_ext <<_ACEOF
3079 #line $LINENO "configure"
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h. */
3086 /* Override any gcc2 internal prototype to avoid an error. */
3090 /* We use char because int might match the return type of a gcc2
3091 builtin and then its argument prototype would still apply. */
3101 rm -f conftest.$ac_objext conftest$ac_exeext
3102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3103 (eval $ac_link) 2>&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); } &&
3107 { ac_try='test -s conftest$ac_exeext'
3108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); }; }; then
3113 ac_cv_lib_l_yywrap=yes
3115 echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3118 ac_cv_lib_l_yywrap=no
3120 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3121 LIBS=$ac_check_lib_save_LIBS
3123 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3124 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3125 if test $ac_cv_lib_l_yywrap = yes; then
3133 if test "x$LEX" != "x:"; then
3134 echo "$as_me:$LINENO: checking lex output file root" >&5
3135 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3136 if test "${ac_cv_prog_lex_root+set}" = set; then
3137 echo $ECHO_N "(cached) $ECHO_C" >&6
3139 # The minimal lex program is just a single line: %%. But some broken lexes
3140 # (Solaris, I think it was) want two %% lines, so accommodate them.
3141 cat >conftest.l <<_ACEOF
3145 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3146 (eval $LEX conftest.l) 2>&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); }
3150 if test -f lex.yy.c; then
3151 ac_cv_prog_lex_root=lex.yy
3152 elif test -f lexyy.c; then
3153 ac_cv_prog_lex_root=lexyy
3155 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3156 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3157 { (exit 1); exit 1; }; }
3160 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3161 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3163 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3165 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3166 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3167 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3168 echo $ECHO_N "(cached) $ECHO_C" >&6
3170 # POSIX says lex can declare yytext either as a pointer or an array; the
3171 # default is implementation-dependent. Figure out which it is, since
3172 # not all implementations provide the %pointer and %array declarations.
3173 ac_cv_prog_lex_yytext_pointer=no
3174 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3176 LIBS="$LIBS $LEXLIB"
3177 cat >conftest.$ac_ext <<_ACEOF
3178 `cat $LEX_OUTPUT_ROOT.c`
3180 rm -f conftest.$ac_objext conftest$ac_exeext
3181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3182 (eval $ac_link) 2>&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); } &&
3186 { ac_try='test -s conftest$ac_exeext'
3187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); }; }; then
3192 ac_cv_prog_lex_yytext_pointer=yes
3194 echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.$ac_ext >&5
3198 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3200 rm -f "${LEX_OUTPUT_ROOT}.c"
3203 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3204 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3205 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3207 cat >>confdefs.h <<\_ACEOF
3208 #define YYTEXT_POINTER 1
3216 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3217 echo "${ECHO_T}$ac_cv_has_flex" >&6
3218 if test "$LEX" != "flex"; then
3219 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3220 echo "$as_me: error: flex not found but required" >&2;}
3221 { (exit 1); exit 1; }; }
3224 echo "$as_me:$LINENO: checking " >&5
3225 echo $ECHO_N "checking ... $ECHO_C" >&6
3226 if test "${ac_cv_has_bison+set}" = set; then
3227 echo $ECHO_N "(cached) $ECHO_C" >&6
3229 for ac_prog in 'bison -y' byacc
3231 # Extract the first word of "$ac_prog", so it can be a program name with args.
3232 set dummy $ac_prog; ac_word=$2
3233 echo "$as_me:$LINENO: checking for $ac_word" >&5
3234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3235 if test "${ac_cv_prog_YACC+set}" = set; then
3236 echo $ECHO_N "(cached) $ECHO_C" >&6
3238 if test -n "$YACC"; then
3239 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3245 test -z "$as_dir" && as_dir=.
3246 for ac_exec_ext in '' $ac_executable_extensions; do
3247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3248 ac_cv_prog_YACC="$ac_prog"
3249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3257 YACC=$ac_cv_prog_YACC
3258 if test -n "$YACC"; then
3259 echo "$as_me:$LINENO: result: $YACC" >&5
3260 echo "${ECHO_T}$YACC" >&6
3262 echo "$as_me:$LINENO: result: no" >&5
3263 echo "${ECHO_T}no" >&6
3266 test -n "$YACC" && break
3268 test -n "$YACC" || YACC="yacc"
3272 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3273 echo "${ECHO_T}$ac_cv_has_bison" >&6
3274 if test "$YACC" != "bison -y"; then
3275 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3276 echo "$as_me: error: bison not found but required" >&2;}
3277 { (exit 1); exit 1; }; }
3284 # Check whether --enable-shared or --disable-shared was given.
3285 if test "${enable_shared+set}" = set; then
3286 enableval="$enable_shared"
3287 p=${PACKAGE-default}
3289 yes) enable_shared=yes ;;
3290 no) enable_shared=no ;;
3293 # Look at the argument we got. We use all the common list separators.
3294 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3295 for pkg in $enableval; do
3297 if test "X$pkg" = "X$p"; then
3308 # Check whether --enable-static or --disable-static was given.
3309 if test "${enable_static+set}" = set; then
3310 enableval="$enable_static"
3311 p=${PACKAGE-default}
3313 yes) enable_static=yes ;;
3314 no) enable_static=no ;;
3317 # Look at the argument we got. We use all the common list separators.
3318 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3319 for pkg in $enableval; do
3321 if test "X$pkg" = "X$p"; then
3332 # Check whether --enable-fast-install or --disable-fast-install was given.
3333 if test "${enable_fast_install+set}" = set; then
3334 enableval="$enable_fast_install"
3335 p=${PACKAGE-default}
3337 yes) enable_fast_install=yes ;;
3338 no) enable_fast_install=no ;;
3340 enable_fast_install=no
3341 # Look at the argument we got. We use all the common list separators.
3342 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3343 for pkg in $enableval; do
3345 if test "X$pkg" = "X$p"; then
3346 enable_fast_install=yes
3353 enable_fast_install=yes
3356 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3357 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3358 if test "${lt_cv_path_SED+set}" = set; then
3359 echo $ECHO_N "(cached) $ECHO_C" >&6
3361 # Loop through the user's path and test for sed and gsed.
3362 # Then use that list of sed's as ones to test for truncation.
3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367 test -z "$as_dir" && as_dir=.
3368 for lt_ac_prog in sed gsed; do
3369 for ac_exec_ext in '' $ac_executable_extensions; do
3370 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3371 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3378 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3379 # along with /bin/sed that truncates output.
3380 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3381 test ! -f $lt_ac_sed && break
3382 cat /dev/null > conftest.in
3384 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3385 # Check for GNU sed and select it if it is found.
3386 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3387 lt_cv_path_SED=$lt_ac_sed
3391 cat conftest.in conftest.in >conftest.tmp
3392 mv conftest.tmp conftest.in
3393 cp conftest.in conftest.nl
3395 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3396 cmp -s conftest.out conftest.nl || break
3397 # 10000 chars as input seems more than enough
3398 test $lt_ac_count -gt 10 && break
3399 lt_ac_count=`expr $lt_ac_count + 1`
3400 if test $lt_ac_count -gt $lt_ac_max; then
3401 lt_ac_max=$lt_ac_count
3402 lt_cv_path_SED=$lt_ac_sed
3410 echo "$as_me:$LINENO: result: $SED" >&5
3411 echo "${ECHO_T}$SED" >&6
3413 echo "$as_me:$LINENO: checking for egrep" >&5
3414 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3415 if test "${ac_cv_prog_egrep+set}" = set; then
3416 echo $ECHO_N "(cached) $ECHO_C" >&6
3418 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3419 then ac_cv_prog_egrep='grep -E'
3420 else ac_cv_prog_egrep='egrep'
3423 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3424 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3425 EGREP=$ac_cv_prog_egrep
3429 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3430 if test "${with_gnu_ld+set}" = set; then
3431 withval="$with_gnu_ld"
3432 test "$withval" = no || with_gnu_ld=yes
3437 if test "$GCC" = yes; then
3438 # Check if gcc -print-prog-name=ld gives a path.
3439 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3440 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3443 # gcc leaves a trailing carriage return which upsets mingw
3444 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3446 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3449 # Accept absolute paths.
3451 re_direlt='/[^/][^/]*/\.\./'
3452 # Canonicalize the path of ld
3453 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3454 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3455 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3457 test -z "$LD" && LD="$ac_prog"
3460 # If it fails, then pretend we aren't using GCC.
3464 # If it is relative, then search for the first ld in PATH.
3468 elif test "$with_gnu_ld" = yes; then
3469 echo "$as_me:$LINENO: checking for GNU ld" >&5
3470 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3472 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3473 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3475 if test "${lt_cv_path_LD+set}" = set; then
3476 echo $ECHO_N "(cached) $ECHO_C" >&6
3478 if test -z "$LD"; then
3479 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3480 for ac_dir in $PATH; do
3482 test -z "$ac_dir" && ac_dir=.
3483 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3484 lt_cv_path_LD="$ac_dir/$ac_prog"
3485 # Check to see if the program is GNU ld. I'd rather use --version,
3486 # but apparently some GNU ld's only accept -v.
3487 # Break only if it was the GNU/non-GNU ld that we prefer.
3488 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3489 *GNU* | *'with BFD'*)
3490 test "$with_gnu_ld" != no && break
3493 test "$with_gnu_ld" != yes && break
3500 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3505 if test -n "$LD"; then
3506 echo "$as_me:$LINENO: result: $LD" >&5
3507 echo "${ECHO_T}$LD" >&6
3509 echo "$as_me:$LINENO: result: no" >&5
3510 echo "${ECHO_T}no" >&6
3512 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3513 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3514 { (exit 1); exit 1; }; }
3515 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3516 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3517 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3518 echo $ECHO_N "(cached) $ECHO_C" >&6
3520 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3521 case `"$LD" -v 2>&1 </dev/null` in
3522 *GNU* | *'with BFD'*)
3523 lt_cv_prog_gnu_ld=yes
3526 lt_cv_prog_gnu_ld=no
3530 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3531 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3532 with_gnu_ld=$lt_cv_prog_gnu_ld
3535 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3536 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3537 if test "${lt_cv_ld_reload_flag+set}" = set; then
3538 echo $ECHO_N "(cached) $ECHO_C" >&6
3540 lt_cv_ld_reload_flag='-r'
3542 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3543 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3544 reload_flag=$lt_cv_ld_reload_flag
3545 case $reload_flag in
3547 *) reload_flag=" $reload_flag" ;;
3549 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3551 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3552 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3553 if test "${lt_cv_path_NM+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3556 if test -n "$NM"; then
3557 # Let the user override the test.
3560 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3561 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3563 test -z "$ac_dir" && ac_dir=.
3564 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3565 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3566 # Check to see if the nm accepts a BSD-compat flag.
3567 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3568 # nm: unknown option "B" ignored
3569 # Tru64's nm complains that /dev/null is an invalid object file
3570 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3571 */dev/null* | *'Invalid file or object type'*)
3572 lt_cv_path_NM="$tmp_nm -B"
3576 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3578 lt_cv_path_NM="$tmp_nm -p"
3582 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3583 continue # so that we can try to find one that supports BSD flags
3590 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3593 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3594 echo "${ECHO_T}$lt_cv_path_NM" >&6
3597 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3598 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3600 if test "$LN_S" = "ln -s"; then
3601 echo "$as_me:$LINENO: result: yes" >&5
3602 echo "${ECHO_T}yes" >&6
3604 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3605 echo "${ECHO_T}no, using $LN_S" >&6
3608 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3609 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3610 if test "${lt_cv_deplibs_check_method+set}" = set; then
3611 echo $ECHO_N "(cached) $ECHO_C" >&6
3613 lt_cv_file_magic_cmd='$MAGIC_CMD'
3614 lt_cv_file_magic_test_file=
3615 lt_cv_deplibs_check_method='unknown'
3616 # Need to set the preceding variable on all platforms that support
3617 # interlibrary dependencies.
3618 # 'none' -- dependencies not supported.
3619 # `unknown' -- same as none, but documents that we really don't know.
3620 # 'pass_all' -- all dependencies passed with no checks.
3621 # 'test_compile' -- check by making test program.
3622 # 'file_magic [[regex]]' -- check by looking for files in library path
3623 # which responds to the $file_magic_cmd with a given extended regex.
3624 # If you have `file' or equivalent on your system and you're not sure
3625 # whether `pass_all' will *always* work, you probably want this one.
3629 lt_cv_deplibs_check_method=pass_all
3633 lt_cv_deplibs_check_method=pass_all
3637 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3638 lt_cv_file_magic_cmd='/usr/bin/file -L'
3639 lt_cv_file_magic_test_file=/shlib/libc.so
3642 cygwin* | mingw* | pw32*)
3643 # win32_libid is a shell function defined in ltmain.sh
3644 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3645 lt_cv_file_magic_cmd='win32_libid'
3648 darwin* | rhapsody*)
3649 # this will be overwritten by pass_all, but leave it in just in case
3650 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3651 lt_cv_file_magic_cmd='/usr/bin/file -L'
3653 rhapsody* | darwin1.[012])
3654 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3657 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3660 lt_cv_deplibs_check_method=pass_all
3664 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3667 # Not sure whether the presence of OpenBSD here was a mistake.
3668 # Let's accept both of them until this is cleared up.
3669 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3670 lt_cv_file_magic_cmd=/usr/bin/file
3671 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3675 lt_cv_deplibs_check_method=pass_all
3680 lt_cv_deplibs_check_method=pass_all
3683 hpux10.20* | hpux11*)
3684 lt_cv_file_magic_cmd=/usr/bin/file
3687 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3688 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3691 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]'
3692 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3695 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3696 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3701 irix5* | irix6* | nonstopux*)
3703 irix5* | nonstopux*)
3704 # this will be overridden with pass_all, but let us keep it just in case
3705 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3709 *-32|*"-32 ") libmagic=32-bit;;
3710 *-n32|*"-n32 ") libmagic=N32;;
3711 *-64|*"-64 ") libmagic=64-bit;;
3712 *) libmagic=never-match;;
3714 # this will be overridden with pass_all, but let us keep it just in case
3715 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3718 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3719 lt_cv_deplibs_check_method=pass_all
3722 # This must be Linux ELF.
3725 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
3726 lt_cv_deplibs_check_method=pass_all ;;
3728 # glibc up to 2.1.1 does not perform some relocations on ARM
3729 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3731 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3735 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3736 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3738 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3743 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3744 lt_cv_file_magic_cmd=/usr/bin/file
3745 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3749 lt_cv_deplibs_check_method=unknown
3753 lt_cv_file_magic_cmd=/usr/bin/file
3754 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3755 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3756 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3758 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3762 osf3* | osf4* | osf5*)
3763 # this will be overridden with pass_all, but let us keep it just in case
3764 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3765 lt_cv_file_magic_test_file=/shlib/libc.so
3766 lt_cv_deplibs_check_method=pass_all
3770 lt_cv_deplibs_check_method=pass_all
3774 lt_cv_deplibs_check_method=pass_all
3775 lt_cv_file_magic_test_file=/lib/libc.so
3778 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3779 case $host_vendor in
3781 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]'
3782 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3785 lt_cv_deplibs_check_method=pass_all
3788 lt_cv_file_magic_cmd='/bin/file'
3789 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3792 lt_cv_file_magic_cmd='/bin/file'
3793 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3794 lt_cv_file_magic_test_file=/lib/libc.so
3797 lt_cv_deplibs_check_method=pass_all
3802 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3803 lt_cv_deplibs_check_method=pass_all
3808 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3809 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3810 file_magic_cmd=$lt_cv_file_magic_cmd
3811 deplibs_check_method=$lt_cv_deplibs_check_method
3812 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3817 # If no C compiler was specified, use CC.
3820 # Allow CC to be a program name with arguments.
3823 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3824 if test "${enable_libtool_lock+set}" = set; then
3825 enableval="$enable_libtool_lock"
3828 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3830 # Some flags need to be propagated to the compiler or linker for good
3834 # Find out which ABI we are using.
3835 echo 'int i;' > conftest.$ac_ext
3836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3837 (eval $ac_compile) 2>&5
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); }; then
3841 case `/usr/bin/file conftest.$ac_objext` in
3853 # Find out which ABI we are using.
3854 echo '#line 3854 "configure"' > conftest.$ac_ext
3855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3856 (eval $ac_compile) 2>&5
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); }; then
3860 if test "$lt_cv_prog_gnu_ld" = yes; then
3861 case `/usr/bin/file conftest.$ac_objext` in
3863 LD="${LD-ld} -melf32bsmip"
3866 LD="${LD-ld} -melf32bmipn32"
3869 LD="${LD-ld} -melf64bmip"
3873 case `/usr/bin/file conftest.$ac_objext` in
3889 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3890 # Find out which ABI we are using.
3891 echo 'int i;' > conftest.$ac_ext
3892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3893 (eval $ac_compile) 2>&5
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); }; then
3897 case "`/usr/bin/file conftest.o`" in
3901 LD="${LD-ld} -m elf_i386"
3904 LD="${LD-ld} -m elf32ppclinux"
3907 LD="${LD-ld} -m elf_s390"
3910 LD="${LD-ld} -m elf32_sparc"
3917 LD="${LD-ld} -m elf_x86_64"
3919 ppc*-*linux*|powerpc*-*linux*)
3920 LD="${LD-ld} -m elf64ppc"
3923 LD="${LD-ld} -m elf64_s390"
3926 LD="${LD-ld} -m elf64_sparc"
3936 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3937 SAVE_CFLAGS="$CFLAGS"
3938 CFLAGS="$CFLAGS -belf"
3939 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3940 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3941 if test "${lt_cv_cc_needs_belf+set}" = set; then
3942 echo $ECHO_N "(cached) $ECHO_C" >&6
3945 ac_cpp='$CPP $CPPFLAGS'
3946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3950 cat >conftest.$ac_ext <<_ACEOF
3951 #line $LINENO "configure"
3954 cat confdefs.h >>conftest.$ac_ext
3955 cat >>conftest.$ac_ext <<_ACEOF
3956 /* end confdefs.h. */
3966 rm -f conftest.$ac_objext conftest$ac_exeext
3967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3968 (eval $ac_link) 2>&5
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); } &&
3972 { ac_try='test -s conftest$ac_exeext'
3973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); }; }; then
3978 lt_cv_cc_needs_belf=yes
3980 echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3983 lt_cv_cc_needs_belf=no
3985 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3987 ac_cpp='$CPP $CPPFLAGS'
3988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3993 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3994 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3995 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3996 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3997 CFLAGS="$SAVE_CFLAGS"
4003 need_locks="$enable_libtool_lock"
4007 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4008 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4009 if test "${ac_cv_header_stdc+set}" = set; then
4010 echo $ECHO_N "(cached) $ECHO_C" >&6
4012 cat >conftest.$ac_ext <<_ACEOF
4013 #line $LINENO "configure"
4016 cat confdefs.h >>conftest.$ac_ext
4017 cat >>conftest.$ac_ext <<_ACEOF
4018 /* end confdefs.h. */
4032 rm -f conftest.$ac_objext
4033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4034 (eval $ac_compile) 2>&5
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); } &&
4038 { ac_try='test -s conftest.$ac_objext'
4039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); }; }; then
4044 ac_cv_header_stdc=yes
4046 echo "$as_me: failed program was:" >&5
4047 sed 's/^/| /' conftest.$ac_ext >&5
4049 ac_cv_header_stdc=no
4051 rm -f conftest.$ac_objext conftest.$ac_ext
4053 if test $ac_cv_header_stdc = yes; then
4054 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4055 cat >conftest.$ac_ext <<_ACEOF
4056 #line $LINENO "configure"
4059 cat confdefs.h >>conftest.$ac_ext
4060 cat >>conftest.$ac_ext <<_ACEOF
4061 /* end confdefs.h. */
4065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4066 $EGREP "memchr" >/dev/null 2>&1; then
4069 ac_cv_header_stdc=no
4075 if test $ac_cv_header_stdc = yes; then
4076 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4077 cat >conftest.$ac_ext <<_ACEOF
4078 #line $LINENO "configure"
4081 cat confdefs.h >>conftest.$ac_ext
4082 cat >>conftest.$ac_ext <<_ACEOF
4083 /* end confdefs.h. */
4087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4088 $EGREP "free" >/dev/null 2>&1; then
4091 ac_cv_header_stdc=no
4097 if test $ac_cv_header_stdc = yes; then
4098 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4099 if test "$cross_compiling" = yes; then
4102 cat >conftest.$ac_ext <<_ACEOF
4103 #line $LINENO "configure"
4106 cat confdefs.h >>conftest.$ac_ext
4107 cat >>conftest.$ac_ext <<_ACEOF
4108 /* end confdefs.h. */
4110 #if ((' ' & 0x0FF) == 0x020)
4111 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4112 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4114 # define ISLOWER(c) \
4115 (('a' <= (c) && (c) <= 'i') \
4116 || ('j' <= (c) && (c) <= 'r') \
4117 || ('s' <= (c) && (c) <= 'z'))
4118 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4121 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4126 for (i = 0; i < 256; i++)
4127 if (XOR (islower (i), ISLOWER (i))
4128 || toupper (i) != TOUPPER (i))
4133 rm -f conftest$ac_exeext
4134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4135 (eval $ac_link) 2>&5
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); }; }; then
4146 echo "$as_me: program exited with status $ac_status" >&5
4147 echo "$as_me: failed program was:" >&5
4148 sed 's/^/| /' conftest.$ac_ext >&5
4151 ac_cv_header_stdc=no
4153 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4157 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4158 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4159 if test $ac_cv_header_stdc = yes; then
4161 cat >>confdefs.h <<\_ACEOF
4162 #define STDC_HEADERS 1
4167 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4177 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4178 inttypes.h stdint.h unistd.h
4180 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4181 echo "$as_me:$LINENO: checking for $ac_header" >&5
4182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4184 echo $ECHO_N "(cached) $ECHO_C" >&6
4186 cat >conftest.$ac_ext <<_ACEOF
4187 #line $LINENO "configure"
4190 cat confdefs.h >>conftest.$ac_ext
4191 cat >>conftest.$ac_ext <<_ACEOF
4192 /* end confdefs.h. */
4193 $ac_includes_default
4195 #include <$ac_header>
4197 rm -f conftest.$ac_objext
4198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4199 (eval $ac_compile) 2>&5
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); } &&
4203 { ac_try='test -s conftest.$ac_objext'
4204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); }; }; then
4209 eval "$as_ac_Header=yes"
4211 echo "$as_me: failed program was:" >&5
4212 sed 's/^/| /' conftest.$ac_ext >&5
4214 eval "$as_ac_Header=no"
4216 rm -f conftest.$ac_objext conftest.$ac_ext
4218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4219 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4221 cat >>confdefs.h <<_ACEOF
4222 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4231 for ac_header in dlfcn.h
4233 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4235 echo "$as_me:$LINENO: checking for $ac_header" >&5
4236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4238 echo $ECHO_N "(cached) $ECHO_C" >&6
4240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4243 # Is the header compilable?
4244 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4245 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4246 cat >conftest.$ac_ext <<_ACEOF
4247 #line $LINENO "configure"
4250 cat confdefs.h >>conftest.$ac_ext
4251 cat >>conftest.$ac_ext <<_ACEOF
4252 /* end confdefs.h. */
4253 $ac_includes_default
4254 #include <$ac_header>
4256 rm -f conftest.$ac_objext
4257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4258 (eval $ac_compile) 2>&5
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); } &&
4262 { ac_try='test -s conftest.$ac_objext'
4263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); }; }; then
4268 ac_header_compiler=yes
4270 echo "$as_me: failed program was:" >&5
4271 sed 's/^/| /' conftest.$ac_ext >&5
4273 ac_header_compiler=no
4275 rm -f conftest.$ac_objext conftest.$ac_ext
4276 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4277 echo "${ECHO_T}$ac_header_compiler" >&6
4279 # Is the header present?
4280 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4281 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4282 cat >conftest.$ac_ext <<_ACEOF
4283 #line $LINENO "configure"
4286 cat confdefs.h >>conftest.$ac_ext
4287 cat >>conftest.$ac_ext <<_ACEOF
4288 /* end confdefs.h. */
4289 #include <$ac_header>
4291 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4292 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4294 grep -v '^ *+' conftest.er1 >conftest.err
4296 cat conftest.err >&5
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); } >/dev/null; then
4299 if test -s conftest.err; then
4300 ac_cpp_err=$ac_c_preproc_warn_flag
4307 if test -z "$ac_cpp_err"; then
4308 ac_header_preproc=yes
4310 echo "$as_me: failed program was:" >&5
4311 sed 's/^/| /' conftest.$ac_ext >&5
4313 ac_header_preproc=no
4315 rm -f conftest.err conftest.$ac_ext
4316 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4317 echo "${ECHO_T}$ac_header_preproc" >&6
4319 # So? What about this header?
4320 case $ac_header_compiler:$ac_header_preproc in
4322 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4323 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4325 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4328 ## ------------------------------------ ##
4329 ## Report this to bug-autoconf@gnu.org. ##
4330 ## ------------------------------------ ##
4333 sed "s/^/$as_me: WARNING: /" >&2
4336 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4337 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4338 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4339 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4341 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4344 ## ------------------------------------ ##
4345 ## Report this to bug-autoconf@gnu.org. ##
4346 ## ------------------------------------ ##
4349 sed "s/^/$as_me: WARNING: /" >&2
4352 echo "$as_me:$LINENO: checking for $ac_header" >&5
4353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
4357 eval "$as_ac_Header=$ac_header_preproc"
4359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4360 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4363 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4364 cat >>confdefs.h <<_ACEOF
4365 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4373 ac_cpp='$CXXCPP $CPPFLAGS'
4374 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4375 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4376 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4377 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4378 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4379 if test -z "$CXXCPP"; then
4380 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4381 echo $ECHO_N "(cached) $ECHO_C" >&6
4383 # Double quotes because CXXCPP needs to be expanded
4384 for CXXCPP in "$CXX -E" "/lib/cpp"
4387 for ac_cxx_preproc_warn_flag in '' yes
4389 # Use a header file that comes with gcc, so configuring glibc
4390 # with a fresh cross-compiler works.
4391 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4392 # <limits.h> exists even on freestanding compilers.
4393 # On the NeXT, cc -E runs the code through the compiler's parser,
4394 # not just through cpp. "Syntax error" is here to catch this case.
4395 cat >conftest.$ac_ext <<_ACEOF
4396 #line $LINENO "configure"
4399 cat confdefs.h >>conftest.$ac_ext
4400 cat >>conftest.$ac_ext <<_ACEOF
4401 /* end confdefs.h. */
4403 # include <limits.h>
4405 # include <assert.h>
4409 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4410 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4412 grep -v '^ *+' conftest.er1 >conftest.err
4414 cat conftest.err >&5
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); } >/dev/null; then
4417 if test -s conftest.err; then
4418 ac_cpp_err=$ac_cxx_preproc_warn_flag
4425 if test -z "$ac_cpp_err"; then
4428 echo "$as_me: failed program was:" >&5
4429 sed 's/^/| /' conftest.$ac_ext >&5
4431 # Broken: fails on valid input.
4434 rm -f conftest.err conftest.$ac_ext
4436 # OK, works on sane cases. Now check whether non-existent headers
4437 # can be detected and how.
4438 cat >conftest.$ac_ext <<_ACEOF
4439 #line $LINENO "configure"
4442 cat confdefs.h >>conftest.$ac_ext
4443 cat >>conftest.$ac_ext <<_ACEOF
4444 /* end confdefs.h. */
4445 #include <ac_nonexistent.h>
4447 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4448 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4450 grep -v '^ *+' conftest.er1 >conftest.err
4452 cat conftest.err >&5
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); } >/dev/null; then
4455 if test -s conftest.err; then
4456 ac_cpp_err=$ac_cxx_preproc_warn_flag
4463 if test -z "$ac_cpp_err"; then
4464 # Broken: success on invalid input.
4467 echo "$as_me: failed program was:" >&5
4468 sed 's/^/| /' conftest.$ac_ext >&5
4470 # Passes both tests.
4474 rm -f conftest.err conftest.$ac_ext
4477 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4478 rm -f conftest.err conftest.$ac_ext
4479 if $ac_preproc_ok; then
4484 ac_cv_prog_CXXCPP=$CXXCPP
4487 CXXCPP=$ac_cv_prog_CXXCPP
4489 ac_cv_prog_CXXCPP=$CXXCPP
4491 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4492 echo "${ECHO_T}$CXXCPP" >&6
4494 for ac_cxx_preproc_warn_flag in '' yes
4496 # Use a header file that comes with gcc, so configuring glibc
4497 # with a fresh cross-compiler works.
4498 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4499 # <limits.h> exists even on freestanding compilers.
4500 # On the NeXT, cc -E runs the code through the compiler's parser,
4501 # not just through cpp. "Syntax error" is here to catch this case.
4502 cat >conftest.$ac_ext <<_ACEOF
4503 #line $LINENO "configure"
4506 cat confdefs.h >>conftest.$ac_ext
4507 cat >>conftest.$ac_ext <<_ACEOF
4508 /* end confdefs.h. */
4510 # include <limits.h>
4512 # include <assert.h>
4516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4519 grep -v '^ *+' conftest.er1 >conftest.err
4521 cat conftest.err >&5
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); } >/dev/null; then
4524 if test -s conftest.err; then
4525 ac_cpp_err=$ac_cxx_preproc_warn_flag
4532 if test -z "$ac_cpp_err"; then
4535 echo "$as_me: failed program was:" >&5
4536 sed 's/^/| /' conftest.$ac_ext >&5
4538 # Broken: fails on valid input.
4541 rm -f conftest.err conftest.$ac_ext
4543 # OK, works on sane cases. Now check whether non-existent headers
4544 # can be detected and how.
4545 cat >conftest.$ac_ext <<_ACEOF
4546 #line $LINENO "configure"
4549 cat confdefs.h >>conftest.$ac_ext
4550 cat >>conftest.$ac_ext <<_ACEOF
4551 /* end confdefs.h. */
4552 #include <ac_nonexistent.h>
4554 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4555 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4557 grep -v '^ *+' conftest.er1 >conftest.err
4559 cat conftest.err >&5
4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); } >/dev/null; then
4562 if test -s conftest.err; then
4563 ac_cpp_err=$ac_cxx_preproc_warn_flag
4570 if test -z "$ac_cpp_err"; then
4571 # Broken: success on invalid input.
4574 echo "$as_me: failed program was:" >&5
4575 sed 's/^/| /' conftest.$ac_ext >&5
4577 # Passes both tests.
4581 rm -f conftest.err conftest.$ac_ext
4584 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4585 rm -f conftest.err conftest.$ac_ext
4586 if $ac_preproc_ok; then
4589 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4590 See \`config.log' for more details." >&5
4591 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4592 See \`config.log' for more details." >&2;}
4593 { (exit 1); exit 1; }; }
4597 ac_cpp='$CXXCPP $CPPFLAGS'
4598 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4599 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4600 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4604 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4605 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4606 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4607 if test -n "$ac_tool_prefix"; then
4608 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4610 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4611 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4612 echo "$as_me:$LINENO: checking for $ac_word" >&5
4613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4614 if test "${ac_cv_prog_F77+set}" = set; then
4615 echo $ECHO_N "(cached) $ECHO_C" >&6
4617 if test -n "$F77"; then
4618 ac_cv_prog_F77="$F77" # Let the user override the test.
4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624 test -z "$as_dir" && as_dir=.
4625 for ac_exec_ext in '' $ac_executable_extensions; do
4626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4627 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4637 if test -n "$F77"; then
4638 echo "$as_me:$LINENO: result: $F77" >&5
4639 echo "${ECHO_T}$F77" >&6
4641 echo "$as_me:$LINENO: result: no" >&5
4642 echo "${ECHO_T}no" >&6
4645 test -n "$F77" && break
4648 if test -z "$F77"; then
4650 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4652 # Extract the first word of "$ac_prog", so it can be a program name with args.
4653 set dummy $ac_prog; ac_word=$2
4654 echo "$as_me:$LINENO: checking for $ac_word" >&5
4655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4656 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4657 echo $ECHO_N "(cached) $ECHO_C" >&6
4659 if test -n "$ac_ct_F77"; then
4660 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666 test -z "$as_dir" && as_dir=.
4667 for ac_exec_ext in '' $ac_executable_extensions; do
4668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4669 ac_cv_prog_ac_ct_F77="$ac_prog"
4670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4679 if test -n "$ac_ct_F77"; then
4680 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4681 echo "${ECHO_T}$ac_ct_F77" >&6
4683 echo "$as_me:$LINENO: result: no" >&5
4684 echo "${ECHO_T}no" >&6
4687 test -n "$ac_ct_F77" && break
4694 # Provide some information about the compiler.
4695 echo "$as_me:4695:" \
4696 "checking for Fortran 77 compiler version" >&5
4697 ac_compiler=`set X $ac_compile; echo $2`
4698 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4699 (eval $ac_compiler --version </dev/null >&5) 2>&5
4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 (exit $ac_status); }
4703 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4704 (eval $ac_compiler -v </dev/null >&5) 2>&5
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); }
4708 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4709 (eval $ac_compiler -V </dev/null >&5) 2>&5
4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712 (exit $ac_status); }
4714 # If we don't use `.F' as extension, the preprocessor is not run on the
4718 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4719 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4720 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4721 echo $ECHO_N "(cached) $ECHO_C" >&6
4723 cat >conftest.$ac_ext <<_ACEOF
4731 rm -f conftest.$ac_objext
4732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4733 (eval $ac_compile) 2>&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); } &&
4737 { ac_try='test -s conftest.$ac_objext'
4738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); }; }; then
4745 echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.$ac_ext >&5
4750 rm -f conftest.$ac_objext conftest.$ac_ext
4751 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4754 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4755 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4757 G77=`test $ac_compiler_gnu = yes && echo yes`
4758 ac_test_FFLAGS=${FFLAGS+set}
4759 ac_save_FFLAGS=$FFLAGS
4761 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4762 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4763 if test "${ac_cv_prog_f77_g+set}" = set; then
4764 echo $ECHO_N "(cached) $ECHO_C" >&6
4767 cat >conftest.$ac_ext <<_ACEOF
4772 rm -f conftest.$ac_objext
4773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4774 (eval $ac_compile) 2>&5
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); } &&
4778 { ac_try='test -s conftest.$ac_objext'
4779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); }; }; then
4784 ac_cv_prog_f77_g=yes
4786 echo "$as_me: failed program was:" >&5
4787 sed 's/^/| /' conftest.$ac_ext >&5
4791 rm -f conftest.$ac_objext conftest.$ac_ext
4794 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4795 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4796 if test "$ac_test_FFLAGS" = set; then
4797 FFLAGS=$ac_save_FFLAGS
4798 elif test $ac_cv_prog_f77_g = yes; then
4799 if test "$G77" = yes; then
4805 if test "$G77" = yes; then
4812 ac_cpp='$CPP $CPPFLAGS'
4813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4819 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4821 # find the maximum length of command line arguments
4822 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4823 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4824 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4832 # On DJGPP, this test can blow up pretty badly due to problems in libc
4833 # (any single argument exceeding 2000 bytes causes a buffer overrun
4834 # during glob expansion). Even if it were fixed, the result of this
4835 # check would be larger than it should be.
4836 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4840 # Under GNU Hurd, this test is not required because there is
4841 # no limit to the length of command line arguments.
4842 # Libtool will interpret -1 as no limit whatsoever
4843 lt_cv_sys_max_cmd_len=-1;
4847 # On Win9x/ME, this test blows up -- it succeeds, but takes
4848 # about 5 minutes as the teststring grows exponentially.
4849 # Worse, since 9x/ME are not pre-emptively multitasking,
4850 # you end up with a "frozen" computer, even though with patience
4851 # the test eventually succeeds (with a max line length of 256k).
4852 # Instead, let's just punt: use the minimum linelength reported by
4853 # all of the supported platforms: 8192 (on NT/2K/XP).
4854 lt_cv_sys_max_cmd_len=8192;
4858 # If test is not a shell built-in, we'll probably end up computing a
4859 # maximum length that is only half of the actual maximum length, but
4861 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
4862 = "XX$testring") >/dev/null 2>&1 &&
4863 new_result=`expr "X$testring" : ".*" 2>&1` &&
4864 lt_cv_sys_max_cmd_len=$new_result &&
4865 test $i != 17 # 1/2 MB should be enough
4868 testring=$testring$testring
4871 # Add a significant safety factor because C++ compilers can tack on massive
4872 # amounts of additional arguments before passing them to the linker.
4873 # It appears as though 1/2 is a usable value.
4874 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4880 if test -n $lt_cv_sys_max_cmd_len ; then
4881 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4882 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4884 echo "$as_me:$LINENO: result: none" >&5
4885 echo "${ECHO_T}none" >&6
4891 # Check for command to grab the raw symbol name followed by C symbol from nm.
4892 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4893 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4894 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4895 echo $ECHO_N "(cached) $ECHO_C" >&6
4898 # These are sane defaults that work on at least a few old systems.
4899 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4901 # Character class describing NM global symbol codes.
4902 symcode='[BCDEGRST]'
4904 # Regexp to match symbols that can be accessed directly from C.
4905 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4907 # Transform the above into a raw symbol and a C symbol.
4908 symxfrm='\1 \2\3 \3'
4910 # Transform an extracted symbol line into a proper C declaration
4911 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4913 # Transform an extracted symbol line into symbol name and symbol address
4914 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'"
4916 # Define system-specific variables.
4921 cygwin* | mingw* | pw32*)
4922 symcode='[ABCDGISTW]'
4924 hpux*) # Its linker distinguishes data from code symbols
4925 if test "$host_cpu" = ia64; then
4926 symcode='[ABCDEGRST]'
4928 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4929 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'"
4932 symcode='[BCDEGRST]'
4935 symcode='[BCDEGQRST]'
4945 # Handle CRLF in mingw tool chain
4949 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4953 # If we're using GNU nm, then use its standard symbol codes.
4954 case `$NM -V 2>&1` in
4955 *GNU* | *'with BFD'*)
4956 symcode='[ABCDGISTW]' ;;
4959 # Try without a prefix undercore, then with it.
4960 for ac_symprfx in "" "_"; do
4962 # Write the raw and C identifiers.
4963 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4965 # Check to see that the pipe works correctly.
4969 cat > conftest.$ac_ext <<EOF
4974 void nm_test_func(){}
4978 int main(){nm_test_var='a';nm_test_func();return(0);}
4981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4982 (eval $ac_compile) 2>&5
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); }; then
4986 # Now try to grab the symbols.
4988 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4989 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); } && test -s "$nlist"; then
4993 # Try sorting and uniquifying the output.
4994 if sort "$nlist" | uniq > "$nlist"T; then
4995 mv -f "$nlist"T "$nlist"
5000 # Make sure that we snagged all the symbols we need.
5001 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5002 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5003 cat <<EOF > conftest.$ac_ext
5009 # Now generate the symbol file.
5010 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5012 cat <<EOF >> conftest.$ac_ext
5013 #if defined (__STDC__) && __STDC__
5014 # define lt_ptr_t void *
5016 # define lt_ptr_t char *
5020 /* The mapping between symbol names and symbols. */
5025 lt_preloaded_symbols[] =
5028 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5029 cat <<\EOF >> conftest.$ac_ext
5037 # Now try linking the two files.
5038 mv conftest.$ac_objext conftstm.$ac_objext
5039 lt_save_LIBS="$LIBS"
5040 lt_save_CFLAGS="$CFLAGS"
5041 LIBS="conftstm.$ac_objext"
5042 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5044 (eval $ac_link) 2>&5
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5050 LIBS="$lt_save_LIBS"
5051 CFLAGS="$lt_save_CFLAGS"
5053 echo "cannot find nm_test_func in $nlist" >&5
5056 echo "cannot find nm_test_var in $nlist" >&5
5059 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5062 echo "$progname: failed program was:" >&5
5063 cat conftest.$ac_ext >&5
5065 rm -f conftest* conftst*
5067 # Do not use the global_symbol_pipe unless it works.
5068 if test "$pipe_works" = yes; then
5071 lt_cv_sys_global_symbol_pipe=
5077 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5078 lt_cv_sys_global_symbol_to_cdecl=
5080 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5081 echo "$as_me:$LINENO: result: failed" >&5
5082 echo "${ECHO_T}failed" >&6
5084 echo "$as_me:$LINENO: result: ok" >&5
5085 echo "${ECHO_T}ok" >&6
5088 echo "$as_me:$LINENO: checking for objdir" >&5
5089 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5090 if test "${lt_cv_objdir+set}" = set; then
5091 echo $ECHO_N "(cached) $ECHO_C" >&6
5093 rm -f .libs 2>/dev/null
5094 mkdir .libs 2>/dev/null
5095 if test -d .libs; then
5098 # MS-DOS does not allow filenames that begin with a dot.
5101 rmdir .libs 2>/dev/null
5103 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5104 echo "${ECHO_T}$lt_cv_objdir" >&6
5105 objdir=$lt_cv_objdir
5113 # AIX sometimes has problems with the GCC collect2 program. For some
5114 # reason, if we set the COLLECT_NAMES environment variable, the problems
5115 # vanish in a puff of smoke.
5116 if test "X${COLLECT_NAMES+set}" != Xset; then
5118 export COLLECT_NAMES
5123 # Sed substitution that helps us do robust quoting. It backslashifies
5124 # metacharacters that are still active within double-quoted strings.
5125 Xsed='sed -e s/^X//'
5126 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5128 # Same as above, but do not quote variable references.
5129 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5131 # Sed substitution to delay expansion of an escaped shell variable in a
5132 # double_quote_subst'ed string.
5133 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5135 # Sed substitution to avoid accidental globbing in evaled expressions
5136 no_glob_subst='s/\*/\\\*/g'
5142 default_ofile=libtool
5143 can_build_shared=yes
5145 # All known linkers require a `.a' archive for static linking (except M$VC,
5146 # which needs '.lib').
5148 ltmain="$ac_aux_dir/ltmain.sh"
5149 ofile="$default_ofile"
5150 with_gnu_ld="$lt_cv_prog_gnu_ld"
5152 if test -n "$ac_tool_prefix"; then
5153 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5154 set dummy ${ac_tool_prefix}ar; ac_word=$2
5155 echo "$as_me:$LINENO: checking for $ac_word" >&5
5156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5157 if test "${ac_cv_prog_AR+set}" = set; then
5158 echo $ECHO_N "(cached) $ECHO_C" >&6
5160 if test -n "$AR"; then
5161 ac_cv_prog_AR="$AR" # Let the user override the test.
5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167 test -z "$as_dir" && as_dir=.
5168 for ac_exec_ext in '' $ac_executable_extensions; do
5169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5170 ac_cv_prog_AR="${ac_tool_prefix}ar"
5171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5180 if test -n "$AR"; then
5181 echo "$as_me:$LINENO: result: $AR" >&5
5182 echo "${ECHO_T}$AR" >&6
5184 echo "$as_me:$LINENO: result: no" >&5
5185 echo "${ECHO_T}no" >&6
5189 if test -z "$ac_cv_prog_AR"; then
5191 # Extract the first word of "ar", so it can be a program name with args.
5192 set dummy ar; ac_word=$2
5193 echo "$as_me:$LINENO: checking for $ac_word" >&5
5194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5195 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5196 echo $ECHO_N "(cached) $ECHO_C" >&6
5198 if test -n "$ac_ct_AR"; then
5199 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5205 test -z "$as_dir" && as_dir=.
5206 for ac_exec_ext in '' $ac_executable_extensions; do
5207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5208 ac_cv_prog_ac_ct_AR="ar"
5209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5215 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5218 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5219 if test -n "$ac_ct_AR"; then
5220 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5221 echo "${ECHO_T}$ac_ct_AR" >&6
5223 echo "$as_me:$LINENO: result: no" >&5
5224 echo "${ECHO_T}no" >&6
5232 if test -n "$ac_tool_prefix"; then
5233 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5234 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5235 echo "$as_me:$LINENO: checking for $ac_word" >&5
5236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5237 if test "${ac_cv_prog_RANLIB+set}" = set; then
5238 echo $ECHO_N "(cached) $ECHO_C" >&6
5240 if test -n "$RANLIB"; then
5241 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 test -z "$as_dir" && as_dir=.
5248 for ac_exec_ext in '' $ac_executable_extensions; do
5249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5250 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5259 RANLIB=$ac_cv_prog_RANLIB
5260 if test -n "$RANLIB"; then
5261 echo "$as_me:$LINENO: result: $RANLIB" >&5
5262 echo "${ECHO_T}$RANLIB" >&6
5264 echo "$as_me:$LINENO: result: no" >&5
5265 echo "${ECHO_T}no" >&6
5269 if test -z "$ac_cv_prog_RANLIB"; then
5270 ac_ct_RANLIB=$RANLIB
5271 # Extract the first word of "ranlib", so it can be a program name with args.
5272 set dummy ranlib; ac_word=$2
5273 echo "$as_me:$LINENO: checking for $ac_word" >&5
5274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5275 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5276 echo $ECHO_N "(cached) $ECHO_C" >&6
5278 if test -n "$ac_ct_RANLIB"; then
5279 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285 test -z "$as_dir" && as_dir=.
5286 for ac_exec_ext in '' $ac_executable_extensions; do
5287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5288 ac_cv_prog_ac_ct_RANLIB="ranlib"
5289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5295 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5298 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5299 if test -n "$ac_ct_RANLIB"; then
5300 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5301 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5303 echo "$as_me:$LINENO: result: no" >&5
5304 echo "${ECHO_T}no" >&6
5307 RANLIB=$ac_ct_RANLIB
5309 RANLIB="$ac_cv_prog_RANLIB"
5312 if test -n "$ac_tool_prefix"; then
5313 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5314 set dummy ${ac_tool_prefix}strip; ac_word=$2
5315 echo "$as_me:$LINENO: checking for $ac_word" >&5
5316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5317 if test "${ac_cv_prog_STRIP+set}" = set; then
5318 echo $ECHO_N "(cached) $ECHO_C" >&6
5320 if test -n "$STRIP"; then
5321 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327 test -z "$as_dir" && as_dir=.
5328 for ac_exec_ext in '' $ac_executable_extensions; do
5329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5330 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5339 STRIP=$ac_cv_prog_STRIP
5340 if test -n "$STRIP"; then
5341 echo "$as_me:$LINENO: result: $STRIP" >&5
5342 echo "${ECHO_T}$STRIP" >&6
5344 echo "$as_me:$LINENO: result: no" >&5
5345 echo "${ECHO_T}no" >&6
5349 if test -z "$ac_cv_prog_STRIP"; then
5351 # Extract the first word of "strip", so it can be a program name with args.
5352 set dummy strip; ac_word=$2
5353 echo "$as_me:$LINENO: checking for $ac_word" >&5
5354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5355 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5356 echo $ECHO_N "(cached) $ECHO_C" >&6
5358 if test -n "$ac_ct_STRIP"; then
5359 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365 test -z "$as_dir" && as_dir=.
5366 for ac_exec_ext in '' $ac_executable_extensions; do
5367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5368 ac_cv_prog_ac_ct_STRIP="strip"
5369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5375 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5378 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5379 if test -n "$ac_ct_STRIP"; then
5380 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5381 echo "${ECHO_T}$ac_ct_STRIP" >&6
5383 echo "$as_me:$LINENO: result: no" >&5
5384 echo "${ECHO_T}no" >&6
5389 STRIP="$ac_cv_prog_STRIP"
5394 old_CFLAGS="$CFLAGS"
5396 # Set sane defaults for various variables
5397 test -z "$AR" && AR=ar
5398 test -z "$AR_FLAGS" && AR_FLAGS=cru
5399 test -z "$AS" && AS=as
5400 test -z "$CC" && CC=cc
5401 test -z "$LTCC" && LTCC=$CC
5402 test -z "$DLLTOOL" && DLLTOOL=dlltool
5403 test -z "$LD" && LD=ld
5404 test -z "$LN_S" && LN_S="ln -s"
5405 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5406 test -z "$NM" && NM=nm
5407 test -z "$SED" && SED=sed
5408 test -z "$OBJDUMP" && OBJDUMP=objdump
5409 test -z "$RANLIB" && RANLIB=:
5410 test -z "$STRIP" && STRIP=:
5411 test -z "$ac_objext" && ac_objext=o
5413 # Determine commands to create old-style static archives.
5414 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5415 old_postinstall_cmds='chmod 644 $oldlib'
5416 old_postuninstall_cmds=
5418 if test -n "$RANLIB"; then
5421 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5424 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5427 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5430 # Only perform the check for file, if the check method requires it
5431 case $deplibs_check_method in
5433 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5434 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5435 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5436 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5437 echo $ECHO_N "(cached) $ECHO_C" >&6
5441 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5444 lt_save_MAGIC_CMD="$MAGIC_CMD"
5445 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5446 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5447 for ac_dir in $ac_dummy; do
5449 test -z "$ac_dir" && ac_dir=.
5450 if test -f $ac_dir/${ac_tool_prefix}file; then
5451 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5452 if test -n "$file_magic_test_file"; then
5453 case $deplibs_check_method in
5455 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5456 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5457 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5458 $EGREP "$file_magic_regex" > /dev/null; then
5463 *** Warning: the command libtool uses to detect shared libraries,
5464 *** $file_magic_cmd, produces output that libtool cannot recognize.
5465 *** The result is that libtool may fail to recognize shared libraries
5466 *** as such. This will affect the creation of libtool libraries that
5467 *** depend on shared libraries, but programs linked with such libtool
5468 *** libraries will work regardless of this problem. Nevertheless, you
5469 *** may want to report the problem to your system manager and/or to
5470 *** bug-libtool@gnu.org
5480 MAGIC_CMD="$lt_save_MAGIC_CMD"
5485 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5486 if test -n "$MAGIC_CMD"; then
5487 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5488 echo "${ECHO_T}$MAGIC_CMD" >&6
5490 echo "$as_me:$LINENO: result: no" >&5
5491 echo "${ECHO_T}no" >&6
5494 if test -z "$lt_cv_path_MAGIC_CMD"; then
5495 if test -n "$ac_tool_prefix"; then
5496 echo "$as_me:$LINENO: checking for file" >&5
5497 echo $ECHO_N "checking for file... $ECHO_C" >&6
5498 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5499 echo $ECHO_N "(cached) $ECHO_C" >&6
5503 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5506 lt_save_MAGIC_CMD="$MAGIC_CMD"
5507 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5508 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5509 for ac_dir in $ac_dummy; do
5511 test -z "$ac_dir" && ac_dir=.
5512 if test -f $ac_dir/file; then
5513 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5514 if test -n "$file_magic_test_file"; then
5515 case $deplibs_check_method in
5517 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5518 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5519 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5520 $EGREP "$file_magic_regex" > /dev/null; then
5525 *** Warning: the command libtool uses to detect shared libraries,
5526 *** $file_magic_cmd, produces output that libtool cannot recognize.
5527 *** The result is that libtool may fail to recognize shared libraries
5528 *** as such. This will affect the creation of libtool libraries that
5529 *** depend on shared libraries, but programs linked with such libtool
5530 *** libraries will work regardless of this problem. Nevertheless, you
5531 *** may want to report the problem to your system manager and/or to
5532 *** bug-libtool@gnu.org
5542 MAGIC_CMD="$lt_save_MAGIC_CMD"
5547 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5548 if test -n "$MAGIC_CMD"; then
5549 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5550 echo "${ECHO_T}$MAGIC_CMD" >&6
5552 echo "$as_me:$LINENO: result: no" >&5
5553 echo "${ECHO_T}no" >&6
5568 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5569 if test "${enable_libtool_lock+set}" = set; then
5570 enableval="$enable_libtool_lock"
5573 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5576 # Check whether --with-pic or --without-pic was given.
5577 if test "${with_pic+set}" = set; then
5583 test -z "$pic_mode" && pic_mode=default
5585 # Use C for the default configuration in the libtool script
5589 ac_cpp='$CPP $CPPFLAGS'
5590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5595 # Source file extension for C test sources.
5598 # Object file extension for compiled C test sources.
5602 # Code to be used in simple compile tests
5603 lt_simple_compile_test_code="int some_variable = 0;\n"
5605 # Code to be used in simple link tests
5606 lt_simple_link_test_code='int main(){return(0);}\n'
5609 # If no C compiler was specified, use CC.
5612 # Allow CC to be a program name with arguments.
5617 # Check for any special shared library compilation flags.
5620 if test "$GCC" = no; then
5623 lt_prog_cc_shlib='-belf'
5627 if test -n "$lt_prog_cc_shlib"; then
5628 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5629 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5630 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5632 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5633 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5634 lt_cv_prog_cc_can_build_shared=no
5640 # Check to make sure the static flag actually works.
5642 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5643 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5644 if test "${lt_prog_compiler_static_works+set}" = set; then
5645 echo $ECHO_N "(cached) $ECHO_C" >&6
5647 lt_prog_compiler_static_works=no
5648 save_LDFLAGS="$LDFLAGS"
5649 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5650 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5651 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5652 # The compiler can only warn and ignore the option if not recognized
5653 # So say no if there are warnings
5654 if test -s conftest.err; then
5655 # Append any errors to the config.log.
5656 cat conftest.err 1>&5
5658 lt_prog_compiler_static_works=yes
5662 LDFLAGS="$save_LDFLAGS"
5665 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5666 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5668 if test x"$lt_prog_compiler_static_works" = xyes; then
5671 lt_prog_compiler_static=
5677 ## There is no encapsulation within the following macros, do not change
5678 ## the running order or otherwise move them around unless you know exactly
5679 ## what you are doing...
5681 lt_prog_compiler_no_builtin_flag=
5683 if test "$GCC" = yes; then
5684 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5686 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5687 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5688 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5689 echo $ECHO_N "(cached) $ECHO_C" >&6
5691 lt_cv_prog_compiler_rtti_exceptions=no
5692 ac_outfile=conftest.$ac_objext
5693 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5694 lt_compiler_flag="-fno-rtti -fno-exceptions"
5695 # Insert the option either (1) after the last *FLAGS variable, or
5696 # (2) before a word containing "conftest.", or (3) at the end.
5697 # Note that $ac_compile itself does not contain backslashes and begins
5698 # with a dollar sign (not a hyphen), so the echo should work correctly.
5699 # The option is referenced via a variable to avoid confusing sed.
5700 lt_compile=`echo "$ac_compile" | $SED \
5701 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5702 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5703 -e 's:$: $lt_compiler_flag:'`
5704 (eval echo "\"\$as_me:5704: $lt_compile\"" >&5)
5705 (eval "$lt_compile" 2>conftest.err)
5707 cat conftest.err >&5
5708 echo "$as_me:5708: \$? = $ac_status" >&5
5709 if (exit $ac_status) && test -s "$ac_outfile"; then
5710 # The compiler can only warn and ignore the option if not recognized
5711 # So say no if there are warnings
5712 if test ! -s conftest.err; then
5713 lt_cv_prog_compiler_rtti_exceptions=yes
5719 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5720 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5722 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5723 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5730 lt_prog_compiler_wl=
5731 lt_prog_compiler_pic=
5732 lt_prog_compiler_static=
5734 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5735 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5737 if test "$GCC" = yes; then
5738 lt_prog_compiler_wl='-Wl,'
5739 lt_prog_compiler_static='-static'
5743 # All AIX code is PIC.
5744 if test "$host_cpu" = ia64; then
5745 # AIX 5 now supports IA64 processor
5746 lt_prog_compiler_static='-Bstatic'
5751 # FIXME: we need at least 68020 code to build shared libraries, but
5752 # adding the `-m68020' flag to GCC prevents building anything better,
5754 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5757 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5758 # PIC is the default for these OSes.
5761 mingw* | pw32* | os2*)
5762 # This hack is so that the source file can tell whether it is being
5763 # built for inclusion in a dll (and should export symbols for example).
5764 lt_prog_compiler_pic='-DDLL_EXPORT'
5767 darwin* | rhapsody*)
5768 # PIC is the default on this platform
5769 # Common symbols not allowed in MH_DYLIB files
5770 lt_prog_compiler_pic='-fno-common'
5774 # Just because we use GCC doesn't mean we suddenly get shared libraries
5775 # on systems that don't support them.
5776 lt_prog_compiler_can_build_shared=no
5781 if test -d /usr/nec; then
5782 lt_prog_compiler_pic=-Kconform_pic
5787 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5794 lt_prog_compiler_pic='-fPIC'
5800 lt_prog_compiler_pic='-fPIC'
5804 # PORTME Check for flag to pass linker flags through the system compiler.
5807 lt_prog_compiler_wl='-Wl,'
5808 if test "$host_cpu" = ia64; then
5809 # AIX 5 now supports IA64 processor
5810 lt_prog_compiler_static='-Bstatic'
5812 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5816 mingw* | pw32* | os2*)
5817 # This hack is so that the source file can tell whether it is being
5818 # built for inclusion in a dll (and should export symbols for example).
5819 lt_prog_compiler_pic='-DDLL_EXPORT'
5822 hpux9* | hpux10* | hpux11*)
5823 lt_prog_compiler_wl='-Wl,'
5824 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5831 lt_prog_compiler_pic='+Z'
5834 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5835 lt_prog_compiler_static='${wl}-a ${wl}archive'
5838 irix5* | irix6* | nonstopux*)
5839 lt_prog_compiler_wl='-Wl,'
5840 # PIC (with -KPIC) is the default.
5841 lt_prog_compiler_static='-non_shared'
5845 lt_prog_compiler_pic='-KPIC'
5846 lt_prog_compiler_static='-Bstatic'
5852 lt_prog_compiler_wl='-Wl,'
5853 lt_prog_compiler_pic='-KPIC'
5854 lt_prog_compiler_static='-static'
5857 lt_prog_compiler_wl='-Wl,'
5858 # All Alpha code is PIC.
5859 lt_prog_compiler_static='-non_shared'
5864 osf3* | osf4* | osf5*)
5865 lt_prog_compiler_wl='-Wl,'
5866 # All OSF/1 code is PIC.
5867 lt_prog_compiler_static='-non_shared'
5871 lt_prog_compiler_pic='-Kpic'
5872 lt_prog_compiler_static='-dn'
5876 lt_prog_compiler_wl='-Wl,'
5877 lt_prog_compiler_pic='-KPIC'
5878 lt_prog_compiler_static='-Bstatic'
5882 lt_prog_compiler_wl='-Qoption ld '
5883 lt_prog_compiler_pic='-PIC'
5884 lt_prog_compiler_static='-Bstatic'
5887 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5888 lt_prog_compiler_wl='-Wl,'
5889 lt_prog_compiler_pic='-KPIC'
5890 lt_prog_compiler_static='-Bstatic'
5894 if test -d /usr/nec ;then
5895 lt_prog_compiler_pic='-Kconform_pic'
5896 lt_prog_compiler_static='-Bstatic'
5901 lt_prog_compiler_pic='-pic'
5902 lt_prog_compiler_static='-Bstatic'
5906 lt_prog_compiler_can_build_shared=no
5911 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5912 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
5915 # Check to make sure the PIC flag actually works.
5917 if test -n "$lt_prog_compiler_pic"; then
5918 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5919 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
5920 if test "${lt_prog_compiler_pic_works+set}" = set; then
5921 echo $ECHO_N "(cached) $ECHO_C" >&6
5923 lt_prog_compiler_pic_works=no
5924 ac_outfile=conftest.$ac_objext
5925 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5926 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
5927 # Insert the option either (1) after the last *FLAGS variable, or
5928 # (2) before a word containing "conftest.", or (3) at the end.
5929 # Note that $ac_compile itself does not contain backslashes and begins
5930 # with a dollar sign (not a hyphen), so the echo should work correctly.
5931 # The option is referenced via a variable to avoid confusing sed.
5932 lt_compile=`echo "$ac_compile" | $SED \
5933 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5934 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5935 -e 's:$: $lt_compiler_flag:'`
5936 (eval echo "\"\$as_me:5936: $lt_compile\"" >&5)
5937 (eval "$lt_compile" 2>conftest.err)
5939 cat conftest.err >&5
5940 echo "$as_me:5940: \$? = $ac_status" >&5
5941 if (exit $ac_status) && test -s "$ac_outfile"; then
5942 # The compiler can only warn and ignore the option if not recognized
5943 # So say no if there are warnings
5944 if test ! -s conftest.err; then
5945 lt_prog_compiler_pic_works=yes
5951 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
5952 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
5954 if test x"$lt_prog_compiler_pic_works" = xyes; then
5955 case $lt_prog_compiler_pic in
5957 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
5960 lt_prog_compiler_pic=
5961 lt_prog_compiler_can_build_shared=no
5966 # For platforms which do not support PIC, -DPIC is meaningless:
5968 lt_prog_compiler_pic=
5971 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
5975 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5976 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5977 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
5978 echo $ECHO_N "(cached) $ECHO_C" >&6
5980 lt_cv_prog_compiler_c_o=no
5981 $rm -r conftest 2>/dev/null
5985 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5987 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5988 # that will create temporary files in the current directory regardless of
5989 # the output directory. Thus, making CWD read-only will cause this test
5990 # to fail, enabling locking or at least warning the user not to do parallel
5994 lt_compiler_flag="-o out/conftest2.$ac_objext"
5995 # Insert the option either (1) after the last *FLAGS variable, or
5996 # (2) before a word containing "conftest.", or (3) at the end.
5997 # Note that $ac_compile itself does not contain backslashes and begins
5998 # with a dollar sign (not a hyphen), so the echo should work correctly.
5999 lt_compile=`echo "$ac_compile" | $SED \
6000 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6001 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6002 -e 's:$: $lt_compiler_flag:'`
6003 (eval echo "\"\$as_me:6003: $lt_compile\"" >&5)
6004 (eval "$lt_compile" 2>out/conftest.err)
6006 cat out/conftest.err >&5
6007 echo "$as_me:6007: \$? = $ac_status" >&5
6008 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6010 # The compiler can only warn and ignore the option if not recognized
6011 # So say no if there are warnings
6012 if test ! -s out/conftest.err; then
6013 lt_cv_prog_compiler_c_o=yes
6024 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6025 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6028 hard_links="nottested"
6029 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6030 # do not overwrite the value of need_locks provided by the user
6031 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6032 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6035 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6037 ln conftest.a conftest.b 2>&5 || hard_links=no
6038 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6039 echo "$as_me:$LINENO: result: $hard_links" >&5
6040 echo "${ECHO_T}$hard_links" >&6
6041 if test "$hard_links" = no; then
6042 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6043 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6050 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6051 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6054 allow_undefined_flag=
6055 enable_shared_with_static_runtimes=no
6057 archive_expsym_cmds=
6058 old_archive_From_new_cmds=
6059 old_archive_from_expsyms_cmds=
6060 export_dynamic_flag_spec=
6061 whole_archive_flag_spec=
6062 thread_safe_flag_spec=
6063 hardcode_libdir_flag_spec=
6064 hardcode_libdir_flag_spec_ld=
6065 hardcode_libdir_separator=
6068 hardcode_shlibpath_var=unsupported
6069 link_all_deplibs=unknown
6070 hardcode_automatic=no
6073 always_export_symbols=no
6074 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6075 # include_expsyms should be a list of space-separated symbols to be *always*
6076 # included in the symbol list
6078 # exclude_expsyms can be an extended regexp of symbols to exclude
6079 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6080 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6081 # as well as any symbol that contains `d'.
6082 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6083 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6084 # platforms (ab)use it in PIC code, but their linkers get confused if
6085 # the symbol is explicitly referenced. Since portable code cannot
6086 # rely on this symbol name, it's probably fine to never include it in
6087 # preloaded symbol tables.
6088 extract_expsyms_cmds=
6091 cygwin* | mingw* | pw32*)
6092 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6093 # When not using gcc, we currently assume that we are using
6094 # Microsoft Visual C++.
6095 if test "$GCC" != yes; then
6105 if test "$with_gnu_ld" = yes; then
6106 # If archive_cmds runs LD, not CC, wlarc should be empty
6109 # See if GNU ld supports shared libraries.
6111 aix3* | aix4* | aix5*)
6112 # On AIX/PPC, the GNU linker is very broken
6113 if test "$host_cpu" != ia64; then
6117 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6118 *** to be unable to reliably create shared libraries on AIX.
6119 *** Therefore, libtool is disabling shared libraries support. If you
6120 *** really care for shared libraries, you may want to modify your PATH
6121 *** so that a non-GNU linker is found, and then restart.
6128 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)'
6129 hardcode_libdir_flag_spec='-L$libdir'
6130 hardcode_minus_L=yes
6132 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6133 # that the semantics of dynamic libraries on AmigaOS, at least up
6134 # to version 4, is to share data among multiple programs linked
6135 # with the same dynamic library. Since this doesn't match the
6136 # behavior of shared libraries on other platforms, we can't use
6142 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6143 allow_undefined_flag=unsupported
6144 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6145 # support --undefined. This deserves some investigation. FIXME
6146 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6152 cygwin* | mingw* | pw32*)
6153 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6154 # as there is no search path for DLLs.
6155 hardcode_libdir_flag_spec='-L$libdir'
6156 allow_undefined_flag=unsupported
6157 always_export_symbols=no
6158 enable_shared_with_static_runtimes=yes
6159 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6161 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6162 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6163 # If the export-symbols file already is a .def file (1st line
6164 # is EXPORTS), use it as is; otherwise, prepend...
6165 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6166 cp $export_symbols $output_objdir/$soname.def;
6168 echo EXPORTS > $output_objdir/$soname.def;
6169 cat $export_symbols >> $output_objdir/$soname.def;
6171 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6178 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6179 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6182 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6183 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6188 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6192 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6193 *** create shared libraries on Solaris systems. Therefore, libtool
6194 *** is disabling shared libraries support. We urge you to upgrade GNU
6195 *** binutils to release 2.9.1 or newer. Another option is to modify
6196 *** your PATH or compiler configuration so that the native linker is
6197 *** used, and then restart.
6200 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6201 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6202 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6209 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6212 hardcode_shlibpath_var=no
6216 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6217 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6218 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6225 if test "$ld_shlibs" = yes; then
6226 runpath_var=LD_RUN_PATH
6227 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6228 export_dynamic_flag_spec='${wl}--export-dynamic'
6229 # ancient GNU ld didn't support --whole-archive et. al.
6230 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6231 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6233 whole_archive_flag_spec=
6237 # PORTME fill in a description of your system's linker (not GNU ld)
6240 allow_undefined_flag=unsupported
6241 always_export_symbols=yes
6242 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'
6243 # Note: this linker hardcodes the directories in LIBPATH if there
6244 # are no directories specified by -L.
6245 hardcode_minus_L=yes
6246 if test "$GCC" = yes && test -z "$link_static_flag"; then
6247 # Neither direct hardcoding nor static linking is supported with a
6249 hardcode_direct=unsupported
6254 if test "$host_cpu" = ia64; then
6255 # On IA64, the linker does run time linking by default, so we don't
6256 # have to do anything special.
6257 aix_use_runtimelinking=no
6258 exp_sym_flag='-Bexport'
6261 # If we're using GNU nm, then we don't want the "-C" option.
6262 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6263 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6264 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'
6266 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'
6268 aix_use_runtimelinking=no
6270 # Test if we are trying to use run time linking or normal
6271 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6272 # need to do runtime linking.
6273 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6274 for ld_flag in $LDFLAGS; do
6275 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6276 aix_use_runtimelinking=yes
6282 exp_sym_flag='-bexport'
6283 no_entry_flag='-bnoentry'
6286 # When large executables or shared objects are built, AIX ld can
6287 # have problems creating the table of contents. If linking a library
6288 # or program results in "error TOC overflow" add -mminimal-toc to
6289 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6290 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6294 hardcode_libdir_separator=':'
6295 link_all_deplibs=yes
6297 if test "$GCC" = yes; then
6298 case $host_os in aix4.012|aix4.012.*)
6299 # We only want to do this on AIX 4.2 and lower, the check
6300 # below for broken collect2 doesn't work under 4.3+
6301 collect2name=`${CC} -print-prog-name=collect2`
6302 if test -f "$collect2name" && \
6303 strings "$collect2name" | grep resolve_lib_name >/dev/null
6305 # We have reworked collect2
6308 # We have old collect2
6309 hardcode_direct=unsupported
6310 # It fails to find uninstalled libraries when the uninstalled
6311 # path is not listed in the libpath. Setting hardcode_minus_L
6312 # to unsupported forces relinking
6313 hardcode_minus_L=yes
6314 hardcode_libdir_flag_spec='-L$libdir'
6315 hardcode_libdir_separator=
6318 shared_flag='-shared'
6321 if test "$host_cpu" = ia64; then
6322 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6323 # chokes on -Wl,-G. The following line is correct:
6326 if test "$aix_use_runtimelinking" = yes; then
6327 shared_flag='${wl}-G'
6329 shared_flag='${wl}-bM:SRE'
6334 # It seems that -bexpall does not export symbols beginning with
6335 # underscore (_), so it is better to generate a list of symbols to export.
6336 always_export_symbols=yes
6337 if test "$aix_use_runtimelinking" = yes; then
6338 # Warning - without using the other runtime loading flags (-brtl),
6339 # -berok will link without error, but may produce a broken library.
6340 allow_undefined_flag='-berok'
6341 # Determine the default libpath from the value encoded in an empty executable.
6342 cat >conftest.$ac_ext <<_ACEOF
6343 #line $LINENO "configure"
6346 cat confdefs.h >>conftest.$ac_ext
6347 cat >>conftest.$ac_ext <<_ACEOF
6348 /* end confdefs.h. */
6358 rm -f conftest.$ac_objext conftest$ac_exeext
6359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6360 (eval $ac_link) 2>&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); } &&
6364 { ac_try='test -s conftest$ac_exeext'
6365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); }; }; then
6371 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6373 # Check for a 64-bit object if we didn't find anything.
6374 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; }
6377 echo "$as_me: failed program was:" >&5
6378 sed 's/^/| /' conftest.$ac_ext >&5
6381 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6382 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6384 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6385 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"
6387 if test "$host_cpu" = ia64; then
6388 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6389 allow_undefined_flag="-z nodefs"
6390 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"
6392 # Determine the default libpath from the value encoded in an empty executable.
6393 cat >conftest.$ac_ext <<_ACEOF
6394 #line $LINENO "configure"
6397 cat confdefs.h >>conftest.$ac_ext
6398 cat >>conftest.$ac_ext <<_ACEOF
6399 /* end confdefs.h. */
6409 rm -f conftest.$ac_objext conftest$ac_exeext
6410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6411 (eval $ac_link) 2>&5
6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); } &&
6415 { ac_try='test -s conftest$ac_exeext'
6416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); }; }; then
6422 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6424 # Check for a 64-bit object if we didn't find anything.
6425 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; }
6428 echo "$as_me: failed program was:" >&5
6429 sed 's/^/| /' conftest.$ac_ext >&5
6432 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6433 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6435 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6436 # Warning - without using the other run time loading flags,
6437 # -berok will link without error, but may produce a broken library.
6438 no_undefined_flag=' ${wl}-bernotok'
6439 allow_undefined_flag=' ${wl}-berok'
6440 # -bexpall does not export symbols beginning with underscore (_)
6441 always_export_symbols=yes
6442 # Exported symbols can be pulled into shared objects from archives
6443 whole_archive_flag_spec=' '
6444 archive_cmds_need_lc=yes
6445 # This is similar to how AIX traditionally builds it's shared libraries.
6446 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'
6452 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)'
6453 hardcode_libdir_flag_spec='-L$libdir'
6454 hardcode_minus_L=yes
6455 # see comment about different semantics on the GNU ld section
6460 export_dynamic_flag_spec=-rdynamic
6463 cygwin* | mingw* | pw32*)
6464 # When not using gcc, we currently assume that we are using
6465 # Microsoft Visual C++.
6466 # hardcode_libdir_flag_spec is actually meaningless, as there is
6467 # no search path for DLLs.
6468 hardcode_libdir_flag_spec=' '
6469 allow_undefined_flag=unsupported
6470 # Tell ltmain to make .lib files, not .a files.
6472 # Tell ltmain to make .dll files, not .so files.
6474 # FIXME: Setting linknames here is a bad hack.
6475 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6476 # The linker will automatically build a .lib file if we build a DLL.
6477 old_archive_From_new_cmds='true'
6478 # FIXME: Should let the user specify the lib program.
6479 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6480 fix_srcfile_path='`cygpath -w "$srcfile"`'
6481 enable_shared_with_static_runtimes=yes
6484 darwin* | rhapsody*)
6485 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6486 archive_cmds_need_lc=no
6488 rhapsody* | darwin1.[012])
6489 allow_undefined_flag='-undefined suppress'
6492 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6495 # FIXME: Relying on posixy $() will cause problems for
6496 # cross-compilation, but unfortunately the echo tests do not
6497 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6498 # `"' quotes if we put them in here... so don't!
6499 lt_int_apple_cc_single_mod=no
6500 output_verbose_link_cmd='echo'
6501 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6502 lt_int_apple_cc_single_mod=yes
6504 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6505 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6507 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'
6509 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6510 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6511 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6512 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}'
6514 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}'
6516 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}'
6518 hardcode_automatic=yes
6519 hardcode_shlibpath_var=unsupported
6520 whole_archive_flag_spec='-all_load $convenience'
6521 link_all_deplibs=yes
6526 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6527 hardcode_libdir_flag_spec='-L$libdir'
6528 hardcode_shlibpath_var=no
6535 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6536 # support. Future versions do this automatically, but an explicit c++rt0.o
6537 # does not break anything, and helps significantly (at the cost of a little
6540 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6541 hardcode_libdir_flag_spec='-R$libdir'
6543 hardcode_shlibpath_var=no
6546 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6548 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6550 hardcode_minus_L=yes
6551 hardcode_shlibpath_var=no
6554 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6556 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6557 hardcode_libdir_flag_spec='-R$libdir'
6559 hardcode_shlibpath_var=no
6563 if test "$GCC" = yes; then
6564 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'
6566 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'
6568 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6569 hardcode_libdir_separator=:
6572 # hardcode_minus_L: Not really in the search PATH,
6573 # but as the default location of the library.
6574 hardcode_minus_L=yes
6575 export_dynamic_flag_spec='${wl}-E'
6579 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6582 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6585 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6591 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6594 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6598 if test "$with_gnu_ld" = no; then
6601 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6602 hardcode_libdir_flag_spec_ld='+b $libdir'
6603 hardcode_libdir_separator=:
6605 hardcode_shlibpath_var=no
6608 hardcode_libdir_flag_spec='-L$libdir'
6610 hardcode_shlibpath_var=no
6612 # hardcode_minus_L: Not really in the search PATH,
6613 # but as the default location of the library.
6614 hardcode_minus_L=yes
6617 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6618 hardcode_libdir_separator=:
6620 export_dynamic_flag_spec='${wl}-E'
6622 # hardcode_minus_L: Not really in the search PATH,
6623 # but as the default location of the library.
6624 hardcode_minus_L=yes
6630 irix5* | irix6* | nonstopux*)
6631 if test "$GCC" = yes; then
6632 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'
6634 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'
6635 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6637 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6638 hardcode_libdir_separator=:
6639 link_all_deplibs=yes
6643 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6644 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6646 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6648 hardcode_libdir_flag_spec='-R$libdir'
6650 hardcode_shlibpath_var=no
6654 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6656 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6657 hardcode_libdir_separator=:
6658 hardcode_shlibpath_var=no
6663 hardcode_shlibpath_var=no
6664 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6665 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6666 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6667 export_dynamic_flag_spec='${wl}-E'
6670 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6671 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6672 hardcode_libdir_flag_spec='-R$libdir'
6675 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6676 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6683 hardcode_libdir_flag_spec='-L$libdir'
6684 hardcode_minus_L=yes
6685 allow_undefined_flag=unsupported
6686 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'
6687 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6691 if test "$GCC" = yes; then
6692 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6693 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'
6695 allow_undefined_flag=' -expect_unresolved \*'
6696 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'
6698 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6699 hardcode_libdir_separator=:
6702 osf4* | osf5*) # as osf3* with the addition of -msym flag
6703 if test "$GCC" = yes; then
6704 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6705 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'
6706 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6708 allow_undefined_flag=' -expect_unresolved \*'
6709 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'
6710 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6711 $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'
6713 # Both c and cxx compiler support -rpath directly
6714 hardcode_libdir_flag_spec='-rpath $libdir'
6716 hardcode_libdir_separator=:
6720 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6721 hardcode_shlibpath_var=no
6722 export_dynamic_flag_spec='${wl}-Bexport'
6723 runpath_var=LD_RUN_PATH
6724 hardcode_runpath_var=yes
6728 no_undefined_flag=' -z text'
6729 if test "$GCC" = yes; then
6730 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6731 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6732 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6734 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6735 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6736 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6738 hardcode_libdir_flag_spec='-R$libdir'
6739 hardcode_shlibpath_var=no
6741 solaris2.[0-5] | solaris2.[0-5].*) ;;
6742 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6743 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6745 link_all_deplibs=yes
6749 if test "x$host_vendor" = xsequent; then
6750 # Use $CC to link under sequent, because it throws in some extra .o
6751 # files that make .init and .fini sections work.
6752 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6754 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6756 hardcode_libdir_flag_spec='-L$libdir'
6758 hardcode_minus_L=yes
6759 hardcode_shlibpath_var=no
6763 case $host_vendor in
6765 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6766 hardcode_direct=yes # is this really true???
6769 ## LD is ld it makes a PLAMLIB
6770 ## CC just makes a GrossModule.
6771 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6772 reload_cmds='$CC -r -o $output$reload_objs'
6776 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6777 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6780 runpath_var='LD_RUN_PATH'
6781 hardcode_shlibpath_var=no
6785 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6786 hardcode_shlibpath_var=no
6787 export_dynamic_flag_spec='-Bexport'
6791 if test -d /usr/nec; then
6792 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6793 hardcode_shlibpath_var=no
6794 runpath_var=LD_RUN_PATH
6795 hardcode_runpath_var=yes
6801 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6804 hardcode_shlibpath_var=no
6805 hardcode_runpath_var=yes
6806 runpath_var=LD_RUN_PATH
6809 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
6810 no_undefined_flag='${wl}-z ${wl}text'
6811 if test "$GCC" = yes; then
6812 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6814 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6816 runpath_var='LD_RUN_PATH'
6817 hardcode_shlibpath_var=no
6821 no_undefined_flag=' -z text'
6822 # $CC -shared without GNU ld will not create a library from C++
6823 # object files and a static libstdc++, better avoid it by now
6824 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6825 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6826 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6827 hardcode_libdir_flag_spec=
6828 hardcode_shlibpath_var=no
6829 runpath_var='LD_RUN_PATH'
6833 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6834 hardcode_libdir_flag_spec='-L$libdir'
6835 hardcode_shlibpath_var=no
6844 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6845 echo "${ECHO_T}$ld_shlibs" >&6
6846 test "$ld_shlibs" = no && can_build_shared=no
6848 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6849 if test "$GCC" = yes; then
6850 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6854 # Do we need to explicitly link libc?
6856 case "x$archive_cmds_need_lc" in
6858 # Assume -lc should be added
6859 archive_cmds_need_lc=yes
6861 if test "$enable_shared" = yes && test "$GCC" = yes; then
6862 case $archive_cmds in
6864 # FIXME: we may have to deal with multi-command sequences.
6867 # Test whether the compiler implicitly links with -lc since on some
6868 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6869 # to ld, don't add -lc before -lgcc.
6870 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6871 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6873 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6876 (eval $ac_compile) 2>&5
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); } 2>conftest.err; then
6882 libobjs=conftest.$ac_objext
6884 wl=$lt_prog_compiler_wl
6890 lt_save_allow_undefined_flag=$allow_undefined_flag
6891 allow_undefined_flag=
6892 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6893 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); }
6898 archive_cmds_need_lc=no
6900 archive_cmds_need_lc=yes
6902 allow_undefined_flag=$lt_save_allow_undefined_flag
6904 cat conftest.err 1>&5
6907 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
6908 echo "${ECHO_T}$archive_cmds_need_lc" >&6
6915 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6916 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6918 if test -n "$hardcode_libdir_flag_spec" || \
6919 test -n "$runpath_var " || \
6920 test "X$hardcode_automatic"="Xyes" ; then
6922 # We can hardcode non-existant directories.
6923 if test "$hardcode_direct" != no &&
6924 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6925 # have to relink, otherwise we might link with an installed library
6926 # when we should be linking with a yet-to-be-installed one
6927 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
6928 test "$hardcode_minus_L" != no; then
6929 # Linking always hardcodes the temporary library directory.
6930 hardcode_action=relink
6932 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6933 hardcode_action=immediate
6936 # We cannot hardcode anything, or else we can only hardcode existing
6938 hardcode_action=unsupported
6940 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6941 echo "${ECHO_T}$hardcode_action" >&6
6943 if test "$hardcode_action" = relink; then
6944 # Fast installation is not supported
6945 enable_fast_install=no
6946 elif test "$shlibpath_overrides_runpath" = yes ||
6947 test "$enable_shared" = no; then
6948 # Fast installation is not necessary
6949 enable_fast_install=needless
6954 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6955 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6956 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6957 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6958 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6959 echo "$as_me:$LINENO: result: yes" >&5
6960 echo "${ECHO_T}yes" >&6
6962 # FIXME - insert some real tests, host_os isn't really good enough
6965 if test -n "$STRIP" ; then
6966 striplib="$STRIP -x"
6967 echo "$as_me:$LINENO: result: yes" >&5
6968 echo "${ECHO_T}yes" >&6
6970 echo "$as_me:$LINENO: result: no" >&5
6971 echo "${ECHO_T}no" >&6
6975 echo "$as_me:$LINENO: result: no" >&5
6976 echo "${ECHO_T}no" >&6
6981 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6982 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6984 libname_spec='lib$name'
6992 shlibpath_overrides_runpath=unknown
6994 dynamic_linker="$host_os ld.so"
6995 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6996 if test "$GCC" = yes; then
6997 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6998 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6999 # if the path contains ";" then we assume it to be the separator
7000 # otherwise default to the standard path separator (i.e. ":") - it is
7001 # assumed that no part of a normal pathname contains ";" but that should
7002 # okay in the real world where ";" in dirpaths is itself problematic.
7003 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7005 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7008 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7010 need_lib_prefix=unknown
7011 hardcode_into_libs=no
7013 # when you set need_version to no, make sure it does not cause -set_version
7014 # flags to be left without arguments
7015 need_version=unknown
7020 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7021 shlibpath_var=LIBPATH
7023 # AIX 3 has no versioning support, so we append a major version to the name.
7024 soname_spec='${libname}${release}${shared_ext}$major'
7031 hardcode_into_libs=yes
7032 if test "$host_cpu" = ia64; then
7033 # AIX 5 supports IA64
7034 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7035 shlibpath_var=LD_LIBRARY_PATH
7037 # With GCC up to 2.95.x, collect2 would create an import file
7038 # for dependence libraries. The import file would start with
7039 # the line `#! .'. This would cause the generated library to
7040 # depend on `.', always an invalid library. This was fixed in
7041 # development snapshots of GCC prior to 3.0.
7043 aix4 | aix4.[01] | aix4.[01].*)
7044 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7046 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7053 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7054 # soname into executable. Probably we can add versioning support to
7055 # collect2, so additional links can be useful in future.
7056 if test "$aix_use_runtimelinking" = yes; then
7057 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7058 # instead of lib<name>.a to let people know that these are not
7059 # typical AIX shared libraries.
7060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7062 # We preserve .a as extension for shared libraries through AIX4.2
7063 # and later when we are not doing run time linking.
7064 library_names_spec='${libname}${release}.a $libname.a'
7065 soname_spec='${libname}${release}${shared_ext}$major'
7067 shlibpath_var=LIBPATH
7072 library_names_spec='$libname.ixlibrary $libname.a'
7073 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7074 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'
7078 library_names_spec='${libname}${shared_ext}'
7079 dynamic_linker="$host_os ld.so"
7080 shlibpath_var=LIBRARY_PATH
7086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7087 soname_spec='${libname}${release}${shared_ext}$major'
7088 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7089 shlibpath_var=LD_LIBRARY_PATH
7090 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7091 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7092 # the default ld.so.conf also contains /usr/contrib/lib and
7093 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7094 # libtool to hard-code these into programs
7097 cygwin* | mingw* | pw32*)
7098 version_type=windows
7103 case $GCC,$host_os in
7104 yes,cygwin* | yes,mingw* | yes,pw32*)
7105 library_names_spec='$libname.dll.a'
7106 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7107 postinstall_cmds='base_file=`basename \${file}`~
7108 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7109 dldir=$destdir/`dirname \$dlpath`~
7110 test -d \$dldir || mkdir -p \$dldir~
7111 $install_prog $dir/$dlname \$dldir/$dlname'
7112 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7113 dlpath=$dir/\$dldll~
7115 shlibpath_overrides_runpath=yes
7119 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7120 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7121 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7124 # MinGW DLLs use traditional 'lib' prefix
7125 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7126 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7127 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7128 # It is most probably a Windows format PATH printed by
7129 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7130 # path with ; separators, and with drive letters. We can handle the
7131 # drive letters (cygwin fileutils understands them), so leave them,
7132 # especially as we might pass files found there to a mingw objdump,
7133 # which wouldn't understand a cygwinified path. Ahh.
7134 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7136 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7140 # pw32 DLLs use 'pw' prefix rather than 'lib'
7141 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7147 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7150 dynamic_linker='Win32 ld.exe'
7151 # FIXME: first we should search . and the directory the executable is in
7155 darwin* | rhapsody*)
7156 dynamic_linker="$host_os dyld"
7160 # FIXME: Relying on posixy $() will cause problems for
7161 # cross-compilation, but unfortunately the echo tests do not
7162 # yet detect zsh echo's removal of \ escapes.
7163 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7164 soname_spec='${libname}${release}${major}$shared_ext'
7165 shlibpath_overrides_runpath=yes
7166 shlibpath_var=DYLD_LIBRARY_PATH
7167 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7168 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7169 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7170 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"`
7172 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7180 soname_spec='${libname}${release}${shared_ext}$major'
7181 shlibpath_var=LD_LIBRARY_PATH
7189 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7190 version_type=freebsd-$objformat
7191 case $version_type in
7193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7198 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7202 shlibpath_var=LD_LIBRARY_PATH
7205 shlibpath_overrides_runpath=yes
7207 freebsd3.01* | freebsdelf3.01*)
7208 shlibpath_overrides_runpath=yes
7209 hardcode_into_libs=yes
7212 shlibpath_overrides_runpath=no
7213 hardcode_into_libs=yes
7222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7223 soname_spec='${libname}${release}${shared_ext}$major'
7224 shlibpath_var=LD_LIBRARY_PATH
7225 hardcode_into_libs=yes
7228 hpux9* | hpux10* | hpux11*)
7229 # Give a soname corresponding to the major version so that dld.sl refuses to
7230 # link against other versions.
7237 hardcode_into_libs=yes
7238 dynamic_linker="$host_os dld.so"
7239 shlibpath_var=LD_LIBRARY_PATH
7240 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7242 soname_spec='${libname}${release}${shared_ext}$major'
7243 if test "X$HPUX_IA64_MODE" = X32; then
7244 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7246 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7248 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7252 hardcode_into_libs=yes
7253 dynamic_linker="$host_os dld.sl"
7254 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7255 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7257 soname_spec='${libname}${release}${shared_ext}$major'
7258 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7259 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7263 dynamic_linker="$host_os dld.sl"
7264 shlibpath_var=SHLIB_PATH
7265 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7267 soname_spec='${libname}${release}${shared_ext}$major'
7270 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7271 postinstall_cmds='chmod 555 $lib'
7274 irix5* | irix6* | nonstopux*)
7276 nonstopux*) version_type=nonstopux ;;
7278 if test "$lt_cv_prog_gnu_ld" = yes; then
7286 soname_spec='${libname}${release}${shared_ext}$major'
7287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7289 irix5* | nonstopux*)
7293 case $LD in # libtool.m4 will add one of these switches to LD
7294 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7295 libsuff= shlibsuff= libmagic=32-bit;;
7296 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7297 libsuff=32 shlibsuff=N32 libmagic=N32;;
7298 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7299 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7300 *) libsuff= shlibsuff= libmagic=never-match;;
7304 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7305 shlibpath_overrides_runpath=no
7306 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7307 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7308 hardcode_into_libs=yes
7311 # No shared lib support for Linux oldld, aout, or coff.
7312 linux*oldld* | linux*aout* | linux*coff*)
7316 # This must be Linux ELF.
7321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7322 soname_spec='${libname}${release}${shared_ext}$major'
7323 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7324 shlibpath_var=LD_LIBRARY_PATH
7325 shlibpath_overrides_runpath=no
7326 # This implies no fast_install, which is unacceptable.
7327 # Some rework will be needed to allow for fast_install
7328 # before this can be enabled.
7329 hardcode_into_libs=yes
7331 # We used to test for /lib/ld.so.1 and disable shared libraries on
7332 # powerpc, because MkLinux only supported shared libraries with the
7333 # GNU dynamic linker. Since this was broken with cross compilers,
7334 # most powerpc-linux boxes support dynamic linking these days and
7335 # people can always --disable-shared, the test was removed, and we
7336 # assume the GNU/Linux dynamic linker is in use.
7337 dynamic_linker='GNU/Linux ld.so'
7344 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7346 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7347 dynamic_linker='NetBSD (a.out) ld.so'
7349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7350 soname_spec='${libname}${release}${shared_ext}$major'
7351 dynamic_linker='NetBSD ld.elf_so'
7353 shlibpath_var=LD_LIBRARY_PATH
7354 shlibpath_overrides_runpath=yes
7355 hardcode_into_libs=yes
7360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7361 shlibpath_var=LD_LIBRARY_PATH
7362 shlibpath_overrides_runpath=yes
7369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7370 soname_spec='${libname}${release}${shared_ext}$major'
7371 shlibpath_var=LD_LIBRARY_PATH
7372 shlibpath_overrides_runpath=yes
7379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7380 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7381 shlibpath_var=LD_LIBRARY_PATH
7382 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7384 openbsd2.[89] | openbsd2.[89].*)
7385 shlibpath_overrides_runpath=no
7388 shlibpath_overrides_runpath=yes
7392 shlibpath_overrides_runpath=yes
7397 libname_spec='$name'
7400 library_names_spec='$libname${shared_ext} $libname.a'
7401 dynamic_linker='OS/2 ld.exe'
7402 shlibpath_var=LIBPATH
7405 osf3* | osf4* | osf5*)
7409 soname_spec='${libname}${release}${shared_ext}$major'
7410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7411 shlibpath_var=LD_LIBRARY_PATH
7412 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7413 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7418 soname_spec='${libname}${release}${shared_ext}$major'
7419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7420 shlibpath_var=LD_LIBRARY_PATH
7427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7428 soname_spec='${libname}${release}${shared_ext}$major'
7429 shlibpath_var=LD_LIBRARY_PATH
7430 shlibpath_overrides_runpath=yes
7431 hardcode_into_libs=yes
7432 # ldd complains unless libraries are executable
7433 postinstall_cmds='chmod +x $lib'
7438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7439 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7440 shlibpath_var=LD_LIBRARY_PATH
7441 shlibpath_overrides_runpath=yes
7442 if test "$with_gnu_ld" = yes; then
7448 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7451 soname_spec='${libname}${release}${shared_ext}$major'
7452 shlibpath_var=LD_LIBRARY_PATH
7453 case $host_vendor in
7455 shlibpath_overrides_runpath=no
7457 export_dynamic_flag_spec='${wl}-Blargedynsym'
7458 runpath_var=LD_RUN_PATH
7466 shlibpath_overrides_runpath=no
7467 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7473 if test -d /usr/nec ;then
7475 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7476 soname_spec='$libname${shared_ext}.$major'
7477 shlibpath_var=LD_LIBRARY_PATH
7483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7484 soname_spec='${libname}${release}${shared_ext}$major'
7485 shlibpath_var=LD_LIBRARY_PATH
7492 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7493 echo "${ECHO_T}$dynamic_linker" >&6
7494 test "$dynamic_linker" = no && can_build_shared=no
7496 if test "x$enable_dlopen" != xyes; then
7497 enable_dlopen=unknown
7498 enable_dlopen_self=unknown
7499 enable_dlopen_self_static=unknown
7506 lt_cv_dlopen="load_add_on"
7508 lt_cv_dlopen_self=yes
7512 lt_cv_dlopen="LoadLibrary"
7517 lt_cv_dlopen="dlopen"
7522 # if libdl is installed we need to link against it
7523 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7524 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7525 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7526 echo $ECHO_N "(cached) $ECHO_C" >&6
7528 ac_check_lib_save_LIBS=$LIBS
7530 cat >conftest.$ac_ext <<_ACEOF
7531 #line $LINENO "configure"
7534 cat confdefs.h >>conftest.$ac_ext
7535 cat >>conftest.$ac_ext <<_ACEOF
7536 /* end confdefs.h. */
7538 /* Override any gcc2 internal prototype to avoid an error. */
7542 /* We use char because int might match the return type of a gcc2
7543 builtin and then its argument prototype would still apply. */
7553 rm -f conftest.$ac_objext conftest$ac_exeext
7554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7555 (eval $ac_link) 2>&5
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); } &&
7559 { ac_try='test -s conftest$ac_exeext'
7560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564 (exit $ac_status); }; }; then
7565 ac_cv_lib_dl_dlopen=yes
7567 echo "$as_me: failed program was:" >&5
7568 sed 's/^/| /' conftest.$ac_ext >&5
7570 ac_cv_lib_dl_dlopen=no
7572 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7573 LIBS=$ac_check_lib_save_LIBS
7575 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7576 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7577 if test $ac_cv_lib_dl_dlopen = yes; then
7578 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7583 lt_cv_dlopen_self=yes
7590 echo "$as_me:$LINENO: checking for shl_load" >&5
7591 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7592 if test "${ac_cv_func_shl_load+set}" = set; then
7593 echo $ECHO_N "(cached) $ECHO_C" >&6
7595 cat >conftest.$ac_ext <<_ACEOF
7596 #line $LINENO "configure"
7599 cat confdefs.h >>conftest.$ac_ext
7600 cat >>conftest.$ac_ext <<_ACEOF
7601 /* end confdefs.h. */
7602 /* System header to define __stub macros and hopefully few prototypes,
7603 which can conflict with char shl_load (); below.
7604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7605 <limits.h> exists even on freestanding compilers. */
7607 # include <limits.h>
7609 # include <assert.h>
7611 /* Override any gcc2 internal prototype to avoid an error. */
7616 /* We use char because int might match the return type of a gcc2
7617 builtin and then its argument prototype would still apply. */
7619 /* The GNU C library defines this for functions which it implements
7620 to always fail with ENOSYS. Some functions are actually named
7621 something starting with __ and the normal name is an alias. */
7622 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7625 char (*f) () = shl_load;
7634 return f != shl_load;
7639 rm -f conftest.$ac_objext conftest$ac_exeext
7640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7641 (eval $ac_link) 2>&5
7643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644 (exit $ac_status); } &&
7645 { ac_try='test -s conftest$ac_exeext'
7646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); }; }; then
7651 ac_cv_func_shl_load=yes
7653 echo "$as_me: failed program was:" >&5
7654 sed 's/^/| /' conftest.$ac_ext >&5
7656 ac_cv_func_shl_load=no
7658 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7660 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7661 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7662 if test $ac_cv_func_shl_load = yes; then
7663 lt_cv_dlopen="shl_load"
7665 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7666 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7667 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7668 echo $ECHO_N "(cached) $ECHO_C" >&6
7670 ac_check_lib_save_LIBS=$LIBS
7672 cat >conftest.$ac_ext <<_ACEOF
7673 #line $LINENO "configure"
7676 cat confdefs.h >>conftest.$ac_ext
7677 cat >>conftest.$ac_ext <<_ACEOF
7678 /* end confdefs.h. */
7680 /* Override any gcc2 internal prototype to avoid an error. */
7684 /* We use char because int might match the return type of a gcc2
7685 builtin and then its argument prototype would still apply. */
7695 rm -f conftest.$ac_objext conftest$ac_exeext
7696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7697 (eval $ac_link) 2>&5
7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); } &&
7701 { ac_try='test -s conftest$ac_exeext'
7702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706 (exit $ac_status); }; }; then
7707 ac_cv_lib_dld_shl_load=yes
7709 echo "$as_me: failed program was:" >&5
7710 sed 's/^/| /' conftest.$ac_ext >&5
7712 ac_cv_lib_dld_shl_load=no
7714 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7715 LIBS=$ac_check_lib_save_LIBS
7717 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7718 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7719 if test $ac_cv_lib_dld_shl_load = yes; then
7720 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7722 echo "$as_me:$LINENO: checking for dlopen" >&5
7723 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7724 if test "${ac_cv_func_dlopen+set}" = set; then
7725 echo $ECHO_N "(cached) $ECHO_C" >&6
7727 cat >conftest.$ac_ext <<_ACEOF
7728 #line $LINENO "configure"
7731 cat confdefs.h >>conftest.$ac_ext
7732 cat >>conftest.$ac_ext <<_ACEOF
7733 /* end confdefs.h. */
7734 /* System header to define __stub macros and hopefully few prototypes,
7735 which can conflict with char dlopen (); below.
7736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7737 <limits.h> exists even on freestanding compilers. */
7739 # include <limits.h>
7741 # include <assert.h>
7743 /* Override any gcc2 internal prototype to avoid an error. */
7748 /* We use char because int might match the return type of a gcc2
7749 builtin and then its argument prototype would still apply. */
7751 /* The GNU C library defines this for functions which it implements
7752 to always fail with ENOSYS. Some functions are actually named
7753 something starting with __ and the normal name is an alias. */
7754 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7757 char (*f) () = dlopen;
7771 rm -f conftest.$ac_objext conftest$ac_exeext
7772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7773 (eval $ac_link) 2>&5
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); } &&
7777 { ac_try='test -s conftest$ac_exeext'
7778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); }; }; then
7783 ac_cv_func_dlopen=yes
7785 echo "$as_me: failed program was:" >&5
7786 sed 's/^/| /' conftest.$ac_ext >&5
7788 ac_cv_func_dlopen=no
7790 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7792 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7793 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7794 if test $ac_cv_func_dlopen = yes; then
7795 lt_cv_dlopen="dlopen"
7797 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7798 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7799 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7800 echo $ECHO_N "(cached) $ECHO_C" >&6
7802 ac_check_lib_save_LIBS=$LIBS
7804 cat >conftest.$ac_ext <<_ACEOF
7805 #line $LINENO "configure"
7808 cat confdefs.h >>conftest.$ac_ext
7809 cat >>conftest.$ac_ext <<_ACEOF
7810 /* end confdefs.h. */
7812 /* Override any gcc2 internal prototype to avoid an error. */
7816 /* We use char because int might match the return type of a gcc2
7817 builtin and then its argument prototype would still apply. */
7827 rm -f conftest.$ac_objext conftest$ac_exeext
7828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7829 (eval $ac_link) 2>&5
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); } &&
7833 { ac_try='test -s conftest$ac_exeext'
7834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); }; }; then
7839 ac_cv_lib_dl_dlopen=yes
7841 echo "$as_me: failed program was:" >&5
7842 sed 's/^/| /' conftest.$ac_ext >&5
7844 ac_cv_lib_dl_dlopen=no
7846 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7847 LIBS=$ac_check_lib_save_LIBS
7849 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7850 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7851 if test $ac_cv_lib_dl_dlopen = yes; then
7852 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7854 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7855 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7856 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7857 echo $ECHO_N "(cached) $ECHO_C" >&6
7859 ac_check_lib_save_LIBS=$LIBS
7861 cat >conftest.$ac_ext <<_ACEOF
7862 #line $LINENO "configure"
7865 cat confdefs.h >>conftest.$ac_ext
7866 cat >>conftest.$ac_ext <<_ACEOF
7867 /* end confdefs.h. */
7869 /* Override any gcc2 internal prototype to avoid an error. */
7873 /* We use char because int might match the return type of a gcc2
7874 builtin and then its argument prototype would still apply. */
7884 rm -f conftest.$ac_objext conftest$ac_exeext
7885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7886 (eval $ac_link) 2>&5
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); } &&
7890 { ac_try='test -s conftest$ac_exeext'
7891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); }; }; then
7896 ac_cv_lib_svld_dlopen=yes
7898 echo "$as_me: failed program was:" >&5
7899 sed 's/^/| /' conftest.$ac_ext >&5
7901 ac_cv_lib_svld_dlopen=no
7903 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7904 LIBS=$ac_check_lib_save_LIBS
7906 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7907 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7908 if test $ac_cv_lib_svld_dlopen = yes; then
7909 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7911 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7912 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7913 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7914 echo $ECHO_N "(cached) $ECHO_C" >&6
7916 ac_check_lib_save_LIBS=$LIBS
7918 cat >conftest.$ac_ext <<_ACEOF
7919 #line $LINENO "configure"
7922 cat confdefs.h >>conftest.$ac_ext
7923 cat >>conftest.$ac_ext <<_ACEOF
7924 /* end confdefs.h. */
7926 /* Override any gcc2 internal prototype to avoid an error. */
7930 /* We use char because int might match the return type of a gcc2
7931 builtin and then its argument prototype would still apply. */
7941 rm -f conftest.$ac_objext conftest$ac_exeext
7942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7943 (eval $ac_link) 2>&5
7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); } &&
7947 { ac_try='test -s conftest$ac_exeext'
7948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); }; }; then
7953 ac_cv_lib_dld_dld_link=yes
7955 echo "$as_me: failed program was:" >&5
7956 sed 's/^/| /' conftest.$ac_ext >&5
7958 ac_cv_lib_dld_dld_link=no
7960 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7961 LIBS=$ac_check_lib_save_LIBS
7963 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7964 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7965 if test $ac_cv_lib_dld_dld_link = yes; then
7966 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7987 if test "x$lt_cv_dlopen" != xno; then
7993 case $lt_cv_dlopen in
7995 save_CPPFLAGS="$CPPFLAGS"
7996 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7998 save_LDFLAGS="$LDFLAGS"
7999 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8002 LIBS="$lt_cv_dlopen_libs $LIBS"
8004 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8005 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8006 if test "${lt_cv_dlopen_self+set}" = set; then
8007 echo $ECHO_N "(cached) $ECHO_C" >&6
8009 if test "$cross_compiling" = yes; then :
8010 lt_cv_dlopen_self=cross
8012 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8013 lt_status=$lt_dlunknown
8014 cat > conftest.$ac_ext <<EOF
8015 #line 8015 "configure"
8016 #include "confdefs.h"
8025 # define LT_DLGLOBAL RTLD_GLOBAL
8028 # define LT_DLGLOBAL DL_GLOBAL
8030 # define LT_DLGLOBAL 0
8034 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8035 find out it does not work in some platform. */
8036 #ifndef LT_DLLAZY_OR_NOW
8038 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8041 # define LT_DLLAZY_OR_NOW DL_LAZY
8044 # define LT_DLLAZY_OR_NOW RTLD_NOW
8047 # define LT_DLLAZY_OR_NOW DL_NOW
8049 # define LT_DLLAZY_OR_NOW 0
8057 extern "C" void exit (int);
8060 void fnord() { int i=42;}
8063 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8064 int status = $lt_dlunknown;
8068 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8069 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8070 /* dlclose (self); */
8076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8077 (eval $ac_link) 2>&5
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8081 (./conftest; exit; ) 2>/dev/null
8084 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8085 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8086 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8089 # compilation failed
8090 lt_cv_dlopen_self=no
8097 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8098 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8100 if test "x$lt_cv_dlopen_self" = xyes; then
8101 LDFLAGS="$LDFLAGS $link_static_flag"
8102 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8103 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8104 if test "${lt_cv_dlopen_self_static+set}" = set; then
8105 echo $ECHO_N "(cached) $ECHO_C" >&6
8107 if test "$cross_compiling" = yes; then :
8108 lt_cv_dlopen_self_static=cross
8110 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8111 lt_status=$lt_dlunknown
8112 cat > conftest.$ac_ext <<EOF
8113 #line 8113 "configure"
8114 #include "confdefs.h"
8123 # define LT_DLGLOBAL RTLD_GLOBAL
8126 # define LT_DLGLOBAL DL_GLOBAL
8128 # define LT_DLGLOBAL 0
8132 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8133 find out it does not work in some platform. */
8134 #ifndef LT_DLLAZY_OR_NOW
8136 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8139 # define LT_DLLAZY_OR_NOW DL_LAZY
8142 # define LT_DLLAZY_OR_NOW RTLD_NOW
8145 # define LT_DLLAZY_OR_NOW DL_NOW
8147 # define LT_DLLAZY_OR_NOW 0
8155 extern "C" void exit (int);
8158 void fnord() { int i=42;}
8161 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8162 int status = $lt_dlunknown;
8166 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8167 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8168 /* dlclose (self); */
8174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8175 (eval $ac_link) 2>&5
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8179 (./conftest; exit; ) 2>/dev/null
8182 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8183 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8184 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8187 # compilation failed
8188 lt_cv_dlopen_self_static=no
8195 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8196 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8199 CPPFLAGS="$save_CPPFLAGS"
8200 LDFLAGS="$save_LDFLAGS"
8205 case $lt_cv_dlopen_self in
8206 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8207 *) enable_dlopen_self=unknown ;;
8210 case $lt_cv_dlopen_self_static in
8211 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8212 *) enable_dlopen_self_static=unknown ;;
8217 # Report which librarie types wil actually be built
8218 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8219 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8220 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8221 echo "${ECHO_T}$can_build_shared" >&6
8223 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8224 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8225 test "$can_build_shared" = "no" && enable_shared=no
8227 # On AIX, shared libraries and static libraries use the same namespace, and
8228 # are all built from PIC.
8231 test "$enable_shared" = yes && enable_static=no
8232 if test -n "$RANLIB"; then
8233 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8234 postinstall_cmds='$RANLIB $lib'
8239 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8240 test "$enable_shared" = yes && enable_static=no
8243 darwin* | rhapsody*)
8244 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8245 archive_cmds_need_lc=no
8247 rhapsody* | darwin1.[012])
8248 allow_undefined_flag='-undefined suppress'
8251 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8254 # FIXME: Relying on posixy $() will cause problems for
8255 # cross-compilation, but unfortunately the echo tests do not
8256 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8257 # `"' quotes if we put them in here... so don't!
8258 output_verbose_link_cmd='echo'
8259 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8260 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8261 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8262 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}'
8263 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}'
8265 hardcode_automatic=yes
8266 hardcode_shlibpath_var=unsupported
8267 whole_archive_flag_spec='-all_load $convenience'
8268 link_all_deplibs=yes
8272 echo "$as_me:$LINENO: result: $enable_shared" >&5
8273 echo "${ECHO_T}$enable_shared" >&6
8275 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8276 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8277 # Make sure either enable_shared or enable_static is yes.
8278 test "$enable_shared" = yes || enable_static=yes
8279 echo "$as_me:$LINENO: result: $enable_static" >&5
8280 echo "${ECHO_T}$enable_static" >&6
8282 # The else clause should only fire when bootstrapping the
8283 # libtool distribution, otherwise you forgot to ship ltmain.sh
8284 # with your package, and you will get complaints that there are
8285 # no rules to generate ltmain.sh.
8286 if test -f "$ltmain"; then
8287 # See if we are running on zsh, and set the options which allow our commands through
8288 # without removal of \ escapes.
8289 if test -n "${ZSH_VERSION+set}" ; then
8290 setopt NO_GLOB_SUBST
8292 # Now quote all the things that may contain metacharacters while being
8293 # careful not to overquote the AC_SUBSTed values. We take copies of the
8294 # variables and quote the copies for generation of the libtool script.
8295 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8296 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8297 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8298 deplibs_check_method reload_flag reload_cmds need_locks \
8299 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8300 lt_cv_sys_global_symbol_to_c_name_address \
8301 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8302 old_postinstall_cmds old_postuninstall_cmds \
8306 lt_prog_compiler_wl \
8307 lt_prog_compiler_pic \
8308 lt_prog_compiler_static \
8309 lt_prog_compiler_no_builtin_flag \
8310 export_dynamic_flag_spec \
8311 thread_safe_flag_spec \
8312 whole_archive_flag_spec \
8313 enable_shared_with_static_runtimes \
8315 old_archive_from_new_cmds \
8320 compiler_lib_search_path \
8322 archive_expsym_cmds \
8324 postuninstall_cmds \
8325 old_archive_from_expsyms_cmds \
8326 allow_undefined_flag \
8328 export_symbols_cmds \
8329 hardcode_libdir_flag_spec \
8330 hardcode_libdir_flag_spec_ld \
8331 hardcode_libdir_separator \
8332 hardcode_automatic \
8334 module_expsym_cmds \
8335 lt_cv_prog_compiler_c_o \
8340 old_archive_cmds | \
8341 old_archive_from_new_cmds | \
8343 archive_expsym_cmds | \
8345 module_expsym_cmds | \
8346 old_archive_from_expsyms_cmds | \
8347 export_symbols_cmds | \
8348 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8349 postinstall_cmds | postuninstall_cmds | \
8350 old_postinstall_cmds | old_postuninstall_cmds | \
8351 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8352 # Double-quote double-evaled strings.
8353 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8356 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8362 *'\$0 --fallback-echo"')
8363 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8368 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8370 { echo "$as_me:$LINENO: creating $ofile" >&5
8371 echo "$as_me: creating $ofile" >&6;}
8373 cat <<__EOF__ >> "$cfgfile"
8376 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8377 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8378 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8380 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8381 # Free Software Foundation, Inc.
8383 # This file is part of GNU Libtool:
8384 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8386 # This program is free software; you can redistribute it and/or modify
8387 # it under the terms of the GNU General Public License as published by
8388 # the Free Software Foundation; either version 2 of the License, or
8389 # (at your option) any later version.
8391 # This program is distributed in the hope that it will be useful, but
8392 # WITHOUT ANY WARRANTY; without even the implied warranty of
8393 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8394 # General Public License for more details.
8396 # You should have received a copy of the GNU General Public License
8397 # along with this program; if not, write to the Free Software
8398 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8400 # As a special exception to the GNU General Public License, if you
8401 # distribute this file as part of a program that contains a
8402 # configuration script generated by Autoconf, you may include it under
8403 # the same distribution terms that you use for the rest of that program.
8405 # A sed program that does not truncate output.
8408 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8409 Xsed="$SED -e s/^X//"
8411 # The HP-UX ksh and POSIX shell print the target directory to stdout
8413 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8415 # The names of the tagged configurations supported by this script.
8418 # ### BEGIN LIBTOOL CONFIG
8420 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8422 # Shell to use when invoking shell scripts.
8425 # Whether or not to build shared libraries.
8426 build_libtool_libs=$enable_shared
8428 # Whether or not to build static libraries.
8429 build_old_libs=$enable_static
8431 # Whether or not to add -lc for building shared libraries.
8432 build_libtool_need_lc=$archive_cmds_need_lc
8434 # Whether or not to disallow shared libs when runtime libs are static
8435 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8437 # Whether or not to optimize for fast installation.
8438 fast_install=$enable_fast_install
8441 host_alias=$host_alias
8444 # An echo program that does not interpret backslashes.
8449 AR_FLAGS=$lt_AR_FLAGS
8454 # A language-specific compiler.
8457 # Is the compiler the GNU C compiler?
8463 # The linker used to build libraries.
8466 # Whether we need hard or soft links.
8469 # A BSD-compatible nm program.
8472 # A symbol stripping program
8475 # Used to examine libraries when file_magic_cmd begins "file"
8476 MAGIC_CMD=$MAGIC_CMD
8478 # Used on cygwin: DLL creation program.
8481 # Used on cygwin: object dumper.
8484 # Used on cygwin: assembler.
8487 # The name of the directory that contains temporary libtool files.
8490 # How to create reloadable object files.
8491 reload_flag=$lt_reload_flag
8492 reload_cmds=$lt_reload_cmds
8494 # How to pass a linker flag through the compiler.
8495 wl=$lt_lt_prog_compiler_wl
8497 # Object file suffix (normally "o").
8500 # Old archive suffix (normally "a").
8503 # Shared library suffix (normally ".so").
8506 # Executable file suffix (normally "").
8509 # Additional compiler flags for building library objects.
8510 pic_flag=$lt_lt_prog_compiler_pic
8513 # What is the maximum length of a command?
8514 max_cmd_len=$lt_cv_sys_max_cmd_len
8516 # Does compiler simultaneously support -c and -o options?
8517 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8519 # Must we lock files when doing compilation ?
8520 need_locks=$lt_need_locks
8522 # Do we need the lib prefix for modules?
8523 need_lib_prefix=$need_lib_prefix
8525 # Do we need a version for libraries?
8526 need_version=$need_version
8528 # Whether dlopen is supported.
8529 dlopen_support=$enable_dlopen
8531 # Whether dlopen of programs is supported.
8532 dlopen_self=$enable_dlopen_self
8534 # Whether dlopen of statically linked programs is supported.
8535 dlopen_self_static=$enable_dlopen_self_static
8537 # Compiler flag to prevent dynamic linking.
8538 link_static_flag=$lt_lt_prog_compiler_static
8540 # Compiler flag to turn off builtin functions.
8541 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8543 # Compiler flag to allow reflexive dlopens.
8544 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8546 # Compiler flag to generate shared objects directly from archives.
8547 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8549 # Compiler flag to generate thread-safe objects.
8550 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8552 # Library versioning type.
8553 version_type=$version_type
8555 # Format of library name prefix.
8556 libname_spec=$lt_libname_spec
8558 # List of archive names. First name is the real one, the rest are links.
8559 # The last name is the one that the linker finds with -lNAME.
8560 library_names_spec=$lt_library_names_spec
8562 # The coded name of the library, if different from the real name.
8563 soname_spec=$lt_soname_spec
8565 # Commands used to build and install an old-style archive.
8567 old_archive_cmds=$lt_old_archive_cmds
8568 old_postinstall_cmds=$lt_old_postinstall_cmds
8569 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8571 # Create an old-style archive from a shared archive.
8572 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8574 # Create a temporary old-style archive to link instead of a shared archive.
8575 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8577 # Commands used to build and install a shared archive.
8578 archive_cmds=$lt_archive_cmds
8579 archive_expsym_cmds=$lt_archive_expsym_cmds
8580 postinstall_cmds=$lt_postinstall_cmds
8581 postuninstall_cmds=$lt_postuninstall_cmds
8583 # Commands used to build a loadable module (assumed same as above if empty)
8584 module_cmds=$lt_module_cmds
8585 module_expsym_cmds=$lt_module_expsym_cmds
8587 # Commands to strip libraries.
8588 old_striplib=$lt_old_striplib
8589 striplib=$lt_striplib
8591 # Dependencies to place before the objects being linked to create a
8593 predep_objects=$lt_predep_objects
8595 # Dependencies to place after the objects being linked to create a
8597 postdep_objects=$lt_postdep_objects
8599 # Dependencies to place before the objects being linked to create a
8603 # Dependencies to place after the objects being linked to create a
8605 postdeps=$lt_postdeps
8607 # The library search path used internally by the compiler when linking
8609 compiler_lib_search_path=$lt_compiler_lib_search_path
8611 # Method to check whether dependent libraries are shared objects.
8612 deplibs_check_method=$lt_deplibs_check_method
8614 # Command to use when deplibs_check_method == file_magic.
8615 file_magic_cmd=$lt_file_magic_cmd
8617 # Flag that allows shared libraries with undefined symbols to be built.
8618 allow_undefined_flag=$lt_allow_undefined_flag
8620 # Flag that forces no undefined symbols.
8621 no_undefined_flag=$lt_no_undefined_flag
8623 # Commands used to finish a libtool library installation in a directory.
8624 finish_cmds=$lt_finish_cmds
8626 # Same as above, but a single script fragment to be evaled but not shown.
8627 finish_eval=$lt_finish_eval
8629 # Take the output of nm and produce a listing of raw symbols and C names.
8630 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8632 # Transform the output of nm in a proper C declaration
8633 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8635 # Transform the output of nm in a C name address pair
8636 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8638 # This is the shared library runtime path variable.
8639 runpath_var=$runpath_var
8641 # This is the shared library path variable.
8642 shlibpath_var=$shlibpath_var
8644 # Is shlibpath searched before the hard-coded library search path?
8645 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8647 # How to hardcode a shared library path into an executable.
8648 hardcode_action=$hardcode_action
8650 # Whether we should hardcode library paths into libraries.
8651 hardcode_into_libs=$hardcode_into_libs
8653 # Flag to hardcode \$libdir into a binary during linking.
8654 # This must work even if \$libdir does not exist.
8655 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8657 # If ld is used when linking, flag to hardcode \$libdir into
8658 # a binary during linking. This must work even if \$libdir does
8660 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8662 # Whether we need a single -rpath flag with a separated argument.
8663 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8665 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8667 hardcode_direct=$hardcode_direct
8669 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8671 hardcode_minus_L=$hardcode_minus_L
8673 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8674 # the resulting binary.
8675 hardcode_shlibpath_var=$hardcode_shlibpath_var
8677 # Set to yes if building a shared library automatically hardcodes DIR into the library
8678 # and all subsequent libraries and executables linked against it.
8679 hardcode_automatic=$hardcode_automatic
8681 # Variables whose values should be saved in libtool wrapper scripts and
8682 # restored at relink time.
8683 variables_saved_for_relink="$variables_saved_for_relink"
8685 # Whether libtool must link a program against all its dependency libraries.
8686 link_all_deplibs=$link_all_deplibs
8688 # Compile-time system search path for libraries
8689 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8691 # Run-time system search path for libraries
8692 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8694 # Fix the shell variable \$srcfile for the compiler.
8695 fix_srcfile_path="$fix_srcfile_path"
8697 # Set to yes if exported symbols are required.
8698 always_export_symbols=$always_export_symbols
8700 # The commands to list exported symbols.
8701 export_symbols_cmds=$lt_export_symbols_cmds
8703 # The commands to extract the exported symbol list from a shared archive.
8704 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8706 # Symbols that should not be listed in the preloaded symbols.
8707 exclude_expsyms=$lt_exclude_expsyms
8709 # Symbols that must always be exported.
8710 include_expsyms=$lt_include_expsyms
8712 # ### END LIBTOOL CONFIG
8719 cat <<\EOF >> "$cfgfile"
8721 # AIX sometimes has problems with the GCC collect2 program. For some
8722 # reason, if we set the COLLECT_NAMES environment variable, the problems
8723 # vanish in a puff of smoke.
8724 if test "X${COLLECT_NAMES+set}" != Xset; then
8726 export COLLECT_NAMES
8732 # We use sed instead of cat because bash on DJGPP gets confused if
8733 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8734 # text mode, it properly converts lines to CR/LF. This bash problem
8735 # is reportedly fixed, but why not run on old versions too?
8736 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8738 mv -f "$cfgfile" "$ofile" || \
8739 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8743 # If there is no Makefile yet, we rely on a make rule to execute
8744 # `config.status --recheck' to rerun these tests and create the
8745 # libtool script then.
8746 test -f Makefile && make "$ltmain"
8751 ac_cpp='$CPP $CPPFLAGS'
8752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8759 # Check whether --with-tags or --without-tags was given.
8760 if test "${with_tags+set}" = set; then
8761 withval="$with_tags"
8765 if test -f "$ltmain" && test -n "$tagnames"; then
8766 if test ! -f "${ofile}"; then
8767 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8768 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8771 if test -z "$LTCC"; then
8772 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8773 if test -z "$LTCC"; then
8774 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8775 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8777 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8778 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8782 # Extract list of available tagged configurations in $ofile.
8783 # Note that this assumes the entire list is on one line.
8784 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8786 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8787 for tagname in $tagnames; do
8789 # Check whether tagname contains only valid characters
8790 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8792 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8793 echo "$as_me: error: invalid tag name: $tagname" >&2;}
8794 { (exit 1); exit 1; }; }
8798 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8800 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8801 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8802 { (exit 1); exit 1; }; }
8805 # Update the list of available tags.
8806 if test -n "$tagname"; then
8807 echo appending configuration tag \"$tagname\" to $ofile
8811 if test -n "$CXX" && test "X$CXX" != "Xno"; then
8813 ac_cpp='$CXXCPP $CPPFLAGS'
8814 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8815 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8816 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8821 archive_cmds_need_lc_CXX=no
8822 allow_undefined_flag_CXX=
8823 always_export_symbols_CXX=no
8824 archive_expsym_cmds_CXX=
8825 export_dynamic_flag_spec_CXX=
8826 hardcode_direct_CXX=no
8827 hardcode_libdir_flag_spec_CXX=
8828 hardcode_libdir_flag_spec_ld_CXX=
8829 hardcode_libdir_separator_CXX=
8830 hardcode_minus_L_CXX=no
8831 hardcode_automatic_CXX=no
8833 module_expsym_cmds_CXX=
8834 link_all_deplibs_CXX=unknown
8835 old_archive_cmds_CXX=$old_archive_cmds
8836 no_undefined_flag_CXX=
8837 whole_archive_flag_spec_CXX=
8838 enable_shared_with_static_runtimes_CXX=no
8840 # Dependencies to place before and after the object being linked:
8842 postdep_objects_CXX=
8845 compiler_lib_search_path_CXX=
8847 # Source file extension for C++ test sources.
8850 # Object file extension for compiled C++ test sources.
8854 # Code to be used in simple compile tests
8855 lt_simple_compile_test_code="int some_variable = 0;\n"
8857 # Code to be used in simple link tests
8858 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
8860 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8862 # If no C compiler was specified, use CC.
8865 # Allow CC to be a program name with arguments.
8869 # Allow CC to be a program name with arguments.
8874 lt_save_with_gnu_ld=$with_gnu_ld
8875 lt_save_path_LD=$lt_cv_path_LD
8876 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
8877 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
8879 unset lt_cv_prog_gnu_ld
8881 if test -n "${lt_cv_path_LDCXX+set}"; then
8882 lt_cv_path_LD=$lt_cv_path_LDCXX
8886 test -z "${LDCXX+set}" || LD=$LDCXX
8890 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
8892 # We don't want -fno-exception wen compiling C++ code, so set the
8893 # no_builtin_flag separately
8894 if test "$GXX" = yes; then
8895 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
8897 lt_prog_compiler_no_builtin_flag_CXX=
8900 if test "$GXX" = yes; then
8901 # Set up default GNU C++ configuration
8904 # Check whether --with-gnu-ld or --without-gnu-ld was given.
8905 if test "${with_gnu_ld+set}" = set; then
8906 withval="$with_gnu_ld"
8907 test "$withval" = no || with_gnu_ld=yes
8912 if test "$GCC" = yes; then
8913 # Check if gcc -print-prog-name=ld gives a path.
8914 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
8915 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
8918 # gcc leaves a trailing carriage return which upsets mingw
8919 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8921 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8924 # Accept absolute paths.
8926 re_direlt='/[^/][^/]*/\.\./'
8927 # Canonicalize the path of ld
8928 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
8929 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8930 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
8932 test -z "$LD" && LD="$ac_prog"
8935 # If it fails, then pretend we aren't using GCC.
8939 # If it is relative, then search for the first ld in PATH.
8943 elif test "$with_gnu_ld" = yes; then
8944 echo "$as_me:$LINENO: checking for GNU ld" >&5
8945 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
8947 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8948 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
8950 if test "${lt_cv_path_LD+set}" = set; then
8951 echo $ECHO_N "(cached) $ECHO_C" >&6
8953 if test -z "$LD"; then
8954 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8955 for ac_dir in $PATH; do
8957 test -z "$ac_dir" && ac_dir=.
8958 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8959 lt_cv_path_LD="$ac_dir/$ac_prog"
8960 # Check to see if the program is GNU ld. I'd rather use --version,
8961 # but apparently some GNU ld's only accept -v.
8962 # Break only if it was the GNU/non-GNU ld that we prefer.
8963 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8964 *GNU* | *'with BFD'*)
8965 test "$with_gnu_ld" != no && break
8968 test "$with_gnu_ld" != yes && break
8975 lt_cv_path_LD="$LD" # Let the user override the test with a path.
8980 if test -n "$LD"; then
8981 echo "$as_me:$LINENO: result: $LD" >&5
8982 echo "${ECHO_T}$LD" >&6
8984 echo "$as_me:$LINENO: result: no" >&5
8985 echo "${ECHO_T}no" >&6
8987 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8988 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8989 { (exit 1); exit 1; }; }
8990 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8991 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
8992 if test "${lt_cv_prog_gnu_ld+set}" = set; then
8993 echo $ECHO_N "(cached) $ECHO_C" >&6
8995 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8996 case `"$LD" -v 2>&1 </dev/null` in
8997 *GNU* | *'with BFD'*)
8998 lt_cv_prog_gnu_ld=yes
9001 lt_cv_prog_gnu_ld=no
9005 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9006 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9007 with_gnu_ld=$lt_cv_prog_gnu_ld
9011 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9012 # archiving commands below assume that GNU ld is being used.
9013 if test "$with_gnu_ld" = yes; then
9014 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9015 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'
9017 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9018 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9020 # If archive_cmds runs LD, not CC, wlarc should be empty
9021 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9022 # investigate it a little bit more. (MM)
9025 # ancient GNU ld didn't support --whole-archive et. al.
9026 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9027 grep 'no-whole-archive' > /dev/null; then
9028 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9030 whole_archive_flag_spec_CXX=
9036 # A generic and very simple default shared library creation
9037 # command for GNU C++ for the case where it uses the native
9038 # linker, instead of GNU ld. If possible, this setting should
9039 # overridden to take advantage of the native linker features on
9040 # the platform it is being used on.
9041 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9044 # Commands to make compiler produce verbose output that lists
9045 # what "hidden" libraries, object files and flags are used when
9046 # linking a shared library.
9047 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9055 # PORTME: fill in a description of your system's C++ link characteristics
9056 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9057 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9061 # FIXME: insert proper C++ library support
9065 if test "$host_cpu" = ia64; then
9066 # On IA64, the linker does run time linking by default, so we don't
9067 # have to do anything special.
9068 aix_use_runtimelinking=no
9069 exp_sym_flag='-Bexport'
9072 aix_use_runtimelinking=no
9074 # Test if we are trying to use run time linking or normal
9075 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9076 # need to do runtime linking.
9077 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9078 for ld_flag in $LDFLAGS; do
9081 aix_use_runtimelinking=yes
9088 exp_sym_flag='-bexport'
9089 no_entry_flag='-bnoentry'
9092 # When large executables or shared objects are built, AIX ld can
9093 # have problems creating the table of contents. If linking a library
9094 # or program results in "error TOC overflow" add -mminimal-toc to
9095 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9096 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9099 hardcode_direct_CXX=yes
9100 hardcode_libdir_separator_CXX=':'
9101 link_all_deplibs_CXX=yes
9103 if test "$GXX" = yes; then
9104 case $host_os in aix4.012|aix4.012.*)
9105 # We only want to do this on AIX 4.2 and lower, the check
9106 # below for broken collect2 doesn't work under 4.3+
9107 collect2name=`${CC} -print-prog-name=collect2`
9108 if test -f "$collect2name" && \
9109 strings "$collect2name" | grep resolve_lib_name >/dev/null
9111 # We have reworked collect2
9112 hardcode_direct_CXX=yes
9114 # We have old collect2
9115 hardcode_direct_CXX=unsupported
9116 # It fails to find uninstalled libraries when the uninstalled
9117 # path is not listed in the libpath. Setting hardcode_minus_L
9118 # to unsupported forces relinking
9119 hardcode_minus_L_CXX=yes
9120 hardcode_libdir_flag_spec_CXX='-L$libdir'
9121 hardcode_libdir_separator_CXX=
9124 shared_flag='-shared'
9127 if test "$host_cpu" = ia64; then
9128 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9129 # chokes on -Wl,-G. The following line is correct:
9132 if test "$aix_use_runtimelinking" = yes; then
9133 shared_flag='${wl}-G'
9135 shared_flag='${wl}-bM:SRE'
9140 # It seems that -bexpall does not export symbols beginning with
9141 # underscore (_), so it is better to generate a list of symbols to export.
9142 always_export_symbols_CXX=yes
9143 if test "$aix_use_runtimelinking" = yes; then
9144 # Warning - without using the other runtime loading flags (-brtl),
9145 # -berok will link without error, but may produce a broken library.
9146 allow_undefined_flag_CXX='-berok'
9147 # Determine the default libpath from the value encoded in an empty executable.
9148 cat >conftest.$ac_ext <<_ACEOF
9149 #line $LINENO "configure"
9152 cat confdefs.h >>conftest.$ac_ext
9153 cat >>conftest.$ac_ext <<_ACEOF
9154 /* end confdefs.h. */
9164 rm -f conftest.$ac_objext conftest$ac_exeext
9165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9166 (eval $ac_link) 2>&5
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); } &&
9170 { ac_try='test -s conftest$ac_exeext'
9171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); }; }; then
9177 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9179 # Check for a 64-bit object if we didn't find anything.
9180 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; }
9183 echo "$as_me: failed program was:" >&5
9184 sed 's/^/| /' conftest.$ac_ext >&5
9187 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9188 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9190 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9192 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"
9194 if test "$host_cpu" = ia64; then
9195 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9196 allow_undefined_flag_CXX="-z nodefs"
9197 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"
9199 # Determine the default libpath from the value encoded in an empty executable.
9200 cat >conftest.$ac_ext <<_ACEOF
9201 #line $LINENO "configure"
9204 cat confdefs.h >>conftest.$ac_ext
9205 cat >>conftest.$ac_ext <<_ACEOF
9206 /* end confdefs.h. */
9216 rm -f conftest.$ac_objext conftest$ac_exeext
9217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9218 (eval $ac_link) 2>&5
9220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221 (exit $ac_status); } &&
9222 { ac_try='test -s conftest$ac_exeext'
9223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227 (exit $ac_status); }; }; then
9229 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9231 # Check for a 64-bit object if we didn't find anything.
9232 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; }
9235 echo "$as_me: failed program was:" >&5
9236 sed 's/^/| /' conftest.$ac_ext >&5
9239 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9240 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9242 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9243 # Warning - without using the other run time loading flags,
9244 # -berok will link without error, but may produce a broken library.
9245 no_undefined_flag_CXX=' ${wl}-bernotok'
9246 allow_undefined_flag_CXX=' ${wl}-berok'
9247 # -bexpall does not export symbols beginning with underscore (_)
9248 always_export_symbols_CXX=yes
9249 # Exported symbols can be pulled into shared objects from archives
9250 whole_archive_flag_spec_CXX=' '
9251 archive_cmds_need_lc_CXX=yes
9252 # This is similar to how AIX traditionally builds it's shared libraries.
9253 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'
9258 case $cc_basename in
9260 # FIXME: insert proper C++ library support
9266 cygwin* | mingw* | pw32*)
9267 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9268 # as there is no search path for DLLs.
9269 hardcode_libdir_flag_spec_CXX='-L$libdir'
9270 allow_undefined_flag_CXX=unsupported
9271 always_export_symbols_CXX=no
9272 enable_shared_with_static_runtimes_CXX=yes
9274 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9275 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'
9276 # If the export-symbols file already is a .def file (1st line
9277 # is EXPORTS), use it as is; otherwise, prepend...
9278 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9279 cp $export_symbols $output_objdir/$soname.def;
9281 echo EXPORTS > $output_objdir/$soname.def;
9282 cat $export_symbols >> $output_objdir/$soname.def;
9284 $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'
9290 darwin* | rhapsody*)
9291 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9292 archive_cmds_need_lc_CXX=no
9294 rhapsody* | darwin1.[012])
9295 allow_undefined_flag_CXX='-undefined suppress'
9298 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9301 lt_int_apple_cc_single_mod=no
9302 output_verbose_link_cmd='echo'
9303 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9304 lt_int_apple_cc_single_mod=yes
9306 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9307 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9309 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'
9311 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9313 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9314 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9315 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}'
9317 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}'
9319 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}'
9320 hardcode_direct_CXX=no
9321 hardcode_automatic_CXX=yes
9322 hardcode_shlibpath_var_CXX=unsupported
9323 whole_archive_flag_spec_CXX='-all_load $convenience'
9324 link_all_deplibs_CXX=yes
9329 case $cc_basename in
9331 # FIXME: insert proper C++ library support
9335 # Green Hills C++ Compiler
9336 # FIXME: insert proper C++ library support
9340 # FIXME: insert proper C++ library support
9346 # C++ shared libraries reported to be fairly broken before switch to ELF
9350 archive_cmds_need_lc_CXX=no
9353 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9360 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9361 hardcode_libdir_separator_CXX=:
9362 export_dynamic_flag_spec_CXX='${wl}-E'
9363 hardcode_direct_CXX=yes
9364 hardcode_minus_L_CXX=yes # Not in the search PATH,
9365 # but as the default
9366 # location of the library.
9368 case $cc_basename in
9370 # FIXME: insert proper C++ library support
9374 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'
9375 # Commands to make compiler produce verbose output that lists
9376 # what "hidden" libraries, object files and flags are used when
9377 # linking a shared library.
9379 # There doesn't appear to be a way to prevent this compiler from
9380 # explicitly linking system object files so we need to strip them
9381 # from the output so that they don't get included in the library
9383 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'
9386 if test "$GXX" = yes; then
9387 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'
9389 # FIXME: insert proper C++ library support
9396 if test $with_gnu_ld = no; then
9399 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9400 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9401 hardcode_libdir_separator_CXX=:
9404 hardcode_libdir_flag_spec_CXX='-L$libdir'
9407 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9408 hardcode_libdir_separator_CXX=:
9409 export_dynamic_flag_spec_CXX='${wl}-E'
9415 hardcode_direct_CXX=no
9416 hardcode_shlibpath_var_CXX=no
9419 hardcode_direct_CXX=no
9420 hardcode_shlibpath_var_CXX=no
9421 hardcode_minus_L_CXX=yes # Not in the search PATH,
9422 # but as the default
9423 # location of the library.
9426 hardcode_direct_CXX=yes
9427 hardcode_minus_L_CXX=yes # Not in the search PATH,
9428 # but as the default
9429 # location of the library.
9433 case $cc_basename in
9435 # FIXME: insert proper C++ library support
9441 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9444 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9447 # Commands to make compiler produce verbose output that lists
9448 # what "hidden" libraries, object files and flags are used when
9449 # linking a shared library.
9451 # There doesn't appear to be a way to prevent this compiler from
9452 # explicitly linking system object files so we need to strip them
9453 # from the output so that they don't get included in the library
9455 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'
9458 if test "$GXX" = yes; then
9459 if test $with_gnu_ld = no; then
9462 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9465 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'
9470 # FIXME: insert proper C++ library support
9477 case $cc_basename in
9480 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'
9482 # Archives containing C++ object files must be created using
9483 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9484 # necessary to make sure instantiated templates are included
9486 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9489 if test "$GXX" = yes; then
9490 if test "$with_gnu_ld" = no; then
9491 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'
9493 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'
9496 link_all_deplibs_CXX=yes
9499 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9500 hardcode_libdir_separator_CXX=:
9503 case $cc_basename in
9505 # Kuck and Associates, Inc. (KAI) C++ Compiler
9507 # KCC will only create a shared library if the output file
9508 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9509 # to its proper name (with version) after linking.
9510 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'
9511 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'
9512 # Commands to make compiler produce verbose output that lists
9513 # what "hidden" libraries, object files and flags are used when
9514 # linking a shared library.
9516 # There doesn't appear to be a way to prevent this compiler from
9517 # explicitly linking system object files so we need to strip them
9518 # from the output so that they don't get included in the library
9520 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'
9522 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9523 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9525 # Archives containing C++ object files must be created using
9526 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9527 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9532 archive_cmds_need_lc_CXX=no
9533 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9534 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'
9535 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9536 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9537 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9541 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9542 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'
9544 runpath_var=LD_RUN_PATH
9545 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9546 hardcode_libdir_separator_CXX=:
9548 # Commands to make compiler produce verbose output that lists
9549 # what "hidden" libraries, object files and flags are used when
9550 # linking a shared library.
9552 # There doesn't appear to be a way to prevent this compiler from
9553 # explicitly linking system object files so we need to strip them
9554 # from the output so that they don't get included in the library
9556 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'
9561 # FIXME: insert proper C++ library support
9565 # FIXME: insert proper C++ library support
9569 case $cc_basename in
9571 # FIXME: insert proper C++ library support
9575 # FIXME: insert proper C++ library support
9581 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9582 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9584 hardcode_libdir_flag_spec_CXX='-R$libdir'
9585 hardcode_direct_CXX=yes
9586 hardcode_shlibpath_var_CXX=no
9588 # Workaround some broken pre-1.5 toolchains
9589 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9592 case $cc_basename in
9594 # Kuck and Associates, Inc. (KAI) C++ Compiler
9596 # KCC will only create a shared library if the output file
9597 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9598 # to its proper name (with version) after linking.
9599 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'
9601 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9602 hardcode_libdir_separator_CXX=:
9604 # Archives containing C++ object files must be created using
9605 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9606 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9610 # Rational C++ 2.4.1
9611 # FIXME: insert proper C++ library support
9615 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9616 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'
9618 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9619 hardcode_libdir_separator_CXX=:
9621 # Commands to make compiler produce verbose output that lists
9622 # what "hidden" libraries, object files and flags are used when
9623 # linking a shared library.
9625 # There doesn't appear to be a way to prevent this compiler from
9626 # explicitly linking system object files so we need to strip them
9627 # from the output so that they don't get included in the library
9629 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'
9632 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9633 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9634 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'
9636 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9637 hardcode_libdir_separator_CXX=:
9639 # Commands to make compiler produce verbose output that lists
9640 # what "hidden" libraries, object files and flags are used when
9641 # linking a shared library.
9642 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9645 # FIXME: insert proper C++ library support
9652 case $cc_basename in
9654 # Kuck and Associates, Inc. (KAI) C++ Compiler
9656 # KCC will only create a shared library if the output file
9657 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9658 # to its proper name (with version) after linking.
9659 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'
9661 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9662 hardcode_libdir_separator_CXX=:
9664 # Archives containing C++ object files must be created using
9665 # the KAI C++ compiler.
9666 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9669 # Rational C++ 2.4.1
9670 # FIXME: insert proper C++ library support
9674 allow_undefined_flag_CXX=' -expect_unresolved \*'
9675 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'
9676 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9677 echo "-hidden">> $lib.exp~
9678 $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~
9681 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9682 hardcode_libdir_separator_CXX=:
9684 # Commands to make compiler produce verbose output that lists
9685 # what "hidden" libraries, object files and flags are used when
9686 # linking a shared library.
9688 # There doesn't appear to be a way to prevent this compiler from
9689 # explicitly linking system object files so we need to strip them
9690 # from the output so that they don't get included in the library
9692 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'
9695 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9696 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9697 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'
9699 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9700 hardcode_libdir_separator_CXX=:
9702 # Commands to make compiler produce verbose output that lists
9703 # what "hidden" libraries, object files and flags are used when
9704 # linking a shared library.
9705 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9708 # FIXME: insert proper C++ library support
9715 # FIXME: insert proper C++ library support
9719 archive_cmds_need_lc_CXX=no
9720 case $cc_basename in
9722 # FIXME: insert proper C++ library support
9726 # FIXME: insert proper C++ library support
9732 case $cc_basename in
9735 # FIXME: insert proper C++ library support
9740 # FIXME: insert proper C++ library support
9744 # FIXME: insert proper C++ library support
9750 case $cc_basename in
9752 # Sun C++ 4.2, 5.x and Centerline C++
9753 no_undefined_flag_CXX=' -zdefs'
9754 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9755 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9756 $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'
9758 hardcode_libdir_flag_spec_CXX='-R$libdir'
9759 hardcode_shlibpath_var_CXX=no
9761 solaris2.0-5 | solaris2.0-5.*) ;;
9763 # The C++ compiler is used as linker so we must use $wl
9764 # flag to pass the commands to the underlying system
9766 # Supported since Solaris 2.6 (maybe 2.5.1?)
9767 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9770 link_all_deplibs_CXX=yes
9772 # Commands to make compiler produce verbose output that lists
9773 # what "hidden" libraries, object files and flags are used when
9774 # linking a shared library.
9776 # There doesn't appear to be a way to prevent this compiler from
9777 # explicitly linking system object files so we need to strip them
9778 # from the output so that they don't get included in the library
9780 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'
9782 # Archives containing C++ object files must be created using
9783 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9784 # necessary to make sure instantiated templates are included
9786 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9789 # Green Hills C++ Compiler
9790 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9792 # The C++ compiler must be used to create the archive.
9793 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9796 # GNU C++ compiler with Solaris linker
9797 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9798 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9799 if $CC --version | grep -v '^2\.7' > /dev/null; then
9800 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9801 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9802 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9804 # Commands to make compiler produce verbose output that lists
9805 # what "hidden" libraries, object files and flags are used when
9806 # linking a shared library.
9807 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9809 # g++ 2.7 appears to require `-G' NOT `-shared' on this
9811 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9812 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9813 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9815 # Commands to make compiler produce verbose output that lists
9816 # what "hidden" libraries, object files and flags are used when
9817 # linking a shared library.
9818 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9821 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
9826 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9827 archive_cmds_need_lc_CXX=no
9830 case $cc_basename in
9832 # NonStop-UX NCC 3.20
9833 # FIXME: insert proper C++ library support
9837 # FIXME: insert proper C++ library support
9843 # FIXME: insert proper C++ library support
9847 # FIXME: insert proper C++ library support
9851 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
9852 echo "${ECHO_T}$ld_shlibs_CXX" >&6
9853 test "$ld_shlibs_CXX" = no && can_build_shared=no
9859 ## There is no encapsulation within the following macros, do not change
9860 ## the running order or otherwise move them around unless you know exactly
9861 ## what you are doing...
9863 cat > conftest.$ac_ext <<EOF
9867 Foo (void) { a = 0; }
9873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9874 (eval $ac_compile) 2>&5
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); }; then
9878 # Parse the compiler output and extract the necessary
9879 # objects, libraries and library flags.
9881 # Sentinel used to keep track of whether or not we are before
9882 # the conftest object file.
9883 pre_test_object_deps_done=no
9885 # The `*' in the case matches for architectures that use `case' in
9886 # $output_verbose_cmd can trigger glob expansion during the loop
9887 # eval without this substitution.
9888 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
9890 for p in `eval $output_verbose_link_cmd`; do
9894 # Some compilers place space between "-{L,R}" and the path.
9897 || test $p = "-R"; then
9904 if test "$pre_test_object_deps_done" = no; then
9907 # Internal compiler library paths should come after those
9908 # provided the user. The postdeps already come after the
9909 # user supplied libs so there is no need to process them.
9910 if test -z "$compiler_lib_search_path_CXX"; then
9911 compiler_lib_search_path_CXX="${prev}${p}"
9913 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
9916 # The "-l" case would never come before the object being
9917 # linked, so don't bother handling this case.
9920 if test -z "$postdeps_CXX"; then
9921 postdeps_CXX="${prev}${p}"
9923 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
9929 # This assumes that the test object file only shows up
9930 # once in the compiler output.
9931 if test "$p" = "conftest.$objext"; then
9932 pre_test_object_deps_done=yes
9936 if test "$pre_test_object_deps_done" = no; then
9937 if test -z "$predep_objects_CXX"; then
9938 predep_objects_CXX="$p"
9940 predep_objects_CXX="$predep_objects_CXX $p"
9943 if test -z "$postdep_objects_CXX"; then
9944 postdep_objects_CXX="$p"
9946 postdep_objects_CXX="$postdep_objects_CXX $p"
9951 *) ;; # Ignore the rest.
9959 echo "libtool.m4: error: problem compiling CXX test program"
9962 $rm -f confest.$objext
9964 case " $postdeps_CXX " in
9965 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
9968 lt_prog_compiler_wl_CXX=
9969 lt_prog_compiler_pic_CXX=
9970 lt_prog_compiler_static_CXX=
9972 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9973 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9975 # C++ specific cases for pic, static, wl, etc.
9976 if test "$GXX" = yes; then
9977 lt_prog_compiler_wl_CXX='-Wl,'
9978 lt_prog_compiler_static_CXX='-static'
9982 # All AIX code is PIC.
9983 if test "$host_cpu" = ia64; then
9984 # AIX 5 now supports IA64 processor
9985 lt_prog_compiler_static_CXX='-Bstatic'
9989 # FIXME: we need at least 68020 code to build shared libraries, but
9990 # adding the `-m68020' flag to GCC prevents building anything better,
9992 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
9994 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9995 # PIC is the default for these OSes.
9997 mingw* | os2* | pw32*)
9998 # This hack is so that the source file can tell whether it is being
9999 # built for inclusion in a dll (and should export symbols for example).
10000 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10002 darwin* | rhapsody*)
10003 # PIC is the default on this platform
10004 # Common symbols not allowed in MH_DYLIB files
10005 lt_prog_compiler_pic_CXX='-fno-common'
10008 # DJGPP does not support shared libraries at all
10009 lt_prog_compiler_pic_CXX=
10012 if test -d /usr/nec; then
10013 lt_prog_compiler_pic_CXX=-Kconform_pic
10017 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10018 # not for PA HP-UX.
10019 case "$host_cpu" in
10023 lt_prog_compiler_pic_CXX='-fPIC'
10028 lt_prog_compiler_pic_CXX='-fPIC'
10034 # All AIX code is PIC.
10035 if test "$host_cpu" = ia64; then
10036 # AIX 5 now supports IA64 processor
10037 lt_prog_compiler_static_CXX='-Bstatic'
10039 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10043 case $cc_basename in
10045 # Green Hills C++ Compiler
10046 # _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"
10051 case $cc_basename in
10053 lt_prog_compiler_pic_CXX='-KPIC'
10056 # Green Hills C++ Compiler
10057 lt_prog_compiler_pic_CXX='-pic'
10064 # FreeBSD uses GNU C++
10066 hpux9* | hpux10* | hpux11*)
10067 case $cc_basename in
10069 lt_prog_compiler_wl_CXX='-Wl,'
10070 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10071 if test "$host_cpu" != ia64; then
10072 lt_prog_compiler_pic_CXX='+Z'
10076 lt_prog_compiler_wl_CXX='-Wl,'
10077 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10078 case "$host_cpu" in
10083 lt_prog_compiler_pic_CXX='+Z'
10091 irix5* | irix6* | nonstopux*)
10092 case $cc_basename in
10094 lt_prog_compiler_wl_CXX='-Wl,'
10095 lt_prog_compiler_static_CXX='-non_shared'
10096 # CC pic flag -KPIC is the default.
10103 case $cc_basename in
10106 lt_prog_compiler_wl_CXX='--backend -Wl,'
10107 lt_prog_compiler_pic_CXX='-fPIC'
10111 lt_prog_compiler_wl_CXX='-Wl,'
10112 lt_prog_compiler_pic_CXX='-KPIC'
10113 lt_prog_compiler_static_CXX='-static'
10117 # Make sure the PIC flag is empty. It appears that all Alpha
10118 # Linux and Compaq Tru64 Unix objects are PIC.
10119 lt_prog_compiler_pic_CXX=
10120 lt_prog_compiler_static_CXX='-non_shared'
10131 case $cc_basename in
10133 lt_prog_compiler_pic_CXX='-W c,exportall'
10141 osf3* | osf4* | osf5*)
10142 case $cc_basename in
10144 lt_prog_compiler_wl_CXX='--backend -Wl,'
10147 # Rational C++ 2.4.1
10148 lt_prog_compiler_pic_CXX='-pic'
10151 # Digital/Compaq C++
10152 lt_prog_compiler_wl_CXX='-Wl,'
10153 # Make sure the PIC flag is empty. It appears that all Alpha
10154 # Linux and Compaq Tru64 Unix objects are PIC.
10155 lt_prog_compiler_pic_CXX=
10156 lt_prog_compiler_static_CXX='-non_shared'
10165 case $cc_basename in
10167 lt_prog_compiler_pic_CXX='-fPIC'
10174 case $cc_basename in
10176 # Sun C++ 4.2, 5.x and Centerline C++
10177 lt_prog_compiler_pic_CXX='-KPIC'
10178 lt_prog_compiler_static_CXX='-Bstatic'
10179 lt_prog_compiler_wl_CXX='-Qoption ld '
10182 # Green Hills C++ Compiler
10183 lt_prog_compiler_pic_CXX='-PIC'
10190 case $cc_basename in
10193 lt_prog_compiler_pic_CXX='-pic'
10194 lt_prog_compiler_static_CXX='-Bstatic'
10198 lt_prog_compiler_pic_CXX='-pic'
10205 case $cc_basename in
10207 # NonStop-UX NCC 3.20
10208 lt_prog_compiler_pic_CXX='-KPIC'
10219 lt_prog_compiler_can_build_shared_CXX=no
10224 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10225 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10228 # Check to make sure the PIC flag actually works.
10230 if test -n "$lt_prog_compiler_pic_CXX"; then
10231 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10232 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10233 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10234 echo $ECHO_N "(cached) $ECHO_C" >&6
10236 lt_prog_compiler_pic_works_CXX=no
10237 ac_outfile=conftest.$ac_objext
10238 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10239 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10240 # Insert the option either (1) after the last *FLAGS variable, or
10241 # (2) before a word containing "conftest.", or (3) at the end.
10242 # Note that $ac_compile itself does not contain backslashes and begins
10243 # with a dollar sign (not a hyphen), so the echo should work correctly.
10244 # The option is referenced via a variable to avoid confusing sed.
10245 lt_compile=`echo "$ac_compile" | $SED \
10246 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10247 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10248 -e 's:$: $lt_compiler_flag:'`
10249 (eval echo "\"\$as_me:10249: $lt_compile\"" >&5)
10250 (eval "$lt_compile" 2>conftest.err)
10252 cat conftest.err >&5
10253 echo "$as_me:10253: \$? = $ac_status" >&5
10254 if (exit $ac_status) && test -s "$ac_outfile"; then
10255 # The compiler can only warn and ignore the option if not recognized
10256 # So say no if there are warnings
10257 if test ! -s conftest.err; then
10258 lt_prog_compiler_pic_works_CXX=yes
10264 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10265 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10267 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10268 case $lt_prog_compiler_pic_CXX in
10270 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10273 lt_prog_compiler_pic_CXX=
10274 lt_prog_compiler_can_build_shared_CXX=no
10279 # For platforms which do not support PIC, -DPIC is meaningless:
10281 lt_prog_compiler_pic_CXX=
10284 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10288 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10289 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10290 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10291 echo $ECHO_N "(cached) $ECHO_C" >&6
10293 lt_cv_prog_compiler_c_o_CXX=no
10294 $rm -r conftest 2>/dev/null
10298 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10300 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10301 # that will create temporary files in the current directory regardless of
10302 # the output directory. Thus, making CWD read-only will cause this test
10303 # to fail, enabling locking or at least warning the user not to do parallel
10307 lt_compiler_flag="-o out/conftest2.$ac_objext"
10308 # Insert the option either (1) after the last *FLAGS variable, or
10309 # (2) before a word containing "conftest.", or (3) at the end.
10310 # Note that $ac_compile itself does not contain backslashes and begins
10311 # with a dollar sign (not a hyphen), so the echo should work correctly.
10312 lt_compile=`echo "$ac_compile" | $SED \
10313 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10314 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10315 -e 's:$: $lt_compiler_flag:'`
10316 (eval echo "\"\$as_me:10316: $lt_compile\"" >&5)
10317 (eval "$lt_compile" 2>out/conftest.err)
10319 cat out/conftest.err >&5
10320 echo "$as_me:10320: \$? = $ac_status" >&5
10321 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10323 # The compiler can only warn and ignore the option if not recognized
10324 # So say no if there are warnings
10325 if test ! -s out/conftest.err; then
10326 lt_cv_prog_compiler_c_o_CXX=yes
10330 $rm conftest* out/*
10337 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10338 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10341 hard_links="nottested"
10342 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10343 # do not overwrite the value of need_locks provided by the user
10344 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10345 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10348 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10350 ln conftest.a conftest.b 2>&5 || hard_links=no
10351 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10352 echo "$as_me:$LINENO: result: $hard_links" >&5
10353 echo "${ECHO_T}$hard_links" >&6
10354 if test "$hard_links" = no; then
10355 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10356 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10363 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10364 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10366 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10369 # If we're using GNU nm, then we don't want the "-C" option.
10370 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10371 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10372 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'
10374 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'
10378 export_symbols_cmds_CXX="$ltdll_cmds"
10381 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10384 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10388 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10389 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10390 test "$ld_shlibs_CXX" = no && can_build_shared=no
10392 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10393 if test "$GCC" = yes; then
10394 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10398 # Do we need to explicitly link libc?
10400 case "x$archive_cmds_need_lc_CXX" in
10402 # Assume -lc should be added
10403 archive_cmds_need_lc_CXX=yes
10405 if test "$enable_shared" = yes && test "$GCC" = yes; then
10406 case $archive_cmds_CXX in
10408 # FIXME: we may have to deal with multi-command sequences.
10411 # Test whether the compiler implicitly links with -lc since on some
10412 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10413 # to ld, don't add -lc before -lgcc.
10414 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10415 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10417 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10420 (eval $ac_compile) 2>&5
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); } 2>conftest.err; then
10426 libobjs=conftest.$ac_objext
10428 wl=$lt_prog_compiler_wl_CXX
10434 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10435 allow_undefined_flag_CXX=
10436 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10437 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); }
10442 archive_cmds_need_lc_CXX=no
10444 archive_cmds_need_lc_CXX=yes
10446 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10448 cat conftest.err 1>&5
10451 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10452 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10459 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10460 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10461 hardcode_action_CXX=
10462 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10463 test -n "$runpath_var CXX" || \
10464 test "X$hardcode_automatic_CXX"="Xyes" ; then
10466 # We can hardcode non-existant directories.
10467 if test "$hardcode_direct_CXX" != no &&
10468 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10469 # have to relink, otherwise we might link with an installed library
10470 # when we should be linking with a yet-to-be-installed one
10471 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10472 test "$hardcode_minus_L_CXX" != no; then
10473 # Linking always hardcodes the temporary library directory.
10474 hardcode_action_CXX=relink
10476 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10477 hardcode_action_CXX=immediate
10480 # We cannot hardcode anything, or else we can only hardcode existing
10482 hardcode_action_CXX=unsupported
10484 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10485 echo "${ECHO_T}$hardcode_action_CXX" >&6
10487 if test "$hardcode_action_CXX" = relink; then
10488 # Fast installation is not supported
10489 enable_fast_install=no
10490 elif test "$shlibpath_overrides_runpath" = yes ||
10491 test "$enable_shared" = no; then
10492 # Fast installation is not necessary
10493 enable_fast_install=needless
10498 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10499 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10500 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10501 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10502 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10503 echo "$as_me:$LINENO: result: yes" >&5
10504 echo "${ECHO_T}yes" >&6
10506 # FIXME - insert some real tests, host_os isn't really good enough
10509 if test -n "$STRIP" ; then
10510 striplib="$STRIP -x"
10511 echo "$as_me:$LINENO: result: yes" >&5
10512 echo "${ECHO_T}yes" >&6
10514 echo "$as_me:$LINENO: result: no" >&5
10515 echo "${ECHO_T}no" >&6
10519 echo "$as_me:$LINENO: result: no" >&5
10520 echo "${ECHO_T}no" >&6
10525 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10526 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10527 library_names_spec=
10528 libname_spec='lib$name'
10532 postuninstall_cmds=
10536 shlibpath_overrides_runpath=unknown
10538 dynamic_linker="$host_os ld.so"
10539 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10540 if test "$GCC" = yes; then
10541 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10542 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10543 # if the path contains ";" then we assume it to be the separator
10544 # otherwise default to the standard path separator (i.e. ":") - it is
10545 # assumed that no part of a normal pathname contains ";" but that should
10546 # okay in the real world where ";" in dirpaths is itself problematic.
10547 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10549 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10552 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10554 need_lib_prefix=unknown
10555 hardcode_into_libs=no
10557 # when you set need_version to no, make sure it does not cause -set_version
10558 # flags to be left without arguments
10559 need_version=unknown
10564 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10565 shlibpath_var=LIBPATH
10567 # AIX 3 has no versioning support, so we append a major version to the name.
10568 soname_spec='${libname}${release}${shared_ext}$major'
10575 hardcode_into_libs=yes
10576 if test "$host_cpu" = ia64; then
10577 # AIX 5 supports IA64
10578 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10579 shlibpath_var=LD_LIBRARY_PATH
10581 # With GCC up to 2.95.x, collect2 would create an import file
10582 # for dependence libraries. The import file would start with
10583 # the line `#! .'. This would cause the generated library to
10584 # depend on `.', always an invalid library. This was fixed in
10585 # development snapshots of GCC prior to 3.0.
10587 aix4 | aix4.[01] | aix4.[01].*)
10588 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10590 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10593 can_build_shared=no
10597 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10598 # soname into executable. Probably we can add versioning support to
10599 # collect2, so additional links can be useful in future.
10600 if test "$aix_use_runtimelinking" = yes; then
10601 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10602 # instead of lib<name>.a to let people know that these are not
10603 # typical AIX shared libraries.
10604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10606 # We preserve .a as extension for shared libraries through AIX4.2
10607 # and later when we are not doing run time linking.
10608 library_names_spec='${libname}${release}.a $libname.a'
10609 soname_spec='${libname}${release}${shared_ext}$major'
10611 shlibpath_var=LIBPATH
10616 library_names_spec='$libname.ixlibrary $libname.a'
10617 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10618 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'
10622 library_names_spec='${libname}${shared_ext}'
10623 dynamic_linker="$host_os ld.so"
10624 shlibpath_var=LIBRARY_PATH
10630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10631 soname_spec='${libname}${release}${shared_ext}$major'
10632 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10633 shlibpath_var=LD_LIBRARY_PATH
10634 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10635 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10636 # the default ld.so.conf also contains /usr/contrib/lib and
10637 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10638 # libtool to hard-code these into programs
10641 cygwin* | mingw* | pw32*)
10642 version_type=windows
10647 case $GCC,$host_os in
10648 yes,cygwin* | yes,mingw* | yes,pw32*)
10649 library_names_spec='$libname.dll.a'
10650 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10651 postinstall_cmds='base_file=`basename \${file}`~
10652 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10653 dldir=$destdir/`dirname \$dlpath`~
10654 test -d \$dldir || mkdir -p \$dldir~
10655 $install_prog $dir/$dlname \$dldir/$dlname'
10656 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10657 dlpath=$dir/\$dldll~
10659 shlibpath_overrides_runpath=yes
10663 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10664 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10665 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10668 # MinGW DLLs use traditional 'lib' prefix
10669 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10670 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10671 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10672 # It is most probably a Windows format PATH printed by
10673 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10674 # path with ; separators, and with drive letters. We can handle the
10675 # drive letters (cygwin fileutils understands them), so leave them,
10676 # especially as we might pass files found there to a mingw objdump,
10677 # which wouldn't understand a cygwinified path. Ahh.
10678 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10680 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10684 # pw32 DLLs use 'pw' prefix rather than 'lib'
10685 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10691 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10694 dynamic_linker='Win32 ld.exe'
10695 # FIXME: first we should search . and the directory the executable is in
10699 darwin* | rhapsody*)
10700 dynamic_linker="$host_os dyld"
10701 version_type=darwin
10704 # FIXME: Relying on posixy $() will cause problems for
10705 # cross-compilation, but unfortunately the echo tests do not
10706 # yet detect zsh echo's removal of \ escapes.
10707 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10708 soname_spec='${libname}${release}${major}$shared_ext'
10709 shlibpath_overrides_runpath=yes
10710 shlibpath_var=DYLD_LIBRARY_PATH
10711 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10712 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10713 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10714 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"`
10716 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10724 soname_spec='${libname}${release}${shared_ext}$major'
10725 shlibpath_var=LD_LIBRARY_PATH
10733 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10734 version_type=freebsd-$objformat
10735 case $version_type in
10737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10742 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10746 shlibpath_var=LD_LIBRARY_PATH
10749 shlibpath_overrides_runpath=yes
10751 freebsd3.01* | freebsdelf3.01*)
10752 shlibpath_overrides_runpath=yes
10753 hardcode_into_libs=yes
10756 shlibpath_overrides_runpath=no
10757 hardcode_into_libs=yes
10766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10767 soname_spec='${libname}${release}${shared_ext}$major'
10768 shlibpath_var=LD_LIBRARY_PATH
10769 hardcode_into_libs=yes
10772 hpux9* | hpux10* | hpux11*)
10773 # Give a soname corresponding to the major version so that dld.sl refuses to
10774 # link against other versions.
10778 case "$host_cpu" in
10781 hardcode_into_libs=yes
10782 dynamic_linker="$host_os dld.so"
10783 shlibpath_var=LD_LIBRARY_PATH
10784 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10786 soname_spec='${libname}${release}${shared_ext}$major'
10787 if test "X$HPUX_IA64_MODE" = X32; then
10788 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10790 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10792 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10796 hardcode_into_libs=yes
10797 dynamic_linker="$host_os dld.sl"
10798 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10799 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10801 soname_spec='${libname}${release}${shared_ext}$major'
10802 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10803 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10807 dynamic_linker="$host_os dld.sl"
10808 shlibpath_var=SHLIB_PATH
10809 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10811 soname_spec='${libname}${release}${shared_ext}$major'
10814 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10815 postinstall_cmds='chmod 555 $lib'
10818 irix5* | irix6* | nonstopux*)
10820 nonstopux*) version_type=nonstopux ;;
10822 if test "$lt_cv_prog_gnu_ld" = yes; then
10830 soname_spec='${libname}${release}${shared_ext}$major'
10831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10833 irix5* | nonstopux*)
10834 libsuff= shlibsuff=
10837 case $LD in # libtool.m4 will add one of these switches to LD
10838 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10839 libsuff= shlibsuff= libmagic=32-bit;;
10840 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10841 libsuff=32 shlibsuff=N32 libmagic=N32;;
10842 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10843 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10844 *) libsuff= shlibsuff= libmagic=never-match;;
10848 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10849 shlibpath_overrides_runpath=no
10850 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10851 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10852 hardcode_into_libs=yes
10855 # No shared lib support for Linux oldld, aout, or coff.
10856 linux*oldld* | linux*aout* | linux*coff*)
10860 # This must be Linux ELF.
10865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10866 soname_spec='${libname}${release}${shared_ext}$major'
10867 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10868 shlibpath_var=LD_LIBRARY_PATH
10869 shlibpath_overrides_runpath=no
10870 # This implies no fast_install, which is unacceptable.
10871 # Some rework will be needed to allow for fast_install
10872 # before this can be enabled.
10873 hardcode_into_libs=yes
10875 # We used to test for /lib/ld.so.1 and disable shared libraries on
10876 # powerpc, because MkLinux only supported shared libraries with the
10877 # GNU dynamic linker. Since this was broken with cross compilers,
10878 # most powerpc-linux boxes support dynamic linking these days and
10879 # people can always --disable-shared, the test was removed, and we
10880 # assume the GNU/Linux dynamic linker is in use.
10881 dynamic_linker='GNU/Linux ld.so'
10888 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10890 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10891 dynamic_linker='NetBSD (a.out) ld.so'
10893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
10894 soname_spec='${libname}${release}${shared_ext}$major'
10895 dynamic_linker='NetBSD ld.elf_so'
10897 shlibpath_var=LD_LIBRARY_PATH
10898 shlibpath_overrides_runpath=yes
10899 hardcode_into_libs=yes
10904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10905 shlibpath_var=LD_LIBRARY_PATH
10906 shlibpath_overrides_runpath=yes
10913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10914 soname_spec='${libname}${release}${shared_ext}$major'
10915 shlibpath_var=LD_LIBRARY_PATH
10916 shlibpath_overrides_runpath=yes
10923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10924 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10925 shlibpath_var=LD_LIBRARY_PATH
10926 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10928 openbsd2.[89] | openbsd2.[89].*)
10929 shlibpath_overrides_runpath=no
10932 shlibpath_overrides_runpath=yes
10936 shlibpath_overrides_runpath=yes
10941 libname_spec='$name'
10944 library_names_spec='$libname${shared_ext} $libname.a'
10945 dynamic_linker='OS/2 ld.exe'
10946 shlibpath_var=LIBPATH
10949 osf3* | osf4* | osf5*)
10953 soname_spec='${libname}${release}${shared_ext}$major'
10954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10955 shlibpath_var=LD_LIBRARY_PATH
10956 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10957 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10962 soname_spec='${libname}${release}${shared_ext}$major'
10963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10964 shlibpath_var=LD_LIBRARY_PATH
10971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10972 soname_spec='${libname}${release}${shared_ext}$major'
10973 shlibpath_var=LD_LIBRARY_PATH
10974 shlibpath_overrides_runpath=yes
10975 hardcode_into_libs=yes
10976 # ldd complains unless libraries are executable
10977 postinstall_cmds='chmod +x $lib'
10982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10983 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10984 shlibpath_var=LD_LIBRARY_PATH
10985 shlibpath_overrides_runpath=yes
10986 if test "$with_gnu_ld" = yes; then
10992 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10995 soname_spec='${libname}${release}${shared_ext}$major'
10996 shlibpath_var=LD_LIBRARY_PATH
10997 case $host_vendor in
10999 shlibpath_overrides_runpath=no
11001 export_dynamic_flag_spec='${wl}-Blargedynsym'
11002 runpath_var=LD_RUN_PATH
11010 shlibpath_overrides_runpath=no
11011 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11017 if test -d /usr/nec ;then
11019 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11020 soname_spec='$libname${shared_ext}.$major'
11021 shlibpath_var=LD_LIBRARY_PATH
11027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11028 soname_spec='${libname}${release}${shared_ext}$major'
11029 shlibpath_var=LD_LIBRARY_PATH
11036 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11037 echo "${ECHO_T}$dynamic_linker" >&6
11038 test "$dynamic_linker" = no && can_build_shared=no
11040 if test "x$enable_dlopen" != xyes; then
11041 enable_dlopen=unknown
11042 enable_dlopen_self=unknown
11043 enable_dlopen_self_static=unknown
11050 lt_cv_dlopen="load_add_on"
11052 lt_cv_dlopen_self=yes
11056 lt_cv_dlopen="LoadLibrary"
11061 lt_cv_dlopen="dlopen"
11066 # if libdl is installed we need to link against it
11067 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11068 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11069 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11070 echo $ECHO_N "(cached) $ECHO_C" >&6
11072 ac_check_lib_save_LIBS=$LIBS
11074 cat >conftest.$ac_ext <<_ACEOF
11075 #line $LINENO "configure"
11078 cat confdefs.h >>conftest.$ac_ext
11079 cat >>conftest.$ac_ext <<_ACEOF
11080 /* end confdefs.h. */
11082 /* Override any gcc2 internal prototype to avoid an error. */
11086 /* We use char because int might match the return type of a gcc2
11087 builtin and then its argument prototype would still apply. */
11097 rm -f conftest.$ac_objext conftest$ac_exeext
11098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11099 (eval $ac_link) 2>&5
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); } &&
11103 { ac_try='test -s conftest$ac_exeext'
11104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11105 (eval $ac_try) 2>&5
11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); }; }; then
11109 ac_cv_lib_dl_dlopen=yes
11111 echo "$as_me: failed program was:" >&5
11112 sed 's/^/| /' conftest.$ac_ext >&5
11114 ac_cv_lib_dl_dlopen=no
11116 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11117 LIBS=$ac_check_lib_save_LIBS
11119 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11120 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11121 if test $ac_cv_lib_dl_dlopen = yes; then
11122 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11125 lt_cv_dlopen="dyld"
11127 lt_cv_dlopen_self=yes
11134 echo "$as_me:$LINENO: checking for shl_load" >&5
11135 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11136 if test "${ac_cv_func_shl_load+set}" = set; then
11137 echo $ECHO_N "(cached) $ECHO_C" >&6
11139 cat >conftest.$ac_ext <<_ACEOF
11140 #line $LINENO "configure"
11143 cat confdefs.h >>conftest.$ac_ext
11144 cat >>conftest.$ac_ext <<_ACEOF
11145 /* end confdefs.h. */
11146 /* System header to define __stub macros and hopefully few prototypes,
11147 which can conflict with char shl_load (); below.
11148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11149 <limits.h> exists even on freestanding compilers. */
11151 # include <limits.h>
11153 # include <assert.h>
11155 /* Override any gcc2 internal prototype to avoid an error. */
11160 /* We use char because int might match the return type of a gcc2
11161 builtin and then its argument prototype would still apply. */
11163 /* The GNU C library defines this for functions which it implements
11164 to always fail with ENOSYS. Some functions are actually named
11165 something starting with __ and the normal name is an alias. */
11166 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11169 char (*f) () = shl_load;
11178 return f != shl_load;
11183 rm -f conftest.$ac_objext conftest$ac_exeext
11184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11185 (eval $ac_link) 2>&5
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); } &&
11189 { ac_try='test -s conftest$ac_exeext'
11190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11191 (eval $ac_try) 2>&5
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; }; then
11195 ac_cv_func_shl_load=yes
11197 echo "$as_me: failed program was:" >&5
11198 sed 's/^/| /' conftest.$ac_ext >&5
11200 ac_cv_func_shl_load=no
11202 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11204 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11205 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11206 if test $ac_cv_func_shl_load = yes; then
11207 lt_cv_dlopen="shl_load"
11209 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11210 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11211 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11212 echo $ECHO_N "(cached) $ECHO_C" >&6
11214 ac_check_lib_save_LIBS=$LIBS
11216 cat >conftest.$ac_ext <<_ACEOF
11217 #line $LINENO "configure"
11220 cat confdefs.h >>conftest.$ac_ext
11221 cat >>conftest.$ac_ext <<_ACEOF
11222 /* end confdefs.h. */
11224 /* Override any gcc2 internal prototype to avoid an error. */
11228 /* We use char because int might match the return type of a gcc2
11229 builtin and then its argument prototype would still apply. */
11239 rm -f conftest.$ac_objext conftest$ac_exeext
11240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11241 (eval $ac_link) 2>&5
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); } &&
11245 { ac_try='test -s conftest$ac_exeext'
11246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11247 (eval $ac_try) 2>&5
11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); }; }; then
11251 ac_cv_lib_dld_shl_load=yes
11253 echo "$as_me: failed program was:" >&5
11254 sed 's/^/| /' conftest.$ac_ext >&5
11256 ac_cv_lib_dld_shl_load=no
11258 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11259 LIBS=$ac_check_lib_save_LIBS
11261 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11262 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11263 if test $ac_cv_lib_dld_shl_load = yes; then
11264 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11266 echo "$as_me:$LINENO: checking for dlopen" >&5
11267 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11268 if test "${ac_cv_func_dlopen+set}" = set; then
11269 echo $ECHO_N "(cached) $ECHO_C" >&6
11271 cat >conftest.$ac_ext <<_ACEOF
11272 #line $LINENO "configure"
11275 cat confdefs.h >>conftest.$ac_ext
11276 cat >>conftest.$ac_ext <<_ACEOF
11277 /* end confdefs.h. */
11278 /* System header to define __stub macros and hopefully few prototypes,
11279 which can conflict with char dlopen (); below.
11280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11281 <limits.h> exists even on freestanding compilers. */
11283 # include <limits.h>
11285 # include <assert.h>
11287 /* Override any gcc2 internal prototype to avoid an error. */
11292 /* We use char because int might match the return type of a gcc2
11293 builtin and then its argument prototype would still apply. */
11295 /* The GNU C library defines this for functions which it implements
11296 to always fail with ENOSYS. Some functions are actually named
11297 something starting with __ and the normal name is an alias. */
11298 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11301 char (*f) () = dlopen;
11310 return f != dlopen;
11315 rm -f conftest.$ac_objext conftest$ac_exeext
11316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11317 (eval $ac_link) 2>&5
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); } &&
11321 { ac_try='test -s conftest$ac_exeext'
11322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11323 (eval $ac_try) 2>&5
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); }; }; then
11327 ac_cv_func_dlopen=yes
11329 echo "$as_me: failed program was:" >&5
11330 sed 's/^/| /' conftest.$ac_ext >&5
11332 ac_cv_func_dlopen=no
11334 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11336 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11337 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11338 if test $ac_cv_func_dlopen = yes; then
11339 lt_cv_dlopen="dlopen"
11341 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11342 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11343 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11344 echo $ECHO_N "(cached) $ECHO_C" >&6
11346 ac_check_lib_save_LIBS=$LIBS
11348 cat >conftest.$ac_ext <<_ACEOF
11349 #line $LINENO "configure"
11352 cat confdefs.h >>conftest.$ac_ext
11353 cat >>conftest.$ac_ext <<_ACEOF
11354 /* end confdefs.h. */
11356 /* Override any gcc2 internal prototype to avoid an error. */
11360 /* We use char because int might match the return type of a gcc2
11361 builtin and then its argument prototype would still apply. */
11371 rm -f conftest.$ac_objext conftest$ac_exeext
11372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11373 (eval $ac_link) 2>&5
11375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376 (exit $ac_status); } &&
11377 { ac_try='test -s conftest$ac_exeext'
11378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11379 (eval $ac_try) 2>&5
11381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382 (exit $ac_status); }; }; then
11383 ac_cv_lib_dl_dlopen=yes
11385 echo "$as_me: failed program was:" >&5
11386 sed 's/^/| /' conftest.$ac_ext >&5
11388 ac_cv_lib_dl_dlopen=no
11390 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11391 LIBS=$ac_check_lib_save_LIBS
11393 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11394 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11395 if test $ac_cv_lib_dl_dlopen = yes; then
11396 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11398 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11399 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11400 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11401 echo $ECHO_N "(cached) $ECHO_C" >&6
11403 ac_check_lib_save_LIBS=$LIBS
11404 LIBS="-lsvld $LIBS"
11405 cat >conftest.$ac_ext <<_ACEOF
11406 #line $LINENO "configure"
11409 cat confdefs.h >>conftest.$ac_ext
11410 cat >>conftest.$ac_ext <<_ACEOF
11411 /* end confdefs.h. */
11413 /* Override any gcc2 internal prototype to avoid an error. */
11417 /* We use char because int might match the return type of a gcc2
11418 builtin and then its argument prototype would still apply. */
11428 rm -f conftest.$ac_objext conftest$ac_exeext
11429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11430 (eval $ac_link) 2>&5
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); } &&
11434 { ac_try='test -s conftest$ac_exeext'
11435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11436 (eval $ac_try) 2>&5
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); }; }; then
11440 ac_cv_lib_svld_dlopen=yes
11442 echo "$as_me: failed program was:" >&5
11443 sed 's/^/| /' conftest.$ac_ext >&5
11445 ac_cv_lib_svld_dlopen=no
11447 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11448 LIBS=$ac_check_lib_save_LIBS
11450 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11451 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11452 if test $ac_cv_lib_svld_dlopen = yes; then
11453 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11455 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11456 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11457 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11458 echo $ECHO_N "(cached) $ECHO_C" >&6
11460 ac_check_lib_save_LIBS=$LIBS
11462 cat >conftest.$ac_ext <<_ACEOF
11463 #line $LINENO "configure"
11466 cat confdefs.h >>conftest.$ac_ext
11467 cat >>conftest.$ac_ext <<_ACEOF
11468 /* end confdefs.h. */
11470 /* Override any gcc2 internal prototype to avoid an error. */
11474 /* We use char because int might match the return type of a gcc2
11475 builtin and then its argument prototype would still apply. */
11485 rm -f conftest.$ac_objext conftest$ac_exeext
11486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11487 (eval $ac_link) 2>&5
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); } &&
11491 { ac_try='test -s conftest$ac_exeext'
11492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11493 (eval $ac_try) 2>&5
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); }; }; then
11497 ac_cv_lib_dld_dld_link=yes
11499 echo "$as_me: failed program was:" >&5
11500 sed 's/^/| /' conftest.$ac_ext >&5
11502 ac_cv_lib_dld_dld_link=no
11504 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11505 LIBS=$ac_check_lib_save_LIBS
11507 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11508 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11509 if test $ac_cv_lib_dld_dld_link = yes; then
11510 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11531 if test "x$lt_cv_dlopen" != xno; then
11537 case $lt_cv_dlopen in
11539 save_CPPFLAGS="$CPPFLAGS"
11540 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11542 save_LDFLAGS="$LDFLAGS"
11543 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11546 LIBS="$lt_cv_dlopen_libs $LIBS"
11548 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11549 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11550 if test "${lt_cv_dlopen_self+set}" = set; then
11551 echo $ECHO_N "(cached) $ECHO_C" >&6
11553 if test "$cross_compiling" = yes; then :
11554 lt_cv_dlopen_self=cross
11556 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11557 lt_status=$lt_dlunknown
11558 cat > conftest.$ac_ext <<EOF
11559 #line 11559 "configure"
11560 #include "confdefs.h"
11569 # define LT_DLGLOBAL RTLD_GLOBAL
11572 # define LT_DLGLOBAL DL_GLOBAL
11574 # define LT_DLGLOBAL 0
11578 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11579 find out it does not work in some platform. */
11580 #ifndef LT_DLLAZY_OR_NOW
11582 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11585 # define LT_DLLAZY_OR_NOW DL_LAZY
11588 # define LT_DLLAZY_OR_NOW RTLD_NOW
11591 # define LT_DLLAZY_OR_NOW DL_NOW
11593 # define LT_DLLAZY_OR_NOW 0
11601 extern "C" void exit (int);
11604 void fnord() { int i=42;}
11607 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11608 int status = $lt_dlunknown;
11612 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11613 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11614 /* dlclose (self); */
11620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11621 (eval $ac_link) 2>&5
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11625 (./conftest; exit; ) 2>/dev/null
11627 case x$lt_status in
11628 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11629 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11630 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11633 # compilation failed
11634 lt_cv_dlopen_self=no
11641 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11642 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11644 if test "x$lt_cv_dlopen_self" = xyes; then
11645 LDFLAGS="$LDFLAGS $link_static_flag"
11646 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11647 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11648 if test "${lt_cv_dlopen_self_static+set}" = set; then
11649 echo $ECHO_N "(cached) $ECHO_C" >&6
11651 if test "$cross_compiling" = yes; then :
11652 lt_cv_dlopen_self_static=cross
11654 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11655 lt_status=$lt_dlunknown
11656 cat > conftest.$ac_ext <<EOF
11657 #line 11657 "configure"
11658 #include "confdefs.h"
11667 # define LT_DLGLOBAL RTLD_GLOBAL
11670 # define LT_DLGLOBAL DL_GLOBAL
11672 # define LT_DLGLOBAL 0
11676 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11677 find out it does not work in some platform. */
11678 #ifndef LT_DLLAZY_OR_NOW
11680 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11683 # define LT_DLLAZY_OR_NOW DL_LAZY
11686 # define LT_DLLAZY_OR_NOW RTLD_NOW
11689 # define LT_DLLAZY_OR_NOW DL_NOW
11691 # define LT_DLLAZY_OR_NOW 0
11699 extern "C" void exit (int);
11702 void fnord() { int i=42;}
11705 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11706 int status = $lt_dlunknown;
11710 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11711 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11712 /* dlclose (self); */
11718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11719 (eval $ac_link) 2>&5
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11723 (./conftest; exit; ) 2>/dev/null
11725 case x$lt_status in
11726 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11727 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11728 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11731 # compilation failed
11732 lt_cv_dlopen_self_static=no
11739 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11740 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11743 CPPFLAGS="$save_CPPFLAGS"
11744 LDFLAGS="$save_LDFLAGS"
11749 case $lt_cv_dlopen_self in
11750 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11751 *) enable_dlopen_self=unknown ;;
11754 case $lt_cv_dlopen_self_static in
11755 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11756 *) enable_dlopen_self_static=unknown ;;
11761 # The else clause should only fire when bootstrapping the
11762 # libtool distribution, otherwise you forgot to ship ltmain.sh
11763 # with your package, and you will get complaints that there are
11764 # no rules to generate ltmain.sh.
11765 if test -f "$ltmain"; then
11766 # See if we are running on zsh, and set the options which allow our commands through
11767 # without removal of \ escapes.
11768 if test -n "${ZSH_VERSION+set}" ; then
11769 setopt NO_GLOB_SUBST
11771 # Now quote all the things that may contain metacharacters while being
11772 # careful not to overquote the AC_SUBSTed values. We take copies of the
11773 # variables and quote the copies for generation of the libtool script.
11774 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11775 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11776 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11777 deplibs_check_method reload_flag reload_cmds need_locks \
11778 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11779 lt_cv_sys_global_symbol_to_c_name_address \
11780 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11781 old_postinstall_cmds old_postuninstall_cmds \
11785 lt_prog_compiler_wl_CXX \
11786 lt_prog_compiler_pic_CXX \
11787 lt_prog_compiler_static_CXX \
11788 lt_prog_compiler_no_builtin_flag_CXX \
11789 export_dynamic_flag_spec_CXX \
11790 thread_safe_flag_spec_CXX \
11791 whole_archive_flag_spec_CXX \
11792 enable_shared_with_static_runtimes_CXX \
11793 old_archive_cmds_CXX \
11794 old_archive_from_new_cmds_CXX \
11795 predep_objects_CXX \
11796 postdep_objects_CXX \
11799 compiler_lib_search_path_CXX \
11801 archive_expsym_cmds_CXX \
11802 postinstall_cmds_CXX \
11803 postuninstall_cmds_CXX \
11804 old_archive_from_expsyms_cmds_CXX \
11805 allow_undefined_flag_CXX \
11806 no_undefined_flag_CXX \
11807 export_symbols_cmds_CXX \
11808 hardcode_libdir_flag_spec_CXX \
11809 hardcode_libdir_flag_spec_ld_CXX \
11810 hardcode_libdir_separator_CXX \
11811 hardcode_automatic_CXX \
11813 module_expsym_cmds_CXX \
11814 lt_cv_prog_compiler_c_o_CXX \
11815 exclude_expsyms_CXX \
11816 include_expsyms_CXX; do
11819 old_archive_cmds_CXX | \
11820 old_archive_from_new_cmds_CXX | \
11821 archive_cmds_CXX | \
11822 archive_expsym_cmds_CXX | \
11823 module_cmds_CXX | \
11824 module_expsym_cmds_CXX | \
11825 old_archive_from_expsyms_cmds_CXX | \
11826 export_symbols_cmds_CXX | \
11827 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11828 postinstall_cmds | postuninstall_cmds | \
11829 old_postinstall_cmds | old_postuninstall_cmds | \
11830 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11831 # Double-quote double-evaled strings.
11832 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11835 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11841 *'\$0 --fallback-echo"')
11842 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11848 cat <<__EOF__ >> "$cfgfile"
11849 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11851 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11853 # Shell to use when invoking shell scripts.
11856 # Whether or not to build shared libraries.
11857 build_libtool_libs=$enable_shared
11859 # Whether or not to build static libraries.
11860 build_old_libs=$enable_static
11862 # Whether or not to add -lc for building shared libraries.
11863 build_libtool_need_lc=$archive_cmds_need_lc_CXX
11865 # Whether or not to disallow shared libs when runtime libs are static
11866 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
11868 # Whether or not to optimize for fast installation.
11869 fast_install=$enable_fast_install
11872 host_alias=$host_alias
11875 # An echo program that does not interpret backslashes.
11880 AR_FLAGS=$lt_AR_FLAGS
11885 # A language-specific compiler.
11886 CC=$lt_compiler_CXX
11888 # Is the compiler the GNU C compiler?
11894 # The linker used to build libraries.
11897 # Whether we need hard or soft links.
11900 # A BSD-compatible nm program.
11903 # A symbol stripping program
11906 # Used to examine libraries when file_magic_cmd begins "file"
11907 MAGIC_CMD=$MAGIC_CMD
11909 # Used on cygwin: DLL creation program.
11912 # Used on cygwin: object dumper.
11915 # Used on cygwin: assembler.
11918 # The name of the directory that contains temporary libtool files.
11921 # How to create reloadable object files.
11922 reload_flag=$lt_reload_flag
11923 reload_cmds=$lt_reload_cmds
11925 # How to pass a linker flag through the compiler.
11926 wl=$lt_lt_prog_compiler_wl_CXX
11928 # Object file suffix (normally "o").
11929 objext="$ac_objext"
11931 # Old archive suffix (normally "a").
11934 # Shared library suffix (normally ".so").
11937 # Executable file suffix (normally "").
11940 # Additional compiler flags for building library objects.
11941 pic_flag=$lt_lt_prog_compiler_pic_CXX
11944 # What is the maximum length of a command?
11945 max_cmd_len=$lt_cv_sys_max_cmd_len
11947 # Does compiler simultaneously support -c and -o options?
11948 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
11950 # Must we lock files when doing compilation ?
11951 need_locks=$lt_need_locks
11953 # Do we need the lib prefix for modules?
11954 need_lib_prefix=$need_lib_prefix
11956 # Do we need a version for libraries?
11957 need_version=$need_version
11959 # Whether dlopen is supported.
11960 dlopen_support=$enable_dlopen
11962 # Whether dlopen of programs is supported.
11963 dlopen_self=$enable_dlopen_self
11965 # Whether dlopen of statically linked programs is supported.
11966 dlopen_self_static=$enable_dlopen_self_static
11968 # Compiler flag to prevent dynamic linking.
11969 link_static_flag=$lt_lt_prog_compiler_static_CXX
11971 # Compiler flag to turn off builtin functions.
11972 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
11974 # Compiler flag to allow reflexive dlopens.
11975 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
11977 # Compiler flag to generate shared objects directly from archives.
11978 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
11980 # Compiler flag to generate thread-safe objects.
11981 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
11983 # Library versioning type.
11984 version_type=$version_type
11986 # Format of library name prefix.
11987 libname_spec=$lt_libname_spec
11989 # List of archive names. First name is the real one, the rest are links.
11990 # The last name is the one that the linker finds with -lNAME.
11991 library_names_spec=$lt_library_names_spec
11993 # The coded name of the library, if different from the real name.
11994 soname_spec=$lt_soname_spec
11996 # Commands used to build and install an old-style archive.
11998 old_archive_cmds=$lt_old_archive_cmds_CXX
11999 old_postinstall_cmds=$lt_old_postinstall_cmds
12000 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12002 # Create an old-style archive from a shared archive.
12003 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12005 # Create a temporary old-style archive to link instead of a shared archive.
12006 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12008 # Commands used to build and install a shared archive.
12009 archive_cmds=$lt_archive_cmds_CXX
12010 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12011 postinstall_cmds=$lt_postinstall_cmds
12012 postuninstall_cmds=$lt_postuninstall_cmds
12014 # Commands used to build a loadable module (assumed same as above if empty)
12015 module_cmds=$lt_module_cmds_CXX
12016 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12018 # Commands to strip libraries.
12019 old_striplib=$lt_old_striplib
12020 striplib=$lt_striplib
12022 # Dependencies to place before the objects being linked to create a
12024 predep_objects=$lt_predep_objects_CXX
12026 # Dependencies to place after the objects being linked to create a
12028 postdep_objects=$lt_postdep_objects_CXX
12030 # Dependencies to place before the objects being linked to create a
12032 predeps=$lt_predeps_CXX
12034 # Dependencies to place after the objects being linked to create a
12036 postdeps=$lt_postdeps_CXX
12038 # The library search path used internally by the compiler when linking
12039 # a shared library.
12040 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12042 # Method to check whether dependent libraries are shared objects.
12043 deplibs_check_method=$lt_deplibs_check_method
12045 # Command to use when deplibs_check_method == file_magic.
12046 file_magic_cmd=$lt_file_magic_cmd
12048 # Flag that allows shared libraries with undefined symbols to be built.
12049 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12051 # Flag that forces no undefined symbols.
12052 no_undefined_flag=$lt_no_undefined_flag_CXX
12054 # Commands used to finish a libtool library installation in a directory.
12055 finish_cmds=$lt_finish_cmds
12057 # Same as above, but a single script fragment to be evaled but not shown.
12058 finish_eval=$lt_finish_eval
12060 # Take the output of nm and produce a listing of raw symbols and C names.
12061 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12063 # Transform the output of nm in a proper C declaration
12064 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12066 # Transform the output of nm in a C name address pair
12067 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12069 # This is the shared library runtime path variable.
12070 runpath_var=$runpath_var
12072 # This is the shared library path variable.
12073 shlibpath_var=$shlibpath_var
12075 # Is shlibpath searched before the hard-coded library search path?
12076 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12078 # How to hardcode a shared library path into an executable.
12079 hardcode_action=$hardcode_action_CXX
12081 # Whether we should hardcode library paths into libraries.
12082 hardcode_into_libs=$hardcode_into_libs
12084 # Flag to hardcode \$libdir into a binary during linking.
12085 # This must work even if \$libdir does not exist.
12086 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12088 # If ld is used when linking, flag to hardcode \$libdir into
12089 # a binary during linking. This must work even if \$libdir does
12091 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12093 # Whether we need a single -rpath flag with a separated argument.
12094 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12096 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12097 # resulting binary.
12098 hardcode_direct=$hardcode_direct_CXX
12100 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12101 # resulting binary.
12102 hardcode_minus_L=$hardcode_minus_L_CXX
12104 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12105 # the resulting binary.
12106 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12108 # Set to yes if building a shared library automatically hardcodes DIR into the library
12109 # and all subsequent libraries and executables linked against it.
12110 hardcode_automatic=$hardcode_automatic_CXX
12112 # Variables whose values should be saved in libtool wrapper scripts and
12113 # restored at relink time.
12114 variables_saved_for_relink="$variables_saved_for_relink"
12116 # Whether libtool must link a program against all its dependency libraries.
12117 link_all_deplibs=$link_all_deplibs_CXX
12119 # Compile-time system search path for libraries
12120 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12122 # Run-time system search path for libraries
12123 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12125 # Fix the shell variable \$srcfile for the compiler.
12126 fix_srcfile_path="$fix_srcfile_path_CXX"
12128 # Set to yes if exported symbols are required.
12129 always_export_symbols=$always_export_symbols_CXX
12131 # The commands to list exported symbols.
12132 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12134 # The commands to extract the exported symbol list from a shared archive.
12135 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12137 # Symbols that should not be listed in the preloaded symbols.
12138 exclude_expsyms=$lt_exclude_expsyms_CXX
12140 # Symbols that must always be exported.
12141 include_expsyms=$lt_include_expsyms_CXX
12143 # ### END LIBTOOL TAG CONFIG: $tagname
12149 # If there is no Makefile yet, we rely on a make rule to execute
12150 # `config.status --recheck' to rerun these tests and create the
12151 # libtool script then.
12152 test -f Makefile && make "$ltmain"
12157 ac_cpp='$CPP $CPPFLAGS'
12158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12166 with_gnu_ldcxx=$with_gnu_ld
12167 with_gnu_ld=$lt_save_with_gnu_ld
12168 lt_cv_path_LDCXX=$lt_cv_path_LD
12169 lt_cv_path_LD=$lt_save_path_LD
12170 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12171 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12179 if test -n "$F77" && test "X$F77" != "Xno"; then
12182 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12183 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12184 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12187 archive_cmds_need_lc_F77=no
12188 allow_undefined_flag_F77=
12189 always_export_symbols_F77=no
12190 archive_expsym_cmds_F77=
12191 export_dynamic_flag_spec_F77=
12192 hardcode_direct_F77=no
12193 hardcode_libdir_flag_spec_F77=
12194 hardcode_libdir_flag_spec_ld_F77=
12195 hardcode_libdir_separator_F77=
12196 hardcode_minus_L_F77=no
12197 hardcode_automatic_F77=no
12199 module_expsym_cmds_F77=
12200 link_all_deplibs_F77=unknown
12201 old_archive_cmds_F77=$old_archive_cmds
12202 no_undefined_flag_F77=
12203 whole_archive_flag_spec_F77=
12204 enable_shared_with_static_runtimes_F77=no
12206 # Source file extension for f77 test sources.
12209 # Object file extension for compiled f77 test sources.
12213 # Code to be used in simple compile tests
12214 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12216 # Code to be used in simple link tests
12217 lt_simple_link_test_code=" program t\n end\n"
12219 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12221 # If no C compiler was specified, use CC.
12224 # Allow CC to be a program name with arguments.
12228 # Allow CC to be a program name with arguments.
12233 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12235 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12236 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12237 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12238 echo "${ECHO_T}$can_build_shared" >&6
12240 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12241 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12242 test "$can_build_shared" = "no" && enable_shared=no
12244 # On AIX, shared libraries and static libraries use the same namespace, and
12245 # are all built from PIC.
12248 test "$enable_shared" = yes && enable_static=no
12249 if test -n "$RANLIB"; then
12250 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12251 postinstall_cmds='$RANLIB $lib'
12255 test "$enable_shared" = yes && enable_static=no
12258 echo "$as_me:$LINENO: result: $enable_shared" >&5
12259 echo "${ECHO_T}$enable_shared" >&6
12261 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12262 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12263 # Make sure either enable_shared or enable_static is yes.
12264 test "$enable_shared" = yes || enable_static=yes
12265 echo "$as_me:$LINENO: result: $enable_static" >&5
12266 echo "${ECHO_T}$enable_static" >&6
12268 test "$ld_shlibs_F77" = no && can_build_shared=no
12273 lt_prog_compiler_wl_F77=
12274 lt_prog_compiler_pic_F77=
12275 lt_prog_compiler_static_F77=
12277 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12278 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12280 if test "$GCC" = yes; then
12281 lt_prog_compiler_wl_F77='-Wl,'
12282 lt_prog_compiler_static_F77='-static'
12286 # All AIX code is PIC.
12287 if test "$host_cpu" = ia64; then
12288 # AIX 5 now supports IA64 processor
12289 lt_prog_compiler_static_F77='-Bstatic'
12294 # FIXME: we need at least 68020 code to build shared libraries, but
12295 # adding the `-m68020' flag to GCC prevents building anything better,
12297 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12300 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12301 # PIC is the default for these OSes.
12304 mingw* | pw32* | os2*)
12305 # This hack is so that the source file can tell whether it is being
12306 # built for inclusion in a dll (and should export symbols for example).
12307 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12310 darwin* | rhapsody*)
12311 # PIC is the default on this platform
12312 # Common symbols not allowed in MH_DYLIB files
12313 lt_prog_compiler_pic_F77='-fno-common'
12317 # Just because we use GCC doesn't mean we suddenly get shared libraries
12318 # on systems that don't support them.
12319 lt_prog_compiler_can_build_shared_F77=no
12324 if test -d /usr/nec; then
12325 lt_prog_compiler_pic_F77=-Kconform_pic
12330 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12331 # not for PA HP-UX.
12332 case "$host_cpu" in
12337 lt_prog_compiler_pic_F77='-fPIC'
12343 lt_prog_compiler_pic_F77='-fPIC'
12347 # PORTME Check for flag to pass linker flags through the system compiler.
12350 lt_prog_compiler_wl_F77='-Wl,'
12351 if test "$host_cpu" = ia64; then
12352 # AIX 5 now supports IA64 processor
12353 lt_prog_compiler_static_F77='-Bstatic'
12355 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12359 mingw* | pw32* | os2*)
12360 # This hack is so that the source file can tell whether it is being
12361 # built for inclusion in a dll (and should export symbols for example).
12362 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12365 hpux9* | hpux10* | hpux11*)
12366 lt_prog_compiler_wl_F77='-Wl,'
12367 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12368 # not for PA HP-UX.
12369 case "$host_cpu" in
12374 lt_prog_compiler_pic_F77='+Z'
12377 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12378 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12381 irix5* | irix6* | nonstopux*)
12382 lt_prog_compiler_wl_F77='-Wl,'
12383 # PIC (with -KPIC) is the default.
12384 lt_prog_compiler_static_F77='-non_shared'
12388 lt_prog_compiler_pic_F77='-KPIC'
12389 lt_prog_compiler_static_F77='-Bstatic'
12395 lt_prog_compiler_wl_F77='-Wl,'
12396 lt_prog_compiler_pic_F77='-KPIC'
12397 lt_prog_compiler_static_F77='-static'
12400 lt_prog_compiler_wl_F77='-Wl,'
12401 # All Alpha code is PIC.
12402 lt_prog_compiler_static_F77='-non_shared'
12407 osf3* | osf4* | osf5*)
12408 lt_prog_compiler_wl_F77='-Wl,'
12409 # All OSF/1 code is PIC.
12410 lt_prog_compiler_static_F77='-non_shared'
12414 lt_prog_compiler_pic_F77='-Kpic'
12415 lt_prog_compiler_static_F77='-dn'
12419 lt_prog_compiler_wl_F77='-Wl,'
12420 lt_prog_compiler_pic_F77='-KPIC'
12421 lt_prog_compiler_static_F77='-Bstatic'
12425 lt_prog_compiler_wl_F77='-Qoption ld '
12426 lt_prog_compiler_pic_F77='-PIC'
12427 lt_prog_compiler_static_F77='-Bstatic'
12430 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12431 lt_prog_compiler_wl_F77='-Wl,'
12432 lt_prog_compiler_pic_F77='-KPIC'
12433 lt_prog_compiler_static_F77='-Bstatic'
12437 if test -d /usr/nec ;then
12438 lt_prog_compiler_pic_F77='-Kconform_pic'
12439 lt_prog_compiler_static_F77='-Bstatic'
12444 lt_prog_compiler_pic_F77='-pic'
12445 lt_prog_compiler_static_F77='-Bstatic'
12449 lt_prog_compiler_can_build_shared_F77=no
12454 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12455 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12458 # Check to make sure the PIC flag actually works.
12460 if test -n "$lt_prog_compiler_pic_F77"; then
12461 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12462 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12463 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12464 echo $ECHO_N "(cached) $ECHO_C" >&6
12466 lt_prog_compiler_pic_works_F77=no
12467 ac_outfile=conftest.$ac_objext
12468 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12469 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12470 # Insert the option either (1) after the last *FLAGS variable, or
12471 # (2) before a word containing "conftest.", or (3) at the end.
12472 # Note that $ac_compile itself does not contain backslashes and begins
12473 # with a dollar sign (not a hyphen), so the echo should work correctly.
12474 # The option is referenced via a variable to avoid confusing sed.
12475 lt_compile=`echo "$ac_compile" | $SED \
12476 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12477 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12478 -e 's:$: $lt_compiler_flag:'`
12479 (eval echo "\"\$as_me:12479: $lt_compile\"" >&5)
12480 (eval "$lt_compile" 2>conftest.err)
12482 cat conftest.err >&5
12483 echo "$as_me:12483: \$? = $ac_status" >&5
12484 if (exit $ac_status) && test -s "$ac_outfile"; then
12485 # The compiler can only warn and ignore the option if not recognized
12486 # So say no if there are warnings
12487 if test ! -s conftest.err; then
12488 lt_prog_compiler_pic_works_F77=yes
12494 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12495 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12497 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12498 case $lt_prog_compiler_pic_F77 in
12500 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12503 lt_prog_compiler_pic_F77=
12504 lt_prog_compiler_can_build_shared_F77=no
12509 # For platforms which do not support PIC, -DPIC is meaningless:
12511 lt_prog_compiler_pic_F77=
12514 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12518 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12519 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12520 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12521 echo $ECHO_N "(cached) $ECHO_C" >&6
12523 lt_cv_prog_compiler_c_o_F77=no
12524 $rm -r conftest 2>/dev/null
12528 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12530 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12531 # that will create temporary files in the current directory regardless of
12532 # the output directory. Thus, making CWD read-only will cause this test
12533 # to fail, enabling locking or at least warning the user not to do parallel
12537 lt_compiler_flag="-o out/conftest2.$ac_objext"
12538 # Insert the option either (1) after the last *FLAGS variable, or
12539 # (2) before a word containing "conftest.", or (3) at the end.
12540 # Note that $ac_compile itself does not contain backslashes and begins
12541 # with a dollar sign (not a hyphen), so the echo should work correctly.
12542 lt_compile=`echo "$ac_compile" | $SED \
12543 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12544 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12545 -e 's:$: $lt_compiler_flag:'`
12546 (eval echo "\"\$as_me:12546: $lt_compile\"" >&5)
12547 (eval "$lt_compile" 2>out/conftest.err)
12549 cat out/conftest.err >&5
12550 echo "$as_me:12550: \$? = $ac_status" >&5
12551 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12553 # The compiler can only warn and ignore the option if not recognized
12554 # So say no if there are warnings
12555 if test ! -s out/conftest.err; then
12556 lt_cv_prog_compiler_c_o_F77=yes
12560 $rm conftest* out/*
12567 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12568 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12571 hard_links="nottested"
12572 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12573 # do not overwrite the value of need_locks provided by the user
12574 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12575 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12578 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12580 ln conftest.a conftest.b 2>&5 || hard_links=no
12581 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12582 echo "$as_me:$LINENO: result: $hard_links" >&5
12583 echo "${ECHO_T}$hard_links" >&6
12584 if test "$hard_links" = no; then
12585 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12586 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12593 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12594 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12597 allow_undefined_flag_F77=
12598 enable_shared_with_static_runtimes_F77=no
12600 archive_expsym_cmds_F77=
12601 old_archive_From_new_cmds_F77=
12602 old_archive_from_expsyms_cmds_F77=
12603 export_dynamic_flag_spec_F77=
12604 whole_archive_flag_spec_F77=
12605 thread_safe_flag_spec_F77=
12606 hardcode_libdir_flag_spec_F77=
12607 hardcode_libdir_flag_spec_ld_F77=
12608 hardcode_libdir_separator_F77=
12609 hardcode_direct_F77=no
12610 hardcode_minus_L_F77=no
12611 hardcode_shlibpath_var_F77=unsupported
12612 link_all_deplibs_F77=unknown
12613 hardcode_automatic_F77=no
12615 module_expsym_cmds_F77=
12616 always_export_symbols_F77=no
12617 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12618 # include_expsyms should be a list of space-separated symbols to be *always*
12619 # included in the symbol list
12620 include_expsyms_F77=
12621 # exclude_expsyms can be an extended regexp of symbols to exclude
12622 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12623 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12624 # as well as any symbol that contains `d'.
12625 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12626 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12627 # platforms (ab)use it in PIC code, but their linkers get confused if
12628 # the symbol is explicitly referenced. Since portable code cannot
12629 # rely on this symbol name, it's probably fine to never include it in
12630 # preloaded symbol tables.
12631 extract_expsyms_cmds=
12634 cygwin* | mingw* | pw32*)
12635 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12636 # When not using gcc, we currently assume that we are using
12637 # Microsoft Visual C++.
12638 if test "$GCC" != yes; then
12648 if test "$with_gnu_ld" = yes; then
12649 # If archive_cmds runs LD, not CC, wlarc should be empty
12652 # See if GNU ld supports shared libraries.
12654 aix3* | aix4* | aix5*)
12655 # On AIX/PPC, the GNU linker is very broken
12656 if test "$host_cpu" != ia64; then
12660 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12661 *** to be unable to reliably create shared libraries on AIX.
12662 *** Therefore, libtool is disabling shared libraries support. If you
12663 *** really care for shared libraries, you may want to modify your PATH
12664 *** so that a non-GNU linker is found, and then restart.
12671 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)'
12672 hardcode_libdir_flag_spec_F77='-L$libdir'
12673 hardcode_minus_L_F77=yes
12675 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12676 # that the semantics of dynamic libraries on AmigaOS, at least up
12677 # to version 4, is to share data among multiple programs linked
12678 # with the same dynamic library. Since this doesn't match the
12679 # behavior of shared libraries on other platforms, we can't use
12685 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12686 allow_undefined_flag_F77=unsupported
12687 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12688 # support --undefined. This deserves some investigation. FIXME
12689 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12695 cygwin* | mingw* | pw32*)
12696 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12697 # as there is no search path for DLLs.
12698 hardcode_libdir_flag_spec_F77='-L$libdir'
12699 allow_undefined_flag_F77=unsupported
12700 always_export_symbols_F77=no
12701 enable_shared_with_static_runtimes_F77=yes
12702 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12704 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12705 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12706 # If the export-symbols file already is a .def file (1st line
12707 # is EXPORTS), use it as is; otherwise, prepend...
12708 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12709 cp $export_symbols $output_objdir/$soname.def;
12711 echo EXPORTS > $output_objdir/$soname.def;
12712 cat $export_symbols >> $output_objdir/$soname.def;
12714 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12721 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12722 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12725 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12726 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12731 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12735 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12736 *** create shared libraries on Solaris systems. Therefore, libtool
12737 *** is disabling shared libraries support. We urge you to upgrade GNU
12738 *** binutils to release 2.9.1 or newer. Another option is to modify
12739 *** your PATH or compiler configuration so that the native linker is
12740 *** used, and then restart.
12743 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12744 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12745 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12752 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12754 hardcode_direct_F77=yes
12755 hardcode_shlibpath_var_F77=no
12759 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12760 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12761 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12768 if test "$ld_shlibs_F77" = yes; then
12769 runpath_var=LD_RUN_PATH
12770 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12771 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12772 # ancient GNU ld didn't support --whole-archive et. al.
12773 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12774 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12776 whole_archive_flag_spec_F77=
12780 # PORTME fill in a description of your system's linker (not GNU ld)
12783 allow_undefined_flag_F77=unsupported
12784 always_export_symbols_F77=yes
12785 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'
12786 # Note: this linker hardcodes the directories in LIBPATH if there
12787 # are no directories specified by -L.
12788 hardcode_minus_L_F77=yes
12789 if test "$GCC" = yes && test -z "$link_static_flag"; then
12790 # Neither direct hardcoding nor static linking is supported with a
12792 hardcode_direct_F77=unsupported
12797 if test "$host_cpu" = ia64; then
12798 # On IA64, the linker does run time linking by default, so we don't
12799 # have to do anything special.
12800 aix_use_runtimelinking=no
12801 exp_sym_flag='-Bexport'
12804 # If we're using GNU nm, then we don't want the "-C" option.
12805 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12806 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12807 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'
12809 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'
12811 aix_use_runtimelinking=no
12813 # Test if we are trying to use run time linking or normal
12814 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12815 # need to do runtime linking.
12816 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12817 for ld_flag in $LDFLAGS; do
12818 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12819 aix_use_runtimelinking=yes
12825 exp_sym_flag='-bexport'
12826 no_entry_flag='-bnoentry'
12829 # When large executables or shared objects are built, AIX ld can
12830 # have problems creating the table of contents. If linking a library
12831 # or program results in "error TOC overflow" add -mminimal-toc to
12832 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12833 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12835 archive_cmds_F77=''
12836 hardcode_direct_F77=yes
12837 hardcode_libdir_separator_F77=':'
12838 link_all_deplibs_F77=yes
12840 if test "$GCC" = yes; then
12841 case $host_os in aix4.012|aix4.012.*)
12842 # We only want to do this on AIX 4.2 and lower, the check
12843 # below for broken collect2 doesn't work under 4.3+
12844 collect2name=`${CC} -print-prog-name=collect2`
12845 if test -f "$collect2name" && \
12846 strings "$collect2name" | grep resolve_lib_name >/dev/null
12848 # We have reworked collect2
12849 hardcode_direct_F77=yes
12851 # We have old collect2
12852 hardcode_direct_F77=unsupported
12853 # It fails to find uninstalled libraries when the uninstalled
12854 # path is not listed in the libpath. Setting hardcode_minus_L
12855 # to unsupported forces relinking
12856 hardcode_minus_L_F77=yes
12857 hardcode_libdir_flag_spec_F77='-L$libdir'
12858 hardcode_libdir_separator_F77=
12861 shared_flag='-shared'
12864 if test "$host_cpu" = ia64; then
12865 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12866 # chokes on -Wl,-G. The following line is correct:
12869 if test "$aix_use_runtimelinking" = yes; then
12870 shared_flag='${wl}-G'
12872 shared_flag='${wl}-bM:SRE'
12877 # It seems that -bexpall does not export symbols beginning with
12878 # underscore (_), so it is better to generate a list of symbols to export.
12879 always_export_symbols_F77=yes
12880 if test "$aix_use_runtimelinking" = yes; then
12881 # Warning - without using the other runtime loading flags (-brtl),
12882 # -berok will link without error, but may produce a broken library.
12883 allow_undefined_flag_F77='-berok'
12884 # Determine the default libpath from the value encoded in an empty executable.
12885 cat >conftest.$ac_ext <<_ACEOF
12890 rm -f conftest.$ac_objext conftest$ac_exeext
12891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12892 (eval $ac_link) 2>&5
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); } &&
12896 { ac_try='test -s conftest$ac_exeext'
12897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12898 (eval $ac_try) 2>&5
12900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901 (exit $ac_status); }; }; then
12903 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12905 # Check for a 64-bit object if we didn't find anything.
12906 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; }
12909 echo "$as_me: failed program was:" >&5
12910 sed 's/^/| /' conftest.$ac_ext >&5
12913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12914 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12916 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
12917 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"
12919 if test "$host_cpu" = ia64; then
12920 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
12921 allow_undefined_flag_F77="-z nodefs"
12922 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"
12924 # Determine the default libpath from the value encoded in an empty executable.
12925 cat >conftest.$ac_ext <<_ACEOF
12930 rm -f conftest.$ac_objext conftest$ac_exeext
12931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12932 (eval $ac_link) 2>&5
12934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935 (exit $ac_status); } &&
12936 { ac_try='test -s conftest$ac_exeext'
12937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12938 (eval $ac_try) 2>&5
12940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941 (exit $ac_status); }; }; then
12943 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12945 # Check for a 64-bit object if we didn't find anything.
12946 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; }
12949 echo "$as_me: failed program was:" >&5
12950 sed 's/^/| /' conftest.$ac_ext >&5
12953 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12954 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12956 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
12957 # Warning - without using the other run time loading flags,
12958 # -berok will link without error, but may produce a broken library.
12959 no_undefined_flag_F77=' ${wl}-bernotok'
12960 allow_undefined_flag_F77=' ${wl}-berok'
12961 # -bexpall does not export symbols beginning with underscore (_)
12962 always_export_symbols_F77=yes
12963 # Exported symbols can be pulled into shared objects from archives
12964 whole_archive_flag_spec_F77=' '
12965 archive_cmds_need_lc_F77=yes
12966 # This is similar to how AIX traditionally builds it's shared libraries.
12967 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'
12973 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)'
12974 hardcode_libdir_flag_spec_F77='-L$libdir'
12975 hardcode_minus_L_F77=yes
12976 # see comment about different semantics on the GNU ld section
12981 export_dynamic_flag_spec_F77=-rdynamic
12984 cygwin* | mingw* | pw32*)
12985 # When not using gcc, we currently assume that we are using
12986 # Microsoft Visual C++.
12987 # hardcode_libdir_flag_spec is actually meaningless, as there is
12988 # no search path for DLLs.
12989 hardcode_libdir_flag_spec_F77=' '
12990 allow_undefined_flag_F77=unsupported
12991 # Tell ltmain to make .lib files, not .a files.
12993 # Tell ltmain to make .dll files, not .so files.
12995 # FIXME: Setting linknames here is a bad hack.
12996 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12997 # The linker will automatically build a .lib file if we build a DLL.
12998 old_archive_From_new_cmds_F77='true'
12999 # FIXME: Should let the user specify the lib program.
13000 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13001 fix_srcfile_path='`cygpath -w "$srcfile"`'
13002 enable_shared_with_static_runtimes_F77=yes
13005 darwin* | rhapsody*)
13006 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13007 archive_cmds_need_lc_F77=no
13009 rhapsody* | darwin1.[012])
13010 allow_undefined_flag_F77='-undefined suppress'
13013 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13016 # FIXME: Relying on posixy $() will cause problems for
13017 # cross-compilation, but unfortunately the echo tests do not
13018 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13019 # `"' quotes if we put them in here... so don't!
13020 lt_int_apple_cc_single_mod=no
13021 output_verbose_link_cmd='echo'
13022 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13023 lt_int_apple_cc_single_mod=yes
13025 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13026 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13028 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'
13030 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13031 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13032 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13033 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}'
13035 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}'
13037 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}'
13038 hardcode_direct_F77=no
13039 hardcode_automatic_F77=yes
13040 hardcode_shlibpath_var_F77=unsupported
13041 whole_archive_flag_spec_F77='-all_load $convenience'
13042 link_all_deplibs_F77=yes
13047 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13048 hardcode_libdir_flag_spec_F77='-L$libdir'
13049 hardcode_shlibpath_var_F77=no
13056 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13057 # support. Future versions do this automatically, but an explicit c++rt0.o
13058 # does not break anything, and helps significantly (at the cost of a little
13061 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13062 hardcode_libdir_flag_spec_F77='-R$libdir'
13063 hardcode_direct_F77=yes
13064 hardcode_shlibpath_var_F77=no
13067 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13069 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13070 hardcode_direct_F77=yes
13071 hardcode_minus_L_F77=yes
13072 hardcode_shlibpath_var_F77=no
13075 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13077 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13078 hardcode_libdir_flag_spec_F77='-R$libdir'
13079 hardcode_direct_F77=yes
13080 hardcode_shlibpath_var_F77=no
13084 if test "$GCC" = yes; then
13085 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'
13087 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'
13089 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13090 hardcode_libdir_separator_F77=:
13091 hardcode_direct_F77=yes
13093 # hardcode_minus_L: Not really in the search PATH,
13094 # but as the default location of the library.
13095 hardcode_minus_L_F77=yes
13096 export_dynamic_flag_spec_F77='${wl}-E'
13100 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13101 case "$host_cpu" in
13103 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13106 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13110 case "$host_cpu" in
13112 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13115 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13119 if test "$with_gnu_ld" = no; then
13120 case "$host_cpu" in
13122 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13123 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13124 hardcode_libdir_separator_F77=:
13125 hardcode_direct_F77=no
13126 hardcode_shlibpath_var_F77=no
13129 hardcode_libdir_flag_spec_F77='-L$libdir'
13130 hardcode_direct_F77=no
13131 hardcode_shlibpath_var_F77=no
13133 # hardcode_minus_L: Not really in the search PATH,
13134 # but as the default location of the library.
13135 hardcode_minus_L_F77=yes
13138 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13139 hardcode_libdir_separator_F77=:
13140 hardcode_direct_F77=yes
13141 export_dynamic_flag_spec_F77='${wl}-E'
13143 # hardcode_minus_L: Not really in the search PATH,
13144 # but as the default location of the library.
13145 hardcode_minus_L_F77=yes
13151 irix5* | irix6* | nonstopux*)
13152 if test "$GCC" = yes; then
13153 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'
13155 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'
13156 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13158 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13159 hardcode_libdir_separator_F77=:
13160 link_all_deplibs_F77=yes
13164 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13165 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13167 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13169 hardcode_libdir_flag_spec_F77='-R$libdir'
13170 hardcode_direct_F77=yes
13171 hardcode_shlibpath_var_F77=no
13175 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13176 hardcode_direct_F77=yes
13177 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13178 hardcode_libdir_separator_F77=:
13179 hardcode_shlibpath_var_F77=no
13183 hardcode_direct_F77=yes
13184 hardcode_shlibpath_var_F77=no
13185 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13186 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13187 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13188 export_dynamic_flag_spec_F77='${wl}-E'
13191 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13192 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13193 hardcode_libdir_flag_spec_F77='-R$libdir'
13196 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13197 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13204 hardcode_libdir_flag_spec_F77='-L$libdir'
13205 hardcode_minus_L_F77=yes
13206 allow_undefined_flag_F77=unsupported
13207 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'
13208 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13212 if test "$GCC" = yes; then
13213 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13214 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'
13216 allow_undefined_flag_F77=' -expect_unresolved \*'
13217 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'
13219 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13220 hardcode_libdir_separator_F77=:
13223 osf4* | osf5*) # as osf3* with the addition of -msym flag
13224 if test "$GCC" = yes; then
13225 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13226 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'
13227 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13229 allow_undefined_flag_F77=' -expect_unresolved \*'
13230 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'
13231 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~
13232 $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'
13234 # Both c and cxx compiler support -rpath directly
13235 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13237 hardcode_libdir_separator_F77=:
13241 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13242 hardcode_shlibpath_var_F77=no
13243 export_dynamic_flag_spec_F77='${wl}-Bexport'
13244 runpath_var=LD_RUN_PATH
13245 hardcode_runpath_var=yes
13249 no_undefined_flag_F77=' -z text'
13250 if test "$GCC" = yes; then
13251 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13252 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13253 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13255 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13256 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13257 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13259 hardcode_libdir_flag_spec_F77='-R$libdir'
13260 hardcode_shlibpath_var_F77=no
13262 solaris2.[0-5] | solaris2.[0-5].*) ;;
13263 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13264 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13266 link_all_deplibs_F77=yes
13270 if test "x$host_vendor" = xsequent; then
13271 # Use $CC to link under sequent, because it throws in some extra .o
13272 # files that make .init and .fini sections work.
13273 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13275 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13277 hardcode_libdir_flag_spec_F77='-L$libdir'
13278 hardcode_direct_F77=yes
13279 hardcode_minus_L_F77=yes
13280 hardcode_shlibpath_var_F77=no
13284 case $host_vendor in
13286 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13287 hardcode_direct_F77=yes # is this really true???
13290 ## LD is ld it makes a PLAMLIB
13291 ## CC just makes a GrossModule.
13292 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13293 reload_cmds_F77='$CC -r -o $output$reload_objs'
13294 hardcode_direct_F77=no
13297 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13298 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13301 runpath_var='LD_RUN_PATH'
13302 hardcode_shlibpath_var_F77=no
13306 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13307 hardcode_shlibpath_var_F77=no
13308 export_dynamic_flag_spec_F77='-Bexport'
13312 if test -d /usr/nec; then
13313 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13314 hardcode_shlibpath_var_F77=no
13315 runpath_var=LD_RUN_PATH
13316 hardcode_runpath_var=yes
13322 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13323 hardcode_direct_F77=yes
13324 hardcode_minus_L_F77=no
13325 hardcode_shlibpath_var_F77=no
13326 hardcode_runpath_var=yes
13327 runpath_var=LD_RUN_PATH
13330 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13331 no_undefined_flag_F77='${wl}-z ${wl}text'
13332 if test "$GCC" = yes; then
13333 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13335 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13337 runpath_var='LD_RUN_PATH'
13338 hardcode_shlibpath_var_F77=no
13342 no_undefined_flag_F77=' -z text'
13343 # $CC -shared without GNU ld will not create a library from C++
13344 # object files and a static libstdc++, better avoid it by now
13345 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13346 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13347 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13348 hardcode_libdir_flag_spec_F77=
13349 hardcode_shlibpath_var_F77=no
13350 runpath_var='LD_RUN_PATH'
13354 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13355 hardcode_libdir_flag_spec_F77='-L$libdir'
13356 hardcode_shlibpath_var_F77=no
13365 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13366 echo "${ECHO_T}$ld_shlibs_F77" >&6
13367 test "$ld_shlibs_F77" = no && can_build_shared=no
13369 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13370 if test "$GCC" = yes; then
13371 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13375 # Do we need to explicitly link libc?
13377 case "x$archive_cmds_need_lc_F77" in
13379 # Assume -lc should be added
13380 archive_cmds_need_lc_F77=yes
13382 if test "$enable_shared" = yes && test "$GCC" = yes; then
13383 case $archive_cmds_F77 in
13385 # FIXME: we may have to deal with multi-command sequences.
13388 # Test whether the compiler implicitly links with -lc since on some
13389 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13390 # to ld, don't add -lc before -lgcc.
13391 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13392 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13394 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13397 (eval $ac_compile) 2>&5
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); } 2>conftest.err; then
13403 libobjs=conftest.$ac_objext
13405 wl=$lt_prog_compiler_wl_F77
13411 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13412 allow_undefined_flag_F77=
13413 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13414 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); }
13419 archive_cmds_need_lc_F77=no
13421 archive_cmds_need_lc_F77=yes
13423 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13425 cat conftest.err 1>&5
13428 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13429 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13436 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13437 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13438 hardcode_action_F77=
13439 if test -n "$hardcode_libdir_flag_spec_F77" || \
13440 test -n "$runpath_var F77" || \
13441 test "X$hardcode_automatic_F77"="Xyes" ; then
13443 # We can hardcode non-existant directories.
13444 if test "$hardcode_direct_F77" != no &&
13445 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13446 # have to relink, otherwise we might link with an installed library
13447 # when we should be linking with a yet-to-be-installed one
13448 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13449 test "$hardcode_minus_L_F77" != no; then
13450 # Linking always hardcodes the temporary library directory.
13451 hardcode_action_F77=relink
13453 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13454 hardcode_action_F77=immediate
13457 # We cannot hardcode anything, or else we can only hardcode existing
13459 hardcode_action_F77=unsupported
13461 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13462 echo "${ECHO_T}$hardcode_action_F77" >&6
13464 if test "$hardcode_action_F77" = relink; then
13465 # Fast installation is not supported
13466 enable_fast_install=no
13467 elif test "$shlibpath_overrides_runpath" = yes ||
13468 test "$enable_shared" = no; then
13469 # Fast installation is not necessary
13470 enable_fast_install=needless
13475 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13476 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13477 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13478 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13479 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13480 echo "$as_me:$LINENO: result: yes" >&5
13481 echo "${ECHO_T}yes" >&6
13483 # FIXME - insert some real tests, host_os isn't really good enough
13486 if test -n "$STRIP" ; then
13487 striplib="$STRIP -x"
13488 echo "$as_me:$LINENO: result: yes" >&5
13489 echo "${ECHO_T}yes" >&6
13491 echo "$as_me:$LINENO: result: no" >&5
13492 echo "${ECHO_T}no" >&6
13496 echo "$as_me:$LINENO: result: no" >&5
13497 echo "${ECHO_T}no" >&6
13502 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13503 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13504 library_names_spec=
13505 libname_spec='lib$name'
13509 postuninstall_cmds=
13513 shlibpath_overrides_runpath=unknown
13515 dynamic_linker="$host_os ld.so"
13516 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13517 if test "$GCC" = yes; then
13518 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13519 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13520 # if the path contains ";" then we assume it to be the separator
13521 # otherwise default to the standard path separator (i.e. ":") - it is
13522 # assumed that no part of a normal pathname contains ";" but that should
13523 # okay in the real world where ";" in dirpaths is itself problematic.
13524 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13526 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13529 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13531 need_lib_prefix=unknown
13532 hardcode_into_libs=no
13534 # when you set need_version to no, make sure it does not cause -set_version
13535 # flags to be left without arguments
13536 need_version=unknown
13541 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13542 shlibpath_var=LIBPATH
13544 # AIX 3 has no versioning support, so we append a major version to the name.
13545 soname_spec='${libname}${release}${shared_ext}$major'
13552 hardcode_into_libs=yes
13553 if test "$host_cpu" = ia64; then
13554 # AIX 5 supports IA64
13555 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13556 shlibpath_var=LD_LIBRARY_PATH
13558 # With GCC up to 2.95.x, collect2 would create an import file
13559 # for dependence libraries. The import file would start with
13560 # the line `#! .'. This would cause the generated library to
13561 # depend on `.', always an invalid library. This was fixed in
13562 # development snapshots of GCC prior to 3.0.
13564 aix4 | aix4.[01] | aix4.[01].*)
13565 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13567 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13570 can_build_shared=no
13574 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13575 # soname into executable. Probably we can add versioning support to
13576 # collect2, so additional links can be useful in future.
13577 if test "$aix_use_runtimelinking" = yes; then
13578 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13579 # instead of lib<name>.a to let people know that these are not
13580 # typical AIX shared libraries.
13581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13583 # We preserve .a as extension for shared libraries through AIX4.2
13584 # and later when we are not doing run time linking.
13585 library_names_spec='${libname}${release}.a $libname.a'
13586 soname_spec='${libname}${release}${shared_ext}$major'
13588 shlibpath_var=LIBPATH
13593 library_names_spec='$libname.ixlibrary $libname.a'
13594 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13595 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'
13599 library_names_spec='${libname}${shared_ext}'
13600 dynamic_linker="$host_os ld.so"
13601 shlibpath_var=LIBRARY_PATH
13607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13608 soname_spec='${libname}${release}${shared_ext}$major'
13609 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13610 shlibpath_var=LD_LIBRARY_PATH
13611 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13612 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13613 # the default ld.so.conf also contains /usr/contrib/lib and
13614 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13615 # libtool to hard-code these into programs
13618 cygwin* | mingw* | pw32*)
13619 version_type=windows
13624 case $GCC,$host_os in
13625 yes,cygwin* | yes,mingw* | yes,pw32*)
13626 library_names_spec='$libname.dll.a'
13627 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13628 postinstall_cmds='base_file=`basename \${file}`~
13629 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13630 dldir=$destdir/`dirname \$dlpath`~
13631 test -d \$dldir || mkdir -p \$dldir~
13632 $install_prog $dir/$dlname \$dldir/$dlname'
13633 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13634 dlpath=$dir/\$dldll~
13636 shlibpath_overrides_runpath=yes
13640 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13641 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13642 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13645 # MinGW DLLs use traditional 'lib' prefix
13646 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13647 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13648 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13649 # It is most probably a Windows format PATH printed by
13650 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13651 # path with ; separators, and with drive letters. We can handle the
13652 # drive letters (cygwin fileutils understands them), so leave them,
13653 # especially as we might pass files found there to a mingw objdump,
13654 # which wouldn't understand a cygwinified path. Ahh.
13655 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13657 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13661 # pw32 DLLs use 'pw' prefix rather than 'lib'
13662 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13668 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13671 dynamic_linker='Win32 ld.exe'
13672 # FIXME: first we should search . and the directory the executable is in
13676 darwin* | rhapsody*)
13677 dynamic_linker="$host_os dyld"
13678 version_type=darwin
13681 # FIXME: Relying on posixy $() will cause problems for
13682 # cross-compilation, but unfortunately the echo tests do not
13683 # yet detect zsh echo's removal of \ escapes.
13684 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13685 soname_spec='${libname}${release}${major}$shared_ext'
13686 shlibpath_overrides_runpath=yes
13687 shlibpath_var=DYLD_LIBRARY_PATH
13688 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13689 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13690 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13691 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"`
13693 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13701 soname_spec='${libname}${release}${shared_ext}$major'
13702 shlibpath_var=LD_LIBRARY_PATH
13710 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13711 version_type=freebsd-$objformat
13712 case $version_type in
13714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13719 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13723 shlibpath_var=LD_LIBRARY_PATH
13726 shlibpath_overrides_runpath=yes
13728 freebsd3.01* | freebsdelf3.01*)
13729 shlibpath_overrides_runpath=yes
13730 hardcode_into_libs=yes
13733 shlibpath_overrides_runpath=no
13734 hardcode_into_libs=yes
13743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13744 soname_spec='${libname}${release}${shared_ext}$major'
13745 shlibpath_var=LD_LIBRARY_PATH
13746 hardcode_into_libs=yes
13749 hpux9* | hpux10* | hpux11*)
13750 # Give a soname corresponding to the major version so that dld.sl refuses to
13751 # link against other versions.
13755 case "$host_cpu" in
13758 hardcode_into_libs=yes
13759 dynamic_linker="$host_os dld.so"
13760 shlibpath_var=LD_LIBRARY_PATH
13761 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13763 soname_spec='${libname}${release}${shared_ext}$major'
13764 if test "X$HPUX_IA64_MODE" = X32; then
13765 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13767 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13769 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13773 hardcode_into_libs=yes
13774 dynamic_linker="$host_os dld.sl"
13775 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13776 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13778 soname_spec='${libname}${release}${shared_ext}$major'
13779 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13780 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13784 dynamic_linker="$host_os dld.sl"
13785 shlibpath_var=SHLIB_PATH
13786 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13788 soname_spec='${libname}${release}${shared_ext}$major'
13791 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13792 postinstall_cmds='chmod 555 $lib'
13795 irix5* | irix6* | nonstopux*)
13797 nonstopux*) version_type=nonstopux ;;
13799 if test "$lt_cv_prog_gnu_ld" = yes; then
13807 soname_spec='${libname}${release}${shared_ext}$major'
13808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13810 irix5* | nonstopux*)
13811 libsuff= shlibsuff=
13814 case $LD in # libtool.m4 will add one of these switches to LD
13815 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13816 libsuff= shlibsuff= libmagic=32-bit;;
13817 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13818 libsuff=32 shlibsuff=N32 libmagic=N32;;
13819 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13820 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13821 *) libsuff= shlibsuff= libmagic=never-match;;
13825 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13826 shlibpath_overrides_runpath=no
13827 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13828 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13829 hardcode_into_libs=yes
13832 # No shared lib support for Linux oldld, aout, or coff.
13833 linux*oldld* | linux*aout* | linux*coff*)
13837 # This must be Linux ELF.
13842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13843 soname_spec='${libname}${release}${shared_ext}$major'
13844 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13845 shlibpath_var=LD_LIBRARY_PATH
13846 shlibpath_overrides_runpath=no
13847 # This implies no fast_install, which is unacceptable.
13848 # Some rework will be needed to allow for fast_install
13849 # before this can be enabled.
13850 hardcode_into_libs=yes
13852 # We used to test for /lib/ld.so.1 and disable shared libraries on
13853 # powerpc, because MkLinux only supported shared libraries with the
13854 # GNU dynamic linker. Since this was broken with cross compilers,
13855 # most powerpc-linux boxes support dynamic linking these days and
13856 # people can always --disable-shared, the test was removed, and we
13857 # assume the GNU/Linux dynamic linker is in use.
13858 dynamic_linker='GNU/Linux ld.so'
13865 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13867 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13868 dynamic_linker='NetBSD (a.out) ld.so'
13870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
13871 soname_spec='${libname}${release}${shared_ext}$major'
13872 dynamic_linker='NetBSD ld.elf_so'
13874 shlibpath_var=LD_LIBRARY_PATH
13875 shlibpath_overrides_runpath=yes
13876 hardcode_into_libs=yes
13881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13882 shlibpath_var=LD_LIBRARY_PATH
13883 shlibpath_overrides_runpath=yes
13890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13891 soname_spec='${libname}${release}${shared_ext}$major'
13892 shlibpath_var=LD_LIBRARY_PATH
13893 shlibpath_overrides_runpath=yes
13900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13901 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13902 shlibpath_var=LD_LIBRARY_PATH
13903 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13905 openbsd2.[89] | openbsd2.[89].*)
13906 shlibpath_overrides_runpath=no
13909 shlibpath_overrides_runpath=yes
13913 shlibpath_overrides_runpath=yes
13918 libname_spec='$name'
13921 library_names_spec='$libname${shared_ext} $libname.a'
13922 dynamic_linker='OS/2 ld.exe'
13923 shlibpath_var=LIBPATH
13926 osf3* | osf4* | osf5*)
13930 soname_spec='${libname}${release}${shared_ext}$major'
13931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13932 shlibpath_var=LD_LIBRARY_PATH
13933 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13934 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13939 soname_spec='${libname}${release}${shared_ext}$major'
13940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13941 shlibpath_var=LD_LIBRARY_PATH
13948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13949 soname_spec='${libname}${release}${shared_ext}$major'
13950 shlibpath_var=LD_LIBRARY_PATH
13951 shlibpath_overrides_runpath=yes
13952 hardcode_into_libs=yes
13953 # ldd complains unless libraries are executable
13954 postinstall_cmds='chmod +x $lib'
13959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13960 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13961 shlibpath_var=LD_LIBRARY_PATH
13962 shlibpath_overrides_runpath=yes
13963 if test "$with_gnu_ld" = yes; then
13969 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13972 soname_spec='${libname}${release}${shared_ext}$major'
13973 shlibpath_var=LD_LIBRARY_PATH
13974 case $host_vendor in
13976 shlibpath_overrides_runpath=no
13978 export_dynamic_flag_spec='${wl}-Blargedynsym'
13979 runpath_var=LD_RUN_PATH
13987 shlibpath_overrides_runpath=no
13988 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13994 if test -d /usr/nec ;then
13996 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13997 soname_spec='$libname${shared_ext}.$major'
13998 shlibpath_var=LD_LIBRARY_PATH
14004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14005 soname_spec='${libname}${release}${shared_ext}$major'
14006 shlibpath_var=LD_LIBRARY_PATH
14013 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14014 echo "${ECHO_T}$dynamic_linker" >&6
14015 test "$dynamic_linker" = no && can_build_shared=no
14018 # The else clause should only fire when bootstrapping the
14019 # libtool distribution, otherwise you forgot to ship ltmain.sh
14020 # with your package, and you will get complaints that there are
14021 # no rules to generate ltmain.sh.
14022 if test -f "$ltmain"; then
14023 # See if we are running on zsh, and set the options which allow our commands through
14024 # without removal of \ escapes.
14025 if test -n "${ZSH_VERSION+set}" ; then
14026 setopt NO_GLOB_SUBST
14028 # Now quote all the things that may contain metacharacters while being
14029 # careful not to overquote the AC_SUBSTed values. We take copies of the
14030 # variables and quote the copies for generation of the libtool script.
14031 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14032 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14033 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14034 deplibs_check_method reload_flag reload_cmds need_locks \
14035 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14036 lt_cv_sys_global_symbol_to_c_name_address \
14037 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14038 old_postinstall_cmds old_postuninstall_cmds \
14042 lt_prog_compiler_wl_F77 \
14043 lt_prog_compiler_pic_F77 \
14044 lt_prog_compiler_static_F77 \
14045 lt_prog_compiler_no_builtin_flag_F77 \
14046 export_dynamic_flag_spec_F77 \
14047 thread_safe_flag_spec_F77 \
14048 whole_archive_flag_spec_F77 \
14049 enable_shared_with_static_runtimes_F77 \
14050 old_archive_cmds_F77 \
14051 old_archive_from_new_cmds_F77 \
14052 predep_objects_F77 \
14053 postdep_objects_F77 \
14056 compiler_lib_search_path_F77 \
14058 archive_expsym_cmds_F77 \
14059 postinstall_cmds_F77 \
14060 postuninstall_cmds_F77 \
14061 old_archive_from_expsyms_cmds_F77 \
14062 allow_undefined_flag_F77 \
14063 no_undefined_flag_F77 \
14064 export_symbols_cmds_F77 \
14065 hardcode_libdir_flag_spec_F77 \
14066 hardcode_libdir_flag_spec_ld_F77 \
14067 hardcode_libdir_separator_F77 \
14068 hardcode_automatic_F77 \
14070 module_expsym_cmds_F77 \
14071 lt_cv_prog_compiler_c_o_F77 \
14072 exclude_expsyms_F77 \
14073 include_expsyms_F77; do
14076 old_archive_cmds_F77 | \
14077 old_archive_from_new_cmds_F77 | \
14078 archive_cmds_F77 | \
14079 archive_expsym_cmds_F77 | \
14080 module_cmds_F77 | \
14081 module_expsym_cmds_F77 | \
14082 old_archive_from_expsyms_cmds_F77 | \
14083 export_symbols_cmds_F77 | \
14084 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14085 postinstall_cmds | postuninstall_cmds | \
14086 old_postinstall_cmds | old_postuninstall_cmds | \
14087 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14088 # Double-quote double-evaled strings.
14089 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14092 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14098 *'\$0 --fallback-echo"')
14099 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14105 cat <<__EOF__ >> "$cfgfile"
14106 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14108 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14110 # Shell to use when invoking shell scripts.
14113 # Whether or not to build shared libraries.
14114 build_libtool_libs=$enable_shared
14116 # Whether or not to build static libraries.
14117 build_old_libs=$enable_static
14119 # Whether or not to add -lc for building shared libraries.
14120 build_libtool_need_lc=$archive_cmds_need_lc_F77
14122 # Whether or not to disallow shared libs when runtime libs are static
14123 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14125 # Whether or not to optimize for fast installation.
14126 fast_install=$enable_fast_install
14129 host_alias=$host_alias
14132 # An echo program that does not interpret backslashes.
14137 AR_FLAGS=$lt_AR_FLAGS
14142 # A language-specific compiler.
14143 CC=$lt_compiler_F77
14145 # Is the compiler the GNU C compiler?
14151 # The linker used to build libraries.
14154 # Whether we need hard or soft links.
14157 # A BSD-compatible nm program.
14160 # A symbol stripping program
14163 # Used to examine libraries when file_magic_cmd begins "file"
14164 MAGIC_CMD=$MAGIC_CMD
14166 # Used on cygwin: DLL creation program.
14169 # Used on cygwin: object dumper.
14172 # Used on cygwin: assembler.
14175 # The name of the directory that contains temporary libtool files.
14178 # How to create reloadable object files.
14179 reload_flag=$lt_reload_flag
14180 reload_cmds=$lt_reload_cmds
14182 # How to pass a linker flag through the compiler.
14183 wl=$lt_lt_prog_compiler_wl_F77
14185 # Object file suffix (normally "o").
14186 objext="$ac_objext"
14188 # Old archive suffix (normally "a").
14191 # Shared library suffix (normally ".so").
14194 # Executable file suffix (normally "").
14197 # Additional compiler flags for building library objects.
14198 pic_flag=$lt_lt_prog_compiler_pic_F77
14201 # What is the maximum length of a command?
14202 max_cmd_len=$lt_cv_sys_max_cmd_len
14204 # Does compiler simultaneously support -c and -o options?
14205 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14207 # Must we lock files when doing compilation ?
14208 need_locks=$lt_need_locks
14210 # Do we need the lib prefix for modules?
14211 need_lib_prefix=$need_lib_prefix
14213 # Do we need a version for libraries?
14214 need_version=$need_version
14216 # Whether dlopen is supported.
14217 dlopen_support=$enable_dlopen
14219 # Whether dlopen of programs is supported.
14220 dlopen_self=$enable_dlopen_self
14222 # Whether dlopen of statically linked programs is supported.
14223 dlopen_self_static=$enable_dlopen_self_static
14225 # Compiler flag to prevent dynamic linking.
14226 link_static_flag=$lt_lt_prog_compiler_static_F77
14228 # Compiler flag to turn off builtin functions.
14229 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14231 # Compiler flag to allow reflexive dlopens.
14232 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14234 # Compiler flag to generate shared objects directly from archives.
14235 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14237 # Compiler flag to generate thread-safe objects.
14238 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14240 # Library versioning type.
14241 version_type=$version_type
14243 # Format of library name prefix.
14244 libname_spec=$lt_libname_spec
14246 # List of archive names. First name is the real one, the rest are links.
14247 # The last name is the one that the linker finds with -lNAME.
14248 library_names_spec=$lt_library_names_spec
14250 # The coded name of the library, if different from the real name.
14251 soname_spec=$lt_soname_spec
14253 # Commands used to build and install an old-style archive.
14255 old_archive_cmds=$lt_old_archive_cmds_F77
14256 old_postinstall_cmds=$lt_old_postinstall_cmds
14257 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14259 # Create an old-style archive from a shared archive.
14260 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14262 # Create a temporary old-style archive to link instead of a shared archive.
14263 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14265 # Commands used to build and install a shared archive.
14266 archive_cmds=$lt_archive_cmds_F77
14267 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14268 postinstall_cmds=$lt_postinstall_cmds
14269 postuninstall_cmds=$lt_postuninstall_cmds
14271 # Commands used to build a loadable module (assumed same as above if empty)
14272 module_cmds=$lt_module_cmds_F77
14273 module_expsym_cmds=$lt_module_expsym_cmds_F77
14275 # Commands to strip libraries.
14276 old_striplib=$lt_old_striplib
14277 striplib=$lt_striplib
14279 # Dependencies to place before the objects being linked to create a
14281 predep_objects=$lt_predep_objects_F77
14283 # Dependencies to place after the objects being linked to create a
14285 postdep_objects=$lt_postdep_objects_F77
14287 # Dependencies to place before the objects being linked to create a
14289 predeps=$lt_predeps_F77
14291 # Dependencies to place after the objects being linked to create a
14293 postdeps=$lt_postdeps_F77
14295 # The library search path used internally by the compiler when linking
14296 # a shared library.
14297 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14299 # Method to check whether dependent libraries are shared objects.
14300 deplibs_check_method=$lt_deplibs_check_method
14302 # Command to use when deplibs_check_method == file_magic.
14303 file_magic_cmd=$lt_file_magic_cmd
14305 # Flag that allows shared libraries with undefined symbols to be built.
14306 allow_undefined_flag=$lt_allow_undefined_flag_F77
14308 # Flag that forces no undefined symbols.
14309 no_undefined_flag=$lt_no_undefined_flag_F77
14311 # Commands used to finish a libtool library installation in a directory.
14312 finish_cmds=$lt_finish_cmds
14314 # Same as above, but a single script fragment to be evaled but not shown.
14315 finish_eval=$lt_finish_eval
14317 # Take the output of nm and produce a listing of raw symbols and C names.
14318 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14320 # Transform the output of nm in a proper C declaration
14321 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14323 # Transform the output of nm in a C name address pair
14324 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14326 # This is the shared library runtime path variable.
14327 runpath_var=$runpath_var
14329 # This is the shared library path variable.
14330 shlibpath_var=$shlibpath_var
14332 # Is shlibpath searched before the hard-coded library search path?
14333 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14335 # How to hardcode a shared library path into an executable.
14336 hardcode_action=$hardcode_action_F77
14338 # Whether we should hardcode library paths into libraries.
14339 hardcode_into_libs=$hardcode_into_libs
14341 # Flag to hardcode \$libdir into a binary during linking.
14342 # This must work even if \$libdir does not exist.
14343 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14345 # If ld is used when linking, flag to hardcode \$libdir into
14346 # a binary during linking. This must work even if \$libdir does
14348 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14350 # Whether we need a single -rpath flag with a separated argument.
14351 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14353 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14354 # resulting binary.
14355 hardcode_direct=$hardcode_direct_F77
14357 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14358 # resulting binary.
14359 hardcode_minus_L=$hardcode_minus_L_F77
14361 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14362 # the resulting binary.
14363 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14365 # Set to yes if building a shared library automatically hardcodes DIR into the library
14366 # and all subsequent libraries and executables linked against it.
14367 hardcode_automatic=$hardcode_automatic_F77
14369 # Variables whose values should be saved in libtool wrapper scripts and
14370 # restored at relink time.
14371 variables_saved_for_relink="$variables_saved_for_relink"
14373 # Whether libtool must link a program against all its dependency libraries.
14374 link_all_deplibs=$link_all_deplibs_F77
14376 # Compile-time system search path for libraries
14377 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14379 # Run-time system search path for libraries
14380 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14382 # Fix the shell variable \$srcfile for the compiler.
14383 fix_srcfile_path="$fix_srcfile_path_F77"
14385 # Set to yes if exported symbols are required.
14386 always_export_symbols=$always_export_symbols_F77
14388 # The commands to list exported symbols.
14389 export_symbols_cmds=$lt_export_symbols_cmds_F77
14391 # The commands to extract the exported symbol list from a shared archive.
14392 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14394 # Symbols that should not be listed in the preloaded symbols.
14395 exclude_expsyms=$lt_exclude_expsyms_F77
14397 # Symbols that must always be exported.
14398 include_expsyms=$lt_include_expsyms_F77
14400 # ### END LIBTOOL TAG CONFIG: $tagname
14406 # If there is no Makefile yet, we rely on a make rule to execute
14407 # `config.status --recheck' to rerun these tests and create the
14408 # libtool script then.
14409 test -f Makefile && make "$ltmain"
14414 ac_cpp='$CPP $CPPFLAGS'
14415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14427 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14431 # Source file extension for Java test sources.
14434 # Object file extension for compiled Java test sources.
14438 # Code to be used in simple compile tests
14439 lt_simple_compile_test_code="class foo {}\n"
14441 # Code to be used in simple link tests
14442 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14444 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14446 # If no C compiler was specified, use CC.
14449 # Allow CC to be a program name with arguments.
14453 # Allow CC to be a program name with arguments.
14459 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14460 archive_cmds_need_lc_GCJ=no
14463 ## There is no encapsulation within the following macros, do not change
14464 ## the running order or otherwise move them around unless you know exactly
14465 ## what you are doing...
14467 lt_prog_compiler_no_builtin_flag_GCJ=
14469 if test "$GCC" = yes; then
14470 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14472 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14473 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14474 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14475 echo $ECHO_N "(cached) $ECHO_C" >&6
14477 lt_cv_prog_compiler_rtti_exceptions=no
14478 ac_outfile=conftest.$ac_objext
14479 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14480 lt_compiler_flag="-fno-rtti -fno-exceptions"
14481 # Insert the option either (1) after the last *FLAGS variable, or
14482 # (2) before a word containing "conftest.", or (3) at the end.
14483 # Note that $ac_compile itself does not contain backslashes and begins
14484 # with a dollar sign (not a hyphen), so the echo should work correctly.
14485 # The option is referenced via a variable to avoid confusing sed.
14486 lt_compile=`echo "$ac_compile" | $SED \
14487 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14488 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14489 -e 's:$: $lt_compiler_flag:'`
14490 (eval echo "\"\$as_me:14490: $lt_compile\"" >&5)
14491 (eval "$lt_compile" 2>conftest.err)
14493 cat conftest.err >&5
14494 echo "$as_me:14494: \$? = $ac_status" >&5
14495 if (exit $ac_status) && test -s "$ac_outfile"; then
14496 # The compiler can only warn and ignore the option if not recognized
14497 # So say no if there are warnings
14498 if test ! -s conftest.err; then
14499 lt_cv_prog_compiler_rtti_exceptions=yes
14505 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14506 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14508 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14509 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14516 lt_prog_compiler_wl_GCJ=
14517 lt_prog_compiler_pic_GCJ=
14518 lt_prog_compiler_static_GCJ=
14520 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14521 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14523 if test "$GCC" = yes; then
14524 lt_prog_compiler_wl_GCJ='-Wl,'
14525 lt_prog_compiler_static_GCJ='-static'
14529 # All AIX code is PIC.
14530 if test "$host_cpu" = ia64; then
14531 # AIX 5 now supports IA64 processor
14532 lt_prog_compiler_static_GCJ='-Bstatic'
14537 # FIXME: we need at least 68020 code to build shared libraries, but
14538 # adding the `-m68020' flag to GCC prevents building anything better,
14540 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14543 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14544 # PIC is the default for these OSes.
14547 mingw* | pw32* | os2*)
14548 # This hack is so that the source file can tell whether it is being
14549 # built for inclusion in a dll (and should export symbols for example).
14550 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14553 darwin* | rhapsody*)
14554 # PIC is the default on this platform
14555 # Common symbols not allowed in MH_DYLIB files
14556 lt_prog_compiler_pic_GCJ='-fno-common'
14560 # Just because we use GCC doesn't mean we suddenly get shared libraries
14561 # on systems that don't support them.
14562 lt_prog_compiler_can_build_shared_GCJ=no
14567 if test -d /usr/nec; then
14568 lt_prog_compiler_pic_GCJ=-Kconform_pic
14573 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14574 # not for PA HP-UX.
14575 case "$host_cpu" in
14580 lt_prog_compiler_pic_GCJ='-fPIC'
14586 lt_prog_compiler_pic_GCJ='-fPIC'
14590 # PORTME Check for flag to pass linker flags through the system compiler.
14593 lt_prog_compiler_wl_GCJ='-Wl,'
14594 if test "$host_cpu" = ia64; then
14595 # AIX 5 now supports IA64 processor
14596 lt_prog_compiler_static_GCJ='-Bstatic'
14598 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14602 mingw* | pw32* | os2*)
14603 # This hack is so that the source file can tell whether it is being
14604 # built for inclusion in a dll (and should export symbols for example).
14605 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14608 hpux9* | hpux10* | hpux11*)
14609 lt_prog_compiler_wl_GCJ='-Wl,'
14610 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14611 # not for PA HP-UX.
14612 case "$host_cpu" in
14617 lt_prog_compiler_pic_GCJ='+Z'
14620 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14621 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14624 irix5* | irix6* | nonstopux*)
14625 lt_prog_compiler_wl_GCJ='-Wl,'
14626 # PIC (with -KPIC) is the default.
14627 lt_prog_compiler_static_GCJ='-non_shared'
14631 lt_prog_compiler_pic_GCJ='-KPIC'
14632 lt_prog_compiler_static_GCJ='-Bstatic'
14638 lt_prog_compiler_wl_GCJ='-Wl,'
14639 lt_prog_compiler_pic_GCJ='-KPIC'
14640 lt_prog_compiler_static_GCJ='-static'
14643 lt_prog_compiler_wl_GCJ='-Wl,'
14644 # All Alpha code is PIC.
14645 lt_prog_compiler_static_GCJ='-non_shared'
14650 osf3* | osf4* | osf5*)
14651 lt_prog_compiler_wl_GCJ='-Wl,'
14652 # All OSF/1 code is PIC.
14653 lt_prog_compiler_static_GCJ='-non_shared'
14657 lt_prog_compiler_pic_GCJ='-Kpic'
14658 lt_prog_compiler_static_GCJ='-dn'
14662 lt_prog_compiler_wl_GCJ='-Wl,'
14663 lt_prog_compiler_pic_GCJ='-KPIC'
14664 lt_prog_compiler_static_GCJ='-Bstatic'
14668 lt_prog_compiler_wl_GCJ='-Qoption ld '
14669 lt_prog_compiler_pic_GCJ='-PIC'
14670 lt_prog_compiler_static_GCJ='-Bstatic'
14673 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14674 lt_prog_compiler_wl_GCJ='-Wl,'
14675 lt_prog_compiler_pic_GCJ='-KPIC'
14676 lt_prog_compiler_static_GCJ='-Bstatic'
14680 if test -d /usr/nec ;then
14681 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14682 lt_prog_compiler_static_GCJ='-Bstatic'
14687 lt_prog_compiler_pic_GCJ='-pic'
14688 lt_prog_compiler_static_GCJ='-Bstatic'
14692 lt_prog_compiler_can_build_shared_GCJ=no
14697 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14698 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14701 # Check to make sure the PIC flag actually works.
14703 if test -n "$lt_prog_compiler_pic_GCJ"; then
14704 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14705 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14706 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14707 echo $ECHO_N "(cached) $ECHO_C" >&6
14709 lt_prog_compiler_pic_works_GCJ=no
14710 ac_outfile=conftest.$ac_objext
14711 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14712 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14713 # Insert the option either (1) after the last *FLAGS variable, or
14714 # (2) before a word containing "conftest.", or (3) at the end.
14715 # Note that $ac_compile itself does not contain backslashes and begins
14716 # with a dollar sign (not a hyphen), so the echo should work correctly.
14717 # The option is referenced via a variable to avoid confusing sed.
14718 lt_compile=`echo "$ac_compile" | $SED \
14719 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14720 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14721 -e 's:$: $lt_compiler_flag:'`
14722 (eval echo "\"\$as_me:14722: $lt_compile\"" >&5)
14723 (eval "$lt_compile" 2>conftest.err)
14725 cat conftest.err >&5
14726 echo "$as_me:14726: \$? = $ac_status" >&5
14727 if (exit $ac_status) && test -s "$ac_outfile"; then
14728 # The compiler can only warn and ignore the option if not recognized
14729 # So say no if there are warnings
14730 if test ! -s conftest.err; then
14731 lt_prog_compiler_pic_works_GCJ=yes
14737 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14738 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14740 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14741 case $lt_prog_compiler_pic_GCJ in
14743 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14746 lt_prog_compiler_pic_GCJ=
14747 lt_prog_compiler_can_build_shared_GCJ=no
14752 # For platforms which do not support PIC, -DPIC is meaningless:
14754 lt_prog_compiler_pic_GCJ=
14757 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14761 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14762 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14763 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14764 echo $ECHO_N "(cached) $ECHO_C" >&6
14766 lt_cv_prog_compiler_c_o_GCJ=no
14767 $rm -r conftest 2>/dev/null
14771 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14773 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14774 # that will create temporary files in the current directory regardless of
14775 # the output directory. Thus, making CWD read-only will cause this test
14776 # to fail, enabling locking or at least warning the user not to do parallel
14780 lt_compiler_flag="-o out/conftest2.$ac_objext"
14781 # Insert the option either (1) after the last *FLAGS variable, or
14782 # (2) before a word containing "conftest.", or (3) at the end.
14783 # Note that $ac_compile itself does not contain backslashes and begins
14784 # with a dollar sign (not a hyphen), so the echo should work correctly.
14785 lt_compile=`echo "$ac_compile" | $SED \
14786 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14787 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14788 -e 's:$: $lt_compiler_flag:'`
14789 (eval echo "\"\$as_me:14789: $lt_compile\"" >&5)
14790 (eval "$lt_compile" 2>out/conftest.err)
14792 cat out/conftest.err >&5
14793 echo "$as_me:14793: \$? = $ac_status" >&5
14794 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14796 # The compiler can only warn and ignore the option if not recognized
14797 # So say no if there are warnings
14798 if test ! -s out/conftest.err; then
14799 lt_cv_prog_compiler_c_o_GCJ=yes
14803 $rm conftest* out/*
14810 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
14811 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
14814 hard_links="nottested"
14815 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
14816 # do not overwrite the value of need_locks provided by the user
14817 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14818 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14821 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14823 ln conftest.a conftest.b 2>&5 || hard_links=no
14824 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14825 echo "$as_me:$LINENO: result: $hard_links" >&5
14826 echo "${ECHO_T}$hard_links" >&6
14827 if test "$hard_links" = no; then
14828 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14829 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14836 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14837 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14840 allow_undefined_flag_GCJ=
14841 enable_shared_with_static_runtimes_GCJ=no
14843 archive_expsym_cmds_GCJ=
14844 old_archive_From_new_cmds_GCJ=
14845 old_archive_from_expsyms_cmds_GCJ=
14846 export_dynamic_flag_spec_GCJ=
14847 whole_archive_flag_spec_GCJ=
14848 thread_safe_flag_spec_GCJ=
14849 hardcode_libdir_flag_spec_GCJ=
14850 hardcode_libdir_flag_spec_ld_GCJ=
14851 hardcode_libdir_separator_GCJ=
14852 hardcode_direct_GCJ=no
14853 hardcode_minus_L_GCJ=no
14854 hardcode_shlibpath_var_GCJ=unsupported
14855 link_all_deplibs_GCJ=unknown
14856 hardcode_automatic_GCJ=no
14858 module_expsym_cmds_GCJ=
14859 always_export_symbols_GCJ=no
14860 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14861 # include_expsyms should be a list of space-separated symbols to be *always*
14862 # included in the symbol list
14863 include_expsyms_GCJ=
14864 # exclude_expsyms can be an extended regexp of symbols to exclude
14865 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14866 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14867 # as well as any symbol that contains `d'.
14868 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
14869 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14870 # platforms (ab)use it in PIC code, but their linkers get confused if
14871 # the symbol is explicitly referenced. Since portable code cannot
14872 # rely on this symbol name, it's probably fine to never include it in
14873 # preloaded symbol tables.
14874 extract_expsyms_cmds=
14877 cygwin* | mingw* | pw32*)
14878 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14879 # When not using gcc, we currently assume that we are using
14880 # Microsoft Visual C++.
14881 if test "$GCC" != yes; then
14891 if test "$with_gnu_ld" = yes; then
14892 # If archive_cmds runs LD, not CC, wlarc should be empty
14895 # See if GNU ld supports shared libraries.
14897 aix3* | aix4* | aix5*)
14898 # On AIX/PPC, the GNU linker is very broken
14899 if test "$host_cpu" != ia64; then
14903 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14904 *** to be unable to reliably create shared libraries on AIX.
14905 *** Therefore, libtool is disabling shared libraries support. If you
14906 *** really care for shared libraries, you may want to modify your PATH
14907 *** so that a non-GNU linker is found, and then restart.
14914 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)'
14915 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14916 hardcode_minus_L_GCJ=yes
14918 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14919 # that the semantics of dynamic libraries on AmigaOS, at least up
14920 # to version 4, is to share data among multiple programs linked
14921 # with the same dynamic library. Since this doesn't match the
14922 # behavior of shared libraries on other platforms, we can't use
14928 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14929 allow_undefined_flag_GCJ=unsupported
14930 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14931 # support --undefined. This deserves some investigation. FIXME
14932 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14938 cygwin* | mingw* | pw32*)
14939 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
14940 # as there is no search path for DLLs.
14941 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14942 allow_undefined_flag_GCJ=unsupported
14943 always_export_symbols_GCJ=no
14944 enable_shared_with_static_runtimes_GCJ=yes
14945 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14947 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14948 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14949 # If the export-symbols file already is a .def file (1st line
14950 # is EXPORTS), use it as is; otherwise, prepend...
14951 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14952 cp $export_symbols $output_objdir/$soname.def;
14954 echo EXPORTS > $output_objdir/$soname.def;
14955 cat $export_symbols >> $output_objdir/$soname.def;
14957 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14964 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14965 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14968 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14969 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14974 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14978 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14979 *** create shared libraries on Solaris systems. Therefore, libtool
14980 *** is disabling shared libraries support. We urge you to upgrade GNU
14981 *** binutils to release 2.9.1 or newer. Another option is to modify
14982 *** your PATH or compiler configuration so that the native linker is
14983 *** used, and then restart.
14986 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14987 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14988 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14995 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14997 hardcode_direct_GCJ=yes
14998 hardcode_shlibpath_var_GCJ=no
15002 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15003 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15004 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15011 if test "$ld_shlibs_GCJ" = yes; then
15012 runpath_var=LD_RUN_PATH
15013 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15014 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15015 # ancient GNU ld didn't support --whole-archive et. al.
15016 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15017 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15019 whole_archive_flag_spec_GCJ=
15023 # PORTME fill in a description of your system's linker (not GNU ld)
15026 allow_undefined_flag_GCJ=unsupported
15027 always_export_symbols_GCJ=yes
15028 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'
15029 # Note: this linker hardcodes the directories in LIBPATH if there
15030 # are no directories specified by -L.
15031 hardcode_minus_L_GCJ=yes
15032 if test "$GCC" = yes && test -z "$link_static_flag"; then
15033 # Neither direct hardcoding nor static linking is supported with a
15035 hardcode_direct_GCJ=unsupported
15040 if test "$host_cpu" = ia64; then
15041 # On IA64, the linker does run time linking by default, so we don't
15042 # have to do anything special.
15043 aix_use_runtimelinking=no
15044 exp_sym_flag='-Bexport'
15047 # If we're using GNU nm, then we don't want the "-C" option.
15048 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15049 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15050 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'
15052 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'
15054 aix_use_runtimelinking=no
15056 # Test if we are trying to use run time linking or normal
15057 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15058 # need to do runtime linking.
15059 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15060 for ld_flag in $LDFLAGS; do
15061 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15062 aix_use_runtimelinking=yes
15068 exp_sym_flag='-bexport'
15069 no_entry_flag='-bnoentry'
15072 # When large executables or shared objects are built, AIX ld can
15073 # have problems creating the table of contents. If linking a library
15074 # or program results in "error TOC overflow" add -mminimal-toc to
15075 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15076 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15078 archive_cmds_GCJ=''
15079 hardcode_direct_GCJ=yes
15080 hardcode_libdir_separator_GCJ=':'
15081 link_all_deplibs_GCJ=yes
15083 if test "$GCC" = yes; then
15084 case $host_os in aix4.012|aix4.012.*)
15085 # We only want to do this on AIX 4.2 and lower, the check
15086 # below for broken collect2 doesn't work under 4.3+
15087 collect2name=`${CC} -print-prog-name=collect2`
15088 if test -f "$collect2name" && \
15089 strings "$collect2name" | grep resolve_lib_name >/dev/null
15091 # We have reworked collect2
15092 hardcode_direct_GCJ=yes
15094 # We have old collect2
15095 hardcode_direct_GCJ=unsupported
15096 # It fails to find uninstalled libraries when the uninstalled
15097 # path is not listed in the libpath. Setting hardcode_minus_L
15098 # to unsupported forces relinking
15099 hardcode_minus_L_GCJ=yes
15100 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15101 hardcode_libdir_separator_GCJ=
15104 shared_flag='-shared'
15107 if test "$host_cpu" = ia64; then
15108 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15109 # chokes on -Wl,-G. The following line is correct:
15112 if test "$aix_use_runtimelinking" = yes; then
15113 shared_flag='${wl}-G'
15115 shared_flag='${wl}-bM:SRE'
15120 # It seems that -bexpall does not export symbols beginning with
15121 # underscore (_), so it is better to generate a list of symbols to export.
15122 always_export_symbols_GCJ=yes
15123 if test "$aix_use_runtimelinking" = yes; then
15124 # Warning - without using the other runtime loading flags (-brtl),
15125 # -berok will link without error, but may produce a broken library.
15126 allow_undefined_flag_GCJ='-berok'
15127 # Determine the default libpath from the value encoded in an empty executable.
15128 cat >conftest.$ac_ext <<_ACEOF
15129 #line $LINENO "configure"
15132 cat confdefs.h >>conftest.$ac_ext
15133 cat >>conftest.$ac_ext <<_ACEOF
15134 /* end confdefs.h. */
15144 rm -f conftest.$ac_objext conftest$ac_exeext
15145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15146 (eval $ac_link) 2>&5
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); } &&
15150 { ac_try='test -s conftest$ac_exeext'
15151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15152 (eval $ac_try) 2>&5
15154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); }; }; then
15157 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15159 # Check for a 64-bit object if we didn't find anything.
15160 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; }
15163 echo "$as_me: failed program was:" >&5
15164 sed 's/^/| /' conftest.$ac_ext >&5
15167 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15168 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15170 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15171 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"
15173 if test "$host_cpu" = ia64; then
15174 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15175 allow_undefined_flag_GCJ="-z nodefs"
15176 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"
15178 # Determine the default libpath from the value encoded in an empty executable.
15179 cat >conftest.$ac_ext <<_ACEOF
15180 #line $LINENO "configure"
15183 cat confdefs.h >>conftest.$ac_ext
15184 cat >>conftest.$ac_ext <<_ACEOF
15185 /* end confdefs.h. */
15195 rm -f conftest.$ac_objext conftest$ac_exeext
15196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15197 (eval $ac_link) 2>&5
15199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200 (exit $ac_status); } &&
15201 { ac_try='test -s conftest$ac_exeext'
15202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15203 (eval $ac_try) 2>&5
15205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206 (exit $ac_status); }; }; then
15208 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15210 # Check for a 64-bit object if we didn't find anything.
15211 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; }
15214 echo "$as_me: failed program was:" >&5
15215 sed 's/^/| /' conftest.$ac_ext >&5
15218 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15219 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15221 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15222 # Warning - without using the other run time loading flags,
15223 # -berok will link without error, but may produce a broken library.
15224 no_undefined_flag_GCJ=' ${wl}-bernotok'
15225 allow_undefined_flag_GCJ=' ${wl}-berok'
15226 # -bexpall does not export symbols beginning with underscore (_)
15227 always_export_symbols_GCJ=yes
15228 # Exported symbols can be pulled into shared objects from archives
15229 whole_archive_flag_spec_GCJ=' '
15230 archive_cmds_need_lc_GCJ=yes
15231 # This is similar to how AIX traditionally builds it's shared libraries.
15232 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'
15238 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)'
15239 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15240 hardcode_minus_L_GCJ=yes
15241 # see comment about different semantics on the GNU ld section
15246 export_dynamic_flag_spec_GCJ=-rdynamic
15249 cygwin* | mingw* | pw32*)
15250 # When not using gcc, we currently assume that we are using
15251 # Microsoft Visual C++.
15252 # hardcode_libdir_flag_spec is actually meaningless, as there is
15253 # no search path for DLLs.
15254 hardcode_libdir_flag_spec_GCJ=' '
15255 allow_undefined_flag_GCJ=unsupported
15256 # Tell ltmain to make .lib files, not .a files.
15258 # Tell ltmain to make .dll files, not .so files.
15260 # FIXME: Setting linknames here is a bad hack.
15261 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15262 # The linker will automatically build a .lib file if we build a DLL.
15263 old_archive_From_new_cmds_GCJ='true'
15264 # FIXME: Should let the user specify the lib program.
15265 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15266 fix_srcfile_path='`cygpath -w "$srcfile"`'
15267 enable_shared_with_static_runtimes_GCJ=yes
15270 darwin* | rhapsody*)
15271 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15272 archive_cmds_need_lc_GCJ=no
15274 rhapsody* | darwin1.[012])
15275 allow_undefined_flag_GCJ='-undefined suppress'
15278 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15281 # FIXME: Relying on posixy $() will cause problems for
15282 # cross-compilation, but unfortunately the echo tests do not
15283 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15284 # `"' quotes if we put them in here... so don't!
15285 lt_int_apple_cc_single_mod=no
15286 output_verbose_link_cmd='echo'
15287 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15288 lt_int_apple_cc_single_mod=yes
15290 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15291 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15293 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'
15295 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15296 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15297 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15298 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}'
15300 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}'
15302 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}'
15303 hardcode_direct_GCJ=no
15304 hardcode_automatic_GCJ=yes
15305 hardcode_shlibpath_var_GCJ=unsupported
15306 whole_archive_flag_spec_GCJ='-all_load $convenience'
15307 link_all_deplibs_GCJ=yes
15312 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15313 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15314 hardcode_shlibpath_var_GCJ=no
15321 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15322 # support. Future versions do this automatically, but an explicit c++rt0.o
15323 # does not break anything, and helps significantly (at the cost of a little
15326 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15327 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15328 hardcode_direct_GCJ=yes
15329 hardcode_shlibpath_var_GCJ=no
15332 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15334 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15335 hardcode_direct_GCJ=yes
15336 hardcode_minus_L_GCJ=yes
15337 hardcode_shlibpath_var_GCJ=no
15340 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15342 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15343 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15344 hardcode_direct_GCJ=yes
15345 hardcode_shlibpath_var_GCJ=no
15349 if test "$GCC" = yes; then
15350 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'
15352 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'
15354 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15355 hardcode_libdir_separator_GCJ=:
15356 hardcode_direct_GCJ=yes
15358 # hardcode_minus_L: Not really in the search PATH,
15359 # but as the default location of the library.
15360 hardcode_minus_L_GCJ=yes
15361 export_dynamic_flag_spec_GCJ='${wl}-E'
15365 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15366 case "$host_cpu" in
15368 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15371 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15375 case "$host_cpu" in
15377 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15380 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15384 if test "$with_gnu_ld" = no; then
15385 case "$host_cpu" in
15387 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15388 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15389 hardcode_libdir_separator_GCJ=:
15390 hardcode_direct_GCJ=no
15391 hardcode_shlibpath_var_GCJ=no
15394 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15395 hardcode_direct_GCJ=no
15396 hardcode_shlibpath_var_GCJ=no
15398 # hardcode_minus_L: Not really in the search PATH,
15399 # but as the default location of the library.
15400 hardcode_minus_L_GCJ=yes
15403 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15404 hardcode_libdir_separator_GCJ=:
15405 hardcode_direct_GCJ=yes
15406 export_dynamic_flag_spec_GCJ='${wl}-E'
15408 # hardcode_minus_L: Not really in the search PATH,
15409 # but as the default location of the library.
15410 hardcode_minus_L_GCJ=yes
15416 irix5* | irix6* | nonstopux*)
15417 if test "$GCC" = yes; then
15418 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'
15420 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'
15421 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15423 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15424 hardcode_libdir_separator_GCJ=:
15425 link_all_deplibs_GCJ=yes
15429 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15430 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15432 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15434 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15435 hardcode_direct_GCJ=yes
15436 hardcode_shlibpath_var_GCJ=no
15440 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15441 hardcode_direct_GCJ=yes
15442 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15443 hardcode_libdir_separator_GCJ=:
15444 hardcode_shlibpath_var_GCJ=no
15448 hardcode_direct_GCJ=yes
15449 hardcode_shlibpath_var_GCJ=no
15450 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15451 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15452 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15453 export_dynamic_flag_spec_GCJ='${wl}-E'
15456 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15457 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15458 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15461 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15462 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15469 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15470 hardcode_minus_L_GCJ=yes
15471 allow_undefined_flag_GCJ=unsupported
15472 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'
15473 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15477 if test "$GCC" = yes; then
15478 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15479 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'
15481 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15482 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'
15484 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15485 hardcode_libdir_separator_GCJ=:
15488 osf4* | osf5*) # as osf3* with the addition of -msym flag
15489 if test "$GCC" = yes; then
15490 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15491 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'
15492 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15494 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15495 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'
15496 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~
15497 $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'
15499 # Both c and cxx compiler support -rpath directly
15500 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15502 hardcode_libdir_separator_GCJ=:
15506 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15507 hardcode_shlibpath_var_GCJ=no
15508 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15509 runpath_var=LD_RUN_PATH
15510 hardcode_runpath_var=yes
15514 no_undefined_flag_GCJ=' -z text'
15515 if test "$GCC" = yes; then
15516 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15517 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15518 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15520 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15521 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15522 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15524 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15525 hardcode_shlibpath_var_GCJ=no
15527 solaris2.[0-5] | solaris2.[0-5].*) ;;
15528 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15529 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15531 link_all_deplibs_GCJ=yes
15535 if test "x$host_vendor" = xsequent; then
15536 # Use $CC to link under sequent, because it throws in some extra .o
15537 # files that make .init and .fini sections work.
15538 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15540 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15542 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15543 hardcode_direct_GCJ=yes
15544 hardcode_minus_L_GCJ=yes
15545 hardcode_shlibpath_var_GCJ=no
15549 case $host_vendor in
15551 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15552 hardcode_direct_GCJ=yes # is this really true???
15555 ## LD is ld it makes a PLAMLIB
15556 ## CC just makes a GrossModule.
15557 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15558 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15559 hardcode_direct_GCJ=no
15562 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15563 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15566 runpath_var='LD_RUN_PATH'
15567 hardcode_shlibpath_var_GCJ=no
15571 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15572 hardcode_shlibpath_var_GCJ=no
15573 export_dynamic_flag_spec_GCJ='-Bexport'
15577 if test -d /usr/nec; then
15578 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15579 hardcode_shlibpath_var_GCJ=no
15580 runpath_var=LD_RUN_PATH
15581 hardcode_runpath_var=yes
15587 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15588 hardcode_direct_GCJ=yes
15589 hardcode_minus_L_GCJ=no
15590 hardcode_shlibpath_var_GCJ=no
15591 hardcode_runpath_var=yes
15592 runpath_var=LD_RUN_PATH
15595 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15596 no_undefined_flag_GCJ='${wl}-z ${wl}text'
15597 if test "$GCC" = yes; then
15598 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15600 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15602 runpath_var='LD_RUN_PATH'
15603 hardcode_shlibpath_var_GCJ=no
15607 no_undefined_flag_GCJ=' -z text'
15608 # $CC -shared without GNU ld will not create a library from C++
15609 # object files and a static libstdc++, better avoid it by now
15610 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15611 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15612 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15613 hardcode_libdir_flag_spec_GCJ=
15614 hardcode_shlibpath_var_GCJ=no
15615 runpath_var='LD_RUN_PATH'
15619 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15620 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15621 hardcode_shlibpath_var_GCJ=no
15630 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15631 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15632 test "$ld_shlibs_GCJ" = no && can_build_shared=no
15634 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15635 if test "$GCC" = yes; then
15636 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15640 # Do we need to explicitly link libc?
15642 case "x$archive_cmds_need_lc_GCJ" in
15644 # Assume -lc should be added
15645 archive_cmds_need_lc_GCJ=yes
15647 if test "$enable_shared" = yes && test "$GCC" = yes; then
15648 case $archive_cmds_GCJ in
15650 # FIXME: we may have to deal with multi-command sequences.
15653 # Test whether the compiler implicitly links with -lc since on some
15654 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15655 # to ld, don't add -lc before -lgcc.
15656 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15657 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15659 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15662 (eval $ac_compile) 2>&5
15664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 (exit $ac_status); } 2>conftest.err; then
15668 libobjs=conftest.$ac_objext
15670 wl=$lt_prog_compiler_wl_GCJ
15676 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15677 allow_undefined_flag_GCJ=
15678 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15679 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682 (exit $ac_status); }
15684 archive_cmds_need_lc_GCJ=no
15686 archive_cmds_need_lc_GCJ=yes
15688 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15690 cat conftest.err 1>&5
15693 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15694 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15701 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15702 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15703 hardcode_action_GCJ=
15704 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15705 test -n "$runpath_var GCJ" || \
15706 test "X$hardcode_automatic_GCJ"="Xyes" ; then
15708 # We can hardcode non-existant directories.
15709 if test "$hardcode_direct_GCJ" != no &&
15710 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15711 # have to relink, otherwise we might link with an installed library
15712 # when we should be linking with a yet-to-be-installed one
15713 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15714 test "$hardcode_minus_L_GCJ" != no; then
15715 # Linking always hardcodes the temporary library directory.
15716 hardcode_action_GCJ=relink
15718 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15719 hardcode_action_GCJ=immediate
15722 # We cannot hardcode anything, or else we can only hardcode existing
15724 hardcode_action_GCJ=unsupported
15726 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15727 echo "${ECHO_T}$hardcode_action_GCJ" >&6
15729 if test "$hardcode_action_GCJ" = relink; then
15730 # Fast installation is not supported
15731 enable_fast_install=no
15732 elif test "$shlibpath_overrides_runpath" = yes ||
15733 test "$enable_shared" = no; then
15734 # Fast installation is not necessary
15735 enable_fast_install=needless
15740 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15741 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15742 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15743 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15744 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15745 echo "$as_me:$LINENO: result: yes" >&5
15746 echo "${ECHO_T}yes" >&6
15748 # FIXME - insert some real tests, host_os isn't really good enough
15751 if test -n "$STRIP" ; then
15752 striplib="$STRIP -x"
15753 echo "$as_me:$LINENO: result: yes" >&5
15754 echo "${ECHO_T}yes" >&6
15756 echo "$as_me:$LINENO: result: no" >&5
15757 echo "${ECHO_T}no" >&6
15761 echo "$as_me:$LINENO: result: no" >&5
15762 echo "${ECHO_T}no" >&6
15767 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15768 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15769 library_names_spec=
15770 libname_spec='lib$name'
15774 postuninstall_cmds=
15778 shlibpath_overrides_runpath=unknown
15780 dynamic_linker="$host_os ld.so"
15781 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15782 if test "$GCC" = yes; then
15783 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15784 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15785 # if the path contains ";" then we assume it to be the separator
15786 # otherwise default to the standard path separator (i.e. ":") - it is
15787 # assumed that no part of a normal pathname contains ";" but that should
15788 # okay in the real world where ";" in dirpaths is itself problematic.
15789 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15791 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15794 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15796 need_lib_prefix=unknown
15797 hardcode_into_libs=no
15799 # when you set need_version to no, make sure it does not cause -set_version
15800 # flags to be left without arguments
15801 need_version=unknown
15806 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15807 shlibpath_var=LIBPATH
15809 # AIX 3 has no versioning support, so we append a major version to the name.
15810 soname_spec='${libname}${release}${shared_ext}$major'
15817 hardcode_into_libs=yes
15818 if test "$host_cpu" = ia64; then
15819 # AIX 5 supports IA64
15820 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15821 shlibpath_var=LD_LIBRARY_PATH
15823 # With GCC up to 2.95.x, collect2 would create an import file
15824 # for dependence libraries. The import file would start with
15825 # the line `#! .'. This would cause the generated library to
15826 # depend on `.', always an invalid library. This was fixed in
15827 # development snapshots of GCC prior to 3.0.
15829 aix4 | aix4.[01] | aix4.[01].*)
15830 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15832 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15835 can_build_shared=no
15839 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15840 # soname into executable. Probably we can add versioning support to
15841 # collect2, so additional links can be useful in future.
15842 if test "$aix_use_runtimelinking" = yes; then
15843 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15844 # instead of lib<name>.a to let people know that these are not
15845 # typical AIX shared libraries.
15846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15848 # We preserve .a as extension for shared libraries through AIX4.2
15849 # and later when we are not doing run time linking.
15850 library_names_spec='${libname}${release}.a $libname.a'
15851 soname_spec='${libname}${release}${shared_ext}$major'
15853 shlibpath_var=LIBPATH
15858 library_names_spec='$libname.ixlibrary $libname.a'
15859 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15860 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'
15864 library_names_spec='${libname}${shared_ext}'
15865 dynamic_linker="$host_os ld.so"
15866 shlibpath_var=LIBRARY_PATH
15872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15873 soname_spec='${libname}${release}${shared_ext}$major'
15874 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15875 shlibpath_var=LD_LIBRARY_PATH
15876 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15877 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15878 # the default ld.so.conf also contains /usr/contrib/lib and
15879 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15880 # libtool to hard-code these into programs
15883 cygwin* | mingw* | pw32*)
15884 version_type=windows
15889 case $GCC,$host_os in
15890 yes,cygwin* | yes,mingw* | yes,pw32*)
15891 library_names_spec='$libname.dll.a'
15892 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15893 postinstall_cmds='base_file=`basename \${file}`~
15894 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15895 dldir=$destdir/`dirname \$dlpath`~
15896 test -d \$dldir || mkdir -p \$dldir~
15897 $install_prog $dir/$dlname \$dldir/$dlname'
15898 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15899 dlpath=$dir/\$dldll~
15901 shlibpath_overrides_runpath=yes
15905 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15906 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15907 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
15910 # MinGW DLLs use traditional 'lib' prefix
15911 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15912 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15913 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15914 # It is most probably a Windows format PATH printed by
15915 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15916 # path with ; separators, and with drive letters. We can handle the
15917 # drive letters (cygwin fileutils understands them), so leave them,
15918 # especially as we might pass files found there to a mingw objdump,
15919 # which wouldn't understand a cygwinified path. Ahh.
15920 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15922 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15926 # pw32 DLLs use 'pw' prefix rather than 'lib'
15927 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15933 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15936 dynamic_linker='Win32 ld.exe'
15937 # FIXME: first we should search . and the directory the executable is in
15941 darwin* | rhapsody*)
15942 dynamic_linker="$host_os dyld"
15943 version_type=darwin
15946 # FIXME: Relying on posixy $() will cause problems for
15947 # cross-compilation, but unfortunately the echo tests do not
15948 # yet detect zsh echo's removal of \ escapes.
15949 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15950 soname_spec='${libname}${release}${major}$shared_ext'
15951 shlibpath_overrides_runpath=yes
15952 shlibpath_var=DYLD_LIBRARY_PATH
15953 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
15954 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15955 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15956 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"`
15958 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15966 soname_spec='${libname}${release}${shared_ext}$major'
15967 shlibpath_var=LD_LIBRARY_PATH
15975 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15976 version_type=freebsd-$objformat
15977 case $version_type in
15979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15984 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15988 shlibpath_var=LD_LIBRARY_PATH
15991 shlibpath_overrides_runpath=yes
15993 freebsd3.01* | freebsdelf3.01*)
15994 shlibpath_overrides_runpath=yes
15995 hardcode_into_libs=yes
15998 shlibpath_overrides_runpath=no
15999 hardcode_into_libs=yes
16008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16009 soname_spec='${libname}${release}${shared_ext}$major'
16010 shlibpath_var=LD_LIBRARY_PATH
16011 hardcode_into_libs=yes
16014 hpux9* | hpux10* | hpux11*)
16015 # Give a soname corresponding to the major version so that dld.sl refuses to
16016 # link against other versions.
16020 case "$host_cpu" in
16023 hardcode_into_libs=yes
16024 dynamic_linker="$host_os dld.so"
16025 shlibpath_var=LD_LIBRARY_PATH
16026 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16028 soname_spec='${libname}${release}${shared_ext}$major'
16029 if test "X$HPUX_IA64_MODE" = X32; then
16030 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16032 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16034 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16038 hardcode_into_libs=yes
16039 dynamic_linker="$host_os dld.sl"
16040 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16041 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16043 soname_spec='${libname}${release}${shared_ext}$major'
16044 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16045 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16049 dynamic_linker="$host_os dld.sl"
16050 shlibpath_var=SHLIB_PATH
16051 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16053 soname_spec='${libname}${release}${shared_ext}$major'
16056 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16057 postinstall_cmds='chmod 555 $lib'
16060 irix5* | irix6* | nonstopux*)
16062 nonstopux*) version_type=nonstopux ;;
16064 if test "$lt_cv_prog_gnu_ld" = yes; then
16072 soname_spec='${libname}${release}${shared_ext}$major'
16073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16075 irix5* | nonstopux*)
16076 libsuff= shlibsuff=
16079 case $LD in # libtool.m4 will add one of these switches to LD
16080 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16081 libsuff= shlibsuff= libmagic=32-bit;;
16082 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16083 libsuff=32 shlibsuff=N32 libmagic=N32;;
16084 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16085 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16086 *) libsuff= shlibsuff= libmagic=never-match;;
16090 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16091 shlibpath_overrides_runpath=no
16092 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16093 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16094 hardcode_into_libs=yes
16097 # No shared lib support for Linux oldld, aout, or coff.
16098 linux*oldld* | linux*aout* | linux*coff*)
16102 # This must be Linux ELF.
16107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16108 soname_spec='${libname}${release}${shared_ext}$major'
16109 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16110 shlibpath_var=LD_LIBRARY_PATH
16111 shlibpath_overrides_runpath=no
16112 # This implies no fast_install, which is unacceptable.
16113 # Some rework will be needed to allow for fast_install
16114 # before this can be enabled.
16115 hardcode_into_libs=yes
16117 # We used to test for /lib/ld.so.1 and disable shared libraries on
16118 # powerpc, because MkLinux only supported shared libraries with the
16119 # GNU dynamic linker. Since this was broken with cross compilers,
16120 # most powerpc-linux boxes support dynamic linking these days and
16121 # people can always --disable-shared, the test was removed, and we
16122 # assume the GNU/Linux dynamic linker is in use.
16123 dynamic_linker='GNU/Linux ld.so'
16130 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16132 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16133 dynamic_linker='NetBSD (a.out) ld.so'
16135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16136 soname_spec='${libname}${release}${shared_ext}$major'
16137 dynamic_linker='NetBSD ld.elf_so'
16139 shlibpath_var=LD_LIBRARY_PATH
16140 shlibpath_overrides_runpath=yes
16141 hardcode_into_libs=yes
16146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16147 shlibpath_var=LD_LIBRARY_PATH
16148 shlibpath_overrides_runpath=yes
16155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16156 soname_spec='${libname}${release}${shared_ext}$major'
16157 shlibpath_var=LD_LIBRARY_PATH
16158 shlibpath_overrides_runpath=yes
16165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16166 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16167 shlibpath_var=LD_LIBRARY_PATH
16168 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16170 openbsd2.[89] | openbsd2.[89].*)
16171 shlibpath_overrides_runpath=no
16174 shlibpath_overrides_runpath=yes
16178 shlibpath_overrides_runpath=yes
16183 libname_spec='$name'
16186 library_names_spec='$libname${shared_ext} $libname.a'
16187 dynamic_linker='OS/2 ld.exe'
16188 shlibpath_var=LIBPATH
16191 osf3* | osf4* | osf5*)
16195 soname_spec='${libname}${release}${shared_ext}$major'
16196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16197 shlibpath_var=LD_LIBRARY_PATH
16198 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16199 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16204 soname_spec='${libname}${release}${shared_ext}$major'
16205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16206 shlibpath_var=LD_LIBRARY_PATH
16213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16214 soname_spec='${libname}${release}${shared_ext}$major'
16215 shlibpath_var=LD_LIBRARY_PATH
16216 shlibpath_overrides_runpath=yes
16217 hardcode_into_libs=yes
16218 # ldd complains unless libraries are executable
16219 postinstall_cmds='chmod +x $lib'
16224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16225 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16226 shlibpath_var=LD_LIBRARY_PATH
16227 shlibpath_overrides_runpath=yes
16228 if test "$with_gnu_ld" = yes; then
16234 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16237 soname_spec='${libname}${release}${shared_ext}$major'
16238 shlibpath_var=LD_LIBRARY_PATH
16239 case $host_vendor in
16241 shlibpath_overrides_runpath=no
16243 export_dynamic_flag_spec='${wl}-Blargedynsym'
16244 runpath_var=LD_RUN_PATH
16252 shlibpath_overrides_runpath=no
16253 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16259 if test -d /usr/nec ;then
16261 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16262 soname_spec='$libname${shared_ext}.$major'
16263 shlibpath_var=LD_LIBRARY_PATH
16269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16270 soname_spec='${libname}${release}${shared_ext}$major'
16271 shlibpath_var=LD_LIBRARY_PATH
16278 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16279 echo "${ECHO_T}$dynamic_linker" >&6
16280 test "$dynamic_linker" = no && can_build_shared=no
16282 if test "x$enable_dlopen" != xyes; then
16283 enable_dlopen=unknown
16284 enable_dlopen_self=unknown
16285 enable_dlopen_self_static=unknown
16292 lt_cv_dlopen="load_add_on"
16294 lt_cv_dlopen_self=yes
16298 lt_cv_dlopen="LoadLibrary"
16303 lt_cv_dlopen="dlopen"
16308 # if libdl is installed we need to link against it
16309 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16310 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16311 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16312 echo $ECHO_N "(cached) $ECHO_C" >&6
16314 ac_check_lib_save_LIBS=$LIBS
16316 cat >conftest.$ac_ext <<_ACEOF
16317 #line $LINENO "configure"
16320 cat confdefs.h >>conftest.$ac_ext
16321 cat >>conftest.$ac_ext <<_ACEOF
16322 /* end confdefs.h. */
16324 /* Override any gcc2 internal prototype to avoid an error. */
16328 /* We use char because int might match the return type of a gcc2
16329 builtin and then its argument prototype would still apply. */
16339 rm -f conftest.$ac_objext conftest$ac_exeext
16340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16341 (eval $ac_link) 2>&5
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); } &&
16345 { ac_try='test -s conftest$ac_exeext'
16346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16347 (eval $ac_try) 2>&5
16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); }; }; then
16351 ac_cv_lib_dl_dlopen=yes
16353 echo "$as_me: failed program was:" >&5
16354 sed 's/^/| /' conftest.$ac_ext >&5
16356 ac_cv_lib_dl_dlopen=no
16358 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16359 LIBS=$ac_check_lib_save_LIBS
16361 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16362 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16363 if test $ac_cv_lib_dl_dlopen = yes; then
16364 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16367 lt_cv_dlopen="dyld"
16369 lt_cv_dlopen_self=yes
16376 echo "$as_me:$LINENO: checking for shl_load" >&5
16377 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16378 if test "${ac_cv_func_shl_load+set}" = set; then
16379 echo $ECHO_N "(cached) $ECHO_C" >&6
16381 cat >conftest.$ac_ext <<_ACEOF
16382 #line $LINENO "configure"
16385 cat confdefs.h >>conftest.$ac_ext
16386 cat >>conftest.$ac_ext <<_ACEOF
16387 /* end confdefs.h. */
16388 /* System header to define __stub macros and hopefully few prototypes,
16389 which can conflict with char shl_load (); below.
16390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16391 <limits.h> exists even on freestanding compilers. */
16393 # include <limits.h>
16395 # include <assert.h>
16397 /* Override any gcc2 internal prototype to avoid an error. */
16402 /* We use char because int might match the return type of a gcc2
16403 builtin and then its argument prototype would still apply. */
16405 /* The GNU C library defines this for functions which it implements
16406 to always fail with ENOSYS. Some functions are actually named
16407 something starting with __ and the normal name is an alias. */
16408 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16411 char (*f) () = shl_load;
16420 return f != shl_load;
16425 rm -f conftest.$ac_objext conftest$ac_exeext
16426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16427 (eval $ac_link) 2>&5
16429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430 (exit $ac_status); } &&
16431 { ac_try='test -s conftest$ac_exeext'
16432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16433 (eval $ac_try) 2>&5
16435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436 (exit $ac_status); }; }; then
16437 ac_cv_func_shl_load=yes
16439 echo "$as_me: failed program was:" >&5
16440 sed 's/^/| /' conftest.$ac_ext >&5
16442 ac_cv_func_shl_load=no
16444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16446 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16447 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16448 if test $ac_cv_func_shl_load = yes; then
16449 lt_cv_dlopen="shl_load"
16451 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16452 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16453 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16454 echo $ECHO_N "(cached) $ECHO_C" >&6
16456 ac_check_lib_save_LIBS=$LIBS
16458 cat >conftest.$ac_ext <<_ACEOF
16459 #line $LINENO "configure"
16462 cat confdefs.h >>conftest.$ac_ext
16463 cat >>conftest.$ac_ext <<_ACEOF
16464 /* end confdefs.h. */
16466 /* Override any gcc2 internal prototype to avoid an error. */
16470 /* We use char because int might match the return type of a gcc2
16471 builtin and then its argument prototype would still apply. */
16481 rm -f conftest.$ac_objext conftest$ac_exeext
16482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16483 (eval $ac_link) 2>&5
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); } &&
16487 { ac_try='test -s conftest$ac_exeext'
16488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16489 (eval $ac_try) 2>&5
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 (exit $ac_status); }; }; then
16493 ac_cv_lib_dld_shl_load=yes
16495 echo "$as_me: failed program was:" >&5
16496 sed 's/^/| /' conftest.$ac_ext >&5
16498 ac_cv_lib_dld_shl_load=no
16500 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16501 LIBS=$ac_check_lib_save_LIBS
16503 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16504 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16505 if test $ac_cv_lib_dld_shl_load = yes; then
16506 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16508 echo "$as_me:$LINENO: checking for dlopen" >&5
16509 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16510 if test "${ac_cv_func_dlopen+set}" = set; then
16511 echo $ECHO_N "(cached) $ECHO_C" >&6
16513 cat >conftest.$ac_ext <<_ACEOF
16514 #line $LINENO "configure"
16517 cat confdefs.h >>conftest.$ac_ext
16518 cat >>conftest.$ac_ext <<_ACEOF
16519 /* end confdefs.h. */
16520 /* System header to define __stub macros and hopefully few prototypes,
16521 which can conflict with char dlopen (); below.
16522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16523 <limits.h> exists even on freestanding compilers. */
16525 # include <limits.h>
16527 # include <assert.h>
16529 /* Override any gcc2 internal prototype to avoid an error. */
16534 /* We use char because int might match the return type of a gcc2
16535 builtin and then its argument prototype would still apply. */
16537 /* The GNU C library defines this for functions which it implements
16538 to always fail with ENOSYS. Some functions are actually named
16539 something starting with __ and the normal name is an alias. */
16540 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16543 char (*f) () = dlopen;
16552 return f != dlopen;
16557 rm -f conftest.$ac_objext conftest$ac_exeext
16558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16559 (eval $ac_link) 2>&5
16561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562 (exit $ac_status); } &&
16563 { ac_try='test -s conftest$ac_exeext'
16564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16565 (eval $ac_try) 2>&5
16567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568 (exit $ac_status); }; }; then
16569 ac_cv_func_dlopen=yes
16571 echo "$as_me: failed program was:" >&5
16572 sed 's/^/| /' conftest.$ac_ext >&5
16574 ac_cv_func_dlopen=no
16576 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16578 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16579 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16580 if test $ac_cv_func_dlopen = yes; then
16581 lt_cv_dlopen="dlopen"
16583 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16584 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16585 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16586 echo $ECHO_N "(cached) $ECHO_C" >&6
16588 ac_check_lib_save_LIBS=$LIBS
16590 cat >conftest.$ac_ext <<_ACEOF
16591 #line $LINENO "configure"
16594 cat confdefs.h >>conftest.$ac_ext
16595 cat >>conftest.$ac_ext <<_ACEOF
16596 /* end confdefs.h. */
16598 /* Override any gcc2 internal prototype to avoid an error. */
16602 /* We use char because int might match the return type of a gcc2
16603 builtin and then its argument prototype would still apply. */
16613 rm -f conftest.$ac_objext conftest$ac_exeext
16614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16615 (eval $ac_link) 2>&5
16617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618 (exit $ac_status); } &&
16619 { ac_try='test -s conftest$ac_exeext'
16620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16621 (eval $ac_try) 2>&5
16623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624 (exit $ac_status); }; }; then
16625 ac_cv_lib_dl_dlopen=yes
16627 echo "$as_me: failed program was:" >&5
16628 sed 's/^/| /' conftest.$ac_ext >&5
16630 ac_cv_lib_dl_dlopen=no
16632 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16633 LIBS=$ac_check_lib_save_LIBS
16635 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16636 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16637 if test $ac_cv_lib_dl_dlopen = yes; then
16638 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16640 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16641 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16642 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16643 echo $ECHO_N "(cached) $ECHO_C" >&6
16645 ac_check_lib_save_LIBS=$LIBS
16646 LIBS="-lsvld $LIBS"
16647 cat >conftest.$ac_ext <<_ACEOF
16648 #line $LINENO "configure"
16651 cat confdefs.h >>conftest.$ac_ext
16652 cat >>conftest.$ac_ext <<_ACEOF
16653 /* end confdefs.h. */
16655 /* Override any gcc2 internal prototype to avoid an error. */
16659 /* We use char because int might match the return type of a gcc2
16660 builtin and then its argument prototype would still apply. */
16670 rm -f conftest.$ac_objext conftest$ac_exeext
16671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16672 (eval $ac_link) 2>&5
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); } &&
16676 { ac_try='test -s conftest$ac_exeext'
16677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16678 (eval $ac_try) 2>&5
16680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681 (exit $ac_status); }; }; then
16682 ac_cv_lib_svld_dlopen=yes
16684 echo "$as_me: failed program was:" >&5
16685 sed 's/^/| /' conftest.$ac_ext >&5
16687 ac_cv_lib_svld_dlopen=no
16689 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16690 LIBS=$ac_check_lib_save_LIBS
16692 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16693 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16694 if test $ac_cv_lib_svld_dlopen = yes; then
16695 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16697 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16698 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16699 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16700 echo $ECHO_N "(cached) $ECHO_C" >&6
16702 ac_check_lib_save_LIBS=$LIBS
16704 cat >conftest.$ac_ext <<_ACEOF
16705 #line $LINENO "configure"
16708 cat confdefs.h >>conftest.$ac_ext
16709 cat >>conftest.$ac_ext <<_ACEOF
16710 /* end confdefs.h. */
16712 /* Override any gcc2 internal prototype to avoid an error. */
16716 /* We use char because int might match the return type of a gcc2
16717 builtin and then its argument prototype would still apply. */
16727 rm -f conftest.$ac_objext conftest$ac_exeext
16728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16729 (eval $ac_link) 2>&5
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); } &&
16733 { ac_try='test -s conftest$ac_exeext'
16734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16735 (eval $ac_try) 2>&5
16737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738 (exit $ac_status); }; }; then
16739 ac_cv_lib_dld_dld_link=yes
16741 echo "$as_me: failed program was:" >&5
16742 sed 's/^/| /' conftest.$ac_ext >&5
16744 ac_cv_lib_dld_dld_link=no
16746 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16747 LIBS=$ac_check_lib_save_LIBS
16749 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16750 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16751 if test $ac_cv_lib_dld_dld_link = yes; then
16752 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16773 if test "x$lt_cv_dlopen" != xno; then
16779 case $lt_cv_dlopen in
16781 save_CPPFLAGS="$CPPFLAGS"
16782 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16784 save_LDFLAGS="$LDFLAGS"
16785 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16788 LIBS="$lt_cv_dlopen_libs $LIBS"
16790 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16791 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16792 if test "${lt_cv_dlopen_self+set}" = set; then
16793 echo $ECHO_N "(cached) $ECHO_C" >&6
16795 if test "$cross_compiling" = yes; then :
16796 lt_cv_dlopen_self=cross
16798 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16799 lt_status=$lt_dlunknown
16800 cat > conftest.$ac_ext <<EOF
16801 #line 16801 "configure"
16802 #include "confdefs.h"
16811 # define LT_DLGLOBAL RTLD_GLOBAL
16814 # define LT_DLGLOBAL DL_GLOBAL
16816 # define LT_DLGLOBAL 0
16820 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16821 find out it does not work in some platform. */
16822 #ifndef LT_DLLAZY_OR_NOW
16824 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16827 # define LT_DLLAZY_OR_NOW DL_LAZY
16830 # define LT_DLLAZY_OR_NOW RTLD_NOW
16833 # define LT_DLLAZY_OR_NOW DL_NOW
16835 # define LT_DLLAZY_OR_NOW 0
16843 extern "C" void exit (int);
16846 void fnord() { int i=42;}
16849 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16850 int status = $lt_dlunknown;
16854 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16855 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16856 /* dlclose (self); */
16862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16863 (eval $ac_link) 2>&5
16865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16867 (./conftest; exit; ) 2>/dev/null
16869 case x$lt_status in
16870 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16871 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16872 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
16875 # compilation failed
16876 lt_cv_dlopen_self=no
16883 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16884 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
16886 if test "x$lt_cv_dlopen_self" = xyes; then
16887 LDFLAGS="$LDFLAGS $link_static_flag"
16888 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16889 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
16890 if test "${lt_cv_dlopen_self_static+set}" = set; then
16891 echo $ECHO_N "(cached) $ECHO_C" >&6
16893 if test "$cross_compiling" = yes; then :
16894 lt_cv_dlopen_self_static=cross
16896 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16897 lt_status=$lt_dlunknown
16898 cat > conftest.$ac_ext <<EOF
16899 #line 16899 "configure"
16900 #include "confdefs.h"
16909 # define LT_DLGLOBAL RTLD_GLOBAL
16912 # define LT_DLGLOBAL DL_GLOBAL
16914 # define LT_DLGLOBAL 0
16918 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16919 find out it does not work in some platform. */
16920 #ifndef LT_DLLAZY_OR_NOW
16922 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16925 # define LT_DLLAZY_OR_NOW DL_LAZY
16928 # define LT_DLLAZY_OR_NOW RTLD_NOW
16931 # define LT_DLLAZY_OR_NOW DL_NOW
16933 # define LT_DLLAZY_OR_NOW 0
16941 extern "C" void exit (int);
16944 void fnord() { int i=42;}
16947 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16948 int status = $lt_dlunknown;
16952 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16953 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16954 /* dlclose (self); */
16960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16961 (eval $ac_link) 2>&5
16963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16965 (./conftest; exit; ) 2>/dev/null
16967 case x$lt_status in
16968 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16969 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16970 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
16973 # compilation failed
16974 lt_cv_dlopen_self_static=no
16981 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16982 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
16985 CPPFLAGS="$save_CPPFLAGS"
16986 LDFLAGS="$save_LDFLAGS"
16991 case $lt_cv_dlopen_self in
16992 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16993 *) enable_dlopen_self=unknown ;;
16996 case $lt_cv_dlopen_self_static in
16997 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16998 *) enable_dlopen_self_static=unknown ;;
17003 # The else clause should only fire when bootstrapping the
17004 # libtool distribution, otherwise you forgot to ship ltmain.sh
17005 # with your package, and you will get complaints that there are
17006 # no rules to generate ltmain.sh.
17007 if test -f "$ltmain"; then
17008 # See if we are running on zsh, and set the options which allow our commands through
17009 # without removal of \ escapes.
17010 if test -n "${ZSH_VERSION+set}" ; then
17011 setopt NO_GLOB_SUBST
17013 # Now quote all the things that may contain metacharacters while being
17014 # careful not to overquote the AC_SUBSTed values. We take copies of the
17015 # variables and quote the copies for generation of the libtool script.
17016 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17017 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17018 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17019 deplibs_check_method reload_flag reload_cmds need_locks \
17020 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17021 lt_cv_sys_global_symbol_to_c_name_address \
17022 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17023 old_postinstall_cmds old_postuninstall_cmds \
17027 lt_prog_compiler_wl_GCJ \
17028 lt_prog_compiler_pic_GCJ \
17029 lt_prog_compiler_static_GCJ \
17030 lt_prog_compiler_no_builtin_flag_GCJ \
17031 export_dynamic_flag_spec_GCJ \
17032 thread_safe_flag_spec_GCJ \
17033 whole_archive_flag_spec_GCJ \
17034 enable_shared_with_static_runtimes_GCJ \
17035 old_archive_cmds_GCJ \
17036 old_archive_from_new_cmds_GCJ \
17037 predep_objects_GCJ \
17038 postdep_objects_GCJ \
17041 compiler_lib_search_path_GCJ \
17043 archive_expsym_cmds_GCJ \
17044 postinstall_cmds_GCJ \
17045 postuninstall_cmds_GCJ \
17046 old_archive_from_expsyms_cmds_GCJ \
17047 allow_undefined_flag_GCJ \
17048 no_undefined_flag_GCJ \
17049 export_symbols_cmds_GCJ \
17050 hardcode_libdir_flag_spec_GCJ \
17051 hardcode_libdir_flag_spec_ld_GCJ \
17052 hardcode_libdir_separator_GCJ \
17053 hardcode_automatic_GCJ \
17055 module_expsym_cmds_GCJ \
17056 lt_cv_prog_compiler_c_o_GCJ \
17057 exclude_expsyms_GCJ \
17058 include_expsyms_GCJ; do
17061 old_archive_cmds_GCJ | \
17062 old_archive_from_new_cmds_GCJ | \
17063 archive_cmds_GCJ | \
17064 archive_expsym_cmds_GCJ | \
17065 module_cmds_GCJ | \
17066 module_expsym_cmds_GCJ | \
17067 old_archive_from_expsyms_cmds_GCJ | \
17068 export_symbols_cmds_GCJ | \
17069 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17070 postinstall_cmds | postuninstall_cmds | \
17071 old_postinstall_cmds | old_postuninstall_cmds | \
17072 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17073 # Double-quote double-evaled strings.
17074 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17077 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17083 *'\$0 --fallback-echo"')
17084 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17090 cat <<__EOF__ >> "$cfgfile"
17091 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17093 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17095 # Shell to use when invoking shell scripts.
17098 # Whether or not to build shared libraries.
17099 build_libtool_libs=$enable_shared
17101 # Whether or not to build static libraries.
17102 build_old_libs=$enable_static
17104 # Whether or not to add -lc for building shared libraries.
17105 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17107 # Whether or not to disallow shared libs when runtime libs are static
17108 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17110 # Whether or not to optimize for fast installation.
17111 fast_install=$enable_fast_install
17114 host_alias=$host_alias
17117 # An echo program that does not interpret backslashes.
17122 AR_FLAGS=$lt_AR_FLAGS
17127 # A language-specific compiler.
17128 CC=$lt_compiler_GCJ
17130 # Is the compiler the GNU C compiler?
17136 # The linker used to build libraries.
17139 # Whether we need hard or soft links.
17142 # A BSD-compatible nm program.
17145 # A symbol stripping program
17148 # Used to examine libraries when file_magic_cmd begins "file"
17149 MAGIC_CMD=$MAGIC_CMD
17151 # Used on cygwin: DLL creation program.
17154 # Used on cygwin: object dumper.
17157 # Used on cygwin: assembler.
17160 # The name of the directory that contains temporary libtool files.
17163 # How to create reloadable object files.
17164 reload_flag=$lt_reload_flag
17165 reload_cmds=$lt_reload_cmds
17167 # How to pass a linker flag through the compiler.
17168 wl=$lt_lt_prog_compiler_wl_GCJ
17170 # Object file suffix (normally "o").
17171 objext="$ac_objext"
17173 # Old archive suffix (normally "a").
17176 # Shared library suffix (normally ".so").
17179 # Executable file suffix (normally "").
17182 # Additional compiler flags for building library objects.
17183 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17186 # What is the maximum length of a command?
17187 max_cmd_len=$lt_cv_sys_max_cmd_len
17189 # Does compiler simultaneously support -c and -o options?
17190 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17192 # Must we lock files when doing compilation ?
17193 need_locks=$lt_need_locks
17195 # Do we need the lib prefix for modules?
17196 need_lib_prefix=$need_lib_prefix
17198 # Do we need a version for libraries?
17199 need_version=$need_version
17201 # Whether dlopen is supported.
17202 dlopen_support=$enable_dlopen
17204 # Whether dlopen of programs is supported.
17205 dlopen_self=$enable_dlopen_self
17207 # Whether dlopen of statically linked programs is supported.
17208 dlopen_self_static=$enable_dlopen_self_static
17210 # Compiler flag to prevent dynamic linking.
17211 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17213 # Compiler flag to turn off builtin functions.
17214 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17216 # Compiler flag to allow reflexive dlopens.
17217 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17219 # Compiler flag to generate shared objects directly from archives.
17220 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17222 # Compiler flag to generate thread-safe objects.
17223 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17225 # Library versioning type.
17226 version_type=$version_type
17228 # Format of library name prefix.
17229 libname_spec=$lt_libname_spec
17231 # List of archive names. First name is the real one, the rest are links.
17232 # The last name is the one that the linker finds with -lNAME.
17233 library_names_spec=$lt_library_names_spec
17235 # The coded name of the library, if different from the real name.
17236 soname_spec=$lt_soname_spec
17238 # Commands used to build and install an old-style archive.
17240 old_archive_cmds=$lt_old_archive_cmds_GCJ
17241 old_postinstall_cmds=$lt_old_postinstall_cmds
17242 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17244 # Create an old-style archive from a shared archive.
17245 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17247 # Create a temporary old-style archive to link instead of a shared archive.
17248 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17250 # Commands used to build and install a shared archive.
17251 archive_cmds=$lt_archive_cmds_GCJ
17252 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17253 postinstall_cmds=$lt_postinstall_cmds
17254 postuninstall_cmds=$lt_postuninstall_cmds
17256 # Commands used to build a loadable module (assumed same as above if empty)
17257 module_cmds=$lt_module_cmds_GCJ
17258 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17260 # Commands to strip libraries.
17261 old_striplib=$lt_old_striplib
17262 striplib=$lt_striplib
17264 # Dependencies to place before the objects being linked to create a
17266 predep_objects=$lt_predep_objects_GCJ
17268 # Dependencies to place after the objects being linked to create a
17270 postdep_objects=$lt_postdep_objects_GCJ
17272 # Dependencies to place before the objects being linked to create a
17274 predeps=$lt_predeps_GCJ
17276 # Dependencies to place after the objects being linked to create a
17278 postdeps=$lt_postdeps_GCJ
17280 # The library search path used internally by the compiler when linking
17281 # a shared library.
17282 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17284 # Method to check whether dependent libraries are shared objects.
17285 deplibs_check_method=$lt_deplibs_check_method
17287 # Command to use when deplibs_check_method == file_magic.
17288 file_magic_cmd=$lt_file_magic_cmd
17290 # Flag that allows shared libraries with undefined symbols to be built.
17291 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17293 # Flag that forces no undefined symbols.
17294 no_undefined_flag=$lt_no_undefined_flag_GCJ
17296 # Commands used to finish a libtool library installation in a directory.
17297 finish_cmds=$lt_finish_cmds
17299 # Same as above, but a single script fragment to be evaled but not shown.
17300 finish_eval=$lt_finish_eval
17302 # Take the output of nm and produce a listing of raw symbols and C names.
17303 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17305 # Transform the output of nm in a proper C declaration
17306 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17308 # Transform the output of nm in a C name address pair
17309 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17311 # This is the shared library runtime path variable.
17312 runpath_var=$runpath_var
17314 # This is the shared library path variable.
17315 shlibpath_var=$shlibpath_var
17317 # Is shlibpath searched before the hard-coded library search path?
17318 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17320 # How to hardcode a shared library path into an executable.
17321 hardcode_action=$hardcode_action_GCJ
17323 # Whether we should hardcode library paths into libraries.
17324 hardcode_into_libs=$hardcode_into_libs
17326 # Flag to hardcode \$libdir into a binary during linking.
17327 # This must work even if \$libdir does not exist.
17328 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17330 # If ld is used when linking, flag to hardcode \$libdir into
17331 # a binary during linking. This must work even if \$libdir does
17333 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17335 # Whether we need a single -rpath flag with a separated argument.
17336 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17338 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17339 # resulting binary.
17340 hardcode_direct=$hardcode_direct_GCJ
17342 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17343 # resulting binary.
17344 hardcode_minus_L=$hardcode_minus_L_GCJ
17346 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17347 # the resulting binary.
17348 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17350 # Set to yes if building a shared library automatically hardcodes DIR into the library
17351 # and all subsequent libraries and executables linked against it.
17352 hardcode_automatic=$hardcode_automatic_GCJ
17354 # Variables whose values should be saved in libtool wrapper scripts and
17355 # restored at relink time.
17356 variables_saved_for_relink="$variables_saved_for_relink"
17358 # Whether libtool must link a program against all its dependency libraries.
17359 link_all_deplibs=$link_all_deplibs_GCJ
17361 # Compile-time system search path for libraries
17362 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17364 # Run-time system search path for libraries
17365 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17367 # Fix the shell variable \$srcfile for the compiler.
17368 fix_srcfile_path="$fix_srcfile_path_GCJ"
17370 # Set to yes if exported symbols are required.
17371 always_export_symbols=$always_export_symbols_GCJ
17373 # The commands to list exported symbols.
17374 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17376 # The commands to extract the exported symbol list from a shared archive.
17377 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17379 # Symbols that should not be listed in the preloaded symbols.
17380 exclude_expsyms=$lt_exclude_expsyms_GCJ
17382 # Symbols that must always be exported.
17383 include_expsyms=$lt_include_expsyms_GCJ
17385 # ### END LIBTOOL TAG CONFIG: $tagname
17391 # If there is no Makefile yet, we rely on a make rule to execute
17392 # `config.status --recheck' to rerun these tests and create the
17393 # libtool script then.
17394 test -f Makefile && make "$ltmain"
17399 ac_cpp='$CPP $CPPFLAGS'
17400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17415 # Source file extension for RC test sources.
17418 # Object file extension for compiled RC test sources.
17422 # Code to be used in simple compile tests
17423 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17425 # Code to be used in simple link tests
17426 lt_simple_link_test_code="$lt_simple_compile_test_code"
17428 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17430 # If no C compiler was specified, use CC.
17433 # Allow CC to be a program name with arguments.
17437 # Allow CC to be a program name with arguments.
17442 lt_cv_prog_compiler_c_o_RC=yes
17444 # The else clause should only fire when bootstrapping the
17445 # libtool distribution, otherwise you forgot to ship ltmain.sh
17446 # with your package, and you will get complaints that there are
17447 # no rules to generate ltmain.sh.
17448 if test -f "$ltmain"; then
17449 # See if we are running on zsh, and set the options which allow our commands through
17450 # without removal of \ escapes.
17451 if test -n "${ZSH_VERSION+set}" ; then
17452 setopt NO_GLOB_SUBST
17454 # Now quote all the things that may contain metacharacters while being
17455 # careful not to overquote the AC_SUBSTed values. We take copies of the
17456 # variables and quote the copies for generation of the libtool script.
17457 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17458 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17459 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17460 deplibs_check_method reload_flag reload_cmds need_locks \
17461 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17462 lt_cv_sys_global_symbol_to_c_name_address \
17463 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17464 old_postinstall_cmds old_postuninstall_cmds \
17468 lt_prog_compiler_wl_RC \
17469 lt_prog_compiler_pic_RC \
17470 lt_prog_compiler_static_RC \
17471 lt_prog_compiler_no_builtin_flag_RC \
17472 export_dynamic_flag_spec_RC \
17473 thread_safe_flag_spec_RC \
17474 whole_archive_flag_spec_RC \
17475 enable_shared_with_static_runtimes_RC \
17476 old_archive_cmds_RC \
17477 old_archive_from_new_cmds_RC \
17478 predep_objects_RC \
17479 postdep_objects_RC \
17482 compiler_lib_search_path_RC \
17484 archive_expsym_cmds_RC \
17485 postinstall_cmds_RC \
17486 postuninstall_cmds_RC \
17487 old_archive_from_expsyms_cmds_RC \
17488 allow_undefined_flag_RC \
17489 no_undefined_flag_RC \
17490 export_symbols_cmds_RC \
17491 hardcode_libdir_flag_spec_RC \
17492 hardcode_libdir_flag_spec_ld_RC \
17493 hardcode_libdir_separator_RC \
17494 hardcode_automatic_RC \
17496 module_expsym_cmds_RC \
17497 lt_cv_prog_compiler_c_o_RC \
17498 exclude_expsyms_RC \
17499 include_expsyms_RC; do
17502 old_archive_cmds_RC | \
17503 old_archive_from_new_cmds_RC | \
17504 archive_cmds_RC | \
17505 archive_expsym_cmds_RC | \
17507 module_expsym_cmds_RC | \
17508 old_archive_from_expsyms_cmds_RC | \
17509 export_symbols_cmds_RC | \
17510 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17511 postinstall_cmds | postuninstall_cmds | \
17512 old_postinstall_cmds | old_postuninstall_cmds | \
17513 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17514 # Double-quote double-evaled strings.
17515 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17518 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17524 *'\$0 --fallback-echo"')
17525 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17531 cat <<__EOF__ >> "$cfgfile"
17532 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17534 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17536 # Shell to use when invoking shell scripts.
17539 # Whether or not to build shared libraries.
17540 build_libtool_libs=$enable_shared
17542 # Whether or not to build static libraries.
17543 build_old_libs=$enable_static
17545 # Whether or not to add -lc for building shared libraries.
17546 build_libtool_need_lc=$archive_cmds_need_lc_RC
17548 # Whether or not to disallow shared libs when runtime libs are static
17549 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17551 # Whether or not to optimize for fast installation.
17552 fast_install=$enable_fast_install
17555 host_alias=$host_alias
17558 # An echo program that does not interpret backslashes.
17563 AR_FLAGS=$lt_AR_FLAGS
17568 # A language-specific compiler.
17571 # Is the compiler the GNU C compiler?
17577 # The linker used to build libraries.
17580 # Whether we need hard or soft links.
17583 # A BSD-compatible nm program.
17586 # A symbol stripping program
17589 # Used to examine libraries when file_magic_cmd begins "file"
17590 MAGIC_CMD=$MAGIC_CMD
17592 # Used on cygwin: DLL creation program.
17595 # Used on cygwin: object dumper.
17598 # Used on cygwin: assembler.
17601 # The name of the directory that contains temporary libtool files.
17604 # How to create reloadable object files.
17605 reload_flag=$lt_reload_flag
17606 reload_cmds=$lt_reload_cmds
17608 # How to pass a linker flag through the compiler.
17609 wl=$lt_lt_prog_compiler_wl_RC
17611 # Object file suffix (normally "o").
17612 objext="$ac_objext"
17614 # Old archive suffix (normally "a").
17617 # Shared library suffix (normally ".so").
17620 # Executable file suffix (normally "").
17623 # Additional compiler flags for building library objects.
17624 pic_flag=$lt_lt_prog_compiler_pic_RC
17627 # What is the maximum length of a command?
17628 max_cmd_len=$lt_cv_sys_max_cmd_len
17630 # Does compiler simultaneously support -c and -o options?
17631 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17633 # Must we lock files when doing compilation ?
17634 need_locks=$lt_need_locks
17636 # Do we need the lib prefix for modules?
17637 need_lib_prefix=$need_lib_prefix
17639 # Do we need a version for libraries?
17640 need_version=$need_version
17642 # Whether dlopen is supported.
17643 dlopen_support=$enable_dlopen
17645 # Whether dlopen of programs is supported.
17646 dlopen_self=$enable_dlopen_self
17648 # Whether dlopen of statically linked programs is supported.
17649 dlopen_self_static=$enable_dlopen_self_static
17651 # Compiler flag to prevent dynamic linking.
17652 link_static_flag=$lt_lt_prog_compiler_static_RC
17654 # Compiler flag to turn off builtin functions.
17655 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17657 # Compiler flag to allow reflexive dlopens.
17658 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17660 # Compiler flag to generate shared objects directly from archives.
17661 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17663 # Compiler flag to generate thread-safe objects.
17664 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17666 # Library versioning type.
17667 version_type=$version_type
17669 # Format of library name prefix.
17670 libname_spec=$lt_libname_spec
17672 # List of archive names. First name is the real one, the rest are links.
17673 # The last name is the one that the linker finds with -lNAME.
17674 library_names_spec=$lt_library_names_spec
17676 # The coded name of the library, if different from the real name.
17677 soname_spec=$lt_soname_spec
17679 # Commands used to build and install an old-style archive.
17681 old_archive_cmds=$lt_old_archive_cmds_RC
17682 old_postinstall_cmds=$lt_old_postinstall_cmds
17683 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17685 # Create an old-style archive from a shared archive.
17686 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17688 # Create a temporary old-style archive to link instead of a shared archive.
17689 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17691 # Commands used to build and install a shared archive.
17692 archive_cmds=$lt_archive_cmds_RC
17693 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17694 postinstall_cmds=$lt_postinstall_cmds
17695 postuninstall_cmds=$lt_postuninstall_cmds
17697 # Commands used to build a loadable module (assumed same as above if empty)
17698 module_cmds=$lt_module_cmds_RC
17699 module_expsym_cmds=$lt_module_expsym_cmds_RC
17701 # Commands to strip libraries.
17702 old_striplib=$lt_old_striplib
17703 striplib=$lt_striplib
17705 # Dependencies to place before the objects being linked to create a
17707 predep_objects=$lt_predep_objects_RC
17709 # Dependencies to place after the objects being linked to create a
17711 postdep_objects=$lt_postdep_objects_RC
17713 # Dependencies to place before the objects being linked to create a
17715 predeps=$lt_predeps_RC
17717 # Dependencies to place after the objects being linked to create a
17719 postdeps=$lt_postdeps_RC
17721 # The library search path used internally by the compiler when linking
17722 # a shared library.
17723 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17725 # Method to check whether dependent libraries are shared objects.
17726 deplibs_check_method=$lt_deplibs_check_method
17728 # Command to use when deplibs_check_method == file_magic.
17729 file_magic_cmd=$lt_file_magic_cmd
17731 # Flag that allows shared libraries with undefined symbols to be built.
17732 allow_undefined_flag=$lt_allow_undefined_flag_RC
17734 # Flag that forces no undefined symbols.
17735 no_undefined_flag=$lt_no_undefined_flag_RC
17737 # Commands used to finish a libtool library installation in a directory.
17738 finish_cmds=$lt_finish_cmds
17740 # Same as above, but a single script fragment to be evaled but not shown.
17741 finish_eval=$lt_finish_eval
17743 # Take the output of nm and produce a listing of raw symbols and C names.
17744 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17746 # Transform the output of nm in a proper C declaration
17747 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17749 # Transform the output of nm in a C name address pair
17750 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17752 # This is the shared library runtime path variable.
17753 runpath_var=$runpath_var
17755 # This is the shared library path variable.
17756 shlibpath_var=$shlibpath_var
17758 # Is shlibpath searched before the hard-coded library search path?
17759 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17761 # How to hardcode a shared library path into an executable.
17762 hardcode_action=$hardcode_action_RC
17764 # Whether we should hardcode library paths into libraries.
17765 hardcode_into_libs=$hardcode_into_libs
17767 # Flag to hardcode \$libdir into a binary during linking.
17768 # This must work even if \$libdir does not exist.
17769 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17771 # If ld is used when linking, flag to hardcode \$libdir into
17772 # a binary during linking. This must work even if \$libdir does
17774 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17776 # Whether we need a single -rpath flag with a separated argument.
17777 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17779 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17780 # resulting binary.
17781 hardcode_direct=$hardcode_direct_RC
17783 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17784 # resulting binary.
17785 hardcode_minus_L=$hardcode_minus_L_RC
17787 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17788 # the resulting binary.
17789 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17791 # Set to yes if building a shared library automatically hardcodes DIR into the library
17792 # and all subsequent libraries and executables linked against it.
17793 hardcode_automatic=$hardcode_automatic_RC
17795 # Variables whose values should be saved in libtool wrapper scripts and
17796 # restored at relink time.
17797 variables_saved_for_relink="$variables_saved_for_relink"
17799 # Whether libtool must link a program against all its dependency libraries.
17800 link_all_deplibs=$link_all_deplibs_RC
17802 # Compile-time system search path for libraries
17803 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17805 # Run-time system search path for libraries
17806 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17808 # Fix the shell variable \$srcfile for the compiler.
17809 fix_srcfile_path="$fix_srcfile_path_RC"
17811 # Set to yes if exported symbols are required.
17812 always_export_symbols=$always_export_symbols_RC
17814 # The commands to list exported symbols.
17815 export_symbols_cmds=$lt_export_symbols_cmds_RC
17817 # The commands to extract the exported symbol list from a shared archive.
17818 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17820 # Symbols that should not be listed in the preloaded symbols.
17821 exclude_expsyms=$lt_exclude_expsyms_RC
17823 # Symbols that must always be exported.
17824 include_expsyms=$lt_include_expsyms_RC
17826 # ### END LIBTOOL TAG CONFIG: $tagname
17832 # If there is no Makefile yet, we rely on a make rule to execute
17833 # `config.status --recheck' to rerun these tests and create the
17834 # libtool script then.
17835 test -f Makefile && make "$ltmain"
17840 ac_cpp='$CPP $CPPFLAGS'
17841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17850 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
17851 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
17852 { (exit 1); exit 1; }; }
17856 # Append the new tag name to the list of available tags.
17857 if test -n "$tagname" ; then
17858 available_tags="$available_tags $tagname"
17864 # Now substitute the updated list of available tags.
17865 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
17866 mv "${ofile}T" "$ofile"
17870 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
17871 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
17872 { (exit 1); exit 1; }; }
17878 # This can be used to rebuild libtool when needed
17879 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
17881 # Always use our own libtool.
17882 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
17884 # Prevent multiple expansion
17906 # Extract the first word of "ar", so it can be a program name with args.
17907 set dummy ar; ac_word=$2
17908 echo "$as_me:$LINENO: checking for $ac_word" >&5
17909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17910 if test "${ac_cv_path_AR+set}" = set; then
17911 echo $ECHO_N "(cached) $ECHO_C" >&6
17915 ac_cv_path_AR="$AR" # Let the user override the test with a path.
17918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17919 for as_dir in $PATH
17922 test -z "$as_dir" && as_dir=.
17923 for ac_exec_ext in '' $ac_executable_extensions; do
17924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17925 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
17926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17937 if test -n "$AR"; then
17938 echo "$as_me:$LINENO: result: $AR" >&5
17939 echo "${ECHO_T}$AR" >&6
17941 echo "$as_me:$LINENO: result: no" >&5
17942 echo "${ECHO_T}no" >&6
17945 # Extract the first word of "sed", so it can be a program name with args.
17946 set dummy sed; ac_word=$2
17947 echo "$as_me:$LINENO: checking for $ac_word" >&5
17948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17949 if test "${ac_cv_path_SED+set}" = set; then
17950 echo $ECHO_N "(cached) $ECHO_C" >&6
17954 ac_cv_path_SED="$SED" # Let the user override the test with a path.
17957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17958 for as_dir in $PATH
17961 test -z "$as_dir" && as_dir=.
17962 for ac_exec_ext in '' $ac_executable_extensions; do
17963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17964 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
17965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17974 SED=$ac_cv_path_SED
17976 if test -n "$SED"; then
17977 echo "$as_me:$LINENO: result: $SED" >&5
17978 echo "${ECHO_T}$SED" >&6
17980 echo "$as_me:$LINENO: result: no" >&5
17981 echo "${ECHO_T}no" >&6
17984 # Extract the first word of "rm", so it can be a program name with args.
17985 set dummy rm; ac_word=$2
17986 echo "$as_me:$LINENO: checking for $ac_word" >&5
17987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17988 if test "${ac_cv_path_RM+set}" = set; then
17989 echo $ECHO_N "(cached) $ECHO_C" >&6
17993 ac_cv_path_RM="$RM" # Let the user override the test with a path.
17996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17997 for as_dir in $PATH
18000 test -z "$as_dir" && as_dir=.
18001 for ac_exec_ext in '' $ac_executable_extensions; do
18002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18003 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18015 if test -n "$RM"; then
18016 echo "$as_me:$LINENO: result: $RM" >&5
18017 echo "${ECHO_T}$RM" >&6
18019 echo "$as_me:$LINENO: result: no" >&5
18020 echo "${ECHO_T}no" >&6
18023 # Extract the first word of "echo", so it can be a program name with args.
18024 set dummy echo; ac_word=$2
18025 echo "$as_me:$LINENO: checking for $ac_word" >&5
18026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18027 if test "${ac_cv_path_ECHO+set}" = set; then
18028 echo $ECHO_N "(cached) $ECHO_C" >&6
18032 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18036 for as_dir in $PATH
18039 test -z "$as_dir" && as_dir=.
18040 for ac_exec_ext in '' $ac_executable_extensions; do
18041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18042 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18052 ECHO=$ac_cv_path_ECHO
18054 if test -n "$ECHO"; then
18055 echo "$as_me:$LINENO: result: $ECHO" >&5
18056 echo "${ECHO_T}$ECHO" >&6
18058 echo "$as_me:$LINENO: result: no" >&5
18059 echo "${ECHO_T}no" >&6
18062 # Extract the first word of "mkdir", so it can be a program name with args.
18063 set dummy mkdir; ac_word=$2
18064 echo "$as_me:$LINENO: checking for $ac_word" >&5
18065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18066 if test "${ac_cv_path_MKDIR+set}" = set; then
18067 echo $ECHO_N "(cached) $ECHO_C" >&6
18071 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18075 for as_dir in $PATH
18078 test -z "$as_dir" && as_dir=.
18079 for ac_exec_ext in '' $ac_executable_extensions; do
18080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18081 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18091 MKDIR=$ac_cv_path_MKDIR
18093 if test -n "$MKDIR"; then
18094 echo "$as_me:$LINENO: result: $MKDIR" >&5
18095 echo "${ECHO_T}$MKDIR" >&6
18097 echo "$as_me:$LINENO: result: no" >&5
18098 echo "${ECHO_T}no" >&6
18101 # Extract the first word of "date", so it can be a program name with args.
18102 set dummy date; ac_word=$2
18103 echo "$as_me:$LINENO: checking for $ac_word" >&5
18104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18105 if test "${ac_cv_path_DATE+set}" = set; then
18106 echo $ECHO_N "(cached) $ECHO_C" >&6
18110 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18114 for as_dir in $PATH
18117 test -z "$as_dir" && as_dir=.
18118 for ac_exec_ext in '' $ac_executable_extensions; do
18119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18120 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18130 DATE=$ac_cv_path_DATE
18132 if test -n "$DATE"; then
18133 echo "$as_me:$LINENO: result: $DATE" >&5
18134 echo "${ECHO_T}$DATE" >&6
18136 echo "$as_me:$LINENO: result: no" >&5
18137 echo "${ECHO_T}no" >&6
18140 # Extract the first word of "mv", so it can be a program name with args.
18141 set dummy mv; ac_word=$2
18142 echo "$as_me:$LINENO: checking for $ac_word" >&5
18143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18144 if test "${ac_cv_path_MV+set}" = set; then
18145 echo $ECHO_N "(cached) $ECHO_C" >&6
18149 ac_cv_path_MV="$MV" # Let the user override the test with a path.
18152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18153 for as_dir in $PATH
18156 test -z "$as_dir" && as_dir=.
18157 for ac_exec_ext in '' $ac_executable_extensions; do
18158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18159 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18171 if test -n "$MV"; then
18172 echo "$as_me:$LINENO: result: $MV" >&5
18173 echo "${ECHO_T}$MV" >&6
18175 echo "$as_me:$LINENO: result: no" >&5
18176 echo "${ECHO_T}no" >&6
18179 # Extract the first word of "dot", so it can be a program name with args.
18180 set dummy dot; ac_word=$2
18181 echo "$as_me:$LINENO: checking for $ac_word" >&5
18182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18183 if test "${ac_cv_path_DOT+set}" = set; then
18184 echo $ECHO_N "(cached) $ECHO_C" >&6
18188 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18192 for as_dir in $PATH
18195 test -z "$as_dir" && as_dir=.
18196 for ac_exec_ext in '' $ac_executable_extensions; do
18197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18198 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18208 DOT=$ac_cv_path_DOT
18210 if test -n "$DOT"; then
18211 echo "$as_me:$LINENO: result: $DOT" >&5
18212 echo "${ECHO_T}$DOT" >&6
18214 echo "$as_me:$LINENO: result: no" >&5
18215 echo "${ECHO_T}no" >&6
18218 # Extract the first word of "etags", so it can be a program name with args.
18219 set dummy etags; ac_word=$2
18220 echo "$as_me:$LINENO: checking for $ac_word" >&5
18221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18222 if test "${ac_cv_path_ETAGS+set}" = set; then
18223 echo $ECHO_N "(cached) $ECHO_C" >&6
18227 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18231 for as_dir in $PATH
18234 test -z "$as_dir" && as_dir=.
18235 for ac_exec_ext in '' $ac_executable_extensions; do
18236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18237 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18247 ETAGS=$ac_cv_path_ETAGS
18249 if test -n "$ETAGS"; then
18250 echo "$as_me:$LINENO: result: $ETAGS" >&5
18251 echo "${ECHO_T}$ETAGS" >&6
18253 echo "$as_me:$LINENO: result: no" >&5
18254 echo "${ECHO_T}no" >&6
18257 # Extract the first word of "purify", so it can be a program name with args.
18258 set dummy purify; ac_word=$2
18259 echo "$as_me:$LINENO: checking for $ac_word" >&5
18260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18261 if test "${ac_cv_path_PURIFY+set}" = set; then
18262 echo $ECHO_N "(cached) $ECHO_C" >&6
18266 ac_cv_path_PURIFY="$PURIFY" # Let the user override the test with a path.
18269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18270 for as_dir in $PATH
18273 test -z "$as_dir" && as_dir=.
18274 for ac_exec_ext in '' $ac_executable_extensions; do
18275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18276 ac_cv_path_PURIFY="$as_dir/$ac_word$ac_exec_ext"
18277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18286 PURIFY=$ac_cv_path_PURIFY
18288 if test -n "$PURIFY"; then
18289 echo "$as_me:$LINENO: result: $PURIFY" >&5
18290 echo "${ECHO_T}$PURIFY" >&6
18292 echo "$as_me:$LINENO: result: no" >&5
18293 echo "${ECHO_T}no" >&6
18301 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18302 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18303 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18304 echo $ECHO_N "(cached) $ECHO_C" >&6
18306 ac_check_lib_save_LIBS=$LIBS
18308 cat >conftest.$ac_ext <<_ACEOF
18309 #line $LINENO "configure"
18312 cat confdefs.h >>conftest.$ac_ext
18313 cat >>conftest.$ac_ext <<_ACEOF
18314 /* end confdefs.h. */
18316 /* Override any gcc2 internal prototype to avoid an error. */
18320 /* We use char because int might match the return type of a gcc2
18321 builtin and then its argument prototype would still apply. */
18331 rm -f conftest.$ac_objext conftest$ac_exeext
18332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18333 (eval $ac_link) 2>&5
18335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); } &&
18337 { ac_try='test -s conftest$ac_exeext'
18338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18339 (eval $ac_try) 2>&5
18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); }; }; then
18343 ac_cv_lib_elf_elf_begin=yes
18345 echo "$as_me: failed program was:" >&5
18346 sed 's/^/| /' conftest.$ac_ext >&5
18348 ac_cv_lib_elf_elf_begin=no
18350 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18351 LIBS=$ac_check_lib_save_LIBS
18353 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18354 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18355 if test $ac_cv_lib_elf_elf_begin = yes; then
18356 cat >>confdefs.h <<_ACEOF
18357 #define HAVE_LIBELF 1
18365 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18366 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18367 if test "${ac_cv_search_dlopen+set}" = set; then
18368 echo $ECHO_N "(cached) $ECHO_C" >&6
18370 ac_func_search_save_LIBS=$LIBS
18371 ac_cv_search_dlopen=no
18372 cat >conftest.$ac_ext <<_ACEOF
18373 #line $LINENO "configure"
18376 cat confdefs.h >>conftest.$ac_ext
18377 cat >>conftest.$ac_ext <<_ACEOF
18378 /* end confdefs.h. */
18380 /* Override any gcc2 internal prototype to avoid an error. */
18384 /* We use char because int might match the return type of a gcc2
18385 builtin and then its argument prototype would still apply. */
18395 rm -f conftest.$ac_objext conftest$ac_exeext
18396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18397 (eval $ac_link) 2>&5
18399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400 (exit $ac_status); } &&
18401 { ac_try='test -s conftest$ac_exeext'
18402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18403 (eval $ac_try) 2>&5
18405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406 (exit $ac_status); }; }; then
18407 ac_cv_search_dlopen="none required"
18409 echo "$as_me: failed program was:" >&5
18410 sed 's/^/| /' conftest.$ac_ext >&5
18413 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18414 if test "$ac_cv_search_dlopen" = no; then
18415 for ac_lib in dl; do
18416 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18417 cat >conftest.$ac_ext <<_ACEOF
18418 #line $LINENO "configure"
18421 cat confdefs.h >>conftest.$ac_ext
18422 cat >>conftest.$ac_ext <<_ACEOF
18423 /* end confdefs.h. */
18425 /* Override any gcc2 internal prototype to avoid an error. */
18429 /* We use char because int might match the return type of a gcc2
18430 builtin and then its argument prototype would still apply. */
18440 rm -f conftest.$ac_objext conftest$ac_exeext
18441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18442 (eval $ac_link) 2>&5
18444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445 (exit $ac_status); } &&
18446 { ac_try='test -s conftest$ac_exeext'
18447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18448 (eval $ac_try) 2>&5
18450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18451 (exit $ac_status); }; }; then
18452 ac_cv_search_dlopen="-l$ac_lib"
18455 echo "$as_me: failed program was:" >&5
18456 sed 's/^/| /' conftest.$ac_ext >&5
18459 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18462 LIBS=$ac_func_search_save_LIBS
18464 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18465 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
18466 if test "$ac_cv_search_dlopen" != no; then
18467 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
18470 { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5
18471 echo "$as_me: error: dlopen() required but not found" >&2;}
18472 { (exit 1); exit 1; }; }
18476 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
18477 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
18478 if test "${ac_cv_search_mallinfo+set}" = set; then
18479 echo $ECHO_N "(cached) $ECHO_C" >&6
18481 ac_func_search_save_LIBS=$LIBS
18482 ac_cv_search_mallinfo=no
18483 cat >conftest.$ac_ext <<_ACEOF
18484 #line $LINENO "configure"
18487 cat confdefs.h >>conftest.$ac_ext
18488 cat >>conftest.$ac_ext <<_ACEOF
18489 /* end confdefs.h. */
18491 /* Override any gcc2 internal prototype to avoid an error. */
18495 /* We use char because int might match the return type of a gcc2
18496 builtin and then its argument prototype would still apply. */
18506 rm -f conftest.$ac_objext conftest$ac_exeext
18507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18508 (eval $ac_link) 2>&5
18510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511 (exit $ac_status); } &&
18512 { ac_try='test -s conftest$ac_exeext'
18513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18514 (eval $ac_try) 2>&5
18516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18517 (exit $ac_status); }; }; then
18518 ac_cv_search_mallinfo="none required"
18520 echo "$as_me: failed program was:" >&5
18521 sed 's/^/| /' conftest.$ac_ext >&5
18524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18525 if test "$ac_cv_search_mallinfo" = no; then
18526 for ac_lib in malloc; do
18527 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18528 cat >conftest.$ac_ext <<_ACEOF
18529 #line $LINENO "configure"
18532 cat confdefs.h >>conftest.$ac_ext
18533 cat >>conftest.$ac_ext <<_ACEOF
18534 /* end confdefs.h. */
18536 /* Override any gcc2 internal prototype to avoid an error. */
18540 /* We use char because int might match the return type of a gcc2
18541 builtin and then its argument prototype would still apply. */
18551 rm -f conftest.$ac_objext conftest$ac_exeext
18552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18553 (eval $ac_link) 2>&5
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); } &&
18557 { ac_try='test -s conftest$ac_exeext'
18558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18559 (eval $ac_try) 2>&5
18561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562 (exit $ac_status); }; }; then
18563 ac_cv_search_mallinfo="-l$ac_lib"
18566 echo "$as_me: failed program was:" >&5
18567 sed 's/^/| /' conftest.$ac_ext >&5
18570 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18573 LIBS=$ac_func_search_save_LIBS
18575 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
18576 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
18577 if test "$ac_cv_search_mallinfo" != no; then
18578 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
18579 cat >>confdefs.h <<\_ACEOF
18580 #define HAVE_MALLINFO 1
18587 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18588 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18589 if test "${ac_cv_header_stdc+set}" = set; then
18590 echo $ECHO_N "(cached) $ECHO_C" >&6
18592 cat >conftest.$ac_ext <<_ACEOF
18593 #line $LINENO "configure"
18596 cat confdefs.h >>conftest.$ac_ext
18597 cat >>conftest.$ac_ext <<_ACEOF
18598 /* end confdefs.h. */
18599 #include <stdlib.h>
18600 #include <stdarg.h>
18601 #include <string.h>
18612 rm -f conftest.$ac_objext
18613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18614 (eval $ac_compile) 2>&5
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); } &&
18618 { ac_try='test -s conftest.$ac_objext'
18619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18620 (eval $ac_try) 2>&5
18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); }; }; then
18624 ac_cv_header_stdc=yes
18626 echo "$as_me: failed program was:" >&5
18627 sed 's/^/| /' conftest.$ac_ext >&5
18629 ac_cv_header_stdc=no
18631 rm -f conftest.$ac_objext conftest.$ac_ext
18633 if test $ac_cv_header_stdc = yes; then
18634 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18635 cat >conftest.$ac_ext <<_ACEOF
18636 #line $LINENO "configure"
18639 cat confdefs.h >>conftest.$ac_ext
18640 cat >>conftest.$ac_ext <<_ACEOF
18641 /* end confdefs.h. */
18642 #include <string.h>
18645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18646 $EGREP "memchr" >/dev/null 2>&1; then
18649 ac_cv_header_stdc=no
18655 if test $ac_cv_header_stdc = yes; then
18656 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18657 cat >conftest.$ac_ext <<_ACEOF
18658 #line $LINENO "configure"
18661 cat confdefs.h >>conftest.$ac_ext
18662 cat >>conftest.$ac_ext <<_ACEOF
18663 /* end confdefs.h. */
18664 #include <stdlib.h>
18667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18668 $EGREP "free" >/dev/null 2>&1; then
18671 ac_cv_header_stdc=no
18677 if test $ac_cv_header_stdc = yes; then
18678 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18679 if test "$cross_compiling" = yes; then
18682 cat >conftest.$ac_ext <<_ACEOF
18683 #line $LINENO "configure"
18686 cat confdefs.h >>conftest.$ac_ext
18687 cat >>conftest.$ac_ext <<_ACEOF
18688 /* end confdefs.h. */
18690 #if ((' ' & 0x0FF) == 0x020)
18691 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18692 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18694 # define ISLOWER(c) \
18695 (('a' <= (c) && (c) <= 'i') \
18696 || ('j' <= (c) && (c) <= 'r') \
18697 || ('s' <= (c) && (c) <= 'z'))
18698 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18701 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18706 for (i = 0; i < 256; i++)
18707 if (XOR (islower (i), ISLOWER (i))
18708 || toupper (i) != TOUPPER (i))
18713 rm -f conftest$ac_exeext
18714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18715 (eval $ac_link) 2>&5
18717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18720 (eval $ac_try) 2>&5
18722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723 (exit $ac_status); }; }; then
18726 echo "$as_me: program exited with status $ac_status" >&5
18727 echo "$as_me: failed program was:" >&5
18728 sed 's/^/| /' conftest.$ac_ext >&5
18730 ( exit $ac_status )
18731 ac_cv_header_stdc=no
18733 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18737 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18738 echo "${ECHO_T}$ac_cv_header_stdc" >&6
18739 if test $ac_cv_header_stdc = yes; then
18741 cat >>confdefs.h <<\_ACEOF
18742 #define STDC_HEADERS 1
18747 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
18748 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
18749 if test "${ac_cv_header_sys_wait_h+set}" = set; then
18750 echo $ECHO_N "(cached) $ECHO_C" >&6
18752 cat >conftest.$ac_ext <<_ACEOF
18753 #line $LINENO "configure"
18756 cat confdefs.h >>conftest.$ac_ext
18757 cat >>conftest.$ac_ext <<_ACEOF
18758 /* end confdefs.h. */
18759 #include <sys/types.h>
18760 #include <sys/wait.h>
18761 #ifndef WEXITSTATUS
18762 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
18765 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18773 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18778 rm -f conftest.$ac_objext
18779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18780 (eval $ac_compile) 2>&5
18782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783 (exit $ac_status); } &&
18784 { ac_try='test -s conftest.$ac_objext'
18785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18786 (eval $ac_try) 2>&5
18788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789 (exit $ac_status); }; }; then
18790 ac_cv_header_sys_wait_h=yes
18792 echo "$as_me: failed program was:" >&5
18793 sed 's/^/| /' conftest.$ac_ext >&5
18795 ac_cv_header_sys_wait_h=no
18797 rm -f conftest.$ac_objext conftest.$ac_ext
18799 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
18800 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
18801 if test $ac_cv_header_sys_wait_h = yes; then
18803 cat >>confdefs.h <<\_ACEOF
18804 #define HAVE_SYS_WAIT_H 1
18818 for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
18820 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18822 echo "$as_me:$LINENO: checking for $ac_header" >&5
18823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18825 echo $ECHO_N "(cached) $ECHO_C" >&6
18827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18828 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18830 # Is the header compilable?
18831 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18832 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18833 cat >conftest.$ac_ext <<_ACEOF
18834 #line $LINENO "configure"
18837 cat confdefs.h >>conftest.$ac_ext
18838 cat >>conftest.$ac_ext <<_ACEOF
18839 /* end confdefs.h. */
18840 $ac_includes_default
18841 #include <$ac_header>
18843 rm -f conftest.$ac_objext
18844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18845 (eval $ac_compile) 2>&5
18847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848 (exit $ac_status); } &&
18849 { ac_try='test -s conftest.$ac_objext'
18850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18851 (eval $ac_try) 2>&5
18853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854 (exit $ac_status); }; }; then
18855 ac_header_compiler=yes
18857 echo "$as_me: failed program was:" >&5
18858 sed 's/^/| /' conftest.$ac_ext >&5
18860 ac_header_compiler=no
18862 rm -f conftest.$ac_objext conftest.$ac_ext
18863 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18864 echo "${ECHO_T}$ac_header_compiler" >&6
18866 # Is the header present?
18867 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18868 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18869 cat >conftest.$ac_ext <<_ACEOF
18870 #line $LINENO "configure"
18873 cat confdefs.h >>conftest.$ac_ext
18874 cat >>conftest.$ac_ext <<_ACEOF
18875 /* end confdefs.h. */
18876 #include <$ac_header>
18878 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18879 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18881 grep -v '^ *+' conftest.er1 >conftest.err
18883 cat conftest.err >&5
18884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885 (exit $ac_status); } >/dev/null; then
18886 if test -s conftest.err; then
18887 ac_cpp_err=$ac_c_preproc_warn_flag
18894 if test -z "$ac_cpp_err"; then
18895 ac_header_preproc=yes
18897 echo "$as_me: failed program was:" >&5
18898 sed 's/^/| /' conftest.$ac_ext >&5
18900 ac_header_preproc=no
18902 rm -f conftest.err conftest.$ac_ext
18903 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18904 echo "${ECHO_T}$ac_header_preproc" >&6
18906 # So? What about this header?
18907 case $ac_header_compiler:$ac_header_preproc in
18909 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18915 ## ------------------------------------ ##
18916 ## Report this to bug-autoconf@gnu.org. ##
18917 ## ------------------------------------ ##
18920 sed "s/^/$as_me: WARNING: /" >&2
18923 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18924 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18925 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18926 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18928 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18931 ## ------------------------------------ ##
18932 ## Report this to bug-autoconf@gnu.org. ##
18933 ## ------------------------------------ ##
18936 sed "s/^/$as_me: WARNING: /" >&2
18939 echo "$as_me:$LINENO: checking for $ac_header" >&5
18940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18942 echo $ECHO_N "(cached) $ECHO_C" >&6
18944 eval "$as_ac_Header=$ac_header_preproc"
18946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18950 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18951 cat >>confdefs.h <<_ACEOF
18952 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18964 for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
18966 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18968 echo "$as_me:$LINENO: checking for $ac_header" >&5
18969 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18971 echo $ECHO_N "(cached) $ECHO_C" >&6
18973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18974 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18976 # Is the header compilable?
18977 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18978 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18979 cat >conftest.$ac_ext <<_ACEOF
18980 #line $LINENO "configure"
18983 cat confdefs.h >>conftest.$ac_ext
18984 cat >>conftest.$ac_ext <<_ACEOF
18985 /* end confdefs.h. */
18986 $ac_includes_default
18987 #include <$ac_header>
18989 rm -f conftest.$ac_objext
18990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18991 (eval $ac_compile) 2>&5
18993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994 (exit $ac_status); } &&
18995 { ac_try='test -s conftest.$ac_objext'
18996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18997 (eval $ac_try) 2>&5
18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000 (exit $ac_status); }; }; then
19001 ac_header_compiler=yes
19003 echo "$as_me: failed program was:" >&5
19004 sed 's/^/| /' conftest.$ac_ext >&5
19006 ac_header_compiler=no
19008 rm -f conftest.$ac_objext conftest.$ac_ext
19009 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19010 echo "${ECHO_T}$ac_header_compiler" >&6
19012 # Is the header present?
19013 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19014 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19015 cat >conftest.$ac_ext <<_ACEOF
19016 #line $LINENO "configure"
19019 cat confdefs.h >>conftest.$ac_ext
19020 cat >>conftest.$ac_ext <<_ACEOF
19021 /* end confdefs.h. */
19022 #include <$ac_header>
19024 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19025 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19027 grep -v '^ *+' conftest.er1 >conftest.err
19029 cat conftest.err >&5
19030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031 (exit $ac_status); } >/dev/null; then
19032 if test -s conftest.err; then
19033 ac_cpp_err=$ac_c_preproc_warn_flag
19040 if test -z "$ac_cpp_err"; then
19041 ac_header_preproc=yes
19043 echo "$as_me: failed program was:" >&5
19044 sed 's/^/| /' conftest.$ac_ext >&5
19046 ac_header_preproc=no
19048 rm -f conftest.err conftest.$ac_ext
19049 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19050 echo "${ECHO_T}$ac_header_preproc" >&6
19052 # So? What about this header?
19053 case $ac_header_compiler:$ac_header_preproc in
19055 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19056 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19058 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19061 ## ------------------------------------ ##
19062 ## Report this to bug-autoconf@gnu.org. ##
19063 ## ------------------------------------ ##
19066 sed "s/^/$as_me: WARNING: /" >&2
19069 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19070 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19071 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19072 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19074 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19077 ## ------------------------------------ ##
19078 ## Report this to bug-autoconf@gnu.org. ##
19079 ## ------------------------------------ ##
19082 sed "s/^/$as_me: WARNING: /" >&2
19085 echo "$as_me:$LINENO: checking for $ac_header" >&5
19086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19088 echo $ECHO_N "(cached) $ECHO_C" >&6
19090 eval "$as_ac_Header=$ac_header_preproc"
19092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19093 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19097 cat >>confdefs.h <<_ACEOF
19098 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19108 for ac_header in dlfcn.h link.h
19110 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19111 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19112 echo "$as_me:$LINENO: checking for $ac_header" >&5
19113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19114 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19115 echo $ECHO_N "(cached) $ECHO_C" >&6
19117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19118 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19120 # Is the header compilable?
19121 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19122 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19123 cat >conftest.$ac_ext <<_ACEOF
19124 #line $LINENO "configure"
19127 cat confdefs.h >>conftest.$ac_ext
19128 cat >>conftest.$ac_ext <<_ACEOF
19129 /* end confdefs.h. */
19130 $ac_includes_default
19131 #include <$ac_header>
19133 rm -f conftest.$ac_objext
19134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19135 (eval $ac_compile) 2>&5
19137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138 (exit $ac_status); } &&
19139 { ac_try='test -s conftest.$ac_objext'
19140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19141 (eval $ac_try) 2>&5
19143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144 (exit $ac_status); }; }; then
19145 ac_header_compiler=yes
19147 echo "$as_me: failed program was:" >&5
19148 sed 's/^/| /' conftest.$ac_ext >&5
19150 ac_header_compiler=no
19152 rm -f conftest.$ac_objext conftest.$ac_ext
19153 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19154 echo "${ECHO_T}$ac_header_compiler" >&6
19156 # Is the header present?
19157 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19158 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19159 cat >conftest.$ac_ext <<_ACEOF
19160 #line $LINENO "configure"
19163 cat confdefs.h >>conftest.$ac_ext
19164 cat >>conftest.$ac_ext <<_ACEOF
19165 /* end confdefs.h. */
19166 #include <$ac_header>
19168 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19169 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19171 grep -v '^ *+' conftest.er1 >conftest.err
19173 cat conftest.err >&5
19174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); } >/dev/null; then
19176 if test -s conftest.err; then
19177 ac_cpp_err=$ac_c_preproc_warn_flag
19184 if test -z "$ac_cpp_err"; then
19185 ac_header_preproc=yes
19187 echo "$as_me: failed program was:" >&5
19188 sed 's/^/| /' conftest.$ac_ext >&5
19190 ac_header_preproc=no
19192 rm -f conftest.err conftest.$ac_ext
19193 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19194 echo "${ECHO_T}$ac_header_preproc" >&6
19196 # So? What about this header?
19197 case $ac_header_compiler:$ac_header_preproc in
19199 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19200 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19202 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19205 ## ------------------------------------ ##
19206 ## Report this to bug-autoconf@gnu.org. ##
19207 ## ------------------------------------ ##
19210 sed "s/^/$as_me: WARNING: /" >&2
19213 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19214 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19215 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19216 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19218 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19221 ## ------------------------------------ ##
19222 ## Report this to bug-autoconf@gnu.org. ##
19223 ## ------------------------------------ ##
19226 sed "s/^/$as_me: WARNING: /" >&2
19229 echo "$as_me:$LINENO: checking for $ac_header" >&5
19230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19232 echo $ECHO_N "(cached) $ECHO_C" >&6
19234 eval "$as_ac_Header=$ac_header_preproc"
19236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19237 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19241 cat >>confdefs.h <<_ACEOF
19242 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19251 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19252 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19253 if test "${ac_cv_c_const+set}" = set; then
19254 echo $ECHO_N "(cached) $ECHO_C" >&6
19256 cat >conftest.$ac_ext <<_ACEOF
19257 #line $LINENO "configure"
19260 cat confdefs.h >>conftest.$ac_ext
19261 cat >>conftest.$ac_ext <<_ACEOF
19262 /* end confdefs.h. */
19267 /* FIXME: Include the comments suggested by Paul. */
19268 #ifndef __cplusplus
19269 /* Ultrix mips cc rejects this. */
19270 typedef int charset[2];
19272 /* SunOS 4.1.1 cc rejects this. */
19273 char const *const *ccp;
19275 /* NEC SVR4.0.2 mips cc rejects this. */
19276 struct point {int x, y;};
19277 static struct point const zero = {0,0};
19278 /* AIX XL C 1.02.0.0 rejects this.
19279 It does not let you subtract one const X* pointer from another in
19280 an arm of an if-expression whose if-part is not a constant
19282 const char *g = "string";
19283 ccp = &g + (g ? g-g : 0);
19284 /* HPUX 7.0 cc rejects these. */
19287 ccp = (char const *const *) p;
19288 { /* SCO 3.2v4 cc rejects this. */
19290 char const *s = 0 ? (char *) 0 : (char const *) 0;
19294 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19295 int x[] = {25, 17};
19296 const int *foo = &x[0];
19299 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19300 typedef const int *iptr;
19304 { /* AIX XL C 1.02.0.0 rejects this saying
19305 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19306 struct s { int j; const int *ap[3]; };
19307 struct s *b; b->j = 5;
19309 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19310 const int foo = 10;
19318 rm -f conftest.$ac_objext
19319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19320 (eval $ac_compile) 2>&5
19322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323 (exit $ac_status); } &&
19324 { ac_try='test -s conftest.$ac_objext'
19325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19326 (eval $ac_try) 2>&5
19328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329 (exit $ac_status); }; }; then
19332 echo "$as_me: failed program was:" >&5
19333 sed 's/^/| /' conftest.$ac_ext >&5
19337 rm -f conftest.$ac_objext conftest.$ac_ext
19339 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19340 echo "${ECHO_T}$ac_cv_c_const" >&6
19341 if test $ac_cv_c_const = no; then
19343 cat >>confdefs.h <<\_ACEOF
19349 echo "$as_me:$LINENO: checking for inline" >&5
19350 echo $ECHO_N "checking for inline... $ECHO_C" >&6
19351 if test "${ac_cv_c_inline+set}" = set; then
19352 echo $ECHO_N "(cached) $ECHO_C" >&6
19355 for ac_kw in inline __inline__ __inline; do
19356 cat >conftest.$ac_ext <<_ACEOF
19357 #line $LINENO "configure"
19360 cat confdefs.h >>conftest.$ac_ext
19361 cat >>conftest.$ac_ext <<_ACEOF
19362 /* end confdefs.h. */
19363 #ifndef __cplusplus
19365 static $ac_kw foo_t static_foo () {return 0; }
19366 $ac_kw foo_t foo () {return 0; }
19370 rm -f conftest.$ac_objext
19371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19372 (eval $ac_compile) 2>&5
19374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375 (exit $ac_status); } &&
19376 { ac_try='test -s conftest.$ac_objext'
19377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19378 (eval $ac_try) 2>&5
19380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381 (exit $ac_status); }; }; then
19382 ac_cv_c_inline=$ac_kw; break
19384 echo "$as_me: failed program was:" >&5
19385 sed 's/^/| /' conftest.$ac_ext >&5
19388 rm -f conftest.$ac_objext conftest.$ac_ext
19392 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19393 echo "${ECHO_T}$ac_cv_c_inline" >&6
19394 case $ac_cv_c_inline in
19397 cat >>confdefs.h <<\_ACEOF
19401 *) cat >>confdefs.h <<_ACEOF
19402 #define inline $ac_cv_c_inline
19408 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19409 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19410 if test "${ac_cv_c_bigendian+set}" = set; then
19411 echo $ECHO_N "(cached) $ECHO_C" >&6
19413 # See if sys/param.h defines the BYTE_ORDER macro.
19414 cat >conftest.$ac_ext <<_ACEOF
19415 #line $LINENO "configure"
19418 cat confdefs.h >>conftest.$ac_ext
19419 cat >>conftest.$ac_ext <<_ACEOF
19420 /* end confdefs.h. */
19421 #include <sys/types.h>
19422 #include <sys/param.h>
19427 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19428 bogus endian macros
19435 rm -f conftest.$ac_objext
19436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19437 (eval $ac_compile) 2>&5
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); } &&
19441 { ac_try='test -s conftest.$ac_objext'
19442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19443 (eval $ac_try) 2>&5
19445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446 (exit $ac_status); }; }; then
19447 # It does; now see whether it defined to BIG_ENDIAN or not.
19448 cat >conftest.$ac_ext <<_ACEOF
19449 #line $LINENO "configure"
19452 cat confdefs.h >>conftest.$ac_ext
19453 cat >>conftest.$ac_ext <<_ACEOF
19454 /* end confdefs.h. */
19455 #include <sys/types.h>
19456 #include <sys/param.h>
19461 #if BYTE_ORDER != BIG_ENDIAN
19469 rm -f conftest.$ac_objext
19470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19471 (eval $ac_compile) 2>&5
19473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474 (exit $ac_status); } &&
19475 { ac_try='test -s conftest.$ac_objext'
19476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19477 (eval $ac_try) 2>&5
19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 (exit $ac_status); }; }; then
19481 ac_cv_c_bigendian=yes
19483 echo "$as_me: failed program was:" >&5
19484 sed 's/^/| /' conftest.$ac_ext >&5
19486 ac_cv_c_bigendian=no
19488 rm -f conftest.$ac_objext conftest.$ac_ext
19490 echo "$as_me: failed program was:" >&5
19491 sed 's/^/| /' conftest.$ac_ext >&5
19493 # It does not; compile a test program.
19494 if test "$cross_compiling" = yes; then
19495 # try to guess the endianness by grepping values into an object file
19496 ac_cv_c_bigendian=unknown
19497 cat >conftest.$ac_ext <<_ACEOF
19498 #line $LINENO "configure"
19501 cat confdefs.h >>conftest.$ac_ext
19502 cat >>conftest.$ac_ext <<_ACEOF
19503 /* end confdefs.h. */
19504 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19505 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19506 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19507 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19508 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19509 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19513 _ascii (); _ebcdic ();
19518 rm -f conftest.$ac_objext
19519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19520 (eval $ac_compile) 2>&5
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); } &&
19524 { ac_try='test -s conftest.$ac_objext'
19525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19526 (eval $ac_try) 2>&5
19528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529 (exit $ac_status); }; }; then
19530 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
19531 ac_cv_c_bigendian=yes
19533 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19534 if test "$ac_cv_c_bigendian" = unknown; then
19535 ac_cv_c_bigendian=no
19537 # finding both strings is unlikely to happen, but who knows?
19538 ac_cv_c_bigendian=unknown
19542 echo "$as_me: failed program was:" >&5
19543 sed 's/^/| /' conftest.$ac_ext >&5
19546 rm -f conftest.$ac_objext conftest.$ac_ext
19548 cat >conftest.$ac_ext <<_ACEOF
19549 #line $LINENO "configure"
19552 cat confdefs.h >>conftest.$ac_ext
19553 cat >>conftest.$ac_ext <<_ACEOF
19554 /* end confdefs.h. */
19558 /* Are we little or big endian? From Harbison&Steele. */
19562 char c[sizeof (long)];
19565 exit (u.c[sizeof (long) - 1] == 1);
19568 rm -f conftest$ac_exeext
19569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19570 (eval $ac_link) 2>&5
19572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19575 (eval $ac_try) 2>&5
19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); }; }; then
19579 ac_cv_c_bigendian=no
19581 echo "$as_me: program exited with status $ac_status" >&5
19582 echo "$as_me: failed program was:" >&5
19583 sed 's/^/| /' conftest.$ac_ext >&5
19585 ( exit $ac_status )
19586 ac_cv_c_bigendian=yes
19588 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19591 rm -f conftest.$ac_objext conftest.$ac_ext
19593 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19594 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19595 case $ac_cv_c_bigendian in
19597 cat >>confdefs.h <<\_ACEOF
19598 #define ENDIAN_BIG 1
19602 cat >>confdefs.h <<\_ACEOF
19603 #define ENDIAN_LITTLE 1
19607 { { echo "$as_me:$LINENO: error: unknown endianness
19608 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
19609 echo "$as_me: error: unknown endianness
19610 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19611 { (exit 1); exit 1; }; } ;;
19615 echo "$as_me:$LINENO: checking for pid_t" >&5
19616 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19617 if test "${ac_cv_type_pid_t+set}" = set; then
19618 echo $ECHO_N "(cached) $ECHO_C" >&6
19620 cat >conftest.$ac_ext <<_ACEOF
19621 #line $LINENO "configure"
19624 cat confdefs.h >>conftest.$ac_ext
19625 cat >>conftest.$ac_ext <<_ACEOF
19626 /* end confdefs.h. */
19627 $ac_includes_default
19633 if (sizeof (pid_t))
19639 rm -f conftest.$ac_objext
19640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19641 (eval $ac_compile) 2>&5
19643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644 (exit $ac_status); } &&
19645 { ac_try='test -s conftest.$ac_objext'
19646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19647 (eval $ac_try) 2>&5
19649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650 (exit $ac_status); }; }; then
19651 ac_cv_type_pid_t=yes
19653 echo "$as_me: failed program was:" >&5
19654 sed 's/^/| /' conftest.$ac_ext >&5
19656 ac_cv_type_pid_t=no
19658 rm -f conftest.$ac_objext conftest.$ac_ext
19660 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19661 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19662 if test $ac_cv_type_pid_t = yes; then
19666 cat >>confdefs.h <<_ACEOF
19672 echo "$as_me:$LINENO: checking for size_t" >&5
19673 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19674 if test "${ac_cv_type_size_t+set}" = set; then
19675 echo $ECHO_N "(cached) $ECHO_C" >&6
19677 cat >conftest.$ac_ext <<_ACEOF
19678 #line $LINENO "configure"
19681 cat confdefs.h >>conftest.$ac_ext
19682 cat >>conftest.$ac_ext <<_ACEOF
19683 /* end confdefs.h. */
19684 $ac_includes_default
19690 if (sizeof (size_t))
19696 rm -f conftest.$ac_objext
19697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19698 (eval $ac_compile) 2>&5
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); } &&
19702 { ac_try='test -s conftest.$ac_objext'
19703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19704 (eval $ac_try) 2>&5
19706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707 (exit $ac_status); }; }; then
19708 ac_cv_type_size_t=yes
19710 echo "$as_me: failed program was:" >&5
19711 sed 's/^/| /' conftest.$ac_ext >&5
19713 ac_cv_type_size_t=no
19715 rm -f conftest.$ac_objext conftest.$ac_ext
19717 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19718 echo "${ECHO_T}$ac_cv_type_size_t" >&6
19719 if test $ac_cv_type_size_t = yes; then
19723 cat >>confdefs.h <<_ACEOF
19724 #define size_t unsigned
19729 echo "$as_me:$LINENO: checking for int64_t" >&5
19730 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
19731 if test "${ac_cv_type_int64_t+set}" = set; then
19732 echo $ECHO_N "(cached) $ECHO_C" >&6
19734 cat >conftest.$ac_ext <<_ACEOF
19735 #line $LINENO "configure"
19738 cat confdefs.h >>conftest.$ac_ext
19739 cat >>conftest.$ac_ext <<_ACEOF
19740 /* end confdefs.h. */
19741 $ac_includes_default
19747 if (sizeof (int64_t))
19753 rm -f conftest.$ac_objext
19754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19755 (eval $ac_compile) 2>&5
19757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758 (exit $ac_status); } &&
19759 { ac_try='test -s conftest.$ac_objext'
19760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19761 (eval $ac_try) 2>&5
19763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764 (exit $ac_status); }; }; then
19765 ac_cv_type_int64_t=yes
19767 echo "$as_me: failed program was:" >&5
19768 sed 's/^/| /' conftest.$ac_ext >&5
19770 ac_cv_type_int64_t=no
19772 rm -f conftest.$ac_objext conftest.$ac_ext
19774 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
19775 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
19776 if test $ac_cv_type_int64_t = yes; then
19778 cat >>confdefs.h <<_ACEOF
19779 #define HAVE_INT64_T 1
19784 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
19785 echo "$as_me: error: Type int64_t required but not found" >&2;}
19786 { (exit 1); exit 1; }; }
19789 echo "$as_me:$LINENO: checking for uint64_t" >&5
19790 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
19791 if test "${ac_cv_type_uint64_t+set}" = set; then
19792 echo $ECHO_N "(cached) $ECHO_C" >&6
19794 cat >conftest.$ac_ext <<_ACEOF
19795 #line $LINENO "configure"
19798 cat confdefs.h >>conftest.$ac_ext
19799 cat >>conftest.$ac_ext <<_ACEOF
19800 /* end confdefs.h. */
19801 $ac_includes_default
19805 if ((uint64_t *) 0)
19807 if (sizeof (uint64_t))
19813 rm -f conftest.$ac_objext
19814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19815 (eval $ac_compile) 2>&5
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); } &&
19819 { ac_try='test -s conftest.$ac_objext'
19820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19821 (eval $ac_try) 2>&5
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); }; }; then
19825 ac_cv_type_uint64_t=yes
19827 echo "$as_me: failed program was:" >&5
19828 sed 's/^/| /' conftest.$ac_ext >&5
19830 ac_cv_type_uint64_t=no
19832 rm -f conftest.$ac_objext conftest.$ac_ext
19834 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
19835 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
19836 if test $ac_cv_type_uint64_t = yes; then
19838 cat >>confdefs.h <<_ACEOF
19839 #define HAVE_UINT64_T 1
19844 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
19845 echo "$as_me: error: Type uint64_t required but not found" >&2;}
19846 { (exit 1); exit 1; }; }
19849 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19850 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19851 if test "${ac_cv_header_time+set}" = set; then
19852 echo $ECHO_N "(cached) $ECHO_C" >&6
19854 cat >conftest.$ac_ext <<_ACEOF
19855 #line $LINENO "configure"
19858 cat confdefs.h >>conftest.$ac_ext
19859 cat >>conftest.$ac_ext <<_ACEOF
19860 /* end confdefs.h. */
19861 #include <sys/types.h>
19862 #include <sys/time.h>
19868 if ((struct tm *) 0)
19874 rm -f conftest.$ac_objext
19875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19876 (eval $ac_compile) 2>&5
19878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879 (exit $ac_status); } &&
19880 { ac_try='test -s conftest.$ac_objext'
19881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19882 (eval $ac_try) 2>&5
19884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885 (exit $ac_status); }; }; then
19886 ac_cv_header_time=yes
19888 echo "$as_me: failed program was:" >&5
19889 sed 's/^/| /' conftest.$ac_ext >&5
19891 ac_cv_header_time=no
19893 rm -f conftest.$ac_objext conftest.$ac_ext
19895 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19896 echo "${ECHO_T}$ac_cv_header_time" >&6
19897 if test $ac_cv_header_time = yes; then
19899 cat >>confdefs.h <<\_ACEOF
19900 #define TIME_WITH_SYS_TIME 1
19905 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19906 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
19907 if test "${ac_cv_struct_tm+set}" = set; then
19908 echo $ECHO_N "(cached) $ECHO_C" >&6
19910 cat >conftest.$ac_ext <<_ACEOF
19911 #line $LINENO "configure"
19914 cat confdefs.h >>conftest.$ac_ext
19915 cat >>conftest.$ac_ext <<_ACEOF
19916 /* end confdefs.h. */
19917 #include <sys/types.h>
19923 struct tm *tp; tp->tm_sec;
19928 rm -f conftest.$ac_objext
19929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19930 (eval $ac_compile) 2>&5
19932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933 (exit $ac_status); } &&
19934 { ac_try='test -s conftest.$ac_objext'
19935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19936 (eval $ac_try) 2>&5
19938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939 (exit $ac_status); }; }; then
19940 ac_cv_struct_tm=time.h
19942 echo "$as_me: failed program was:" >&5
19943 sed 's/^/| /' conftest.$ac_ext >&5
19945 ac_cv_struct_tm=sys/time.h
19947 rm -f conftest.$ac_objext conftest.$ac_ext
19949 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19950 echo "${ECHO_T}$ac_cv_struct_tm" >&6
19951 if test $ac_cv_struct_tm = sys/time.h; then
19953 cat >>confdefs.h <<\_ACEOF
19954 #define TM_IN_SYS_TIME 1
19960 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
19961 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
19962 if test "${ac_cv_cxx_namespaces+set}" = set; then
19963 echo $ECHO_N "(cached) $ECHO_C" >&6
19968 ac_cpp='$CXXCPP $CPPFLAGS'
19969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19973 cat >conftest.$ac_ext <<_ACEOF
19974 #line $LINENO "configure"
19977 cat confdefs.h >>conftest.$ac_ext
19978 cat >>conftest.$ac_ext <<_ACEOF
19979 /* end confdefs.h. */
19980 namespace Outer { namespace Inner { int i = 0; }}
19984 using namespace Outer::Inner; return i;
19989 rm -f conftest.$ac_objext
19990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19991 (eval $ac_compile) 2>&5
19993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994 (exit $ac_status); } &&
19995 { ac_try='test -s conftest.$ac_objext'
19996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19997 (eval $ac_try) 2>&5
19999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000 (exit $ac_status); }; }; then
20001 ac_cv_cxx_namespaces=yes
20003 echo "$as_me: failed program was:" >&5
20004 sed 's/^/| /' conftest.$ac_ext >&5
20006 ac_cv_cxx_namespaces=no
20008 rm -f conftest.$ac_objext conftest.$ac_ext
20010 ac_cpp='$CPP $CPPFLAGS'
20011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20017 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20018 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20019 if test "$ac_cv_cxx_namespaces" = yes; then
20021 cat >>confdefs.h <<\_ACEOF
20022 #define HAVE_NAMESPACES
20027 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20028 echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20029 if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20030 echo $ECHO_N "(cached) $ECHO_C" >&6
20036 ac_cpp='$CXXCPP $CPPFLAGS'
20037 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20038 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20039 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20041 cat >conftest.$ac_ext <<_ACEOF
20042 #line $LINENO "configure"
20045 cat confdefs.h >>conftest.$ac_ext
20046 cat >>conftest.$ac_ext <<_ACEOF
20047 /* end confdefs.h. */
20048 #include <ext/hash_map>
20049 #ifdef HAVE_NAMESPACES
20050 using namespace std;
20055 hash_map<int, int> t; return 0;
20060 rm -f conftest.$ac_objext
20061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20062 (eval $ac_compile) 2>&5
20064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065 (exit $ac_status); } &&
20066 { ac_try='test -s conftest.$ac_objext'
20067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20068 (eval $ac_try) 2>&5
20070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071 (exit $ac_status); }; }; then
20072 ac_cv_cxx_have_ext_hash_map=std
20074 echo "$as_me: failed program was:" >&5
20075 sed 's/^/| /' conftest.$ac_ext >&5
20077 ac_cv_cxx_have_ext_hash_map=no
20079 rm -f conftest.$ac_objext conftest.$ac_ext
20080 cat >conftest.$ac_ext <<_ACEOF
20081 #line $LINENO "configure"
20084 cat confdefs.h >>conftest.$ac_ext
20085 cat >>conftest.$ac_ext <<_ACEOF
20086 /* end confdefs.h. */
20087 #include <ext/hash_map>
20088 #ifdef HAVE_NAMESPACES
20089 using namespace __gnu_cxx;
20094 hash_map<int, int> t; return 0;
20099 rm -f conftest.$ac_objext
20100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20101 (eval $ac_compile) 2>&5
20103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104 (exit $ac_status); } &&
20105 { ac_try='test -s conftest.$ac_objext'
20106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20107 (eval $ac_try) 2>&5
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); }; }; then
20111 ac_cv_cxx_have_ext_hash_map=gnu
20113 echo "$as_me: failed program was:" >&5
20114 sed 's/^/| /' conftest.$ac_ext >&5
20116 ac_cv_cxx_have_ext_hash_map=no
20118 rm -f conftest.$ac_objext conftest.$ac_ext
20120 ac_cpp='$CPP $CPPFLAGS'
20121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20127 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20128 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20129 if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20131 cat >>confdefs.h <<\_ACEOF
20132 #define HAVE_STD_EXT_HASH_MAP
20136 if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20138 cat >>confdefs.h <<\_ACEOF
20139 #define HAVE_GNU_EXT_HASH_MAP
20144 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20145 echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20146 if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20147 echo $ECHO_N "(cached) $ECHO_C" >&6
20153 ac_cpp='$CXXCPP $CPPFLAGS'
20154 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20155 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20156 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20158 cat >conftest.$ac_ext <<_ACEOF
20159 #line $LINENO "configure"
20162 cat confdefs.h >>conftest.$ac_ext
20163 cat >>conftest.$ac_ext <<_ACEOF
20164 /* end confdefs.h. */
20165 #include <ext/hash_set>
20166 #ifdef HAVE_NAMESPACES
20167 using namespace std;
20172 hash_set<int> t; return 0;
20177 rm -f conftest.$ac_objext
20178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20179 (eval $ac_compile) 2>&5
20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182 (exit $ac_status); } &&
20183 { ac_try='test -s conftest.$ac_objext'
20184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20185 (eval $ac_try) 2>&5
20187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188 (exit $ac_status); }; }; then
20189 ac_cv_cxx_have_ext_hash_set=std
20191 echo "$as_me: failed program was:" >&5
20192 sed 's/^/| /' conftest.$ac_ext >&5
20194 ac_cv_cxx_have_ext_hash_set=no
20196 rm -f conftest.$ac_objext conftest.$ac_ext
20197 cat >conftest.$ac_ext <<_ACEOF
20198 #line $LINENO "configure"
20201 cat confdefs.h >>conftest.$ac_ext
20202 cat >>conftest.$ac_ext <<_ACEOF
20203 /* end confdefs.h. */
20204 #include <ext/hash_set>
20205 #ifdef HAVE_NAMESPACES
20206 using namespace __gnu_cxx;
20211 hash_set<int> t; return 0;
20216 rm -f conftest.$ac_objext
20217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20218 (eval $ac_compile) 2>&5
20220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221 (exit $ac_status); } &&
20222 { ac_try='test -s conftest.$ac_objext'
20223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20224 (eval $ac_try) 2>&5
20226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227 (exit $ac_status); }; }; then
20228 ac_cv_cxx_have_ext_hash_set=gnu
20230 echo "$as_me: failed program was:" >&5
20231 sed 's/^/| /' conftest.$ac_ext >&5
20233 ac_cv_cxx_have_ext_hash_set=no
20235 rm -f conftest.$ac_objext conftest.$ac_ext
20237 ac_cpp='$CPP $CPPFLAGS'
20238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20244 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
20245 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
20246 if test "$ac_cv_cxx_have_ext_hash_set" = std; then
20248 cat >>confdefs.h <<\_ACEOF
20249 #define HAVE_STD_EXT_HASH_SET
20253 if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
20255 cat >>confdefs.h <<\_ACEOF
20256 #define HAVE_GNU_EXT_HASH_SET
20261 echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
20262 echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
20263 if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
20264 echo $ECHO_N "(cached) $ECHO_C" >&6
20270 ac_cpp='$CXXCPP $CPPFLAGS'
20271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20275 cat >conftest.$ac_ext <<_ACEOF
20276 #line $LINENO "configure"
20279 cat confdefs.h >>conftest.$ac_ext
20280 cat >>conftest.$ac_ext <<_ACEOF
20281 /* end confdefs.h. */
20282 #include <ext/slist>
20283 #ifdef HAVE_NAMESPACES
20284 using namespace std;
20289 slist<int> s; return 0;
20294 rm -f conftest.$ac_objext
20295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20296 (eval $ac_compile) 2>&5
20298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299 (exit $ac_status); } &&
20300 { ac_try='test -s conftest.$ac_objext'
20301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20302 (eval $ac_try) 2>&5
20304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305 (exit $ac_status); }; }; then
20306 ac_cv_cxx_have_ext_slist=std
20308 echo "$as_me: failed program was:" >&5
20309 sed 's/^/| /' conftest.$ac_ext >&5
20311 ac_cv_cxx_have_ext_slist=no
20313 rm -f conftest.$ac_objext conftest.$ac_ext
20314 cat >conftest.$ac_ext <<_ACEOF
20315 #line $LINENO "configure"
20318 cat confdefs.h >>conftest.$ac_ext
20319 cat >>conftest.$ac_ext <<_ACEOF
20320 /* end confdefs.h. */
20321 #include <ext/slist>
20322 #ifdef HAVE_NAMESPACES
20323 using namespace __gnu_cxx;
20328 slist<int> s; return 0;
20333 rm -f conftest.$ac_objext
20334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20335 (eval $ac_compile) 2>&5
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); } &&
20339 { ac_try='test -s conftest.$ac_objext'
20340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20341 (eval $ac_try) 2>&5
20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344 (exit $ac_status); }; }; then
20345 ac_cv_cxx_have_ext_slist=gnu
20347 echo "$as_me: failed program was:" >&5
20348 sed 's/^/| /' conftest.$ac_ext >&5
20350 ac_cv_cxx_have_ext_slist=no
20352 rm -f conftest.$ac_objext conftest.$ac_ext
20355 ac_cpp='$CPP $CPPFLAGS'
20356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20362 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
20363 echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
20364 if test "$ac_cv_cxx_have_ext_slist" = std; then
20366 cat >>confdefs.h <<\_ACEOF
20367 #define HAVE_EXT_SLIST std
20371 if test "$ac_cv_cxx_have_ext_slist" = gnu; then
20373 cat >>confdefs.h <<\_ACEOF
20374 #define HAVE_EXT_SLIST gnu
20379 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
20380 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
20381 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
20382 echo $ECHO_N "(cached) $ECHO_C" >&6
20388 ac_cpp='$CXXCPP $CPPFLAGS'
20389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20393 cat >conftest.$ac_ext <<_ACEOF
20394 #line $LINENO "configure"
20397 cat confdefs.h >>conftest.$ac_ext
20398 cat >>conftest.$ac_ext <<_ACEOF
20399 /* end confdefs.h. */
20400 #include <iterator>
20401 #ifdef HAVE_NAMESPACES
20402 using namespace std;
20407 iterator<int,int,int> t; return 0;
20412 rm -f conftest.$ac_objext
20413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20414 (eval $ac_compile) 2>&5
20416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417 (exit $ac_status); } &&
20418 { ac_try='test -s conftest.$ac_objext'
20419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20420 (eval $ac_try) 2>&5
20422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423 (exit $ac_status); }; }; then
20424 ac_cv_cxx_have_std_iterator=yes
20426 echo "$as_me: failed program was:" >&5
20427 sed 's/^/| /' conftest.$ac_ext >&5
20429 ac_cv_cxx_have_std_iterator=no
20431 rm -f conftest.$ac_objext conftest.$ac_ext
20433 ac_cpp='$CPP $CPPFLAGS'
20434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20440 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
20441 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
20442 if test "$ac_cv_cxx_have_std_iterator" = yes; then
20444 cat >>confdefs.h <<\_ACEOF
20445 #define HAVE_STD_ITERATOR
20450 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
20451 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
20452 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
20453 echo $ECHO_N "(cached) $ECHO_C" >&6
20459 ac_cpp='$CXXCPP $CPPFLAGS'
20460 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20461 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20462 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20464 cat >conftest.$ac_ext <<_ACEOF
20465 #line $LINENO "configure"
20468 cat confdefs.h >>conftest.$ac_ext
20469 cat >>conftest.$ac_ext <<_ACEOF
20470 /* end confdefs.h. */
20471 #include <iterator>
20472 #ifdef HAVE_NAMESPACES
20473 using namespace std;
20478 bidirectional_iterator<int,int,int> t; return 0;
20483 rm -f conftest.$ac_objext
20484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20485 (eval $ac_compile) 2>&5
20487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); } &&
20489 { ac_try='test -s conftest.$ac_objext'
20490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20491 (eval $ac_try) 2>&5
20493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494 (exit $ac_status); }; }; then
20495 ac_cv_cxx_have_bi_iterator=yes
20497 echo "$as_me: failed program was:" >&5
20498 sed 's/^/| /' conftest.$ac_ext >&5
20500 ac_cv_cxx_have_bi_iterator=no
20502 rm -f conftest.$ac_objext conftest.$ac_ext
20504 ac_cpp='$CPP $CPPFLAGS'
20505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20511 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
20512 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
20513 if test "$ac_cv_cxx_have_bi_iterator" = yes; then
20515 cat >>confdefs.h <<\_ACEOF
20516 #define HAVE_BI_ITERATOR
20521 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
20522 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
20523 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
20524 echo $ECHO_N "(cached) $ECHO_C" >&6
20530 ac_cpp='$CXXCPP $CPPFLAGS'
20531 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20532 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20533 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20535 cat >conftest.$ac_ext <<_ACEOF
20536 #line $LINENO "configure"
20539 cat confdefs.h >>conftest.$ac_ext
20540 cat >>conftest.$ac_ext <<_ACEOF
20541 /* end confdefs.h. */
20542 #include <iterator>
20543 #ifdef HAVE_NAMESPACES
20544 using namespace std;
20549 forward_iterator<int,int,int> t; return 0;
20554 rm -f conftest.$ac_objext
20555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20556 (eval $ac_compile) 2>&5
20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559 (exit $ac_status); } &&
20560 { ac_try='test -s conftest.$ac_objext'
20561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20562 (eval $ac_try) 2>&5
20564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565 (exit $ac_status); }; }; then
20566 ac_cv_cxx_have_fwd_iterator=yes
20568 echo "$as_me: failed program was:" >&5
20569 sed 's/^/| /' conftest.$ac_ext >&5
20571 ac_cv_cxx_have_fwd_iterator=no
20573 rm -f conftest.$ac_objext conftest.$ac_ext
20575 ac_cpp='$CPP $CPPFLAGS'
20576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20582 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
20583 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
20584 if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
20586 cat >>confdefs.h <<\_ACEOF
20587 #define HAVE_FWD_ITERATOR
20593 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20594 # for constant arguments. Useless!
20595 echo "$as_me:$LINENO: checking for working alloca.h" >&5
20596 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
20597 if test "${ac_cv_working_alloca_h+set}" = set; then
20598 echo $ECHO_N "(cached) $ECHO_C" >&6
20600 cat >conftest.$ac_ext <<_ACEOF
20601 #line $LINENO "configure"
20604 cat confdefs.h >>conftest.$ac_ext
20605 cat >>conftest.$ac_ext <<_ACEOF
20606 /* end confdefs.h. */
20607 #include <alloca.h>
20611 char *p = (char *) alloca (2 * sizeof (int));
20616 rm -f conftest.$ac_objext conftest$ac_exeext
20617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20618 (eval $ac_link) 2>&5
20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); } &&
20622 { ac_try='test -s conftest$ac_exeext'
20623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20624 (eval $ac_try) 2>&5
20626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627 (exit $ac_status); }; }; then
20628 ac_cv_working_alloca_h=yes
20630 echo "$as_me: failed program was:" >&5
20631 sed 's/^/| /' conftest.$ac_ext >&5
20633 ac_cv_working_alloca_h=no
20635 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20637 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20638 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
20639 if test $ac_cv_working_alloca_h = yes; then
20641 cat >>confdefs.h <<\_ACEOF
20642 #define HAVE_ALLOCA_H 1
20647 echo "$as_me:$LINENO: checking for alloca" >&5
20648 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
20649 if test "${ac_cv_func_alloca_works+set}" = set; then
20650 echo $ECHO_N "(cached) $ECHO_C" >&6
20652 cat >conftest.$ac_ext <<_ACEOF
20653 #line $LINENO "configure"
20656 cat confdefs.h >>conftest.$ac_ext
20657 cat >>conftest.$ac_ext <<_ACEOF
20658 /* end confdefs.h. */
20660 # define alloca __builtin_alloca
20663 # include <malloc.h>
20664 # define alloca _alloca
20667 # include <alloca.h>
20672 # ifndef alloca /* predefined by HP cc +Olibcalls */
20683 char *p = (char *) alloca (1);
20688 rm -f conftest.$ac_objext conftest$ac_exeext
20689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20690 (eval $ac_link) 2>&5
20692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20693 (exit $ac_status); } &&
20694 { ac_try='test -s conftest$ac_exeext'
20695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20696 (eval $ac_try) 2>&5
20698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699 (exit $ac_status); }; }; then
20700 ac_cv_func_alloca_works=yes
20702 echo "$as_me: failed program was:" >&5
20703 sed 's/^/| /' conftest.$ac_ext >&5
20705 ac_cv_func_alloca_works=no
20707 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20709 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20710 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
20712 if test $ac_cv_func_alloca_works = yes; then
20714 cat >>confdefs.h <<\_ACEOF
20715 #define HAVE_ALLOCA 1
20719 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20720 # that cause trouble. Some versions do not even contain alloca or
20721 # contain a buggy version. If you still want to use their alloca,
20722 # use ar to extract alloca.o from them instead of compiling alloca.c.
20724 ALLOCA=alloca.$ac_objext
20726 cat >>confdefs.h <<\_ACEOF
20731 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20732 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
20733 if test "${ac_cv_os_cray+set}" = set; then
20734 echo $ECHO_N "(cached) $ECHO_C" >&6
20736 cat >conftest.$ac_ext <<_ACEOF
20737 #line $LINENO "configure"
20740 cat confdefs.h >>conftest.$ac_ext
20741 cat >>conftest.$ac_ext <<_ACEOF
20742 /* end confdefs.h. */
20743 #if defined(CRAY) && ! defined(CRAY2)
20750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20751 $EGREP "webecray" >/dev/null 2>&1; then
20759 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20760 echo "${ECHO_T}$ac_cv_os_cray" >&6
20761 if test $ac_cv_os_cray = yes; then
20762 for ac_func in _getb67 GETB67 getb67; do
20763 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20764 echo "$as_me:$LINENO: checking for $ac_func" >&5
20765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20766 if eval "test \"\${$as_ac_var+set}\" = set"; then
20767 echo $ECHO_N "(cached) $ECHO_C" >&6
20769 cat >conftest.$ac_ext <<_ACEOF
20770 #line $LINENO "configure"
20773 cat confdefs.h >>conftest.$ac_ext
20774 cat >>conftest.$ac_ext <<_ACEOF
20775 /* end confdefs.h. */
20776 /* System header to define __stub macros and hopefully few prototypes,
20777 which can conflict with char $ac_func (); below.
20778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20779 <limits.h> exists even on freestanding compilers. */
20781 # include <limits.h>
20783 # include <assert.h>
20785 /* Override any gcc2 internal prototype to avoid an error. */
20790 /* We use char because int might match the return type of a gcc2
20791 builtin and then its argument prototype would still apply. */
20793 /* The GNU C library defines this for functions which it implements
20794 to always fail with ENOSYS. Some functions are actually named
20795 something starting with __ and the normal name is an alias. */
20796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20799 char (*f) () = $ac_func;
20808 return f != $ac_func;
20813 rm -f conftest.$ac_objext conftest$ac_exeext
20814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20815 (eval $ac_link) 2>&5
20817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818 (exit $ac_status); } &&
20819 { ac_try='test -s conftest$ac_exeext'
20820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20821 (eval $ac_try) 2>&5
20823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824 (exit $ac_status); }; }; then
20825 eval "$as_ac_var=yes"
20827 echo "$as_me: failed program was:" >&5
20828 sed 's/^/| /' conftest.$ac_ext >&5
20830 eval "$as_ac_var=no"
20832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20835 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20836 if test `eval echo '${'$as_ac_var'}'` = yes; then
20838 cat >>confdefs.h <<_ACEOF
20839 #define CRAY_STACKSEG_END $ac_func
20848 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20849 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
20850 if test "${ac_cv_c_stack_direction+set}" = set; then
20851 echo $ECHO_N "(cached) $ECHO_C" >&6
20853 if test "$cross_compiling" = yes; then
20854 ac_cv_c_stack_direction=0
20856 cat >conftest.$ac_ext <<_ACEOF
20857 #line $LINENO "configure"
20860 cat confdefs.h >>conftest.$ac_ext
20861 cat >>conftest.$ac_ext <<_ACEOF
20862 /* end confdefs.h. */
20864 find_stack_direction ()
20866 static char *addr = 0;
20871 return find_stack_direction ();
20874 return (&dummy > addr) ? 1 : -1;
20880 exit (find_stack_direction () < 0);
20883 rm -f conftest$ac_exeext
20884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20885 (eval $ac_link) 2>&5
20887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20890 (eval $ac_try) 2>&5
20892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893 (exit $ac_status); }; }; then
20894 ac_cv_c_stack_direction=1
20896 echo "$as_me: program exited with status $ac_status" >&5
20897 echo "$as_me: failed program was:" >&5
20898 sed 's/^/| /' conftest.$ac_ext >&5
20900 ( exit $ac_status )
20901 ac_cv_c_stack_direction=-1
20903 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20906 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20907 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
20909 cat >>confdefs.h <<_ACEOF
20910 #define STACK_DIRECTION $ac_cv_c_stack_direction
20916 if test $ac_cv_c_compiler_gnu = yes; then
20917 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
20918 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
20919 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
20920 echo $ECHO_N "(cached) $ECHO_C" >&6
20922 ac_pattern="Autoconf.*'x'"
20923 cat >conftest.$ac_ext <<_ACEOF
20924 #line $LINENO "configure"
20927 cat confdefs.h >>conftest.$ac_ext
20928 cat >>conftest.$ac_ext <<_ACEOF
20929 /* end confdefs.h. */
20933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20934 $EGREP "$ac_pattern" >/dev/null 2>&1; then
20935 ac_cv_prog_gcc_traditional=yes
20937 ac_cv_prog_gcc_traditional=no
20942 if test $ac_cv_prog_gcc_traditional = no; then
20943 cat >conftest.$ac_ext <<_ACEOF
20944 #line $LINENO "configure"
20947 cat confdefs.h >>conftest.$ac_ext
20948 cat >>conftest.$ac_ext <<_ACEOF
20949 /* end confdefs.h. */
20950 #include <termio.h>
20953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20954 $EGREP "$ac_pattern" >/dev/null 2>&1; then
20955 ac_cv_prog_gcc_traditional=yes
20961 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
20962 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
20963 if test $ac_cv_prog_gcc_traditional = yes; then
20964 CC="$CC -traditional"
20968 echo "$as_me:$LINENO: checking for working memcmp" >&5
20969 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
20970 if test "${ac_cv_func_memcmp_working+set}" = set; then
20971 echo $ECHO_N "(cached) $ECHO_C" >&6
20973 if test "$cross_compiling" = yes; then
20974 ac_cv_func_memcmp_working=no
20976 cat >conftest.$ac_ext <<_ACEOF
20977 #line $LINENO "configure"
20980 cat confdefs.h >>conftest.$ac_ext
20981 cat >>conftest.$ac_ext <<_ACEOF
20982 /* end confdefs.h. */
20988 /* Some versions of memcmp are not 8-bit clean. */
20989 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
20990 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
20993 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
20994 or more and with at least one buffer not starting on a 4-byte boundary.
20995 William Lewis provided this test program. */
21000 for (i = 0; i < 4; i++)
21004 strcpy (a, "--------01111111");
21005 strcpy (b, "--------10000000");
21006 if (memcmp (a, b, 16) >= 0)
21016 rm -f conftest$ac_exeext
21017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21018 (eval $ac_link) 2>&5
21020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21023 (eval $ac_try) 2>&5
21025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026 (exit $ac_status); }; }; then
21027 ac_cv_func_memcmp_working=yes
21029 echo "$as_me: program exited with status $ac_status" >&5
21030 echo "$as_me: failed program was:" >&5
21031 sed 's/^/| /' conftest.$ac_ext >&5
21033 ( exit $ac_status )
21034 ac_cv_func_memcmp_working=no
21036 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21039 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21040 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21041 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21045 for ac_header in stdlib.h unistd.h
21047 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21049 echo "$as_me:$LINENO: checking for $ac_header" >&5
21050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21051 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21052 echo $ECHO_N "(cached) $ECHO_C" >&6
21054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21057 # Is the header compilable?
21058 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21059 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21060 cat >conftest.$ac_ext <<_ACEOF
21061 #line $LINENO "configure"
21064 cat confdefs.h >>conftest.$ac_ext
21065 cat >>conftest.$ac_ext <<_ACEOF
21066 /* end confdefs.h. */
21067 $ac_includes_default
21068 #include <$ac_header>
21070 rm -f conftest.$ac_objext
21071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21072 (eval $ac_compile) 2>&5
21074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075 (exit $ac_status); } &&
21076 { ac_try='test -s conftest.$ac_objext'
21077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21078 (eval $ac_try) 2>&5
21080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21081 (exit $ac_status); }; }; then
21082 ac_header_compiler=yes
21084 echo "$as_me: failed program was:" >&5
21085 sed 's/^/| /' conftest.$ac_ext >&5
21087 ac_header_compiler=no
21089 rm -f conftest.$ac_objext conftest.$ac_ext
21090 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21091 echo "${ECHO_T}$ac_header_compiler" >&6
21093 # Is the header present?
21094 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21095 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21096 cat >conftest.$ac_ext <<_ACEOF
21097 #line $LINENO "configure"
21100 cat confdefs.h >>conftest.$ac_ext
21101 cat >>conftest.$ac_ext <<_ACEOF
21102 /* end confdefs.h. */
21103 #include <$ac_header>
21105 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21106 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21108 grep -v '^ *+' conftest.er1 >conftest.err
21110 cat conftest.err >&5
21111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112 (exit $ac_status); } >/dev/null; then
21113 if test -s conftest.err; then
21114 ac_cpp_err=$ac_c_preproc_warn_flag
21121 if test -z "$ac_cpp_err"; then
21122 ac_header_preproc=yes
21124 echo "$as_me: failed program was:" >&5
21125 sed 's/^/| /' conftest.$ac_ext >&5
21127 ac_header_preproc=no
21129 rm -f conftest.err conftest.$ac_ext
21130 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21131 echo "${ECHO_T}$ac_header_preproc" >&6
21133 # So? What about this header?
21134 case $ac_header_compiler:$ac_header_preproc in
21136 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21137 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21139 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21142 ## ------------------------------------ ##
21143 ## Report this to bug-autoconf@gnu.org. ##
21144 ## ------------------------------------ ##
21147 sed "s/^/$as_me: WARNING: /" >&2
21150 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21151 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21152 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21153 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21158 ## ------------------------------------ ##
21159 ## Report this to bug-autoconf@gnu.org. ##
21160 ## ------------------------------------ ##
21163 sed "s/^/$as_me: WARNING: /" >&2
21166 echo "$as_me:$LINENO: checking for $ac_header" >&5
21167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21169 echo $ECHO_N "(cached) $ECHO_C" >&6
21171 eval "$as_ac_Header=$ac_header_preproc"
21173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21174 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21177 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21178 cat >>confdefs.h <<_ACEOF
21179 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21187 for ac_func in getpagesize
21189 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21190 echo "$as_me:$LINENO: checking for $ac_func" >&5
21191 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21192 if eval "test \"\${$as_ac_var+set}\" = set"; then
21193 echo $ECHO_N "(cached) $ECHO_C" >&6
21195 cat >conftest.$ac_ext <<_ACEOF
21196 #line $LINENO "configure"
21199 cat confdefs.h >>conftest.$ac_ext
21200 cat >>conftest.$ac_ext <<_ACEOF
21201 /* end confdefs.h. */
21202 /* System header to define __stub macros and hopefully few prototypes,
21203 which can conflict with char $ac_func (); below.
21204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21205 <limits.h> exists even on freestanding compilers. */
21207 # include <limits.h>
21209 # include <assert.h>
21211 /* Override any gcc2 internal prototype to avoid an error. */
21216 /* We use char because int might match the return type of a gcc2
21217 builtin and then its argument prototype would still apply. */
21219 /* The GNU C library defines this for functions which it implements
21220 to always fail with ENOSYS. Some functions are actually named
21221 something starting with __ and the normal name is an alias. */
21222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21225 char (*f) () = $ac_func;
21234 return f != $ac_func;
21239 rm -f conftest.$ac_objext conftest$ac_exeext
21240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21241 (eval $ac_link) 2>&5
21243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244 (exit $ac_status); } &&
21245 { ac_try='test -s conftest$ac_exeext'
21246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21247 (eval $ac_try) 2>&5
21249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250 (exit $ac_status); }; }; then
21251 eval "$as_ac_var=yes"
21253 echo "$as_me: failed program was:" >&5
21254 sed 's/^/| /' conftest.$ac_ext >&5
21256 eval "$as_ac_var=no"
21258 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21261 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21262 if test `eval echo '${'$as_ac_var'}'` = yes; then
21263 cat >>confdefs.h <<_ACEOF
21264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21270 echo "$as_me:$LINENO: checking for working mmap" >&5
21271 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21272 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21273 echo $ECHO_N "(cached) $ECHO_C" >&6
21275 if test "$cross_compiling" = yes; then
21276 ac_cv_func_mmap_fixed_mapped=no
21278 cat >conftest.$ac_ext <<_ACEOF
21279 #line $LINENO "configure"
21282 cat confdefs.h >>conftest.$ac_ext
21283 cat >>conftest.$ac_ext <<_ACEOF
21284 /* end confdefs.h. */
21285 $ac_includes_default
21286 /* malloc might have been renamed as rpl_malloc. */
21289 /* Thanks to Mike Haertel and Jim Avera for this test.
21290 Here is a matrix of mmap possibilities:
21291 mmap private not fixed
21292 mmap private fixed at somewhere currently unmapped
21293 mmap private fixed at somewhere already mapped
21294 mmap shared not fixed
21295 mmap shared fixed at somewhere currently unmapped
21296 mmap shared fixed at somewhere already mapped
21297 For private mappings, we should verify that changes cannot be read()
21298 back from the file, nor mmap's back from the file at a different
21299 address. (There have been systems where private was not correctly
21300 implemented like the infamous i386 svr4.0, and systems where the
21301 VM page cache was not coherent with the file system buffer cache
21302 like early versions of FreeBSD and possibly contemporary NetBSD.)
21303 For shared mappings, we should conversely verify that changes get
21304 propagated back to all the places they're supposed to be.
21306 Grep wants private fixed already mapped.
21307 The main things grep needs to know about mmap are:
21308 * does it exist and is it safe to write into the mmap'd area
21309 * how to use it (BSD variants) */
21312 #include <sys/mman.h>
21314 #if !STDC_HEADERS && !HAVE_STDLIB_H
21318 /* This mess was copied from the GNU getpagesize.h. */
21319 #if !HAVE_GETPAGESIZE
21320 /* Assume that all systems that can run configure have sys/param.h. */
21321 # if !HAVE_SYS_PARAM_H
21322 # define HAVE_SYS_PARAM_H 1
21325 # ifdef _SC_PAGESIZE
21326 # define getpagesize() sysconf(_SC_PAGESIZE)
21327 # else /* no _SC_PAGESIZE */
21328 # if HAVE_SYS_PARAM_H
21329 # include <sys/param.h>
21330 # ifdef EXEC_PAGESIZE
21331 # define getpagesize() EXEC_PAGESIZE
21332 # else /* no EXEC_PAGESIZE */
21334 # define getpagesize() NBPG * CLSIZE
21337 # endif /* no CLSIZE */
21338 # else /* no NBPG */
21340 # define getpagesize() NBPC
21341 # else /* no NBPC */
21343 # define getpagesize() PAGESIZE
21344 # endif /* PAGESIZE */
21345 # endif /* no NBPC */
21346 # endif /* no NBPG */
21347 # endif /* no EXEC_PAGESIZE */
21348 # else /* no HAVE_SYS_PARAM_H */
21349 # define getpagesize() 8192 /* punt totally */
21350 # endif /* no HAVE_SYS_PARAM_H */
21351 # endif /* no _SC_PAGESIZE */
21353 #endif /* no HAVE_GETPAGESIZE */
21358 char *data, *data2, *data3;
21362 pagesize = getpagesize ();
21364 /* First, make a file with some known garbage in it. */
21365 data = (char *) malloc (pagesize);
21368 for (i = 0; i < pagesize; ++i)
21369 *(data + i) = rand ();
21371 fd = creat ("conftest.mmap", 0600);
21374 if (write (fd, data, pagesize) != pagesize)
21378 /* Next, try to mmap the file at a fixed address which already has
21379 something else allocated at it. If we can, also make sure that
21380 we see the same garbage. */
21381 fd = open ("conftest.mmap", O_RDWR);
21384 data2 = (char *) malloc (2 * pagesize);
21387 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21388 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21389 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21391 for (i = 0; i < pagesize; ++i)
21392 if (*(data + i) != *(data2 + i))
21395 /* Finally, make sure that changes to the mapped area do not
21396 percolate back to the file as seen by read(). (This is a bug on
21397 some variants of i386 svr4.0.) */
21398 for (i = 0; i < pagesize; ++i)
21399 *(data2 + i) = *(data2 + i) + 1;
21400 data3 = (char *) malloc (pagesize);
21403 if (read (fd, data3, pagesize) != pagesize)
21405 for (i = 0; i < pagesize; ++i)
21406 if (*(data + i) != *(data3 + i))
21412 rm -f conftest$ac_exeext
21413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21414 (eval $ac_link) 2>&5
21416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21419 (eval $ac_try) 2>&5
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); }; }; then
21423 ac_cv_func_mmap_fixed_mapped=yes
21425 echo "$as_me: program exited with status $ac_status" >&5
21426 echo "$as_me: failed program was:" >&5
21427 sed 's/^/| /' conftest.$ac_ext >&5
21429 ( exit $ac_status )
21430 ac_cv_func_mmap_fixed_mapped=no
21432 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21435 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21436 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
21437 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21439 cat >>confdefs.h <<\_ACEOF
21440 #define HAVE_MMAP 1
21444 rm -f conftest.mmap
21446 echo "$as_me:$LINENO: checking for mmap of files" >&5
21447 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
21448 if test "${ac_cv_func_mmap_file+set}" = set; then
21449 echo $ECHO_N "(cached) $ECHO_C" >&6
21454 ac_cpp='$CPP $CPPFLAGS'
21455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21459 if test "$cross_compiling" = yes; then
21460 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21461 See \`config.log' for more details." >&5
21462 echo "$as_me: error: cannot run test program while cross compiling
21463 See \`config.log' for more details." >&2;}
21464 { (exit 1); exit 1; }; }
21466 cat >conftest.$ac_ext <<_ACEOF
21467 #line $LINENO "configure"
21470 cat confdefs.h >>conftest.$ac_ext
21471 cat >>conftest.$ac_ext <<_ACEOF
21472 /* end confdefs.h. */
21474 #ifdef HAVE_SYS_MMAN_H
21475 #include <sys/mman.h>
21478 #ifdef HAVE_SYS_TYPES_H
21479 #include <sys/types.h>
21482 #ifdef HAVE_FCNTL_H
21488 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
21490 rm -f conftest$ac_exeext
21491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21492 (eval $ac_link) 2>&5
21494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21495 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21497 (eval $ac_try) 2>&5
21499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21500 (exit $ac_status); }; }; then
21501 ac_cv_func_mmap_file=yes
21503 echo "$as_me: program exited with status $ac_status" >&5
21504 echo "$as_me: failed program was:" >&5
21505 sed 's/^/| /' conftest.$ac_ext >&5
21507 ( exit $ac_status )
21508 ac_cv_func_mmap_file=no
21510 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21513 ac_cpp='$CPP $CPPFLAGS'
21514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21520 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21521 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
21522 if test "$ac_cv_func_mmap_file" = yes; then
21523 cat >>confdefs.h <<\_ACEOF
21524 #define HAVE_MMAP_FILE 1
21531 if test ${ac_cv_func_mmap_file} = "no"
21533 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
21534 echo "$as_me: error: mmap() of files required but not found" >&2;}
21535 { (exit 1); exit 1; }; }
21537 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
21538 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
21539 if test "${ac_cv_header_mmap_anon+set}" = set; then
21540 echo $ECHO_N "(cached) $ECHO_C" >&6
21545 ac_cpp='$CPP $CPPFLAGS'
21546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21550 cat >conftest.$ac_ext <<_ACEOF
21551 #line $LINENO "configure"
21554 cat confdefs.h >>conftest.$ac_ext
21555 cat >>conftest.$ac_ext <<_ACEOF
21556 /* end confdefs.h. */
21557 #include <sys/mman.h>
21558 #include <unistd.h>
21563 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
21568 rm -f conftest.$ac_objext
21569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21570 (eval $ac_compile) 2>&5
21572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573 (exit $ac_status); } &&
21574 { ac_try='test -s conftest.$ac_objext'
21575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21576 (eval $ac_try) 2>&5
21578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579 (exit $ac_status); }; }; then
21580 ac_cv_header_mmap_anon=yes
21582 echo "$as_me: failed program was:" >&5
21583 sed 's/^/| /' conftest.$ac_ext >&5
21585 ac_cv_header_mmap_anon=no
21587 rm -f conftest.$ac_objext conftest.$ac_ext
21589 ac_cpp='$CPP $CPPFLAGS'
21590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21596 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
21597 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
21598 if test "$ac_cv_header_mmap_anon" = yes; then
21599 cat >>confdefs.h <<\_ACEOF
21600 #define HAVE_MMAP_ANONYMOUS 1
21605 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21606 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21607 if test "${ac_cv_type_signal+set}" = set; then
21608 echo $ECHO_N "(cached) $ECHO_C" >&6
21610 cat >conftest.$ac_ext <<_ACEOF
21611 #line $LINENO "configure"
21614 cat confdefs.h >>conftest.$ac_ext
21615 cat >>conftest.$ac_ext <<_ACEOF
21616 /* end confdefs.h. */
21617 #include <sys/types.h>
21618 #include <signal.h>
21623 extern "C" void (*signal (int, void (*)(int)))(int);
21625 void (*signal ()) ();
21636 rm -f conftest.$ac_objext
21637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21638 (eval $ac_compile) 2>&5
21640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641 (exit $ac_status); } &&
21642 { ac_try='test -s conftest.$ac_objext'
21643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21644 (eval $ac_try) 2>&5
21646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21647 (exit $ac_status); }; }; then
21648 ac_cv_type_signal=void
21650 echo "$as_me: failed program was:" >&5
21651 sed 's/^/| /' conftest.$ac_ext >&5
21653 ac_cv_type_signal=int
21655 rm -f conftest.$ac_objext conftest.$ac_ext
21657 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21658 echo "${ECHO_T}$ac_cv_type_signal" >&6
21660 cat >>confdefs.h <<_ACEOF
21661 #define RETSIGTYPE $ac_cv_type_signal
21674 for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol
21676 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21677 echo "$as_me:$LINENO: checking for $ac_func" >&5
21678 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21679 if eval "test \"\${$as_ac_var+set}\" = set"; then
21680 echo $ECHO_N "(cached) $ECHO_C" >&6
21682 cat >conftest.$ac_ext <<_ACEOF
21683 #line $LINENO "configure"
21686 cat confdefs.h >>conftest.$ac_ext
21687 cat >>conftest.$ac_ext <<_ACEOF
21688 /* end confdefs.h. */
21689 /* System header to define __stub macros and hopefully few prototypes,
21690 which can conflict with char $ac_func (); below.
21691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21692 <limits.h> exists even on freestanding compilers. */
21694 # include <limits.h>
21696 # include <assert.h>
21698 /* Override any gcc2 internal prototype to avoid an error. */
21703 /* We use char because int might match the return type of a gcc2
21704 builtin and then its argument prototype would still apply. */
21706 /* The GNU C library defines this for functions which it implements
21707 to always fail with ENOSYS. Some functions are actually named
21708 something starting with __ and the normal name is an alias. */
21709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21712 char (*f) () = $ac_func;
21721 return f != $ac_func;
21726 rm -f conftest.$ac_objext conftest$ac_exeext
21727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21728 (eval $ac_link) 2>&5
21730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21731 (exit $ac_status); } &&
21732 { ac_try='test -s conftest$ac_exeext'
21733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21734 (eval $ac_try) 2>&5
21736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737 (exit $ac_status); }; }; then
21738 eval "$as_ac_var=yes"
21740 echo "$as_me: failed program was:" >&5
21741 sed 's/^/| /' conftest.$ac_ext >&5
21743 eval "$as_ac_var=no"
21745 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21748 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21749 if test `eval echo '${'$as_ac_var'}'` = yes; then
21750 cat >>confdefs.h <<_ACEOF
21751 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21759 echo "$as_me:$LINENO: checking for mmap" >&5
21760 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
21761 if test "${ac_cv_func_mmap+set}" = set; then
21762 echo $ECHO_N "(cached) $ECHO_C" >&6
21764 cat >conftest.$ac_ext <<_ACEOF
21765 #line $LINENO "configure"
21768 cat confdefs.h >>conftest.$ac_ext
21769 cat >>conftest.$ac_ext <<_ACEOF
21770 /* end confdefs.h. */
21771 /* System header to define __stub macros and hopefully few prototypes,
21772 which can conflict with char mmap (); below.
21773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21774 <limits.h> exists even on freestanding compilers. */
21776 # include <limits.h>
21778 # include <assert.h>
21780 /* Override any gcc2 internal prototype to avoid an error. */
21785 /* We use char because int might match the return type of a gcc2
21786 builtin and then its argument prototype would still apply. */
21788 /* The GNU C library defines this for functions which it implements
21789 to always fail with ENOSYS. Some functions are actually named
21790 something starting with __ and the normal name is an alias. */
21791 #if defined (__stub_mmap) || defined (__stub___mmap)
21794 char (*f) () = mmap;
21808 rm -f conftest.$ac_objext conftest$ac_exeext
21809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21810 (eval $ac_link) 2>&5
21812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21813 (exit $ac_status); } &&
21814 { ac_try='test -s conftest$ac_exeext'
21815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21816 (eval $ac_try) 2>&5
21818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819 (exit $ac_status); }; }; then
21820 ac_cv_func_mmap=yes
21822 echo "$as_me: failed program was:" >&5
21823 sed 's/^/| /' conftest.$ac_ext >&5
21827 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21829 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
21830 echo "${ECHO_T}$ac_cv_func_mmap" >&6
21831 if test $ac_cv_func_mmap = yes; then
21834 { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
21835 echo "$as_me: error: Function mmap() required but not found" >&2;}
21836 { (exit 1); exit 1; }; }
21839 echo "$as_me:$LINENO: checking for mprotect" >&5
21840 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
21841 if test "${ac_cv_func_mprotect+set}" = set; then
21842 echo $ECHO_N "(cached) $ECHO_C" >&6
21844 cat >conftest.$ac_ext <<_ACEOF
21845 #line $LINENO "configure"
21848 cat confdefs.h >>conftest.$ac_ext
21849 cat >>conftest.$ac_ext <<_ACEOF
21850 /* end confdefs.h. */
21851 /* System header to define __stub macros and hopefully few prototypes,
21852 which can conflict with char mprotect (); below.
21853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21854 <limits.h> exists even on freestanding compilers. */
21856 # include <limits.h>
21858 # include <assert.h>
21860 /* Override any gcc2 internal prototype to avoid an error. */
21865 /* We use char because int might match the return type of a gcc2
21866 builtin and then its argument prototype would still apply. */
21868 /* The GNU C library defines this for functions which it implements
21869 to always fail with ENOSYS. Some functions are actually named
21870 something starting with __ and the normal name is an alias. */
21871 #if defined (__stub_mprotect) || defined (__stub___mprotect)
21874 char (*f) () = mprotect;
21883 return f != mprotect;
21888 rm -f conftest.$ac_objext conftest$ac_exeext
21889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21890 (eval $ac_link) 2>&5
21892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21893 (exit $ac_status); } &&
21894 { ac_try='test -s conftest$ac_exeext'
21895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21896 (eval $ac_try) 2>&5
21898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21899 (exit $ac_status); }; }; then
21900 ac_cv_func_mprotect=yes
21902 echo "$as_me: failed program was:" >&5
21903 sed 's/^/| /' conftest.$ac_ext >&5
21905 ac_cv_func_mprotect=no
21907 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21909 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
21910 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
21911 if test $ac_cv_func_mprotect = yes; then
21914 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
21915 echo "$as_me: error: Function mprotect() required but not found" >&2;}
21916 { (exit 1); exit 1; }; }
21920 # Check whether --enable-purify or --disable-purify was given.
21921 if test "${enable_purify+set}" = set; then
21922 enableval="$enable_purify"
21923 ENABLE_PURIFY=ENABLE_PURIFY=1
21929 # Check whether --enable-optimized or --disable-optimized was given.
21930 if test "${enable_optimized+set}" = set; then
21931 enableval="$enable_optimized"
21932 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
21938 # Check whether --enable-spec or --disable-spec was given.
21939 if test "${enable_spec+set}" = set; then
21940 enableval="$enable_spec"
21941 USE_SPEC=USE_SPEC=1
21947 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
21948 if test "${enable_precompiled_bytecode+set}" = set; then
21949 enableval="$enable_precompiled_bytecode"
21950 UPB=USE_PRECOMPILED_BYTECODE=1
21957 *i*86*) # Check whether --enable-jit or --disable-jit was given.
21958 if test "${enable_jit+set}" = set; then
21959 enableval="$enable_jit"
21960 JIT=TARGET_HAS_JIT=1
21972 # Check whether --with-spec or --without-spec was given.
21973 if test "${with_spec+set}" = set; then
21974 withval="$with_spec"
21978 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
21982 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
21983 if test "${with_llvmgccdir+set}" = set; then
21984 withval="$with_llvmgccdir"
21985 LLVMGCCDIR=$withval
21989 # Check whether --with-bcrepos or --without-bcrepos was given.
21990 if test "${with_bcrepos+set}" = set; then
21991 withval="$with_bcrepos"
21995 BCR=/home/vadve/lattner/LLVMPrograms
21999 # Check whether --with-papi or --without-papi was given.
22000 if test "${with_papi+set}" = set; then
22001 withval="$with_papi"
22005 PAPIDIR=/home/vadve/shared/papi-2.3.4.1
22009 # Check whether --with-objroot or --without-objroot was given.
22010 if test "${with_objroot+set}" = set; then
22011 withval="$with_objroot"
22019 # Check whether --with-purify or --without-purify was given.
22020 if test "${with_purify+set}" = set; then
22021 withval="$with_purify"
22026 ac_config_files="$ac_config_files Makefile.config"
22027 cat >confcache <<\_ACEOF
22028 # This file is a shell script that caches the results of configure
22029 # tests run on this system so they can be shared between configure
22030 # scripts and configure runs, see configure's option --config-cache.
22031 # It is not useful on other systems. If it contains results you don't
22032 # want to keep, you may remove or edit it.
22034 # config.status only pays attention to the cache file if you give it
22035 # the --recheck option to rerun configure.
22037 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22038 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22039 # following values.
22043 # The following way of writing the cache mishandles newlines in values,
22044 # but we know of no workaround that is simple, portable, and efficient.
22045 # So, don't put newlines in cache variables' values.
22046 # Ultrix sh set writes to stderr and can't be redirected directly,
22047 # and sets the high bit in the cache file unless we assign to the vars.
22050 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22052 # `set' does not quote correctly, so add quotes (double-quote
22053 # substitution turns \\\\ into \\, and sed turns \\ into \).
22056 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22059 # `set' quotes correctly as required by POSIX, so do not add quotes.
22061 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22068 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22070 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22072 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22073 if test -w $cache_file; then
22074 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22075 cat confcache >$cache_file
22077 echo "not updating unwritable cache $cache_file"
22082 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22083 # Let make expand exec_prefix.
22084 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22086 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22087 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22088 # trailing colons and then remove the whole line if VPATH becomes empty
22089 # (actually we leave an empty line to preserve line numbers).
22090 if test "x$srcdir" = x.; then
22091 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22092 s/:*\$(srcdir):*/:/;
22093 s/:*\${srcdir}:*/:/;
22095 s/^\([^=]*=[ ]*\):*/\1/;
22101 DEFS=-DHAVE_CONFIG_H
22105 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22106 # 1. Remove the extension, and $U if already installed.
22107 ac_i=`echo "$ac_i" |
22108 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22110 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22111 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22113 LIBOBJS=$ac_libobjs
22115 LTLIBOBJS=$ac_ltlibobjs
22119 : ${CONFIG_STATUS=./config.status}
22120 ac_clean_files_save=$ac_clean_files
22121 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22122 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22123 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22124 cat >$CONFIG_STATUS <<_ACEOF
22126 # Generated by $as_me.
22127 # Run this file to recreate the current configuration.
22128 # Compiler output produced by configure, useful for debugging
22129 # configure, is in config.log if it exists.
22132 ac_cs_recheck=false
22134 SHELL=\${CONFIG_SHELL-$SHELL}
22137 cat >>$CONFIG_STATUS <<\_ACEOF
22138 ## --------------------- ##
22139 ## M4sh Initialization. ##
22140 ## --------------------- ##
22142 # Be Bourne compatible
22143 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22146 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22147 # is contrary to our usage. Disable this feature.
22148 alias -g '${1+"$@"}'='"$@"'
22149 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22153 # Support unset when possible.
22154 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22161 # Work around bugs in pre-3.0 UWIN ksh.
22162 $as_unset ENV MAIL MAILPATH
22169 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22170 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22171 LC_TELEPHONE LC_TIME
22173 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22174 eval $as_var=C; export $as_var
22180 # Required to use basename.
22181 if expr a : '\(a\)' >/dev/null 2>&1; then
22187 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22188 as_basename=basename
22194 # Name of the executable.
22195 as_me=`$as_basename "$0" ||
22196 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22197 X"$0" : 'X\(//\)$' \| \
22198 X"$0" : 'X\(/\)$' \| \
22199 . : '\(.\)' 2>/dev/null ||
22201 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22202 /^X\/\(\/\/\)$/{ s//\1/; q; }
22203 /^X\/\(\/\).*/{ s//\1/; q; }
22207 # PATH needs CR, and LINENO needs CR and PATH.
22208 # Avoid depending upon Character Ranges.
22209 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22210 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22211 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22212 as_cr_digits='0123456789'
22213 as_cr_alnum=$as_cr_Letters$as_cr_digits
22215 # The user is always right.
22216 if test "${PATH_SEPARATOR+set}" != set; then
22217 echo "#! /bin/sh" >conf$$.sh
22218 echo "exit 0" >>conf$$.sh
22220 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22229 as_lineno_1=$LINENO
22230 as_lineno_2=$LINENO
22231 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22232 test "x$as_lineno_1" != "x$as_lineno_2" &&
22233 test "x$as_lineno_3" = "x$as_lineno_2" || {
22234 # Find who we are. Look in the path if we contain no path at all
22237 *[\\/]* ) as_myself=$0 ;;
22238 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22239 for as_dir in $PATH
22242 test -z "$as_dir" && as_dir=.
22243 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22248 # We did not find ourselves, most probably we were run as `sh COMMAND'
22249 # in which case we are not to be found in the path.
22250 if test "x$as_myself" = x; then
22253 if test ! -f "$as_myself"; then
22254 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22255 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22256 { (exit 1); exit 1; }; }
22258 case $CONFIG_SHELL in
22260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22261 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22264 test -z "$as_dir" && as_dir=.
22265 for as_base in sh bash ksh sh5; do
22268 if ("$as_dir/$as_base" -c '
22269 as_lineno_1=$LINENO
22270 as_lineno_2=$LINENO
22271 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22272 test "x$as_lineno_1" != "x$as_lineno_2" &&
22273 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22274 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22275 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22276 CONFIG_SHELL=$as_dir/$as_base
22277 export CONFIG_SHELL
22278 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22286 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22287 # uniformly replaced by the line number. The first 'sed' inserts a
22288 # line-number line before each line; the second 'sed' does the real
22289 # work. The second script uses 'N' to pair each line-number line
22290 # with the numbered line, and appends trailing '-' during
22291 # substitution so that $LINENO is not a special case at line end.
22292 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22293 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22294 sed '=' <$as_myself |
22299 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22302 s,^['$as_cr_digits']*\n,,
22303 ' >$as_me.lineno &&
22304 chmod +x $as_me.lineno ||
22305 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22306 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22307 { (exit 1); exit 1; }; }
22309 # Don't try to exec as it changes $[0], causing all sort of problems
22310 # (the dirname of $[0] is not the place where we might find the
22311 # original and so on. Autoconf is especially sensible to this).
22313 # Exit status is that of the last command.
22318 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22319 *c*,-n*) ECHO_N= ECHO_C='
22321 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22322 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22325 if expr a : '\(a\)' >/dev/null 2>&1; then
22331 rm -f conf$$ conf$$.exe conf$$.file
22333 if ln -s conf$$.file conf$$ 2>/dev/null; then
22334 # We could just check for DJGPP; but this test a) works b) is more generic
22335 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22336 if test -f conf$$.exe; then
22337 # Don't use ln at all; we don't have any links
22342 elif ln conf$$.file conf$$ 2>/dev/null; then
22347 rm -f conf$$ conf$$.exe conf$$.file
22349 if mkdir -p . 2>/dev/null; then
22355 as_executable_p="test -f"
22357 # Sed expression to map a string onto a valid CPP name.
22358 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22360 # Sed expression to map a string onto a valid variable name.
22361 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
22365 # We need space, tab and new line, in precisely that order.
22375 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22376 # report actual input values of CONFIG_FILES etc. instead of their
22377 # values after options handling. Logging --version etc. is OK.
22381 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22382 ## Running $as_me. ##
22387 This file was extended by [LLVM] $as_me [1.0], which was
22388 generated by GNU Autoconf 2.57. Invocation command line was
22390 CONFIG_FILES = $CONFIG_FILES
22391 CONFIG_HEADERS = $CONFIG_HEADERS
22392 CONFIG_LINKS = $CONFIG_LINKS
22393 CONFIG_COMMANDS = $CONFIG_COMMANDS
22397 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22401 # Files that config.status was made for.
22402 if test -n "$ac_config_files"; then
22403 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22406 if test -n "$ac_config_headers"; then
22407 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22410 if test -n "$ac_config_links"; then
22411 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22414 if test -n "$ac_config_commands"; then
22415 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22418 cat >>$CONFIG_STATUS <<\_ACEOF
22421 \`$as_me' instantiates files from templates according to the
22422 current configuration.
22424 Usage: $0 [OPTIONS] [FILE]...
22426 -h, --help print this help, then exit
22427 -V, --version print version number, then exit
22428 -q, --quiet do not print progress messages
22429 -d, --debug don't remove temporary files
22430 --recheck update $as_me by reconfiguring in the same conditions
22431 --file=FILE[:TEMPLATE]
22432 instantiate the configuration file FILE
22433 --header=FILE[:TEMPLATE]
22434 instantiate the configuration header FILE
22436 Configuration files:
22439 Configuration headers:
22442 Report bugs to <bug-autoconf@gnu.org>."
22445 cat >>$CONFIG_STATUS <<_ACEOF
22447 [LLVM] config.status [1.0]
22448 configured by $0, generated by GNU Autoconf 2.57,
22449 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22451 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
22452 Free Software Foundation, Inc.
22453 This config.status script is free software; the Free Software Foundation
22454 gives unlimited permission to copy, distribute and modify it."
22459 cat >>$CONFIG_STATUS <<\_ACEOF
22460 # If no file are specified by the user, then we need to provide default
22461 # value. By we need to know if files were specified by the user.
22467 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22468 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22476 *) # This is not an option, so the user has probably given explicit
22479 ac_need_defaults=false;;
22483 # Handling of the options.
22485 cat >>$CONFIG_STATUS <<\_ACEOF
22486 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22488 --version | --vers* | -V )
22489 echo "$ac_cs_version"; exit 0 ;;
22491 # Conflict between --help and --header
22492 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22493 Try \`$0 --help' for more information." >&5
22494 echo "$as_me: error: ambiguous option: $1
22495 Try \`$0 --help' for more information." >&2;}
22496 { (exit 1); exit 1; }; };;
22497 --help | --hel | -h )
22498 echo "$ac_cs_usage"; exit 0 ;;
22499 --debug | --d* | -d )
22501 --file | --fil | --fi | --f )
22503 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22504 ac_need_defaults=false;;
22505 --header | --heade | --head | --hea )
22507 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22508 ac_need_defaults=false;;
22509 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22510 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22513 # This is an error.
22514 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22515 Try \`$0 --help' for more information." >&5
22516 echo "$as_me: error: unrecognized option: $1
22517 Try \`$0 --help' for more information." >&2;}
22518 { (exit 1); exit 1; }; } ;;
22520 *) ac_config_targets="$ac_config_targets $1" ;;
22526 ac_configure_extra_args=
22528 if $ac_cs_silent; then
22530 ac_configure_extra_args="$ac_configure_extra_args --silent"
22534 cat >>$CONFIG_STATUS <<_ACEOF
22535 if \$ac_cs_recheck; then
22536 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22537 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22546 cat >>$CONFIG_STATUS <<\_ACEOF
22547 for ac_config_target in $ac_config_targets
22549 case "$ac_config_target" in
22550 # Handling of arguments.
22551 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22552 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
22553 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22554 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22555 { (exit 1); exit 1; }; };;
22559 # If the user did not use the arguments to specify the items to instantiate,
22560 # then the envvar interface is used. Set only those that are not.
22561 # We use the long form for the default assignment because of an extremely
22562 # bizarre bug on SunOS 4.1.3.
22563 if $ac_need_defaults; then
22564 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22565 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22568 # Have a temporary directory for convenience. Make it in the build tree
22569 # simply because there is no reason to put it here, and in addition,
22570 # creating and moving files from /tmp can sometimes cause problems.
22571 # Create a temporary directory, and hook for its removal unless debugging.
22574 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22575 trap '{ (exit 1); exit 1; }' 1 2 13 15
22578 # Create a (secure) tmp directory for tmp files.
22581 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22582 test -n "$tmp" && test -d "$tmp"
22585 tmp=./confstat$$-$RANDOM
22586 (umask 077 && mkdir $tmp)
22589 echo "$me: cannot create a temporary directory in ." >&2
22590 { (exit 1); exit 1; }
22595 cat >>$CONFIG_STATUS <<_ACEOF
22598 # CONFIG_FILES section.
22601 # No need to generate the scripts if there are no CONFIG_FILES.
22602 # This happens for instance when ./config.status config.h
22603 if test -n "\$CONFIG_FILES"; then
22604 # Protect against being on the right side of a sed subst in config.status.
22605 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22606 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22607 s,@SHELL@,$SHELL,;t t
22608 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22609 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22610 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22611 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22612 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22613 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22614 s,@exec_prefix@,$exec_prefix,;t t
22615 s,@prefix@,$prefix,;t t
22616 s,@program_transform_name@,$program_transform_name,;t t
22617 s,@bindir@,$bindir,;t t
22618 s,@sbindir@,$sbindir,;t t
22619 s,@libexecdir@,$libexecdir,;t t
22620 s,@datadir@,$datadir,;t t
22621 s,@sysconfdir@,$sysconfdir,;t t
22622 s,@sharedstatedir@,$sharedstatedir,;t t
22623 s,@localstatedir@,$localstatedir,;t t
22624 s,@libdir@,$libdir,;t t
22625 s,@includedir@,$includedir,;t t
22626 s,@oldincludedir@,$oldincludedir,;t t
22627 s,@infodir@,$infodir,;t t
22628 s,@mandir@,$mandir,;t t
22629 s,@build_alias@,$build_alias,;t t
22630 s,@host_alias@,$host_alias,;t t
22631 s,@target_alias@,$target_alias,;t t
22632 s,@DEFS@,$DEFS,;t t
22633 s,@ECHO_C@,$ECHO_C,;t t
22634 s,@ECHO_N@,$ECHO_N,;t t
22635 s,@ECHO_T@,$ECHO_T,;t t
22636 s,@LIBS@,$LIBS,;t t
22637 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22638 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22639 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22640 s,@build@,$build,;t t
22641 s,@build_cpu@,$build_cpu,;t t
22642 s,@build_vendor@,$build_vendor,;t t
22643 s,@build_os@,$build_os,;t t
22644 s,@host@,$host,;t t
22645 s,@host_cpu@,$host_cpu,;t t
22646 s,@host_vendor@,$host_vendor,;t t
22647 s,@host_os@,$host_os,;t t
22648 s,@target@,$target,;t t
22649 s,@target_cpu@,$target_cpu,;t t
22650 s,@target_vendor@,$target_vendor,;t t
22651 s,@target_os@,$target_os,;t t
22653 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
22654 s,@ARCH@,$ARCH,;t t
22656 s,@CXXFLAGS@,$CXXFLAGS,;t t
22657 s,@LDFLAGS@,$LDFLAGS,;t t
22658 s,@CPPFLAGS@,$CPPFLAGS,;t t
22659 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22660 s,@EXEEXT@,$EXEEXT,;t t
22661 s,@OBJEXT@,$OBJEXT,;t t
22663 s,@CFLAGS@,$CFLAGS,;t t
22664 s,@ac_ct_CC@,$ac_ct_CC,;t t
22666 s,@ifGNUmake@,$ifGNUmake,;t t
22668 s,@LEXLIB@,$LEXLIB,;t t
22669 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
22670 s,@YACC@,$YACC,;t t
22671 s,@EGREP@,$EGREP,;t t
22672 s,@LN_S@,$LN_S,;t t
22673 s,@ECHO@,$ECHO,;t t
22675 s,@ac_ct_AR@,$ac_ct_AR,;t t
22676 s,@RANLIB@,$RANLIB,;t t
22677 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22678 s,@STRIP@,$STRIP,;t t
22679 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22680 s,@CXXCPP@,$CXXCPP,;t t
22682 s,@FFLAGS@,$FFLAGS,;t t
22683 s,@ac_ct_F77@,$ac_ct_F77,;t t
22684 s,@LIBTOOL@,$LIBTOOL,;t t
22687 s,@MKDIR@,$MKDIR,;t t
22688 s,@DATE@,$DATE,;t t
22691 s,@ETAGS@,$ETAGS,;t t
22692 s,@PURIFY@,$PURIFY,;t t
22693 s,@ALLOCA@,$ALLOCA,;t t
22694 s,@LIBOBJS@,$LIBOBJS,;t t
22695 s,@MMAP_FILE@,$MMAP_FILE,;t t
22696 s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
22697 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
22698 s,@USE_SPEC@,$USE_SPEC,;t t
22701 s,@SPEC_ROOT@,$SPEC_ROOT,;t t
22703 s,@PAPIDIR@,$PAPIDIR,;t t
22704 s,@OBJROOT@,$OBJROOT,;t t
22705 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22710 cat >>$CONFIG_STATUS <<\_ACEOF
22711 # Split the substitutions into bite-sized pieces for seds with
22712 # small command number limits, like on Digital OSF/1 and HP-UX.
22713 ac_max_sed_lines=48
22714 ac_sed_frag=1 # Number of current file.
22715 ac_beg=1 # First line for current file.
22716 ac_end=$ac_max_sed_lines # Line after last line for current file.
22719 while $ac_more_lines; do
22720 if test $ac_beg -gt 1; then
22721 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22723 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22725 if test ! -s $tmp/subs.frag; then
22726 ac_more_lines=false
22728 # The purpose of the label and of the branching condition is to
22729 # speed up the sed processing (if there are no `@' at all, there
22730 # is no need to browse any of the substitutions).
22731 # These are the two extra sed commands mentioned above.
22733 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22734 if test -z "$ac_sed_cmds"; then
22735 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22737 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22739 ac_sed_frag=`expr $ac_sed_frag + 1`
22741 ac_end=`expr $ac_end + $ac_max_sed_lines`
22744 if test -z "$ac_sed_cmds"; then
22747 fi # test -n "$CONFIG_FILES"
22750 cat >>$CONFIG_STATUS <<\_ACEOF
22751 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22752 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22754 - | *:- | *:-:* ) # input from stdin
22756 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22757 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22758 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22759 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22760 * ) ac_file_in=$ac_file.in ;;
22763 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22764 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22765 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22766 X"$ac_file" : 'X\(//\)[^/]' \| \
22767 X"$ac_file" : 'X\(//\)$' \| \
22768 X"$ac_file" : 'X\(/\)' \| \
22769 . : '\(.\)' 2>/dev/null ||
22771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22772 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22773 /^X\(\/\/\)$/{ s//\1/; q; }
22774 /^X\(\/\).*/{ s//\1/; q; }
22776 { if $as_mkdir_p; then
22781 while test ! -d "$as_dir"; do
22782 as_dirs="$as_dir $as_dirs"
22783 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22784 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22785 X"$as_dir" : 'X\(//\)[^/]' \| \
22786 X"$as_dir" : 'X\(//\)$' \| \
22787 X"$as_dir" : 'X\(/\)' \| \
22788 . : '\(.\)' 2>/dev/null ||
22790 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22791 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22792 /^X\(\/\/\)$/{ s//\1/; q; }
22793 /^X\(\/\).*/{ s//\1/; q; }
22796 test ! -n "$as_dirs" || mkdir $as_dirs
22797 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22798 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22799 { (exit 1); exit 1; }; }; }
22803 if test "$ac_dir" != .; then
22804 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22805 # A "../" for each directory in $ac_dir_suffix.
22806 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22808 ac_dir_suffix= ac_top_builddir=
22812 .) # No --srcdir option. We are building in place.
22814 if test -z "$ac_top_builddir"; then
22817 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22819 [\\/]* | ?:[\\/]* ) # Absolute path.
22820 ac_srcdir=$srcdir$ac_dir_suffix;
22821 ac_top_srcdir=$srcdir ;;
22822 *) # Relative path.
22823 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22824 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22826 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
22828 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
22829 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
22830 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
22831 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
22835 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22836 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22839 if test x"$ac_file" != x-; then
22840 { echo "$as_me:$LINENO: creating $ac_file" >&5
22841 echo "$as_me: creating $ac_file" >&6;}
22844 # Let's still pretend it is `configure' which instantiates (i.e., don't
22845 # use $as_me), people would be surprised to read:
22846 # /* config.h. Generated by config.status. */
22847 if test x"$ac_file" = x-; then
22850 configure_input="$ac_file. "
22852 configure_input=$configure_input"Generated from `echo $ac_file_in |
22853 sed 's,.*/,,'` by configure."
22855 # First look for the input files in the build tree, otherwise in the
22857 ac_file_inputs=`IFS=:
22858 for f in $ac_file_in; do
22860 -) echo $tmp/stdin ;;
22862 # Absolute (can't be DOS-style, as IFS=:)
22863 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22864 echo "$as_me: error: cannot find input file: $f" >&2;}
22865 { (exit 1); exit 1; }; }
22868 if test -f "$f"; then
22871 elif test -f "$srcdir/$f"; then
22876 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22877 echo "$as_me: error: cannot find input file: $f" >&2;}
22878 { (exit 1); exit 1; }; }
22881 done` || { (exit 1); exit 1; }
22883 cat >>$CONFIG_STATUS <<_ACEOF
22887 cat >>$CONFIG_STATUS <<\_ACEOF
22889 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22890 s,@configure_input@,$configure_input,;t t
22891 s,@srcdir@,$ac_srcdir,;t t
22892 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22893 s,@top_srcdir@,$ac_top_srcdir,;t t
22894 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22895 s,@builddir@,$ac_builddir,;t t
22896 s,@abs_builddir@,$ac_abs_builddir,;t t
22897 s,@top_builddir@,$ac_top_builddir,;t t
22898 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22899 s,@INSTALL@,$ac_INSTALL,;t t
22900 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22902 if test x"$ac_file" != x-; then
22903 mv $tmp/out $ac_file
22911 cat >>$CONFIG_STATUS <<\_ACEOF
22914 # CONFIG_HEADER section.
22917 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22918 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22920 # ac_d sets the value in "#define NAME VALUE" lines.
22921 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22922 ac_dB='[ ].*$,\1#\2'
22925 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22926 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22927 ac_uB='$,\1#\2define\3'
22931 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22932 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22934 - | *:- | *:-:* ) # input from stdin
22936 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22937 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22938 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22939 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22940 * ) ac_file_in=$ac_file.in ;;
22943 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22944 echo "$as_me: creating $ac_file" >&6;}
22946 # First look for the input files in the build tree, otherwise in the
22948 ac_file_inputs=`IFS=:
22949 for f in $ac_file_in; do
22951 -) echo $tmp/stdin ;;
22953 # Absolute (can't be DOS-style, as IFS=:)
22954 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22955 echo "$as_me: error: cannot find input file: $f" >&2;}
22956 { (exit 1); exit 1; }; }
22959 if test -f "$f"; then
22962 elif test -f "$srcdir/$f"; then
22967 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22968 echo "$as_me: error: cannot find input file: $f" >&2;}
22969 { (exit 1); exit 1; }; }
22972 done` || { (exit 1); exit 1; }
22973 # Remove the trailing spaces.
22974 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22978 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22979 # `conftest.undefs', that substitutes the proper values into
22980 # config.h.in to produce config.h. The first handles `#define'
22981 # templates, and the second `#undef' templates.
22982 # And first: Protect against being on the right side of a sed subst in
22983 # config.status. Protect against being in an unquoted here document
22984 # in config.status.
22985 rm -f conftest.defines conftest.undefs
22986 # Using a here document instead of a string reduces the quoting nightmare.
22987 # Putting comments in sed scripts is not portable.
22989 # `end' is used to avoid that the second main sed command (meant for
22990 # 0-ary CPP macros) applies to n-ary macro definitions.
22991 # See the Autoconf documentation for `clear'.
22992 cat >confdef2sed.sed <<\_ACEOF
22997 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22999 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23002 # If some macros were called several times there might be several times
23003 # the same #defines, which is useless. Nevertheless, we may not want to
23004 # sort them, since we want the *last* AC-DEFINE to be honored.
23005 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23006 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23007 rm -f confdef2sed.sed
23009 # This sed command replaces #undef with comments. This is necessary, for
23010 # example, in the case of _POSIX_SOURCE, which is predefined and required
23011 # on some systems where configure will not decide to define it.
23012 cat >>conftest.undefs <<\_ACEOF
23013 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23016 # Break up conftest.defines because some shells have a limit on the size
23017 # of here documents, and old seds have small limits too (100 cmds).
23018 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23019 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23020 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23021 echo ' :' >>$CONFIG_STATUS
23022 rm -f conftest.tail
23023 while grep . conftest.defines >/dev/null
23025 # Write a limited-size here document to $tmp/defines.sed.
23026 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23027 # Speed up: don't consider the non `#define' lines.
23028 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23029 # Work around the forget-to-reset-the-flag bug.
23030 echo 't clr' >>$CONFIG_STATUS
23031 echo ': clr' >>$CONFIG_STATUS
23032 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23034 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23036 mv $tmp/out $tmp/in
23038 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23039 rm -f conftest.defines
23040 mv conftest.tail conftest.defines
23042 rm -f conftest.defines
23043 echo ' fi # grep' >>$CONFIG_STATUS
23044 echo >>$CONFIG_STATUS
23046 # Break up conftest.undefs because some shells have a limit on the size
23047 # of here documents, and old seds have small limits too (100 cmds).
23048 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23049 rm -f conftest.tail
23050 while grep . conftest.undefs >/dev/null
23052 # Write a limited-size here document to $tmp/undefs.sed.
23053 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23054 # Speed up: don't consider the non `#undef'
23055 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23056 # Work around the forget-to-reset-the-flag bug.
23057 echo 't clr' >>$CONFIG_STATUS
23058 echo ': clr' >>$CONFIG_STATUS
23059 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23061 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23063 mv $tmp/out $tmp/in
23065 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23066 rm -f conftest.undefs
23067 mv conftest.tail conftest.undefs
23069 rm -f conftest.undefs
23071 cat >>$CONFIG_STATUS <<\_ACEOF
23072 # Let's still pretend it is `configure' which instantiates (i.e., don't
23073 # use $as_me), people would be surprised to read:
23074 # /* config.h. Generated by config.status. */
23075 if test x"$ac_file" = x-; then
23076 echo "/* Generated by configure. */" >$tmp/config.h
23078 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23080 cat $tmp/in >>$tmp/config.h
23082 if test x"$ac_file" != x-; then
23083 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23084 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23085 echo "$as_me: $ac_file is unchanged" >&6;}
23087 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23088 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23089 X"$ac_file" : 'X\(//\)[^/]' \| \
23090 X"$ac_file" : 'X\(//\)$' \| \
23091 X"$ac_file" : 'X\(/\)' \| \
23092 . : '\(.\)' 2>/dev/null ||
23094 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23095 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23096 /^X\(\/\/\)$/{ s//\1/; q; }
23097 /^X\(\/\).*/{ s//\1/; q; }
23099 { if $as_mkdir_p; then
23104 while test ! -d "$as_dir"; do
23105 as_dirs="$as_dir $as_dirs"
23106 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23107 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23108 X"$as_dir" : 'X\(//\)[^/]' \| \
23109 X"$as_dir" : 'X\(//\)$' \| \
23110 X"$as_dir" : 'X\(/\)' \| \
23111 . : '\(.\)' 2>/dev/null ||
23113 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23114 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23115 /^X\(\/\/\)$/{ s//\1/; q; }
23116 /^X\(\/\).*/{ s//\1/; q; }
23119 test ! -n "$as_dirs" || mkdir $as_dirs
23120 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23121 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23122 { (exit 1); exit 1; }; }; }
23125 mv $tmp/config.h $ac_file
23129 rm -f $tmp/config.h
23134 cat >>$CONFIG_STATUS <<\_ACEOF
23136 { (exit 0); exit 0; }
23138 chmod +x $CONFIG_STATUS
23139 ac_clean_files=$ac_clean_files_save
23142 # configure is writing to config.log, and then calls config.status.
23143 # config.status does its own redirection, appending to config.log.
23144 # Unfortunately, on DOS this fails, as config.log is still kept open
23145 # by configure, so config.status won't be able to write to it; its
23146 # output is simply discarded. So we exec the FD to /dev/null,
23147 # effectively closing config.log, so it can be properly (re)opened and
23148 # appended to by config.status. When coming back to configure, we
23149 # need to make the FD available again.
23150 if test "$no_create" != yes; then
23152 ac_config_status_args=
23153 test "$silent" = yes &&
23154 ac_config_status_args="$ac_config_status_args --quiet"
23156 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23158 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23159 # would make configure fail if this is the last instruction.
23160 $ac_cs_success || { (exit 1); exit 1; }