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 DISABLE_LLC_DIFFS 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-llc_diffs Enable LLC Diffs when testing (default is YES)
1038 --enable-jit Enable Just In Time Compiling (default is NO)
1041 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1042 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1043 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1044 --with-pic try to use only PIC/non-PIC objects [default=use
1047 include additional configurations [automatic]
1048 --with-spec Location of SPEC benchmarks
1049 --with-llvmgccdir Location of LLVM GCC front-end
1050 --with-bcrepos Location of Bytecode Repository
1051 --with-papi Location of PAPI
1052 --with-objroot Location where object files should be placed
1054 --with-purify Location of purify program
1056 Some influential environment variables:
1057 CXX C++ compiler command
1058 CXXFLAGS C++ compiler flags
1059 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1060 nonstandard directory <lib dir>
1061 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1062 headers in a nonstandard directory <include dir>
1063 CC C compiler command
1064 CFLAGS C compiler flags
1066 CXXCPP C++ preprocessor
1067 F77 Fortran 77 compiler command
1068 FFLAGS Fortran 77 compiler flags
1070 Use these variables to override the choices made by `configure' or to help
1071 it to find libraries and programs with nonstandard names/locations.
1073 Report bugs to <llvmbugs@cs.uiuc.edu>.
1077 if test "$ac_init_help" = "recursive"; then
1078 # If there are subdirs, report their specific --help.
1080 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1081 test -d $ac_dir || continue
1084 if test "$ac_dir" != .; then
1085 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1086 # A "../" for each directory in $ac_dir_suffix.
1087 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1089 ac_dir_suffix= ac_top_builddir=
1093 .) # No --srcdir option. We are building in place.
1095 if test -z "$ac_top_builddir"; then
1098 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1100 [\\/]* | ?:[\\/]* ) # Absolute path.
1101 ac_srcdir=$srcdir$ac_dir_suffix;
1102 ac_top_srcdir=$srcdir ;;
1104 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1105 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1107 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1109 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1110 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1111 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1112 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1115 # Check for guested configure; otherwise get Cygnus style configure.
1116 if test -f $ac_srcdir/configure.gnu; then
1118 $SHELL $ac_srcdir/configure.gnu --help=recursive
1119 elif test -f $ac_srcdir/configure; then
1121 $SHELL $ac_srcdir/configure --help=recursive
1122 elif test -f $ac_srcdir/configure.ac ||
1123 test -f $ac_srcdir/configure.in; then
1125 $ac_configure --help
1127 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1133 test -n "$ac_init_help" && exit 0
1134 if $ac_init_version; then
1136 [LLVM] configure [1.0]
1137 generated by GNU Autoconf 2.57
1139 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1140 Free Software Foundation, Inc.
1141 This configure script is free software; the Free Software Foundation
1142 gives unlimited permission to copy, distribute and modify it.
1148 This file contains any messages produced by compilers while
1149 running configure, to aid debugging if configure makes a mistake.
1151 It was created by [LLVM] $as_me [1.0], which was
1152 generated by GNU Autoconf 2.57. Invocation command line was
1163 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1164 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1165 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1166 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1167 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1169 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1170 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1172 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1173 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1174 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1175 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1176 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1177 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1178 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1186 test -z "$as_dir" && as_dir=.
1187 echo "PATH: $as_dir"
1202 # Keep a trace of the command line.
1203 # Strip out --no-create and --no-recursion so they do not pile up.
1204 # Strip out --silent because we don't want to record it for future runs.
1205 # Also quote any args containing shell meta-characters.
1206 # Make two passes to allow for proper duplicate-argument suppression.
1211 ac_must_keep_next=false
1217 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1218 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1219 | -silent | --silent | --silen | --sile | --sil)
1221 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1222 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1225 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1227 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1228 if test $ac_must_keep_next = true; then
1229 ac_must_keep_next=false # Got value, back to normal.
1232 *=* | --config-cache | -C | -disable-* | --disable-* \
1233 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1234 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1235 | -with-* | --with-* | -without-* | --without-* | --x)
1236 case "$ac_configure_args0 " in
1237 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1240 -* ) ac_must_keep_next=true ;;
1243 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1244 # Get rid of the leading space.
1250 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1251 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1253 # When interrupted or exit'd, cleanup temporary files, and complete
1254 # config.log. We remove comments because anyway the quotes in there
1255 # would cause problems or look ugly.
1256 # WARNING: Be sure not to use single quotes in there, as some shells,
1257 # such as our DU 5.0 friend, will then `close' the trap.
1258 trap 'exit_status=$?
1259 # Save into config.log some information that might help in debugging.
1264 ## ---------------- ##
1265 ## Cache variables. ##
1266 ## ---------------- ##
1269 # The following way of writing the cache mishandles newlines in values,
1272 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1275 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1276 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1280 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1287 ## ----------------- ##
1288 ## Output variables. ##
1289 ## ----------------- ##
1292 for ac_var in $ac_subst_vars
1294 eval ac_val=$`echo $ac_var`
1295 echo "$ac_var='"'"'$ac_val'"'"'"
1299 if test -n "$ac_subst_files"; then
1306 for ac_var in $ac_subst_files
1308 eval ac_val=$`echo $ac_var`
1309 echo "$ac_var='"'"'$ac_val'"'"'"
1314 if test -s confdefs.h; then
1321 sed "/^$/d" confdefs.h | sort
1324 test "$ac_signal" != 0 &&
1325 echo "$as_me: caught signal $ac_signal"
1326 echo "$as_me: exit $exit_status"
1328 rm -f core core.* *.core &&
1329 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1332 for ac_signal in 1 2 13 15; do
1333 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1337 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1338 rm -rf conftest* confdefs.h
1339 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1342 # Predefined preprocessor variables.
1344 cat >>confdefs.h <<_ACEOF
1345 #define PACKAGE_NAME "$PACKAGE_NAME"
1349 cat >>confdefs.h <<_ACEOF
1350 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1354 cat >>confdefs.h <<_ACEOF
1355 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1359 cat >>confdefs.h <<_ACEOF
1360 #define PACKAGE_STRING "$PACKAGE_STRING"
1364 cat >>confdefs.h <<_ACEOF
1365 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1369 # Let the site file select an alternate cache file if it wants to.
1370 # Prefer explicitly selected file to automatically selected ones.
1371 if test -z "$CONFIG_SITE"; then
1372 if test "x$prefix" != xNONE; then
1373 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1375 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1378 for ac_site_file in $CONFIG_SITE; do
1379 if test -r "$ac_site_file"; then
1380 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1381 echo "$as_me: loading site script $ac_site_file" >&6;}
1382 sed 's/^/| /' "$ac_site_file" >&5
1387 if test -r "$cache_file"; then
1388 # Some versions of bash will fail to source /dev/null (special
1389 # files actually), so we avoid doing that.
1390 if test -f "$cache_file"; then
1391 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1392 echo "$as_me: loading cache $cache_file" >&6;}
1394 [\\/]* | ?:[\\/]* ) . $cache_file;;
1395 *) . ./$cache_file;;
1399 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1400 echo "$as_me: creating cache $cache_file" >&6;}
1404 # Check that the precious variables saved in the cache have kept the same
1406 ac_cache_corrupted=false
1407 for ac_var in `(set) 2>&1 |
1408 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1409 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1410 eval ac_new_set=\$ac_env_${ac_var}_set
1411 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1412 eval ac_new_val="\$ac_env_${ac_var}_value"
1413 case $ac_old_set,$ac_new_set in
1415 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1416 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1417 ac_cache_corrupted=: ;;
1419 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1420 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1421 ac_cache_corrupted=: ;;
1424 if test "x$ac_old_val" != "x$ac_new_val"; then
1425 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1426 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1427 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1428 echo "$as_me: former value: $ac_old_val" >&2;}
1429 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1430 echo "$as_me: current value: $ac_new_val" >&2;}
1431 ac_cache_corrupted=:
1434 # Pass precious variables to config.status.
1435 if test "$ac_new_set" = set; then
1437 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1438 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1439 *) ac_arg=$ac_var=$ac_new_val ;;
1441 case " $ac_configure_args " in
1442 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1443 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1447 if $ac_cache_corrupted; then
1448 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1449 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1450 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1451 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1452 { (exit 1); exit 1; }; }
1456 ac_cpp='$CPP $CPPFLAGS'
1457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1489 for ac_dir in autoconf $srcdir/autoconf; do
1490 if test -f $ac_dir/install-sh; then
1492 ac_install_sh="$ac_aux_dir/install-sh -c"
1494 elif test -f $ac_dir/install.sh; then
1496 ac_install_sh="$ac_aux_dir/install.sh -c"
1498 elif test -f $ac_dir/shtool; then
1500 ac_install_sh="$ac_aux_dir/shtool install -c"
1504 if test -z "$ac_aux_dir"; then
1505 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1506 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1507 { (exit 1); exit 1; }; }
1509 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1510 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1511 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1514 ac_config_headers="$ac_config_headers include/Config/config.h"
1518 # Find a good install program. We prefer a C program (faster),
1519 # so one script is as good as another. But avoid the broken or
1520 # incompatible versions:
1521 # SysV /etc/install, /usr/sbin/install
1522 # SunOS /usr/etc/install
1523 # IRIX /sbin/install
1525 # AmigaOS /C/install, which installs bootblocks on floppy discs
1526 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1527 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1528 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1529 # ./install, which can be erroneously created by make from ./install.sh.
1530 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1531 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1532 if test -z "$INSTALL"; then
1533 if test "${ac_cv_path_install+set}" = set; then
1534 echo $ECHO_N "(cached) $ECHO_C" >&6
1536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1540 test -z "$as_dir" && as_dir=.
1541 # Account for people who put trailing slashes in PATH elements.
1543 ./ | .// | /cC/* | \
1544 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1547 # OSF1 and SCO ODT 3.0 have their own names for install.
1548 # Don't use installbsd from OSF since it installs stuff as root
1550 for ac_prog in ginstall scoinst install; do
1551 for ac_exec_ext in '' $ac_executable_extensions; do
1552 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1553 if test $ac_prog = install &&
1554 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1555 # AIX install. It has an incompatible calling convention.
1557 elif test $ac_prog = install &&
1558 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1559 # program-specific install script used by HP pwplus--don't use.
1562 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1574 if test "${ac_cv_path_install+set}" = set; then
1575 INSTALL=$ac_cv_path_install
1577 # As a last resort, use the slow shell script. We don't cache a
1578 # path for INSTALL within a source directory, because that will
1579 # break other packages using the cache if that directory is
1580 # removed, or if the path is relative.
1581 INSTALL=$ac_install_sh
1584 echo "$as_me:$LINENO: result: $INSTALL" >&5
1585 echo "${ECHO_T}$INSTALL" >&6
1587 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1588 # It thinks the first close brace ends the variable substitution.
1589 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1591 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1593 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1596 # Make sure we can run config.sub.
1597 $ac_config_sub sun4 >/dev/null 2>&1 ||
1598 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1599 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1600 { (exit 1); exit 1; }; }
1602 echo "$as_me:$LINENO: checking build system type" >&5
1603 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1604 if test "${ac_cv_build+set}" = set; then
1605 echo $ECHO_N "(cached) $ECHO_C" >&6
1607 ac_cv_build_alias=$build_alias
1608 test -z "$ac_cv_build_alias" &&
1609 ac_cv_build_alias=`$ac_config_guess`
1610 test -z "$ac_cv_build_alias" &&
1611 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1612 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1613 { (exit 1); exit 1; }; }
1614 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1615 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1616 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1617 { (exit 1); exit 1; }; }
1620 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1621 echo "${ECHO_T}$ac_cv_build" >&6
1623 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1624 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1625 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1628 echo "$as_me:$LINENO: checking host system type" >&5
1629 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1630 if test "${ac_cv_host+set}" = set; then
1631 echo $ECHO_N "(cached) $ECHO_C" >&6
1633 ac_cv_host_alias=$host_alias
1634 test -z "$ac_cv_host_alias" &&
1635 ac_cv_host_alias=$ac_cv_build_alias
1636 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1637 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1638 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1639 { (exit 1); exit 1; }; }
1642 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1643 echo "${ECHO_T}$ac_cv_host" >&6
1645 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1646 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1647 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1650 echo "$as_me:$LINENO: checking target system type" >&5
1651 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1652 if test "${ac_cv_target+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1655 ac_cv_target_alias=$target_alias
1656 test "x$ac_cv_target_alias" = "x" &&
1657 ac_cv_target_alias=$ac_cv_host_alias
1658 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1659 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1660 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1661 { (exit 1); exit 1; }; }
1664 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1665 echo "${ECHO_T}$ac_cv_target" >&6
1666 target=$ac_cv_target
1667 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1668 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1669 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1672 # The aliases save the names the user supplied, while $host etc.
1673 # will get canonicalized.
1674 test -n "$target_alias" &&
1675 test "$program_prefix$program_suffix$program_transform_name" = \
1677 program_prefix=${target_alias}-
1682 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1688 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1698 *sparc*solaris*) target=sparcv9-sun-solaris2.8
1707 *sparc*solaris*) ARCH=Sparc
1714 ac_cpp='$CXXCPP $CPPFLAGS'
1715 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1716 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1717 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1718 if test -n "$ac_tool_prefix"; then
1719 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1721 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1722 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1723 echo "$as_me:$LINENO: checking for $ac_word" >&5
1724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1725 if test "${ac_cv_prog_CXX+set}" = set; then
1726 echo $ECHO_N "(cached) $ECHO_C" >&6
1728 if test -n "$CXX"; then
1729 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1735 test -z "$as_dir" && as_dir=.
1736 for ac_exec_ext in '' $ac_executable_extensions; do
1737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1738 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1748 if test -n "$CXX"; then
1749 echo "$as_me:$LINENO: result: $CXX" >&5
1750 echo "${ECHO_T}$CXX" >&6
1752 echo "$as_me:$LINENO: result: no" >&5
1753 echo "${ECHO_T}no" >&6
1756 test -n "$CXX" && break
1759 if test -z "$CXX"; then
1761 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1763 # Extract the first word of "$ac_prog", so it can be a program name with args.
1764 set dummy $ac_prog; ac_word=$2
1765 echo "$as_me:$LINENO: checking for $ac_word" >&5
1766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1767 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1768 echo $ECHO_N "(cached) $ECHO_C" >&6
1770 if test -n "$ac_ct_CXX"; then
1771 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1777 test -z "$as_dir" && as_dir=.
1778 for ac_exec_ext in '' $ac_executable_extensions; do
1779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1780 ac_cv_prog_ac_ct_CXX="$ac_prog"
1781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1789 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1790 if test -n "$ac_ct_CXX"; then
1791 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1792 echo "${ECHO_T}$ac_ct_CXX" >&6
1794 echo "$as_me:$LINENO: result: no" >&5
1795 echo "${ECHO_T}no" >&6
1798 test -n "$ac_ct_CXX" && break
1800 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1806 # Provide some information about the compiler.
1807 echo "$as_me:$LINENO:" \
1808 "checking for C++ compiler version" >&5
1809 ac_compiler=`set X $ac_compile; echo $2`
1810 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1811 (eval $ac_compiler --version </dev/null >&5) 2>&5
1813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1814 (exit $ac_status); }
1815 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1816 (eval $ac_compiler -v </dev/null >&5) 2>&5
1818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1819 (exit $ac_status); }
1820 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1821 (eval $ac_compiler -V </dev/null >&5) 2>&5
1823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1824 (exit $ac_status); }
1826 cat >conftest.$ac_ext <<_ACEOF
1827 #line $LINENO "configure"
1830 cat confdefs.h >>conftest.$ac_ext
1831 cat >>conftest.$ac_ext <<_ACEOF
1832 /* end confdefs.h. */
1842 ac_clean_files_save=$ac_clean_files
1843 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1844 # Try to create an executable without -o first, disregard a.out.
1845 # It will help us diagnose broken compilers, and finding out an intuition
1847 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
1848 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
1849 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1850 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1851 (eval $ac_link_default) 2>&5
1853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1854 (exit $ac_status); }; then
1855 # Find the output, starting from the most likely. This scheme is
1856 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1859 # Be careful to initialize this variable, since it used to be cached.
1860 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1862 # b.out is created by i960 compilers.
1863 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1865 test -f "$ac_file" || continue
1867 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1870 # This is the source file.
1873 # We found the default executable, but exeext='' is most
1877 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1878 # FIXME: I believe we export ac_cv_exeext for Libtool,
1879 # but it would be cool to find out if it's true. Does anybody
1880 # maintain Libtool? --akim.
1888 echo "$as_me: failed program was:" >&5
1889 sed 's/^/| /' conftest.$ac_ext >&5
1891 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1892 See \`config.log' for more details." >&5
1893 echo "$as_me: error: C++ compiler cannot create executables
1894 See \`config.log' for more details." >&2;}
1895 { (exit 77); exit 77; }; }
1898 ac_exeext=$ac_cv_exeext
1899 echo "$as_me:$LINENO: result: $ac_file" >&5
1900 echo "${ECHO_T}$ac_file" >&6
1902 # Check the compiler produces executables we can run. If not, either
1903 # the compiler is broken, or we cross compile.
1904 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1905 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1906 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1907 # If not cross compiling, check that we can run a simple program.
1908 if test "$cross_compiling" != yes; then
1909 if { ac_try='./$ac_file'
1910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1914 (exit $ac_status); }; }; then
1917 if test "$cross_compiling" = maybe; then
1920 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1921 If you meant to cross compile, use \`--host'.
1922 See \`config.log' for more details." >&5
1923 echo "$as_me: error: cannot run C++ compiled programs.
1924 If you meant to cross compile, use \`--host'.
1925 See \`config.log' for more details." >&2;}
1926 { (exit 1); exit 1; }; }
1930 echo "$as_me:$LINENO: result: yes" >&5
1931 echo "${ECHO_T}yes" >&6
1933 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1934 ac_clean_files=$ac_clean_files_save
1935 # Check the compiler produces executables we can run. If not, either
1936 # the compiler is broken, or we cross compile.
1937 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1938 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1939 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1940 echo "${ECHO_T}$cross_compiling" >&6
1942 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1943 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1945 (eval $ac_link) 2>&5
1947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1948 (exit $ac_status); }; then
1949 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1950 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1951 # work properly (i.e., refer to `conftest.exe'), while it won't with
1953 for ac_file in conftest.exe conftest conftest.*; do
1954 test -f "$ac_file" || continue
1956 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1957 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1964 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1965 See \`config.log' for more details." >&5
1966 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1967 See \`config.log' for more details." >&2;}
1968 { (exit 1); exit 1; }; }
1971 rm -f conftest$ac_cv_exeext
1972 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1973 echo "${ECHO_T}$ac_cv_exeext" >&6
1975 rm -f conftest.$ac_ext
1976 EXEEXT=$ac_cv_exeext
1978 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1979 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1980 if test "${ac_cv_objext+set}" = set; then
1981 echo $ECHO_N "(cached) $ECHO_C" >&6
1983 cat >conftest.$ac_ext <<_ACEOF
1984 #line $LINENO "configure"
1987 cat confdefs.h >>conftest.$ac_ext
1988 cat >>conftest.$ac_ext <<_ACEOF
1989 /* end confdefs.h. */
1999 rm -f conftest.o conftest.obj
2000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2001 (eval $ac_compile) 2>&5
2003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004 (exit $ac_status); }; then
2005 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2007 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2008 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2013 echo "$as_me: failed program was:" >&5
2014 sed 's/^/| /' conftest.$ac_ext >&5
2016 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2017 See \`config.log' for more details." >&5
2018 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2019 See \`config.log' for more details." >&2;}
2020 { (exit 1); exit 1; }; }
2023 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2025 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2026 echo "${ECHO_T}$ac_cv_objext" >&6
2027 OBJEXT=$ac_cv_objext
2029 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2030 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2031 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2032 echo $ECHO_N "(cached) $ECHO_C" >&6
2034 cat >conftest.$ac_ext <<_ACEOF
2035 #line $LINENO "configure"
2038 cat confdefs.h >>conftest.$ac_ext
2039 cat >>conftest.$ac_ext <<_ACEOF
2040 /* end confdefs.h. */
2053 rm -f conftest.$ac_objext
2054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2055 (eval $ac_compile) 2>&5
2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 (exit $ac_status); } &&
2059 { ac_try='test -s conftest.$ac_objext'
2060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064 (exit $ac_status); }; }; then
2067 echo "$as_me: failed program was:" >&5
2068 sed 's/^/| /' conftest.$ac_ext >&5
2072 rm -f conftest.$ac_objext conftest.$ac_ext
2073 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2076 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2077 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2078 GXX=`test $ac_compiler_gnu = yes && echo yes`
2079 ac_test_CXXFLAGS=${CXXFLAGS+set}
2080 ac_save_CXXFLAGS=$CXXFLAGS
2082 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2083 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2084 if test "${ac_cv_prog_cxx_g+set}" = set; then
2085 echo $ECHO_N "(cached) $ECHO_C" >&6
2087 cat >conftest.$ac_ext <<_ACEOF
2088 #line $LINENO "configure"
2091 cat confdefs.h >>conftest.$ac_ext
2092 cat >>conftest.$ac_ext <<_ACEOF
2093 /* end confdefs.h. */
2103 rm -f conftest.$ac_objext
2104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2105 (eval $ac_compile) 2>&5
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); } &&
2109 { ac_try='test -s conftest.$ac_objext'
2110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }; }; then
2115 ac_cv_prog_cxx_g=yes
2117 echo "$as_me: failed program was:" >&5
2118 sed 's/^/| /' conftest.$ac_ext >&5
2122 rm -f conftest.$ac_objext conftest.$ac_ext
2124 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2125 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2126 if test "$ac_test_CXXFLAGS" = set; then
2127 CXXFLAGS=$ac_save_CXXFLAGS
2128 elif test $ac_cv_prog_cxx_g = yes; then
2129 if test "$GXX" = yes; then
2135 if test "$GXX" = yes; then
2141 for ac_declaration in \
2143 '#include <stdlib.h>' \
2144 'extern "C" void std::exit (int) throw (); using std::exit;' \
2145 'extern "C" void std::exit (int); using std::exit;' \
2146 'extern "C" void exit (int) throw ();' \
2147 'extern "C" void exit (int);' \
2150 cat >conftest.$ac_ext <<_ACEOF
2151 #line $LINENO "configure"
2154 cat confdefs.h >>conftest.$ac_ext
2155 cat >>conftest.$ac_ext <<_ACEOF
2156 /* end confdefs.h. */
2167 rm -f conftest.$ac_objext
2168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2169 (eval $ac_compile) 2>&5
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); } &&
2173 { ac_try='test -s conftest.$ac_objext'
2174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); }; }; then
2181 echo "$as_me: failed program was:" >&5
2182 sed 's/^/| /' conftest.$ac_ext >&5
2186 rm -f conftest.$ac_objext conftest.$ac_ext
2187 cat >conftest.$ac_ext <<_ACEOF
2188 #line $LINENO "configure"
2191 cat confdefs.h >>conftest.$ac_ext
2192 cat >>conftest.$ac_ext <<_ACEOF
2193 /* end confdefs.h. */
2203 rm -f conftest.$ac_objext
2204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2205 (eval $ac_compile) 2>&5
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); } &&
2209 { ac_try='test -s conftest.$ac_objext'
2210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }; }; then
2217 echo "$as_me: failed program was:" >&5
2218 sed 's/^/| /' conftest.$ac_ext >&5
2221 rm -f conftest.$ac_objext conftest.$ac_ext
2224 if test -n "$ac_declaration"; then
2225 echo '#ifdef __cplusplus' >>confdefs.h
2226 echo $ac_declaration >>confdefs.h
2227 echo '#endif' >>confdefs.h
2231 ac_cpp='$CPP $CPPFLAGS'
2232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2237 ac_cpp='$CPP $CPPFLAGS'
2238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2241 if test -n "$ac_tool_prefix"; then
2244 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2245 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2246 echo "$as_me:$LINENO: checking for $ac_word" >&5
2247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2248 if test "${ac_cv_prog_CC+set}" = set; then
2249 echo $ECHO_N "(cached) $ECHO_C" >&6
2251 if test -n "$CC"; then
2252 ac_cv_prog_CC="$CC" # Let the user override the test.
2254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258 test -z "$as_dir" && as_dir=.
2259 for ac_exec_ext in '' $ac_executable_extensions; do
2260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2261 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2271 if test -n "$CC"; then
2272 echo "$as_me:$LINENO: result: $CC" >&5
2273 echo "${ECHO_T}$CC" >&6
2275 echo "$as_me:$LINENO: result: no" >&5
2276 echo "${ECHO_T}no" >&6
2279 test -n "$CC" && break
2282 if test -z "$CC"; then
2286 # Extract the first word of "$ac_prog", so it can be a program name with args.
2287 set dummy $ac_prog; ac_word=$2
2288 echo "$as_me:$LINENO: checking for $ac_word" >&5
2289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2290 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2291 echo $ECHO_N "(cached) $ECHO_C" >&6
2293 if test -n "$ac_ct_CC"; then
2294 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2300 test -z "$as_dir" && as_dir=.
2301 for ac_exec_ext in '' $ac_executable_extensions; do
2302 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2303 ac_cv_prog_ac_ct_CC="$ac_prog"
2304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2312 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2313 if test -n "$ac_ct_CC"; then
2314 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2315 echo "${ECHO_T}$ac_ct_CC" >&6
2317 echo "$as_me:$LINENO: result: no" >&5
2318 echo "${ECHO_T}no" >&6
2321 test -n "$ac_ct_CC" && break
2328 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2329 See \`config.log' for more details." >&5
2330 echo "$as_me: error: no acceptable C compiler found in \$PATH
2331 See \`config.log' for more details." >&2;}
2332 { (exit 1); exit 1; }; }
2334 # Provide some information about the compiler.
2335 echo "$as_me:$LINENO:" \
2336 "checking for C compiler version" >&5
2337 ac_compiler=`set X $ac_compile; echo $2`
2338 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2339 (eval $ac_compiler --version </dev/null >&5) 2>&5
2341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342 (exit $ac_status); }
2343 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2344 (eval $ac_compiler -v </dev/null >&5) 2>&5
2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347 (exit $ac_status); }
2348 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2349 (eval $ac_compiler -V </dev/null >&5) 2>&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }
2354 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2355 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2356 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2357 echo $ECHO_N "(cached) $ECHO_C" >&6
2359 cat >conftest.$ac_ext <<_ACEOF
2360 #line $LINENO "configure"
2363 cat confdefs.h >>conftest.$ac_ext
2364 cat >>conftest.$ac_ext <<_ACEOF
2365 /* end confdefs.h. */
2378 rm -f conftest.$ac_objext
2379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2380 (eval $ac_compile) 2>&5
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); } &&
2384 { ac_try='test -s conftest.$ac_objext'
2385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); }; }; then
2392 echo "$as_me: failed program was:" >&5
2393 sed 's/^/| /' conftest.$ac_ext >&5
2397 rm -f conftest.$ac_objext conftest.$ac_ext
2398 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2401 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2402 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2403 GCC=`test $ac_compiler_gnu = yes && echo yes`
2404 ac_test_CFLAGS=${CFLAGS+set}
2405 ac_save_CFLAGS=$CFLAGS
2407 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2408 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2409 if test "${ac_cv_prog_cc_g+set}" = set; then
2410 echo $ECHO_N "(cached) $ECHO_C" >&6
2412 cat >conftest.$ac_ext <<_ACEOF
2413 #line $LINENO "configure"
2416 cat confdefs.h >>conftest.$ac_ext
2417 cat >>conftest.$ac_ext <<_ACEOF
2418 /* end confdefs.h. */
2428 rm -f conftest.$ac_objext
2429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2430 (eval $ac_compile) 2>&5
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); } &&
2434 { ac_try='test -s conftest.$ac_objext'
2435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); }; }; then
2442 echo "$as_me: failed program was:" >&5
2443 sed 's/^/| /' conftest.$ac_ext >&5
2447 rm -f conftest.$ac_objext conftest.$ac_ext
2449 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2450 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2451 if test "$ac_test_CFLAGS" = set; then
2452 CFLAGS=$ac_save_CFLAGS
2453 elif test $ac_cv_prog_cc_g = yes; then
2454 if test "$GCC" = yes; then
2460 if test "$GCC" = yes; then
2466 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2467 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2468 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2469 echo $ECHO_N "(cached) $ECHO_C" >&6
2471 ac_cv_prog_cc_stdc=no
2473 cat >conftest.$ac_ext <<_ACEOF
2474 #line $LINENO "configure"
2477 cat confdefs.h >>conftest.$ac_ext
2478 cat >>conftest.$ac_ext <<_ACEOF
2479 /* end confdefs.h. */
2482 #include <sys/types.h>
2483 #include <sys/stat.h>
2484 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2485 struct buf { int x; };
2486 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2487 static char *e (p, i)
2493 static char *f (char * (*g) (char **, int), char **p, ...)
2498 s = g (p, va_arg (v,int));
2502 int test (int i, double x);
2503 struct s1 {int (*f) (int a);};
2504 struct s2 {int (*f) (double a);};
2505 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2511 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2516 # Don't try gcc -ansi; that turns off useful extensions and
2517 # breaks some systems' header files.
2518 # AIX -qlanglvl=ansi
2519 # Ultrix and OSF/1 -std1
2520 # HP-UX 10.20 and later -Ae
2521 # HP-UX older versions -Aa -D_HPUX_SOURCE
2522 # SVR4 -Xc -D__EXTENSIONS__
2523 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2525 CC="$ac_save_CC $ac_arg"
2526 rm -f conftest.$ac_objext
2527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2528 (eval $ac_compile) 2>&5
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); } &&
2532 { ac_try='test -s conftest.$ac_objext'
2533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); }; }; then
2538 ac_cv_prog_cc_stdc=$ac_arg
2541 echo "$as_me: failed program was:" >&5
2542 sed 's/^/| /' conftest.$ac_ext >&5
2545 rm -f conftest.$ac_objext
2547 rm -f conftest.$ac_ext conftest.$ac_objext
2552 case "x$ac_cv_prog_cc_stdc" in
2554 echo "$as_me:$LINENO: result: none needed" >&5
2555 echo "${ECHO_T}none needed" >&6 ;;
2557 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2558 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2559 CC="$CC $ac_cv_prog_cc_stdc" ;;
2562 # Some people use a C++ compiler to compile C. Since we use `exit',
2563 # in C++ we need to declare it. In case someone uses the same compiler
2564 # for both compiling C and C++ we need to have the C++ compiler decide
2565 # the declaration of exit, since it's the most demanding environment.
2566 cat >conftest.$ac_ext <<_ACEOF
2571 rm -f conftest.$ac_objext
2572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2573 (eval $ac_compile) 2>&5
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); } &&
2577 { ac_try='test -s conftest.$ac_objext'
2578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; }; then
2583 for ac_declaration in \
2585 '#include <stdlib.h>' \
2586 'extern "C" void std::exit (int) throw (); using std::exit;' \
2587 'extern "C" void std::exit (int); using std::exit;' \
2588 'extern "C" void exit (int) throw ();' \
2589 'extern "C" void exit (int);' \
2592 cat >conftest.$ac_ext <<_ACEOF
2593 #line $LINENO "configure"
2596 cat confdefs.h >>conftest.$ac_ext
2597 cat >>conftest.$ac_ext <<_ACEOF
2598 /* end confdefs.h. */
2609 rm -f conftest.$ac_objext
2610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2611 (eval $ac_compile) 2>&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); } &&
2615 { ac_try='test -s conftest.$ac_objext'
2616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }; }; then
2623 echo "$as_me: failed program was:" >&5
2624 sed 's/^/| /' conftest.$ac_ext >&5
2628 rm -f conftest.$ac_objext conftest.$ac_ext
2629 cat >conftest.$ac_ext <<_ACEOF
2630 #line $LINENO "configure"
2633 cat confdefs.h >>conftest.$ac_ext
2634 cat >>conftest.$ac_ext <<_ACEOF
2635 /* end confdefs.h. */
2645 rm -f conftest.$ac_objext
2646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2647 (eval $ac_compile) 2>&5
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); } &&
2651 { ac_try='test -s conftest.$ac_objext'
2652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); }; }; then
2659 echo "$as_me: failed program was:" >&5
2660 sed 's/^/| /' conftest.$ac_ext >&5
2663 rm -f conftest.$ac_objext conftest.$ac_ext
2666 if test -n "$ac_declaration"; then
2667 echo '#ifdef __cplusplus' >>confdefs.h
2668 echo $ac_declaration >>confdefs.h
2669 echo '#endif' >>confdefs.h
2673 echo "$as_me: failed program was:" >&5
2674 sed 's/^/| /' conftest.$ac_ext >&5
2677 rm -f conftest.$ac_objext conftest.$ac_ext
2679 ac_cpp='$CPP $CPPFLAGS'
2680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2685 ac_cpp='$CPP $CPPFLAGS'
2686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2689 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2690 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2691 # On Suns, sometimes $CPP names a directory.
2692 if test -n "$CPP" && test -d "$CPP"; then
2695 if test -z "$CPP"; then
2696 if test "${ac_cv_prog_CPP+set}" = set; then
2697 echo $ECHO_N "(cached) $ECHO_C" >&6
2699 # Double quotes because CPP needs to be expanded
2700 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2703 for ac_c_preproc_warn_flag in '' yes
2705 # Use a header file that comes with gcc, so configuring glibc
2706 # with a fresh cross-compiler works.
2707 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2708 # <limits.h> exists even on freestanding compilers.
2709 # On the NeXT, cc -E runs the code through the compiler's parser,
2710 # not just through cpp. "Syntax error" is here to catch this case.
2711 cat >conftest.$ac_ext <<_ACEOF
2712 #line $LINENO "configure"
2715 cat confdefs.h >>conftest.$ac_ext
2716 cat >>conftest.$ac_ext <<_ACEOF
2717 /* end confdefs.h. */
2719 # include <limits.h>
2721 # include <assert.h>
2725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2728 grep -v '^ *+' conftest.er1 >conftest.err
2730 cat conftest.err >&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); } >/dev/null; then
2733 if test -s conftest.err; then
2734 ac_cpp_err=$ac_c_preproc_warn_flag
2741 if test -z "$ac_cpp_err"; then
2744 echo "$as_me: failed program was:" >&5
2745 sed 's/^/| /' conftest.$ac_ext >&5
2747 # Broken: fails on valid input.
2750 rm -f conftest.err conftest.$ac_ext
2752 # OK, works on sane cases. Now check whether non-existent headers
2753 # can be detected and how.
2754 cat >conftest.$ac_ext <<_ACEOF
2755 #line $LINENO "configure"
2758 cat confdefs.h >>conftest.$ac_ext
2759 cat >>conftest.$ac_ext <<_ACEOF
2760 /* end confdefs.h. */
2761 #include <ac_nonexistent.h>
2763 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2764 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2766 grep -v '^ *+' conftest.er1 >conftest.err
2768 cat conftest.err >&5
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); } >/dev/null; then
2771 if test -s conftest.err; then
2772 ac_cpp_err=$ac_c_preproc_warn_flag
2779 if test -z "$ac_cpp_err"; then
2780 # Broken: success on invalid input.
2783 echo "$as_me: failed program was:" >&5
2784 sed 's/^/| /' conftest.$ac_ext >&5
2786 # Passes both tests.
2790 rm -f conftest.err conftest.$ac_ext
2793 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2794 rm -f conftest.err conftest.$ac_ext
2795 if $ac_preproc_ok; then
2807 echo "$as_me:$LINENO: result: $CPP" >&5
2808 echo "${ECHO_T}$CPP" >&6
2810 for ac_c_preproc_warn_flag in '' yes
2812 # Use a header file that comes with gcc, so configuring glibc
2813 # with a fresh cross-compiler works.
2814 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2815 # <limits.h> exists even on freestanding compilers.
2816 # On the NeXT, cc -E runs the code through the compiler's parser,
2817 # not just through cpp. "Syntax error" is here to catch this case.
2818 cat >conftest.$ac_ext <<_ACEOF
2819 #line $LINENO "configure"
2822 cat confdefs.h >>conftest.$ac_ext
2823 cat >>conftest.$ac_ext <<_ACEOF
2824 /* end confdefs.h. */
2826 # include <limits.h>
2828 # include <assert.h>
2832 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2833 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2835 grep -v '^ *+' conftest.er1 >conftest.err
2837 cat conftest.err >&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); } >/dev/null; then
2840 if test -s conftest.err; then
2841 ac_cpp_err=$ac_c_preproc_warn_flag
2848 if test -z "$ac_cpp_err"; then
2851 echo "$as_me: failed program was:" >&5
2852 sed 's/^/| /' conftest.$ac_ext >&5
2854 # Broken: fails on valid input.
2857 rm -f conftest.err conftest.$ac_ext
2859 # OK, works on sane cases. Now check whether non-existent headers
2860 # can be detected and how.
2861 cat >conftest.$ac_ext <<_ACEOF
2862 #line $LINENO "configure"
2865 cat confdefs.h >>conftest.$ac_ext
2866 cat >>conftest.$ac_ext <<_ACEOF
2867 /* end confdefs.h. */
2868 #include <ac_nonexistent.h>
2870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2871 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2873 grep -v '^ *+' conftest.er1 >conftest.err
2875 cat conftest.err >&5
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); } >/dev/null; then
2878 if test -s conftest.err; then
2879 ac_cpp_err=$ac_c_preproc_warn_flag
2886 if test -z "$ac_cpp_err"; then
2887 # Broken: success on invalid input.
2890 echo "$as_me: failed program was:" >&5
2891 sed 's/^/| /' conftest.$ac_ext >&5
2893 # Passes both tests.
2897 rm -f conftest.err conftest.$ac_ext
2900 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2901 rm -f conftest.err conftest.$ac_ext
2902 if $ac_preproc_ok; then
2905 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2906 See \`config.log' for more details." >&5
2907 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2908 See \`config.log' for more details." >&2;}
2909 { (exit 1); exit 1; }; }
2913 ac_cpp='$CPP $CPPFLAGS'
2914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2919 if test "$GCC" != "yes"
2921 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
2922 echo "$as_me: error: gcc required but not found" >&2;}
2923 { (exit 1); exit 1; }; }
2926 if test "$GXX" != "yes"
2928 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
2929 echo "$as_me: error: g++ required but not found" >&2;}
2930 { (exit 1); exit 1; }; }
2933 echo "$as_me:$LINENO: checking for GNU make" >&5
2934 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
2935 if test "${_cv_gnu_make_command+set}" = set; then
2936 echo $ECHO_N "(cached) $ECHO_C" >&6
2938 _cv_gnu_make_command='' ;
2939 for a in "$MAKE" make gmake gnumake ; do
2940 if test -z "$a" ; then continue ; fi ;
2941 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
2942 _cv_gnu_make_command=$a ;
2948 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
2949 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
2950 if test "x$_cv_gnu_make_command" != "x" ; then
2954 echo "$as_me:$LINENO: result: \"Not found\"" >&5
2955 echo "${ECHO_T}\"Not found\"" >&6;
2959 if test -z "$_cv_gnu_make_command"
2961 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
2962 echo "$as_me: error: GNU Make required but not found" >&2;}
2963 { (exit 1); exit 1; }; }
2967 echo "$as_me:$LINENO: checking " >&5
2968 echo $ECHO_N "checking ... $ECHO_C" >&6
2969 if test "${ac_cv_has_flex+set}" = set; then
2970 echo $ECHO_N "(cached) $ECHO_C" >&6
2972 for ac_prog in flex lex
2974 # Extract the first word of "$ac_prog", so it can be a program name with args.
2975 set dummy $ac_prog; ac_word=$2
2976 echo "$as_me:$LINENO: checking for $ac_word" >&5
2977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2978 if test "${ac_cv_prog_LEX+set}" = set; then
2979 echo $ECHO_N "(cached) $ECHO_C" >&6
2981 if test -n "$LEX"; then
2982 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988 test -z "$as_dir" && as_dir=.
2989 for ac_exec_ext in '' $ac_executable_extensions; do
2990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2991 ac_cv_prog_LEX="$ac_prog"
2992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3001 if test -n "$LEX"; then
3002 echo "$as_me:$LINENO: result: $LEX" >&5
3003 echo "${ECHO_T}$LEX" >&6
3005 echo "$as_me:$LINENO: result: no" >&5
3006 echo "${ECHO_T}no" >&6
3009 test -n "$LEX" && break
3011 test -n "$LEX" || LEX=":"
3013 if test -z "$LEXLIB"
3015 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3016 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3017 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3018 echo $ECHO_N "(cached) $ECHO_C" >&6
3020 ac_check_lib_save_LIBS=$LIBS
3022 cat >conftest.$ac_ext <<_ACEOF
3023 #line $LINENO "configure"
3026 cat confdefs.h >>conftest.$ac_ext
3027 cat >>conftest.$ac_ext <<_ACEOF
3028 /* end confdefs.h. */
3030 /* Override any gcc2 internal prototype to avoid an error. */
3034 /* We use char because int might match the return type of a gcc2
3035 builtin and then its argument prototype would still apply. */
3045 rm -f conftest.$ac_objext conftest$ac_exeext
3046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3047 (eval $ac_link) 2>&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); } &&
3051 { ac_try='test -s conftest$ac_exeext'
3052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }; }; then
3057 ac_cv_lib_fl_yywrap=yes
3059 echo "$as_me: failed program was:" >&5
3060 sed 's/^/| /' conftest.$ac_ext >&5
3062 ac_cv_lib_fl_yywrap=no
3064 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3065 LIBS=$ac_check_lib_save_LIBS
3067 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3068 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3069 if test $ac_cv_lib_fl_yywrap = yes; then
3072 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3073 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3074 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3075 echo $ECHO_N "(cached) $ECHO_C" >&6
3077 ac_check_lib_save_LIBS=$LIBS
3079 cat >conftest.$ac_ext <<_ACEOF
3080 #line $LINENO "configure"
3083 cat confdefs.h >>conftest.$ac_ext
3084 cat >>conftest.$ac_ext <<_ACEOF
3085 /* end confdefs.h. */
3087 /* Override any gcc2 internal prototype to avoid an error. */
3091 /* We use char because int might match the return type of a gcc2
3092 builtin and then its argument prototype would still apply. */
3102 rm -f conftest.$ac_objext conftest$ac_exeext
3103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3104 (eval $ac_link) 2>&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); } &&
3108 { ac_try='test -s conftest$ac_exeext'
3109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); }; }; then
3114 ac_cv_lib_l_yywrap=yes
3116 echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3119 ac_cv_lib_l_yywrap=no
3121 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3122 LIBS=$ac_check_lib_save_LIBS
3124 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3125 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3126 if test $ac_cv_lib_l_yywrap = yes; then
3134 if test "x$LEX" != "x:"; then
3135 echo "$as_me:$LINENO: checking lex output file root" >&5
3136 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3137 if test "${ac_cv_prog_lex_root+set}" = set; then
3138 echo $ECHO_N "(cached) $ECHO_C" >&6
3140 # The minimal lex program is just a single line: %%. But some broken lexes
3141 # (Solaris, I think it was) want two %% lines, so accommodate them.
3142 cat >conftest.l <<_ACEOF
3146 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3147 (eval $LEX conftest.l) 2>&5
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); }
3151 if test -f lex.yy.c; then
3152 ac_cv_prog_lex_root=lex.yy
3153 elif test -f lexyy.c; then
3154 ac_cv_prog_lex_root=lexyy
3156 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3157 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3158 { (exit 1); exit 1; }; }
3161 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3162 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3164 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3166 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3167 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3168 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3169 echo $ECHO_N "(cached) $ECHO_C" >&6
3171 # POSIX says lex can declare yytext either as a pointer or an array; the
3172 # default is implementation-dependent. Figure out which it is, since
3173 # not all implementations provide the %pointer and %array declarations.
3174 ac_cv_prog_lex_yytext_pointer=no
3175 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3177 LIBS="$LIBS $LEXLIB"
3178 cat >conftest.$ac_ext <<_ACEOF
3179 `cat $LEX_OUTPUT_ROOT.c`
3181 rm -f conftest.$ac_objext conftest$ac_exeext
3182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3183 (eval $ac_link) 2>&5
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); } &&
3187 { ac_try='test -s conftest$ac_exeext'
3188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); }; }; then
3193 ac_cv_prog_lex_yytext_pointer=yes
3195 echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3199 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3201 rm -f "${LEX_OUTPUT_ROOT}.c"
3204 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3205 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3206 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3208 cat >>confdefs.h <<\_ACEOF
3209 #define YYTEXT_POINTER 1
3217 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3218 echo "${ECHO_T}$ac_cv_has_flex" >&6
3219 if test "$LEX" != "flex"; then
3220 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3221 echo "$as_me: error: flex not found but required" >&2;}
3222 { (exit 1); exit 1; }; }
3225 echo "$as_me:$LINENO: checking " >&5
3226 echo $ECHO_N "checking ... $ECHO_C" >&6
3227 if test "${ac_cv_has_bison+set}" = set; then
3228 echo $ECHO_N "(cached) $ECHO_C" >&6
3230 for ac_prog in 'bison -y' byacc
3232 # Extract the first word of "$ac_prog", so it can be a program name with args.
3233 set dummy $ac_prog; ac_word=$2
3234 echo "$as_me:$LINENO: checking for $ac_word" >&5
3235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3236 if test "${ac_cv_prog_YACC+set}" = set; then
3237 echo $ECHO_N "(cached) $ECHO_C" >&6
3239 if test -n "$YACC"; then
3240 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3246 test -z "$as_dir" && as_dir=.
3247 for ac_exec_ext in '' $ac_executable_extensions; do
3248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3249 ac_cv_prog_YACC="$ac_prog"
3250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3258 YACC=$ac_cv_prog_YACC
3259 if test -n "$YACC"; then
3260 echo "$as_me:$LINENO: result: $YACC" >&5
3261 echo "${ECHO_T}$YACC" >&6
3263 echo "$as_me:$LINENO: result: no" >&5
3264 echo "${ECHO_T}no" >&6
3267 test -n "$YACC" && break
3269 test -n "$YACC" || YACC="yacc"
3273 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3274 echo "${ECHO_T}$ac_cv_has_bison" >&6
3275 if test "$YACC" != "bison -y"; then
3276 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3277 echo "$as_me: error: bison not found but required" >&2;}
3278 { (exit 1); exit 1; }; }
3285 # Check whether --enable-shared or --disable-shared was given.
3286 if test "${enable_shared+set}" = set; then
3287 enableval="$enable_shared"
3288 p=${PACKAGE-default}
3290 yes) enable_shared=yes ;;
3291 no) enable_shared=no ;;
3294 # Look at the argument we got. We use all the common list separators.
3295 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3296 for pkg in $enableval; do
3298 if test "X$pkg" = "X$p"; then
3309 # Check whether --enable-static or --disable-static was given.
3310 if test "${enable_static+set}" = set; then
3311 enableval="$enable_static"
3312 p=${PACKAGE-default}
3314 yes) enable_static=yes ;;
3315 no) enable_static=no ;;
3318 # Look at the argument we got. We use all the common list separators.
3319 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3320 for pkg in $enableval; do
3322 if test "X$pkg" = "X$p"; then
3333 # Check whether --enable-fast-install or --disable-fast-install was given.
3334 if test "${enable_fast_install+set}" = set; then
3335 enableval="$enable_fast_install"
3336 p=${PACKAGE-default}
3338 yes) enable_fast_install=yes ;;
3339 no) enable_fast_install=no ;;
3341 enable_fast_install=no
3342 # Look at the argument we got. We use all the common list separators.
3343 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3344 for pkg in $enableval; do
3346 if test "X$pkg" = "X$p"; then
3347 enable_fast_install=yes
3354 enable_fast_install=yes
3357 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3358 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3359 if test "${lt_cv_path_SED+set}" = set; then
3360 echo $ECHO_N "(cached) $ECHO_C" >&6
3362 # Loop through the user's path and test for sed and gsed.
3363 # Then use that list of sed's as ones to test for truncation.
3364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3368 test -z "$as_dir" && as_dir=.
3369 for lt_ac_prog in sed gsed; do
3370 for ac_exec_ext in '' $ac_executable_extensions; do
3371 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3372 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3379 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3380 # along with /bin/sed that truncates output.
3381 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3382 test ! -f $lt_ac_sed && break
3383 cat /dev/null > conftest.in
3385 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3386 # Check for GNU sed and select it if it is found.
3387 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3388 lt_cv_path_SED=$lt_ac_sed
3392 cat conftest.in conftest.in >conftest.tmp
3393 mv conftest.tmp conftest.in
3394 cp conftest.in conftest.nl
3396 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3397 cmp -s conftest.out conftest.nl || break
3398 # 10000 chars as input seems more than enough
3399 test $lt_ac_count -gt 10 && break
3400 lt_ac_count=`expr $lt_ac_count + 1`
3401 if test $lt_ac_count -gt $lt_ac_max; then
3402 lt_ac_max=$lt_ac_count
3403 lt_cv_path_SED=$lt_ac_sed
3411 echo "$as_me:$LINENO: result: $SED" >&5
3412 echo "${ECHO_T}$SED" >&6
3414 echo "$as_me:$LINENO: checking for egrep" >&5
3415 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3416 if test "${ac_cv_prog_egrep+set}" = set; then
3417 echo $ECHO_N "(cached) $ECHO_C" >&6
3419 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3420 then ac_cv_prog_egrep='grep -E'
3421 else ac_cv_prog_egrep='egrep'
3424 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3425 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3426 EGREP=$ac_cv_prog_egrep
3430 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3431 if test "${with_gnu_ld+set}" = set; then
3432 withval="$with_gnu_ld"
3433 test "$withval" = no || with_gnu_ld=yes
3438 if test "$GCC" = yes; then
3439 # Check if gcc -print-prog-name=ld gives a path.
3440 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3441 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3444 # gcc leaves a trailing carriage return which upsets mingw
3445 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3447 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3450 # Accept absolute paths.
3452 re_direlt='/[^/][^/]*/\.\./'
3453 # Canonicalize the path of ld
3454 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3455 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3456 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3458 test -z "$LD" && LD="$ac_prog"
3461 # If it fails, then pretend we aren't using GCC.
3465 # If it is relative, then search for the first ld in PATH.
3469 elif test "$with_gnu_ld" = yes; then
3470 echo "$as_me:$LINENO: checking for GNU ld" >&5
3471 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3473 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3474 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3476 if test "${lt_cv_path_LD+set}" = set; then
3477 echo $ECHO_N "(cached) $ECHO_C" >&6
3479 if test -z "$LD"; then
3480 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3481 for ac_dir in $PATH; do
3483 test -z "$ac_dir" && ac_dir=.
3484 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3485 lt_cv_path_LD="$ac_dir/$ac_prog"
3486 # Check to see if the program is GNU ld. I'd rather use --version,
3487 # but apparently some GNU ld's only accept -v.
3488 # Break only if it was the GNU/non-GNU ld that we prefer.
3489 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3490 *GNU* | *'with BFD'*)
3491 test "$with_gnu_ld" != no && break
3494 test "$with_gnu_ld" != yes && break
3501 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3506 if test -n "$LD"; then
3507 echo "$as_me:$LINENO: result: $LD" >&5
3508 echo "${ECHO_T}$LD" >&6
3510 echo "$as_me:$LINENO: result: no" >&5
3511 echo "${ECHO_T}no" >&6
3513 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3514 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3515 { (exit 1); exit 1; }; }
3516 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3517 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3518 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3519 echo $ECHO_N "(cached) $ECHO_C" >&6
3521 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3522 case `"$LD" -v 2>&1 </dev/null` in
3523 *GNU* | *'with BFD'*)
3524 lt_cv_prog_gnu_ld=yes
3527 lt_cv_prog_gnu_ld=no
3531 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3532 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3533 with_gnu_ld=$lt_cv_prog_gnu_ld
3536 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3537 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3538 if test "${lt_cv_ld_reload_flag+set}" = set; then
3539 echo $ECHO_N "(cached) $ECHO_C" >&6
3541 lt_cv_ld_reload_flag='-r'
3543 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3544 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3545 reload_flag=$lt_cv_ld_reload_flag
3546 case $reload_flag in
3548 *) reload_flag=" $reload_flag" ;;
3550 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3552 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3553 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3554 if test "${lt_cv_path_NM+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3557 if test -n "$NM"; then
3558 # Let the user override the test.
3561 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3562 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3564 test -z "$ac_dir" && ac_dir=.
3565 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3566 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3567 # Check to see if the nm accepts a BSD-compat flag.
3568 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3569 # nm: unknown option "B" ignored
3570 # Tru64's nm complains that /dev/null is an invalid object file
3571 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3572 */dev/null* | *'Invalid file or object type'*)
3573 lt_cv_path_NM="$tmp_nm -B"
3577 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3579 lt_cv_path_NM="$tmp_nm -p"
3583 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3584 continue # so that we can try to find one that supports BSD flags
3591 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3594 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3595 echo "${ECHO_T}$lt_cv_path_NM" >&6
3598 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3599 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3601 if test "$LN_S" = "ln -s"; then
3602 echo "$as_me:$LINENO: result: yes" >&5
3603 echo "${ECHO_T}yes" >&6
3605 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3606 echo "${ECHO_T}no, using $LN_S" >&6
3609 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3610 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3611 if test "${lt_cv_deplibs_check_method+set}" = set; then
3612 echo $ECHO_N "(cached) $ECHO_C" >&6
3614 lt_cv_file_magic_cmd='$MAGIC_CMD'
3615 lt_cv_file_magic_test_file=
3616 lt_cv_deplibs_check_method='unknown'
3617 # Need to set the preceding variable on all platforms that support
3618 # interlibrary dependencies.
3619 # 'none' -- dependencies not supported.
3620 # `unknown' -- same as none, but documents that we really don't know.
3621 # 'pass_all' -- all dependencies passed with no checks.
3622 # 'test_compile' -- check by making test program.
3623 # 'file_magic [[regex]]' -- check by looking for files in library path
3624 # which responds to the $file_magic_cmd with a given extended regex.
3625 # If you have `file' or equivalent on your system and you're not sure
3626 # whether `pass_all' will *always* work, you probably want this one.
3630 lt_cv_deplibs_check_method=pass_all
3634 lt_cv_deplibs_check_method=pass_all
3638 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3639 lt_cv_file_magic_cmd='/usr/bin/file -L'
3640 lt_cv_file_magic_test_file=/shlib/libc.so
3643 cygwin* | mingw* | pw32*)
3644 # win32_libid is a shell function defined in ltmain.sh
3645 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3646 lt_cv_file_magic_cmd='win32_libid'
3649 darwin* | rhapsody*)
3650 # this will be overwritten by pass_all, but leave it in just in case
3651 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3652 lt_cv_file_magic_cmd='/usr/bin/file -L'
3654 rhapsody* | darwin1.[012])
3655 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3658 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3661 lt_cv_deplibs_check_method=pass_all
3665 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3668 # Not sure whether the presence of OpenBSD here was a mistake.
3669 # Let's accept both of them until this is cleared up.
3670 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3671 lt_cv_file_magic_cmd=/usr/bin/file
3672 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3676 lt_cv_deplibs_check_method=pass_all
3681 lt_cv_deplibs_check_method=pass_all
3684 hpux10.20* | hpux11*)
3685 lt_cv_file_magic_cmd=/usr/bin/file
3688 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3689 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3692 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]'
3693 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3696 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3697 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3702 irix5* | irix6* | nonstopux*)
3704 irix5* | nonstopux*)
3705 # this will be overridden with pass_all, but let us keep it just in case
3706 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3710 *-32|*"-32 ") libmagic=32-bit;;
3711 *-n32|*"-n32 ") libmagic=N32;;
3712 *-64|*"-64 ") libmagic=64-bit;;
3713 *) libmagic=never-match;;
3715 # this will be overridden with pass_all, but let us keep it just in case
3716 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3719 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3720 lt_cv_deplibs_check_method=pass_all
3723 # This must be Linux ELF.
3726 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
3727 lt_cv_deplibs_check_method=pass_all ;;
3729 # glibc up to 2.1.1 does not perform some relocations on ARM
3730 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3732 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3736 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3737 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3739 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3744 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3745 lt_cv_file_magic_cmd=/usr/bin/file
3746 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3750 lt_cv_deplibs_check_method=unknown
3754 lt_cv_file_magic_cmd=/usr/bin/file
3755 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3756 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3757 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3759 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3763 osf3* | osf4* | osf5*)
3764 # this will be overridden with pass_all, but let us keep it just in case
3765 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3766 lt_cv_file_magic_test_file=/shlib/libc.so
3767 lt_cv_deplibs_check_method=pass_all
3771 lt_cv_deplibs_check_method=pass_all
3775 lt_cv_deplibs_check_method=pass_all
3776 lt_cv_file_magic_test_file=/lib/libc.so
3779 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3780 case $host_vendor in
3782 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]'
3783 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3786 lt_cv_deplibs_check_method=pass_all
3789 lt_cv_file_magic_cmd='/bin/file'
3790 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3793 lt_cv_file_magic_cmd='/bin/file'
3794 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3795 lt_cv_file_magic_test_file=/lib/libc.so
3798 lt_cv_deplibs_check_method=pass_all
3803 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3804 lt_cv_deplibs_check_method=pass_all
3809 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3810 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3811 file_magic_cmd=$lt_cv_file_magic_cmd
3812 deplibs_check_method=$lt_cv_deplibs_check_method
3813 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3818 # If no C compiler was specified, use CC.
3821 # Allow CC to be a program name with arguments.
3824 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3825 if test "${enable_libtool_lock+set}" = set; then
3826 enableval="$enable_libtool_lock"
3829 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3831 # Some flags need to be propagated to the compiler or linker for good
3835 # Find out which ABI we are using.
3836 echo 'int i;' > conftest.$ac_ext
3837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3838 (eval $ac_compile) 2>&5
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); }; then
3842 case `/usr/bin/file conftest.$ac_objext` in
3854 # Find out which ABI we are using.
3855 echo '#line 3855 "configure"' > conftest.$ac_ext
3856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3857 (eval $ac_compile) 2>&5
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; then
3861 if test "$lt_cv_prog_gnu_ld" = yes; then
3862 case `/usr/bin/file conftest.$ac_objext` in
3864 LD="${LD-ld} -melf32bsmip"
3867 LD="${LD-ld} -melf32bmipn32"
3870 LD="${LD-ld} -melf64bmip"
3874 case `/usr/bin/file conftest.$ac_objext` in
3890 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3891 # Find out which ABI we are using.
3892 echo 'int i;' > conftest.$ac_ext
3893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3894 (eval $ac_compile) 2>&5
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); }; then
3898 case "`/usr/bin/file conftest.o`" in
3902 LD="${LD-ld} -m elf_i386"
3905 LD="${LD-ld} -m elf32ppclinux"
3908 LD="${LD-ld} -m elf_s390"
3911 LD="${LD-ld} -m elf32_sparc"
3918 LD="${LD-ld} -m elf_x86_64"
3920 ppc*-*linux*|powerpc*-*linux*)
3921 LD="${LD-ld} -m elf64ppc"
3924 LD="${LD-ld} -m elf64_s390"
3927 LD="${LD-ld} -m elf64_sparc"
3937 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3938 SAVE_CFLAGS="$CFLAGS"
3939 CFLAGS="$CFLAGS -belf"
3940 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3941 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3942 if test "${lt_cv_cc_needs_belf+set}" = set; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3946 ac_cpp='$CPP $CPPFLAGS'
3947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3951 cat >conftest.$ac_ext <<_ACEOF
3952 #line $LINENO "configure"
3955 cat confdefs.h >>conftest.$ac_ext
3956 cat >>conftest.$ac_ext <<_ACEOF
3957 /* end confdefs.h. */
3967 rm -f conftest.$ac_objext conftest$ac_exeext
3968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3969 (eval $ac_link) 2>&5
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); } &&
3973 { ac_try='test -s conftest$ac_exeext'
3974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); }; }; then
3979 lt_cv_cc_needs_belf=yes
3981 echo "$as_me: failed program was:" >&5
3982 sed 's/^/| /' conftest.$ac_ext >&5
3984 lt_cv_cc_needs_belf=no
3986 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3988 ac_cpp='$CPP $CPPFLAGS'
3989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3994 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3995 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3996 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3997 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3998 CFLAGS="$SAVE_CFLAGS"
4004 need_locks="$enable_libtool_lock"
4008 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4009 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4010 if test "${ac_cv_header_stdc+set}" = set; then
4011 echo $ECHO_N "(cached) $ECHO_C" >&6
4013 cat >conftest.$ac_ext <<_ACEOF
4014 #line $LINENO "configure"
4017 cat confdefs.h >>conftest.$ac_ext
4018 cat >>conftest.$ac_ext <<_ACEOF
4019 /* end confdefs.h. */
4033 rm -f conftest.$ac_objext
4034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4035 (eval $ac_compile) 2>&5
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); } &&
4039 { ac_try='test -s conftest.$ac_objext'
4040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); }; }; then
4045 ac_cv_header_stdc=yes
4047 echo "$as_me: failed program was:" >&5
4048 sed 's/^/| /' conftest.$ac_ext >&5
4050 ac_cv_header_stdc=no
4052 rm -f conftest.$ac_objext conftest.$ac_ext
4054 if test $ac_cv_header_stdc = yes; then
4055 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4056 cat >conftest.$ac_ext <<_ACEOF
4057 #line $LINENO "configure"
4060 cat confdefs.h >>conftest.$ac_ext
4061 cat >>conftest.$ac_ext <<_ACEOF
4062 /* end confdefs.h. */
4066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4067 $EGREP "memchr" >/dev/null 2>&1; then
4070 ac_cv_header_stdc=no
4076 if test $ac_cv_header_stdc = yes; then
4077 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4078 cat >conftest.$ac_ext <<_ACEOF
4079 #line $LINENO "configure"
4082 cat confdefs.h >>conftest.$ac_ext
4083 cat >>conftest.$ac_ext <<_ACEOF
4084 /* end confdefs.h. */
4088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4089 $EGREP "free" >/dev/null 2>&1; then
4092 ac_cv_header_stdc=no
4098 if test $ac_cv_header_stdc = yes; then
4099 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4100 if test "$cross_compiling" = yes; then
4103 cat >conftest.$ac_ext <<_ACEOF
4104 #line $LINENO "configure"
4107 cat confdefs.h >>conftest.$ac_ext
4108 cat >>conftest.$ac_ext <<_ACEOF
4109 /* end confdefs.h. */
4111 #if ((' ' & 0x0FF) == 0x020)
4112 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4113 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4115 # define ISLOWER(c) \
4116 (('a' <= (c) && (c) <= 'i') \
4117 || ('j' <= (c) && (c) <= 'r') \
4118 || ('s' <= (c) && (c) <= 'z'))
4119 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4122 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4127 for (i = 0; i < 256; i++)
4128 if (XOR (islower (i), ISLOWER (i))
4129 || toupper (i) != TOUPPER (i))
4134 rm -f conftest$ac_exeext
4135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4136 (eval $ac_link) 2>&5
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); }; }; then
4147 echo "$as_me: program exited with status $ac_status" >&5
4148 echo "$as_me: failed program was:" >&5
4149 sed 's/^/| /' conftest.$ac_ext >&5
4152 ac_cv_header_stdc=no
4154 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4158 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4159 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4160 if test $ac_cv_header_stdc = yes; then
4162 cat >>confdefs.h <<\_ACEOF
4163 #define STDC_HEADERS 1
4168 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4178 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4179 inttypes.h stdint.h unistd.h
4181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4182 echo "$as_me:$LINENO: checking for $ac_header" >&5
4183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4185 echo $ECHO_N "(cached) $ECHO_C" >&6
4187 cat >conftest.$ac_ext <<_ACEOF
4188 #line $LINENO "configure"
4191 cat confdefs.h >>conftest.$ac_ext
4192 cat >>conftest.$ac_ext <<_ACEOF
4193 /* end confdefs.h. */
4194 $ac_includes_default
4196 #include <$ac_header>
4198 rm -f conftest.$ac_objext
4199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4200 (eval $ac_compile) 2>&5
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); } &&
4204 { ac_try='test -s conftest.$ac_objext'
4205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); }; }; then
4210 eval "$as_ac_Header=yes"
4212 echo "$as_me: failed program was:" >&5
4213 sed 's/^/| /' conftest.$ac_ext >&5
4215 eval "$as_ac_Header=no"
4217 rm -f conftest.$ac_objext conftest.$ac_ext
4219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4222 cat >>confdefs.h <<_ACEOF
4223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4232 for ac_header in dlfcn.h
4234 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4236 echo "$as_me:$LINENO: checking for $ac_header" >&5
4237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4239 echo $ECHO_N "(cached) $ECHO_C" >&6
4241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4244 # Is the header compilable?
4245 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4246 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4247 cat >conftest.$ac_ext <<_ACEOF
4248 #line $LINENO "configure"
4251 cat confdefs.h >>conftest.$ac_ext
4252 cat >>conftest.$ac_ext <<_ACEOF
4253 /* end confdefs.h. */
4254 $ac_includes_default
4255 #include <$ac_header>
4257 rm -f conftest.$ac_objext
4258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4259 (eval $ac_compile) 2>&5
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); } &&
4263 { ac_try='test -s conftest.$ac_objext'
4264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); }; }; then
4269 ac_header_compiler=yes
4271 echo "$as_me: failed program was:" >&5
4272 sed 's/^/| /' conftest.$ac_ext >&5
4274 ac_header_compiler=no
4276 rm -f conftest.$ac_objext conftest.$ac_ext
4277 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4278 echo "${ECHO_T}$ac_header_compiler" >&6
4280 # Is the header present?
4281 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4282 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4283 cat >conftest.$ac_ext <<_ACEOF
4284 #line $LINENO "configure"
4287 cat confdefs.h >>conftest.$ac_ext
4288 cat >>conftest.$ac_ext <<_ACEOF
4289 /* end confdefs.h. */
4290 #include <$ac_header>
4292 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4293 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4295 grep -v '^ *+' conftest.er1 >conftest.err
4297 cat conftest.err >&5
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); } >/dev/null; then
4300 if test -s conftest.err; then
4301 ac_cpp_err=$ac_c_preproc_warn_flag
4308 if test -z "$ac_cpp_err"; then
4309 ac_header_preproc=yes
4311 echo "$as_me: failed program was:" >&5
4312 sed 's/^/| /' conftest.$ac_ext >&5
4314 ac_header_preproc=no
4316 rm -f conftest.err conftest.$ac_ext
4317 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4318 echo "${ECHO_T}$ac_header_preproc" >&6
4320 # So? What about this header?
4321 case $ac_header_compiler:$ac_header_preproc in
4323 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4324 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4329 ## ------------------------------------ ##
4330 ## Report this to bug-autoconf@gnu.org. ##
4331 ## ------------------------------------ ##
4334 sed "s/^/$as_me: WARNING: /" >&2
4337 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4338 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4339 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4340 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4342 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4345 ## ------------------------------------ ##
4346 ## Report this to bug-autoconf@gnu.org. ##
4347 ## ------------------------------------ ##
4350 sed "s/^/$as_me: WARNING: /" >&2
4353 echo "$as_me:$LINENO: checking for $ac_header" >&5
4354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4356 echo $ECHO_N "(cached) $ECHO_C" >&6
4358 eval "$as_ac_Header=$ac_header_preproc"
4360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4361 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4365 cat >>confdefs.h <<_ACEOF
4366 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4374 ac_cpp='$CXXCPP $CPPFLAGS'
4375 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4376 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4377 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4378 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4379 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4380 if test -z "$CXXCPP"; then
4381 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
4384 # Double quotes because CXXCPP needs to be expanded
4385 for CXXCPP in "$CXX -E" "/lib/cpp"
4388 for ac_cxx_preproc_warn_flag in '' yes
4390 # Use a header file that comes with gcc, so configuring glibc
4391 # with a fresh cross-compiler works.
4392 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4393 # <limits.h> exists even on freestanding compilers.
4394 # On the NeXT, cc -E runs the code through the compiler's parser,
4395 # not just through cpp. "Syntax error" is here to catch this case.
4396 cat >conftest.$ac_ext <<_ACEOF
4397 #line $LINENO "configure"
4400 cat confdefs.h >>conftest.$ac_ext
4401 cat >>conftest.$ac_ext <<_ACEOF
4402 /* end confdefs.h. */
4404 # include <limits.h>
4406 # include <assert.h>
4410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4411 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4413 grep -v '^ *+' conftest.er1 >conftest.err
4415 cat conftest.err >&5
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); } >/dev/null; then
4418 if test -s conftest.err; then
4419 ac_cpp_err=$ac_cxx_preproc_warn_flag
4426 if test -z "$ac_cpp_err"; then
4429 echo "$as_me: failed program was:" >&5
4430 sed 's/^/| /' conftest.$ac_ext >&5
4432 # Broken: fails on valid input.
4435 rm -f conftest.err conftest.$ac_ext
4437 # OK, works on sane cases. Now check whether non-existent headers
4438 # can be detected and how.
4439 cat >conftest.$ac_ext <<_ACEOF
4440 #line $LINENO "configure"
4443 cat confdefs.h >>conftest.$ac_ext
4444 cat >>conftest.$ac_ext <<_ACEOF
4445 /* end confdefs.h. */
4446 #include <ac_nonexistent.h>
4448 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4449 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4451 grep -v '^ *+' conftest.er1 >conftest.err
4453 cat conftest.err >&5
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); } >/dev/null; then
4456 if test -s conftest.err; then
4457 ac_cpp_err=$ac_cxx_preproc_warn_flag
4464 if test -z "$ac_cpp_err"; then
4465 # Broken: success on invalid input.
4468 echo "$as_me: failed program was:" >&5
4469 sed 's/^/| /' conftest.$ac_ext >&5
4471 # Passes both tests.
4475 rm -f conftest.err conftest.$ac_ext
4478 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4479 rm -f conftest.err conftest.$ac_ext
4480 if $ac_preproc_ok; then
4485 ac_cv_prog_CXXCPP=$CXXCPP
4488 CXXCPP=$ac_cv_prog_CXXCPP
4490 ac_cv_prog_CXXCPP=$CXXCPP
4492 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4493 echo "${ECHO_T}$CXXCPP" >&6
4495 for ac_cxx_preproc_warn_flag in '' yes
4497 # Use a header file that comes with gcc, so configuring glibc
4498 # with a fresh cross-compiler works.
4499 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4500 # <limits.h> exists even on freestanding compilers.
4501 # On the NeXT, cc -E runs the code through the compiler's parser,
4502 # not just through cpp. "Syntax error" is here to catch this case.
4503 cat >conftest.$ac_ext <<_ACEOF
4504 #line $LINENO "configure"
4507 cat confdefs.h >>conftest.$ac_ext
4508 cat >>conftest.$ac_ext <<_ACEOF
4509 /* end confdefs.h. */
4511 # include <limits.h>
4513 # include <assert.h>
4517 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4518 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4520 grep -v '^ *+' conftest.er1 >conftest.err
4522 cat conftest.err >&5
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); } >/dev/null; then
4525 if test -s conftest.err; then
4526 ac_cpp_err=$ac_cxx_preproc_warn_flag
4533 if test -z "$ac_cpp_err"; then
4536 echo "$as_me: failed program was:" >&5
4537 sed 's/^/| /' conftest.$ac_ext >&5
4539 # Broken: fails on valid input.
4542 rm -f conftest.err conftest.$ac_ext
4544 # OK, works on sane cases. Now check whether non-existent headers
4545 # can be detected and how.
4546 cat >conftest.$ac_ext <<_ACEOF
4547 #line $LINENO "configure"
4550 cat confdefs.h >>conftest.$ac_ext
4551 cat >>conftest.$ac_ext <<_ACEOF
4552 /* end confdefs.h. */
4553 #include <ac_nonexistent.h>
4555 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4556 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4558 grep -v '^ *+' conftest.er1 >conftest.err
4560 cat conftest.err >&5
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); } >/dev/null; then
4563 if test -s conftest.err; then
4564 ac_cpp_err=$ac_cxx_preproc_warn_flag
4571 if test -z "$ac_cpp_err"; then
4572 # Broken: success on invalid input.
4575 echo "$as_me: failed program was:" >&5
4576 sed 's/^/| /' conftest.$ac_ext >&5
4578 # Passes both tests.
4582 rm -f conftest.err conftest.$ac_ext
4585 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4586 rm -f conftest.err conftest.$ac_ext
4587 if $ac_preproc_ok; then
4590 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4591 See \`config.log' for more details." >&5
4592 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4593 See \`config.log' for more details." >&2;}
4594 { (exit 1); exit 1; }; }
4598 ac_cpp='$CXXCPP $CPPFLAGS'
4599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4600 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4605 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4606 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4607 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4608 if test -n "$ac_tool_prefix"; then
4609 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4611 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4612 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4613 echo "$as_me:$LINENO: checking for $ac_word" >&5
4614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4615 if test "${ac_cv_prog_F77+set}" = set; then
4616 echo $ECHO_N "(cached) $ECHO_C" >&6
4618 if test -n "$F77"; then
4619 ac_cv_prog_F77="$F77" # Let the user override the test.
4621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625 test -z "$as_dir" && as_dir=.
4626 for ac_exec_ext in '' $ac_executable_extensions; do
4627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4628 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4638 if test -n "$F77"; then
4639 echo "$as_me:$LINENO: result: $F77" >&5
4640 echo "${ECHO_T}$F77" >&6
4642 echo "$as_me:$LINENO: result: no" >&5
4643 echo "${ECHO_T}no" >&6
4646 test -n "$F77" && break
4649 if test -z "$F77"; then
4651 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4653 # Extract the first word of "$ac_prog", so it can be a program name with args.
4654 set dummy $ac_prog; ac_word=$2
4655 echo "$as_me:$LINENO: checking for $ac_word" >&5
4656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4657 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4660 if test -n "$ac_ct_F77"; then
4661 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 test -z "$as_dir" && as_dir=.
4668 for ac_exec_ext in '' $ac_executable_extensions; do
4669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4670 ac_cv_prog_ac_ct_F77="$ac_prog"
4671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4680 if test -n "$ac_ct_F77"; then
4681 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4682 echo "${ECHO_T}$ac_ct_F77" >&6
4684 echo "$as_me:$LINENO: result: no" >&5
4685 echo "${ECHO_T}no" >&6
4688 test -n "$ac_ct_F77" && break
4695 # Provide some information about the compiler.
4696 echo "$as_me:4696:" \
4697 "checking for Fortran 77 compiler version" >&5
4698 ac_compiler=`set X $ac_compile; echo $2`
4699 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4700 (eval $ac_compiler --version </dev/null >&5) 2>&5
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); }
4704 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4705 (eval $ac_compiler -v </dev/null >&5) 2>&5
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); }
4709 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4710 (eval $ac_compiler -V </dev/null >&5) 2>&5
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); }
4715 # If we don't use `.F' as extension, the preprocessor is not run on the
4719 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4720 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4721 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4722 echo $ECHO_N "(cached) $ECHO_C" >&6
4724 cat >conftest.$ac_ext <<_ACEOF
4732 rm -f conftest.$ac_objext
4733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4734 (eval $ac_compile) 2>&5
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); } &&
4738 { ac_try='test -s conftest.$ac_objext'
4739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); }; }; then
4746 echo "$as_me: failed program was:" >&5
4747 sed 's/^/| /' conftest.$ac_ext >&5
4751 rm -f conftest.$ac_objext conftest.$ac_ext
4752 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4755 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4756 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4758 G77=`test $ac_compiler_gnu = yes && echo yes`
4759 ac_test_FFLAGS=${FFLAGS+set}
4760 ac_save_FFLAGS=$FFLAGS
4762 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4763 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4764 if test "${ac_cv_prog_f77_g+set}" = set; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4768 cat >conftest.$ac_ext <<_ACEOF
4773 rm -f conftest.$ac_objext
4774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4775 (eval $ac_compile) 2>&5
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); } &&
4779 { ac_try='test -s conftest.$ac_objext'
4780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); }; }; then
4785 ac_cv_prog_f77_g=yes
4787 echo "$as_me: failed program was:" >&5
4788 sed 's/^/| /' conftest.$ac_ext >&5
4792 rm -f conftest.$ac_objext conftest.$ac_ext
4795 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4796 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4797 if test "$ac_test_FFLAGS" = set; then
4798 FFLAGS=$ac_save_FFLAGS
4799 elif test $ac_cv_prog_f77_g = yes; then
4800 if test "$G77" = yes; then
4806 if test "$G77" = yes; then
4813 ac_cpp='$CPP $CPPFLAGS'
4814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4820 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4822 # find the maximum length of command line arguments
4823 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4824 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4825 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4826 echo $ECHO_N "(cached) $ECHO_C" >&6
4833 # On DJGPP, this test can blow up pretty badly due to problems in libc
4834 # (any single argument exceeding 2000 bytes causes a buffer overrun
4835 # during glob expansion). Even if it were fixed, the result of this
4836 # check would be larger than it should be.
4837 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4841 # Under GNU Hurd, this test is not required because there is
4842 # no limit to the length of command line arguments.
4843 # Libtool will interpret -1 as no limit whatsoever
4844 lt_cv_sys_max_cmd_len=-1;
4848 # On Win9x/ME, this test blows up -- it succeeds, but takes
4849 # about 5 minutes as the teststring grows exponentially.
4850 # Worse, since 9x/ME are not pre-emptively multitasking,
4851 # you end up with a "frozen" computer, even though with patience
4852 # the test eventually succeeds (with a max line length of 256k).
4853 # Instead, let's just punt: use the minimum linelength reported by
4854 # all of the supported platforms: 8192 (on NT/2K/XP).
4855 lt_cv_sys_max_cmd_len=8192;
4859 # If test is not a shell built-in, we'll probably end up computing a
4860 # maximum length that is only half of the actual maximum length, but
4862 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
4863 = "XX$testring") >/dev/null 2>&1 &&
4864 new_result=`expr "X$testring" : ".*" 2>&1` &&
4865 lt_cv_sys_max_cmd_len=$new_result &&
4866 test $i != 17 # 1/2 MB should be enough
4869 testring=$testring$testring
4872 # Add a significant safety factor because C++ compilers can tack on massive
4873 # amounts of additional arguments before passing them to the linker.
4874 # It appears as though 1/2 is a usable value.
4875 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4881 if test -n $lt_cv_sys_max_cmd_len ; then
4882 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4883 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4885 echo "$as_me:$LINENO: result: none" >&5
4886 echo "${ECHO_T}none" >&6
4892 # Check for command to grab the raw symbol name followed by C symbol from nm.
4893 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4894 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4895 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4896 echo $ECHO_N "(cached) $ECHO_C" >&6
4899 # These are sane defaults that work on at least a few old systems.
4900 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4902 # Character class describing NM global symbol codes.
4903 symcode='[BCDEGRST]'
4905 # Regexp to match symbols that can be accessed directly from C.
4906 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4908 # Transform the above into a raw symbol and a C symbol.
4909 symxfrm='\1 \2\3 \3'
4911 # Transform an extracted symbol line into a proper C declaration
4912 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4914 # Transform an extracted symbol line into symbol name and symbol address
4915 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'"
4917 # Define system-specific variables.
4922 cygwin* | mingw* | pw32*)
4923 symcode='[ABCDGISTW]'
4925 hpux*) # Its linker distinguishes data from code symbols
4926 if test "$host_cpu" = ia64; then
4927 symcode='[ABCDEGRST]'
4929 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4930 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'"
4933 symcode='[BCDEGRST]'
4936 symcode='[BCDEGQRST]'
4946 # Handle CRLF in mingw tool chain
4950 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4954 # If we're using GNU nm, then use its standard symbol codes.
4955 case `$NM -V 2>&1` in
4956 *GNU* | *'with BFD'*)
4957 symcode='[ABCDGISTW]' ;;
4960 # Try without a prefix undercore, then with it.
4961 for ac_symprfx in "" "_"; do
4963 # Write the raw and C identifiers.
4964 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4966 # Check to see that the pipe works correctly.
4970 cat > conftest.$ac_ext <<EOF
4975 void nm_test_func(){}
4979 int main(){nm_test_var='a';nm_test_func();return(0);}
4982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4983 (eval $ac_compile) 2>&5
4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); }; then
4987 # Now try to grab the symbols.
4989 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4990 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); } && test -s "$nlist"; then
4994 # Try sorting and uniquifying the output.
4995 if sort "$nlist" | uniq > "$nlist"T; then
4996 mv -f "$nlist"T "$nlist"
5001 # Make sure that we snagged all the symbols we need.
5002 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5003 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5004 cat <<EOF > conftest.$ac_ext
5010 # Now generate the symbol file.
5011 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5013 cat <<EOF >> conftest.$ac_ext
5014 #if defined (__STDC__) && __STDC__
5015 # define lt_ptr_t void *
5017 # define lt_ptr_t char *
5021 /* The mapping between symbol names and symbols. */
5026 lt_preloaded_symbols[] =
5029 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5030 cat <<\EOF >> conftest.$ac_ext
5038 # Now try linking the two files.
5039 mv conftest.$ac_objext conftstm.$ac_objext
5040 lt_save_LIBS="$LIBS"
5041 lt_save_CFLAGS="$CFLAGS"
5042 LIBS="conftstm.$ac_objext"
5043 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5045 (eval $ac_link) 2>&5
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5051 LIBS="$lt_save_LIBS"
5052 CFLAGS="$lt_save_CFLAGS"
5054 echo "cannot find nm_test_func in $nlist" >&5
5057 echo "cannot find nm_test_var in $nlist" >&5
5060 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5063 echo "$progname: failed program was:" >&5
5064 cat conftest.$ac_ext >&5
5066 rm -f conftest* conftst*
5068 # Do not use the global_symbol_pipe unless it works.
5069 if test "$pipe_works" = yes; then
5072 lt_cv_sys_global_symbol_pipe=
5078 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5079 lt_cv_sys_global_symbol_to_cdecl=
5081 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5082 echo "$as_me:$LINENO: result: failed" >&5
5083 echo "${ECHO_T}failed" >&6
5085 echo "$as_me:$LINENO: result: ok" >&5
5086 echo "${ECHO_T}ok" >&6
5089 echo "$as_me:$LINENO: checking for objdir" >&5
5090 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5091 if test "${lt_cv_objdir+set}" = set; then
5092 echo $ECHO_N "(cached) $ECHO_C" >&6
5094 rm -f .libs 2>/dev/null
5095 mkdir .libs 2>/dev/null
5096 if test -d .libs; then
5099 # MS-DOS does not allow filenames that begin with a dot.
5102 rmdir .libs 2>/dev/null
5104 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5105 echo "${ECHO_T}$lt_cv_objdir" >&6
5106 objdir=$lt_cv_objdir
5114 # AIX sometimes has problems with the GCC collect2 program. For some
5115 # reason, if we set the COLLECT_NAMES environment variable, the problems
5116 # vanish in a puff of smoke.
5117 if test "X${COLLECT_NAMES+set}" != Xset; then
5119 export COLLECT_NAMES
5124 # Sed substitution that helps us do robust quoting. It backslashifies
5125 # metacharacters that are still active within double-quoted strings.
5126 Xsed='sed -e s/^X//'
5127 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5129 # Same as above, but do not quote variable references.
5130 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5132 # Sed substitution to delay expansion of an escaped shell variable in a
5133 # double_quote_subst'ed string.
5134 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5136 # Sed substitution to avoid accidental globbing in evaled expressions
5137 no_glob_subst='s/\*/\\\*/g'
5144 can_build_shared=yes
5146 # All known linkers require a `.a' archive for static linking (except M$VC,
5147 # which needs '.lib').
5149 ltmain="$ac_aux_dir/ltmain.sh"
5150 ofile="$default_ofile"
5151 with_gnu_ld="$lt_cv_prog_gnu_ld"
5153 if test -n "$ac_tool_prefix"; then
5154 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5155 set dummy ${ac_tool_prefix}ar; ac_word=$2
5156 echo "$as_me:$LINENO: checking for $ac_word" >&5
5157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5158 if test "${ac_cv_prog_AR+set}" = set; then
5159 echo $ECHO_N "(cached) $ECHO_C" >&6
5161 if test -n "$AR"; then
5162 ac_cv_prog_AR="$AR" # Let the user override the test.
5164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168 test -z "$as_dir" && as_dir=.
5169 for ac_exec_ext in '' $ac_executable_extensions; do
5170 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5171 ac_cv_prog_AR="${ac_tool_prefix}ar"
5172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5181 if test -n "$AR"; then
5182 echo "$as_me:$LINENO: result: $AR" >&5
5183 echo "${ECHO_T}$AR" >&6
5185 echo "$as_me:$LINENO: result: no" >&5
5186 echo "${ECHO_T}no" >&6
5190 if test -z "$ac_cv_prog_AR"; then
5192 # Extract the first word of "ar", so it can be a program name with args.
5193 set dummy ar; ac_word=$2
5194 echo "$as_me:$LINENO: checking for $ac_word" >&5
5195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5196 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5197 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 if test -n "$ac_ct_AR"; then
5200 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 test -z "$as_dir" && as_dir=.
5207 for ac_exec_ext in '' $ac_executable_extensions; do
5208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5209 ac_cv_prog_ac_ct_AR="ar"
5210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5216 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5219 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5220 if test -n "$ac_ct_AR"; then
5221 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5222 echo "${ECHO_T}$ac_ct_AR" >&6
5224 echo "$as_me:$LINENO: result: no" >&5
5225 echo "${ECHO_T}no" >&6
5233 if test -n "$ac_tool_prefix"; then
5234 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5235 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5236 echo "$as_me:$LINENO: checking for $ac_word" >&5
5237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5238 if test "${ac_cv_prog_RANLIB+set}" = set; then
5239 echo $ECHO_N "(cached) $ECHO_C" >&6
5241 if test -n "$RANLIB"; then
5242 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5248 test -z "$as_dir" && as_dir=.
5249 for ac_exec_ext in '' $ac_executable_extensions; do
5250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5251 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5260 RANLIB=$ac_cv_prog_RANLIB
5261 if test -n "$RANLIB"; then
5262 echo "$as_me:$LINENO: result: $RANLIB" >&5
5263 echo "${ECHO_T}$RANLIB" >&6
5265 echo "$as_me:$LINENO: result: no" >&5
5266 echo "${ECHO_T}no" >&6
5270 if test -z "$ac_cv_prog_RANLIB"; then
5271 ac_ct_RANLIB=$RANLIB
5272 # Extract the first word of "ranlib", so it can be a program name with args.
5273 set dummy ranlib; ac_word=$2
5274 echo "$as_me:$LINENO: checking for $ac_word" >&5
5275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5276 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
5279 if test -n "$ac_ct_RANLIB"; then
5280 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5286 test -z "$as_dir" && as_dir=.
5287 for ac_exec_ext in '' $ac_executable_extensions; do
5288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5289 ac_cv_prog_ac_ct_RANLIB="ranlib"
5290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5296 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5299 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5300 if test -n "$ac_ct_RANLIB"; then
5301 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5302 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5304 echo "$as_me:$LINENO: result: no" >&5
5305 echo "${ECHO_T}no" >&6
5308 RANLIB=$ac_ct_RANLIB
5310 RANLIB="$ac_cv_prog_RANLIB"
5313 if test -n "$ac_tool_prefix"; then
5314 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5315 set dummy ${ac_tool_prefix}strip; ac_word=$2
5316 echo "$as_me:$LINENO: checking for $ac_word" >&5
5317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5318 if test "${ac_cv_prog_STRIP+set}" = set; then
5319 echo $ECHO_N "(cached) $ECHO_C" >&6
5321 if test -n "$STRIP"; then
5322 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5328 test -z "$as_dir" && as_dir=.
5329 for ac_exec_ext in '' $ac_executable_extensions; do
5330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5331 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5340 STRIP=$ac_cv_prog_STRIP
5341 if test -n "$STRIP"; then
5342 echo "$as_me:$LINENO: result: $STRIP" >&5
5343 echo "${ECHO_T}$STRIP" >&6
5345 echo "$as_me:$LINENO: result: no" >&5
5346 echo "${ECHO_T}no" >&6
5350 if test -z "$ac_cv_prog_STRIP"; then
5352 # Extract the first word of "strip", so it can be a program name with args.
5353 set dummy strip; ac_word=$2
5354 echo "$as_me:$LINENO: checking for $ac_word" >&5
5355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5356 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5357 echo $ECHO_N "(cached) $ECHO_C" >&6
5359 if test -n "$ac_ct_STRIP"; then
5360 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366 test -z "$as_dir" && as_dir=.
5367 for ac_exec_ext in '' $ac_executable_extensions; do
5368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5369 ac_cv_prog_ac_ct_STRIP="strip"
5370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5376 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5379 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5380 if test -n "$ac_ct_STRIP"; then
5381 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5382 echo "${ECHO_T}$ac_ct_STRIP" >&6
5384 echo "$as_me:$LINENO: result: no" >&5
5385 echo "${ECHO_T}no" >&6
5390 STRIP="$ac_cv_prog_STRIP"
5395 old_CFLAGS="$CFLAGS"
5397 # Set sane defaults for various variables
5398 test -z "$AR" && AR=ar
5399 test -z "$AR_FLAGS" && AR_FLAGS=cru
5400 test -z "$AS" && AS=as
5401 test -z "$CC" && CC=cc
5402 test -z "$LTCC" && LTCC=$CC
5403 test -z "$DLLTOOL" && DLLTOOL=dlltool
5404 test -z "$LD" && LD=ld
5405 test -z "$LN_S" && LN_S="ln -s"
5406 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5407 test -z "$NM" && NM=nm
5408 test -z "$SED" && SED=sed
5409 test -z "$OBJDUMP" && OBJDUMP=objdump
5410 test -z "$RANLIB" && RANLIB=:
5411 test -z "$STRIP" && STRIP=:
5412 test -z "$ac_objext" && ac_objext=o
5414 # Determine commands to create old-style static archives.
5415 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5416 old_postinstall_cmds='chmod 644 $oldlib'
5417 old_postuninstall_cmds=
5419 if test -n "$RANLIB"; then
5422 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5425 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5428 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5431 # Only perform the check for file, if the check method requires it
5432 case $deplibs_check_method in
5434 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5435 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5436 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5437 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5438 echo $ECHO_N "(cached) $ECHO_C" >&6
5442 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5445 lt_save_MAGIC_CMD="$MAGIC_CMD"
5446 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5447 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5448 for ac_dir in $ac_dummy; do
5450 test -z "$ac_dir" && ac_dir=.
5451 if test -f $ac_dir/${ac_tool_prefix}file; then
5452 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5453 if test -n "$file_magic_test_file"; then
5454 case $deplibs_check_method in
5456 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5457 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5458 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5459 $EGREP "$file_magic_regex" > /dev/null; then
5464 *** Warning: the command libtool uses to detect shared libraries,
5465 *** $file_magic_cmd, produces output that libtool cannot recognize.
5466 *** The result is that libtool may fail to recognize shared libraries
5467 *** as such. This will affect the creation of libtool libraries that
5468 *** depend on shared libraries, but programs linked with such libtool
5469 *** libraries will work regardless of this problem. Nevertheless, you
5470 *** may want to report the problem to your system manager and/or to
5471 *** bug-libtool@gnu.org
5481 MAGIC_CMD="$lt_save_MAGIC_CMD"
5486 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5487 if test -n "$MAGIC_CMD"; then
5488 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5489 echo "${ECHO_T}$MAGIC_CMD" >&6
5491 echo "$as_me:$LINENO: result: no" >&5
5492 echo "${ECHO_T}no" >&6
5495 if test -z "$lt_cv_path_MAGIC_CMD"; then
5496 if test -n "$ac_tool_prefix"; then
5497 echo "$as_me:$LINENO: checking for file" >&5
5498 echo $ECHO_N "checking for file... $ECHO_C" >&6
5499 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5500 echo $ECHO_N "(cached) $ECHO_C" >&6
5504 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5507 lt_save_MAGIC_CMD="$MAGIC_CMD"
5508 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5509 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5510 for ac_dir in $ac_dummy; do
5512 test -z "$ac_dir" && ac_dir=.
5513 if test -f $ac_dir/file; then
5514 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5515 if test -n "$file_magic_test_file"; then
5516 case $deplibs_check_method in
5518 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5519 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5520 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5521 $EGREP "$file_magic_regex" > /dev/null; then
5526 *** Warning: the command libtool uses to detect shared libraries,
5527 *** $file_magic_cmd, produces output that libtool cannot recognize.
5528 *** The result is that libtool may fail to recognize shared libraries
5529 *** as such. This will affect the creation of libtool libraries that
5530 *** depend on shared libraries, but programs linked with such libtool
5531 *** libraries will work regardless of this problem. Nevertheless, you
5532 *** may want to report the problem to your system manager and/or to
5533 *** bug-libtool@gnu.org
5543 MAGIC_CMD="$lt_save_MAGIC_CMD"
5548 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5549 if test -n "$MAGIC_CMD"; then
5550 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5551 echo "${ECHO_T}$MAGIC_CMD" >&6
5553 echo "$as_me:$LINENO: result: no" >&5
5554 echo "${ECHO_T}no" >&6
5569 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5570 if test "${enable_libtool_lock+set}" = set; then
5571 enableval="$enable_libtool_lock"
5574 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5577 # Check whether --with-pic or --without-pic was given.
5578 if test "${with_pic+set}" = set; then
5584 test -z "$pic_mode" && pic_mode=default
5586 # Use C for the default configuration in the libtool script
5590 ac_cpp='$CPP $CPPFLAGS'
5591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5596 # Source file extension for C test sources.
5599 # Object file extension for compiled C test sources.
5603 # Code to be used in simple compile tests
5604 lt_simple_compile_test_code="int some_variable = 0;\n"
5606 # Code to be used in simple link tests
5607 lt_simple_link_test_code='int main(){return(0);}\n'
5610 # If no C compiler was specified, use CC.
5613 # Allow CC to be a program name with arguments.
5618 # Check for any special shared library compilation flags.
5621 if test "$GCC" = no; then
5624 lt_prog_cc_shlib='-belf'
5628 if test -n "$lt_prog_cc_shlib"; then
5629 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5630 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5631 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5633 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5634 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5635 lt_cv_prog_cc_can_build_shared=no
5641 # Check to make sure the static flag actually works.
5643 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5644 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5645 if test "${lt_prog_compiler_static_works+set}" = set; then
5646 echo $ECHO_N "(cached) $ECHO_C" >&6
5648 lt_prog_compiler_static_works=no
5649 save_LDFLAGS="$LDFLAGS"
5650 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5651 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5652 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5653 # The compiler can only warn and ignore the option if not recognized
5654 # So say no if there are warnings
5655 if test -s conftest.err; then
5656 # Append any errors to the config.log.
5657 cat conftest.err 1>&5
5659 lt_prog_compiler_static_works=yes
5663 LDFLAGS="$save_LDFLAGS"
5666 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5667 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5669 if test x"$lt_prog_compiler_static_works" = xyes; then
5672 lt_prog_compiler_static=
5678 ## There is no encapsulation within the following macros, do not change
5679 ## the running order or otherwise move them around unless you know exactly
5680 ## what you are doing...
5682 lt_prog_compiler_no_builtin_flag=
5684 if test "$GCC" = yes; then
5685 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5687 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5688 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5689 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5690 echo $ECHO_N "(cached) $ECHO_C" >&6
5692 lt_cv_prog_compiler_rtti_exceptions=no
5693 ac_outfile=conftest.$ac_objext
5694 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5695 lt_compiler_flag="-fno-rtti -fno-exceptions"
5696 # Insert the option either (1) after the last *FLAGS variable, or
5697 # (2) before a word containing "conftest.", or (3) at the end.
5698 # Note that $ac_compile itself does not contain backslashes and begins
5699 # with a dollar sign (not a hyphen), so the echo should work correctly.
5700 # The option is referenced via a variable to avoid confusing sed.
5701 lt_compile=`echo "$ac_compile" | $SED \
5702 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5703 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5704 -e 's:$: $lt_compiler_flag:'`
5705 (eval echo "\"\$as_me:5705: $lt_compile\"" >&5)
5706 (eval "$lt_compile" 2>conftest.err)
5708 cat conftest.err >&5
5709 echo "$as_me:5709: \$? = $ac_status" >&5
5710 if (exit $ac_status) && test -s "$ac_outfile"; then
5711 # The compiler can only warn and ignore the option if not recognized
5712 # So say no if there are warnings
5713 if test ! -s conftest.err; then
5714 lt_cv_prog_compiler_rtti_exceptions=yes
5720 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5721 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5723 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5724 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5731 lt_prog_compiler_wl=
5732 lt_prog_compiler_pic=
5733 lt_prog_compiler_static=
5735 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5736 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5738 if test "$GCC" = yes; then
5739 lt_prog_compiler_wl='-Wl,'
5740 lt_prog_compiler_static='-static'
5744 # All AIX code is PIC.
5745 if test "$host_cpu" = ia64; then
5746 # AIX 5 now supports IA64 processor
5747 lt_prog_compiler_static='-Bstatic'
5752 # FIXME: we need at least 68020 code to build shared libraries, but
5753 # adding the `-m68020' flag to GCC prevents building anything better,
5755 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5758 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5759 # PIC is the default for these OSes.
5762 mingw* | pw32* | os2*)
5763 # This hack is so that the source file can tell whether it is being
5764 # built for inclusion in a dll (and should export symbols for example).
5765 lt_prog_compiler_pic='-DDLL_EXPORT'
5768 darwin* | rhapsody*)
5769 # PIC is the default on this platform
5770 # Common symbols not allowed in MH_DYLIB files
5771 lt_prog_compiler_pic='-fno-common'
5775 # Just because we use GCC doesn't mean we suddenly get shared libraries
5776 # on systems that don't support them.
5777 lt_prog_compiler_can_build_shared=no
5782 if test -d /usr/nec; then
5783 lt_prog_compiler_pic=-Kconform_pic
5788 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5795 lt_prog_compiler_pic='-fPIC'
5801 lt_prog_compiler_pic='-fPIC'
5805 # PORTME Check for flag to pass linker flags through the system compiler.
5808 lt_prog_compiler_wl='-Wl,'
5809 if test "$host_cpu" = ia64; then
5810 # AIX 5 now supports IA64 processor
5811 lt_prog_compiler_static='-Bstatic'
5813 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5817 mingw* | pw32* | os2*)
5818 # This hack is so that the source file can tell whether it is being
5819 # built for inclusion in a dll (and should export symbols for example).
5820 lt_prog_compiler_pic='-DDLL_EXPORT'
5823 hpux9* | hpux10* | hpux11*)
5824 lt_prog_compiler_wl='-Wl,'
5825 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5832 lt_prog_compiler_pic='+Z'
5835 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5836 lt_prog_compiler_static='${wl}-a ${wl}archive'
5839 irix5* | irix6* | nonstopux*)
5840 lt_prog_compiler_wl='-Wl,'
5841 # PIC (with -KPIC) is the default.
5842 lt_prog_compiler_static='-non_shared'
5846 lt_prog_compiler_pic='-KPIC'
5847 lt_prog_compiler_static='-Bstatic'
5853 lt_prog_compiler_wl='-Wl,'
5854 lt_prog_compiler_pic='-KPIC'
5855 lt_prog_compiler_static='-static'
5858 lt_prog_compiler_wl='-Wl,'
5859 # All Alpha code is PIC.
5860 lt_prog_compiler_static='-non_shared'
5865 osf3* | osf4* | osf5*)
5866 lt_prog_compiler_wl='-Wl,'
5867 # All OSF/1 code is PIC.
5868 lt_prog_compiler_static='-non_shared'
5872 lt_prog_compiler_pic='-Kpic'
5873 lt_prog_compiler_static='-dn'
5877 lt_prog_compiler_wl='-Wl,'
5878 lt_prog_compiler_pic='-KPIC'
5879 lt_prog_compiler_static='-Bstatic'
5883 lt_prog_compiler_wl='-Qoption ld '
5884 lt_prog_compiler_pic='-PIC'
5885 lt_prog_compiler_static='-Bstatic'
5888 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5889 lt_prog_compiler_wl='-Wl,'
5890 lt_prog_compiler_pic='-KPIC'
5891 lt_prog_compiler_static='-Bstatic'
5895 if test -d /usr/nec ;then
5896 lt_prog_compiler_pic='-Kconform_pic'
5897 lt_prog_compiler_static='-Bstatic'
5902 lt_prog_compiler_pic='-pic'
5903 lt_prog_compiler_static='-Bstatic'
5907 lt_prog_compiler_can_build_shared=no
5912 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5913 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
5916 # Check to make sure the PIC flag actually works.
5918 if test -n "$lt_prog_compiler_pic"; then
5919 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5920 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
5921 if test "${lt_prog_compiler_pic_works+set}" = set; then
5922 echo $ECHO_N "(cached) $ECHO_C" >&6
5924 lt_prog_compiler_pic_works=no
5925 ac_outfile=conftest.$ac_objext
5926 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5927 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
5928 # Insert the option either (1) after the last *FLAGS variable, or
5929 # (2) before a word containing "conftest.", or (3) at the end.
5930 # Note that $ac_compile itself does not contain backslashes and begins
5931 # with a dollar sign (not a hyphen), so the echo should work correctly.
5932 # The option is referenced via a variable to avoid confusing sed.
5933 lt_compile=`echo "$ac_compile" | $SED \
5934 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5935 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5936 -e 's:$: $lt_compiler_flag:'`
5937 (eval echo "\"\$as_me:5937: $lt_compile\"" >&5)
5938 (eval "$lt_compile" 2>conftest.err)
5940 cat conftest.err >&5
5941 echo "$as_me:5941: \$? = $ac_status" >&5
5942 if (exit $ac_status) && test -s "$ac_outfile"; then
5943 # The compiler can only warn and ignore the option if not recognized
5944 # So say no if there are warnings
5945 if test ! -s conftest.err; then
5946 lt_prog_compiler_pic_works=yes
5952 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
5953 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
5955 if test x"$lt_prog_compiler_pic_works" = xyes; then
5956 case $lt_prog_compiler_pic in
5958 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
5961 lt_prog_compiler_pic=
5962 lt_prog_compiler_can_build_shared=no
5967 # For platforms which do not support PIC, -DPIC is meaningless:
5969 lt_prog_compiler_pic=
5972 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
5976 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5977 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5978 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
5979 echo $ECHO_N "(cached) $ECHO_C" >&6
5981 lt_cv_prog_compiler_c_o=no
5982 $rm -r conftest 2>/dev/null
5986 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5988 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5989 # that will create temporary files in the current directory regardless of
5990 # the output directory. Thus, making CWD read-only will cause this test
5991 # to fail, enabling locking or at least warning the user not to do parallel
5995 lt_compiler_flag="-o out/conftest2.$ac_objext"
5996 # Insert the option either (1) after the last *FLAGS variable, or
5997 # (2) before a word containing "conftest.", or (3) at the end.
5998 # Note that $ac_compile itself does not contain backslashes and begins
5999 # with a dollar sign (not a hyphen), so the echo should work correctly.
6000 lt_compile=`echo "$ac_compile" | $SED \
6001 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6002 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6003 -e 's:$: $lt_compiler_flag:'`
6004 (eval echo "\"\$as_me:6004: $lt_compile\"" >&5)
6005 (eval "$lt_compile" 2>out/conftest.err)
6007 cat out/conftest.err >&5
6008 echo "$as_me:6008: \$? = $ac_status" >&5
6009 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6011 # The compiler can only warn and ignore the option if not recognized
6012 # So say no if there are warnings
6013 if test ! -s out/conftest.err; then
6014 lt_cv_prog_compiler_c_o=yes
6025 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6026 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6029 hard_links="nottested"
6030 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6031 # do not overwrite the value of need_locks provided by the user
6032 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6033 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6036 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6038 ln conftest.a conftest.b 2>&5 || hard_links=no
6039 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6040 echo "$as_me:$LINENO: result: $hard_links" >&5
6041 echo "${ECHO_T}$hard_links" >&6
6042 if test "$hard_links" = no; then
6043 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6044 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6051 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6052 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6055 allow_undefined_flag=
6056 enable_shared_with_static_runtimes=no
6058 archive_expsym_cmds=
6059 old_archive_From_new_cmds=
6060 old_archive_from_expsyms_cmds=
6061 export_dynamic_flag_spec=
6062 whole_archive_flag_spec=
6063 thread_safe_flag_spec=
6064 hardcode_libdir_flag_spec=
6065 hardcode_libdir_flag_spec_ld=
6066 hardcode_libdir_separator=
6069 hardcode_shlibpath_var=unsupported
6070 link_all_deplibs=unknown
6071 hardcode_automatic=no
6074 always_export_symbols=no
6075 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6076 # include_expsyms should be a list of space-separated symbols to be *always*
6077 # included in the symbol list
6079 # exclude_expsyms can be an extended regexp of symbols to exclude
6080 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6081 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6082 # as well as any symbol that contains `d'.
6083 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6084 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6085 # platforms (ab)use it in PIC code, but their linkers get confused if
6086 # the symbol is explicitly referenced. Since portable code cannot
6087 # rely on this symbol name, it's probably fine to never include it in
6088 # preloaded symbol tables.
6089 extract_expsyms_cmds=
6092 cygwin* | mingw* | pw32*)
6093 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6094 # When not using gcc, we currently assume that we are using
6095 # Microsoft Visual C++.
6096 if test "$GCC" != yes; then
6106 if test "$with_gnu_ld" = yes; then
6107 # If archive_cmds runs LD, not CC, wlarc should be empty
6110 # See if GNU ld supports shared libraries.
6112 aix3* | aix4* | aix5*)
6113 # On AIX/PPC, the GNU linker is very broken
6114 if test "$host_cpu" != ia64; then
6118 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6119 *** to be unable to reliably create shared libraries on AIX.
6120 *** Therefore, libtool is disabling shared libraries support. If you
6121 *** really care for shared libraries, you may want to modify your PATH
6122 *** so that a non-GNU linker is found, and then restart.
6129 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)'
6130 hardcode_libdir_flag_spec='-L$libdir'
6131 hardcode_minus_L=yes
6133 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6134 # that the semantics of dynamic libraries on AmigaOS, at least up
6135 # to version 4, is to share data among multiple programs linked
6136 # with the same dynamic library. Since this doesn't match the
6137 # behavior of shared libraries on other platforms, we can't use
6143 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6144 allow_undefined_flag=unsupported
6145 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6146 # support --undefined. This deserves some investigation. FIXME
6147 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6153 cygwin* | mingw* | pw32*)
6154 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6155 # as there is no search path for DLLs.
6156 hardcode_libdir_flag_spec='-L$libdir'
6157 allow_undefined_flag=unsupported
6158 always_export_symbols=no
6159 enable_shared_with_static_runtimes=yes
6160 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6162 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6163 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6164 # If the export-symbols file already is a .def file (1st line
6165 # is EXPORTS), use it as is; otherwise, prepend...
6166 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6167 cp $export_symbols $output_objdir/$soname.def;
6169 echo EXPORTS > $output_objdir/$soname.def;
6170 cat $export_symbols >> $output_objdir/$soname.def;
6172 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6179 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6180 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6183 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6184 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6189 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6193 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6194 *** create shared libraries on Solaris systems. Therefore, libtool
6195 *** is disabling shared libraries support. We urge you to upgrade GNU
6196 *** binutils to release 2.9.1 or newer. Another option is to modify
6197 *** your PATH or compiler configuration so that the native linker is
6198 *** used, and then restart.
6201 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6202 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6203 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6210 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6213 hardcode_shlibpath_var=no
6217 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6218 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6219 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6226 if test "$ld_shlibs" = yes; then
6227 runpath_var=LD_RUN_PATH
6228 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6229 export_dynamic_flag_spec='${wl}--export-dynamic'
6230 # ancient GNU ld didn't support --whole-archive et. al.
6231 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6232 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6234 whole_archive_flag_spec=
6238 # PORTME fill in a description of your system's linker (not GNU ld)
6241 allow_undefined_flag=unsupported
6242 always_export_symbols=yes
6243 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'
6244 # Note: this linker hardcodes the directories in LIBPATH if there
6245 # are no directories specified by -L.
6246 hardcode_minus_L=yes
6247 if test "$GCC" = yes && test -z "$link_static_flag"; then
6248 # Neither direct hardcoding nor static linking is supported with a
6250 hardcode_direct=unsupported
6255 if test "$host_cpu" = ia64; then
6256 # On IA64, the linker does run time linking by default, so we don't
6257 # have to do anything special.
6258 aix_use_runtimelinking=no
6259 exp_sym_flag='-Bexport'
6262 # If we're using GNU nm, then we don't want the "-C" option.
6263 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6264 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6265 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'
6267 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'
6269 aix_use_runtimelinking=no
6271 # Test if we are trying to use run time linking or normal
6272 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6273 # need to do runtime linking.
6274 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6275 for ld_flag in $LDFLAGS; do
6276 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6277 aix_use_runtimelinking=yes
6283 exp_sym_flag='-bexport'
6284 no_entry_flag='-bnoentry'
6287 # When large executables or shared objects are built, AIX ld can
6288 # have problems creating the table of contents. If linking a library
6289 # or program results in "error TOC overflow" add -mminimal-toc to
6290 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6291 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6295 hardcode_libdir_separator=':'
6296 link_all_deplibs=yes
6298 if test "$GCC" = yes; then
6299 case $host_os in aix4.012|aix4.012.*)
6300 # We only want to do this on AIX 4.2 and lower, the check
6301 # below for broken collect2 doesn't work under 4.3+
6302 collect2name=`${CC} -print-prog-name=collect2`
6303 if test -f "$collect2name" && \
6304 strings "$collect2name" | grep resolve_lib_name >/dev/null
6306 # We have reworked collect2
6309 # We have old collect2
6310 hardcode_direct=unsupported
6311 # It fails to find uninstalled libraries when the uninstalled
6312 # path is not listed in the libpath. Setting hardcode_minus_L
6313 # to unsupported forces relinking
6314 hardcode_minus_L=yes
6315 hardcode_libdir_flag_spec='-L$libdir'
6316 hardcode_libdir_separator=
6319 shared_flag='-shared'
6322 if test "$host_cpu" = ia64; then
6323 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6324 # chokes on -Wl,-G. The following line is correct:
6327 if test "$aix_use_runtimelinking" = yes; then
6328 shared_flag='${wl}-G'
6330 shared_flag='${wl}-bM:SRE'
6335 # It seems that -bexpall does not export symbols beginning with
6336 # underscore (_), so it is better to generate a list of symbols to export.
6337 always_export_symbols=yes
6338 if test "$aix_use_runtimelinking" = yes; then
6339 # Warning - without using the other runtime loading flags (-brtl),
6340 # -berok will link without error, but may produce a broken library.
6341 allow_undefined_flag='-berok'
6342 # Determine the default libpath from the value encoded in an empty executable.
6343 cat >conftest.$ac_ext <<_ACEOF
6344 #line $LINENO "configure"
6347 cat confdefs.h >>conftest.$ac_ext
6348 cat >>conftest.$ac_ext <<_ACEOF
6349 /* end confdefs.h. */
6359 rm -f conftest.$ac_objext conftest$ac_exeext
6360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6361 (eval $ac_link) 2>&5
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); } &&
6365 { ac_try='test -s conftest$ac_exeext'
6366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); }; }; then
6372 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6374 # Check for a 64-bit object if we didn't find anything.
6375 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; }
6378 echo "$as_me: failed program was:" >&5
6379 sed 's/^/| /' conftest.$ac_ext >&5
6382 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6383 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6385 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6386 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"
6388 if test "$host_cpu" = ia64; then
6389 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6390 allow_undefined_flag="-z nodefs"
6391 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"
6393 # Determine the default libpath from the value encoded in an empty executable.
6394 cat >conftest.$ac_ext <<_ACEOF
6395 #line $LINENO "configure"
6398 cat confdefs.h >>conftest.$ac_ext
6399 cat >>conftest.$ac_ext <<_ACEOF
6400 /* end confdefs.h. */
6410 rm -f conftest.$ac_objext conftest$ac_exeext
6411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6412 (eval $ac_link) 2>&5
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); } &&
6416 { ac_try='test -s conftest$ac_exeext'
6417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); }; }; then
6423 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6425 # Check for a 64-bit object if we didn't find anything.
6426 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; }
6429 echo "$as_me: failed program was:" >&5
6430 sed 's/^/| /' conftest.$ac_ext >&5
6433 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6434 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6436 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6437 # Warning - without using the other run time loading flags,
6438 # -berok will link without error, but may produce a broken library.
6439 no_undefined_flag=' ${wl}-bernotok'
6440 allow_undefined_flag=' ${wl}-berok'
6441 # -bexpall does not export symbols beginning with underscore (_)
6442 always_export_symbols=yes
6443 # Exported symbols can be pulled into shared objects from archives
6444 whole_archive_flag_spec=' '
6445 archive_cmds_need_lc=yes
6446 # This is similar to how AIX traditionally builds it's shared libraries.
6447 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'
6453 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)'
6454 hardcode_libdir_flag_spec='-L$libdir'
6455 hardcode_minus_L=yes
6456 # see comment about different semantics on the GNU ld section
6461 export_dynamic_flag_spec=-rdynamic
6464 cygwin* | mingw* | pw32*)
6465 # When not using gcc, we currently assume that we are using
6466 # Microsoft Visual C++.
6467 # hardcode_libdir_flag_spec is actually meaningless, as there is
6468 # no search path for DLLs.
6469 hardcode_libdir_flag_spec=' '
6470 allow_undefined_flag=unsupported
6471 # Tell ltmain to make .lib files, not .a files.
6473 # Tell ltmain to make .dll files, not .so files.
6475 # FIXME: Setting linknames here is a bad hack.
6476 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6477 # The linker will automatically build a .lib file if we build a DLL.
6478 old_archive_From_new_cmds='true'
6479 # FIXME: Should let the user specify the lib program.
6480 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6481 fix_srcfile_path='`cygpath -w "$srcfile"`'
6482 enable_shared_with_static_runtimes=yes
6485 darwin* | rhapsody*)
6486 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6487 archive_cmds_need_lc=no
6489 rhapsody* | darwin1.[012])
6490 allow_undefined_flag='-undefined suppress'
6493 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6496 # FIXME: Relying on posixy $() will cause problems for
6497 # cross-compilation, but unfortunately the echo tests do not
6498 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6499 # `"' quotes if we put them in here... so don't!
6500 lt_int_apple_cc_single_mod=no
6501 output_verbose_link_cmd='echo'
6502 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6503 lt_int_apple_cc_single_mod=yes
6505 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6506 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6508 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'
6510 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6511 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6512 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6513 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}'
6515 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}'
6517 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}'
6519 hardcode_automatic=yes
6520 hardcode_shlibpath_var=unsupported
6521 whole_archive_flag_spec='-all_load $convenience'
6522 link_all_deplibs=yes
6527 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6528 hardcode_libdir_flag_spec='-L$libdir'
6529 hardcode_shlibpath_var=no
6536 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6537 # support. Future versions do this automatically, but an explicit c++rt0.o
6538 # does not break anything, and helps significantly (at the cost of a little
6541 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6542 hardcode_libdir_flag_spec='-R$libdir'
6544 hardcode_shlibpath_var=no
6547 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6549 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6551 hardcode_minus_L=yes
6552 hardcode_shlibpath_var=no
6555 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6557 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6558 hardcode_libdir_flag_spec='-R$libdir'
6560 hardcode_shlibpath_var=no
6564 if test "$GCC" = yes; then
6565 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'
6567 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'
6569 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6570 hardcode_libdir_separator=:
6573 # hardcode_minus_L: Not really in the search PATH,
6574 # but as the default location of the library.
6575 hardcode_minus_L=yes
6576 export_dynamic_flag_spec='${wl}-E'
6580 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6583 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6586 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6592 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6595 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6599 if test "$with_gnu_ld" = no; then
6602 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6603 hardcode_libdir_flag_spec_ld='+b $libdir'
6604 hardcode_libdir_separator=:
6606 hardcode_shlibpath_var=no
6609 hardcode_libdir_flag_spec='-L$libdir'
6611 hardcode_shlibpath_var=no
6613 # hardcode_minus_L: Not really in the search PATH,
6614 # but as the default location of the library.
6615 hardcode_minus_L=yes
6618 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6619 hardcode_libdir_separator=:
6621 export_dynamic_flag_spec='${wl}-E'
6623 # hardcode_minus_L: Not really in the search PATH,
6624 # but as the default location of the library.
6625 hardcode_minus_L=yes
6631 irix5* | irix6* | nonstopux*)
6632 if test "$GCC" = yes; then
6633 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'
6635 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'
6636 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6638 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6639 hardcode_libdir_separator=:
6640 link_all_deplibs=yes
6644 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6645 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6647 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6649 hardcode_libdir_flag_spec='-R$libdir'
6651 hardcode_shlibpath_var=no
6655 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6657 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6658 hardcode_libdir_separator=:
6659 hardcode_shlibpath_var=no
6664 hardcode_shlibpath_var=no
6665 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6666 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6667 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6668 export_dynamic_flag_spec='${wl}-E'
6671 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6672 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6673 hardcode_libdir_flag_spec='-R$libdir'
6676 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6677 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6684 hardcode_libdir_flag_spec='-L$libdir'
6685 hardcode_minus_L=yes
6686 allow_undefined_flag=unsupported
6687 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'
6688 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6692 if test "$GCC" = yes; then
6693 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6694 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'
6696 allow_undefined_flag=' -expect_unresolved \*'
6697 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'
6699 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6700 hardcode_libdir_separator=:
6703 osf4* | osf5*) # as osf3* with the addition of -msym flag
6704 if test "$GCC" = yes; then
6705 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6706 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'
6707 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6709 allow_undefined_flag=' -expect_unresolved \*'
6710 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'
6711 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6712 $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'
6714 # Both c and cxx compiler support -rpath directly
6715 hardcode_libdir_flag_spec='-rpath $libdir'
6717 hardcode_libdir_separator=:
6721 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6722 hardcode_shlibpath_var=no
6723 export_dynamic_flag_spec='${wl}-Bexport'
6724 runpath_var=LD_RUN_PATH
6725 hardcode_runpath_var=yes
6729 no_undefined_flag=' -z text'
6730 if test "$GCC" = yes; then
6731 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6732 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6733 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6735 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6736 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6737 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6739 hardcode_libdir_flag_spec='-R$libdir'
6740 hardcode_shlibpath_var=no
6742 solaris2.[0-5] | solaris2.[0-5].*) ;;
6743 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6744 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6746 link_all_deplibs=yes
6750 if test "x$host_vendor" = xsequent; then
6751 # Use $CC to link under sequent, because it throws in some extra .o
6752 # files that make .init and .fini sections work.
6753 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6755 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6757 hardcode_libdir_flag_spec='-L$libdir'
6759 hardcode_minus_L=yes
6760 hardcode_shlibpath_var=no
6764 case $host_vendor in
6766 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6767 hardcode_direct=yes # is this really true???
6770 ## LD is ld it makes a PLAMLIB
6771 ## CC just makes a GrossModule.
6772 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6773 reload_cmds='$CC -r -o $output$reload_objs'
6777 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6778 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6781 runpath_var='LD_RUN_PATH'
6782 hardcode_shlibpath_var=no
6786 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6787 hardcode_shlibpath_var=no
6788 export_dynamic_flag_spec='-Bexport'
6792 if test -d /usr/nec; then
6793 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6794 hardcode_shlibpath_var=no
6795 runpath_var=LD_RUN_PATH
6796 hardcode_runpath_var=yes
6802 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6805 hardcode_shlibpath_var=no
6806 hardcode_runpath_var=yes
6807 runpath_var=LD_RUN_PATH
6810 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
6811 no_undefined_flag='${wl}-z ${wl}text'
6812 if test "$GCC" = yes; then
6813 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6815 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6817 runpath_var='LD_RUN_PATH'
6818 hardcode_shlibpath_var=no
6822 no_undefined_flag=' -z text'
6823 # $CC -shared without GNU ld will not create a library from C++
6824 # object files and a static libstdc++, better avoid it by now
6825 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6826 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6827 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6828 hardcode_libdir_flag_spec=
6829 hardcode_shlibpath_var=no
6830 runpath_var='LD_RUN_PATH'
6834 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6835 hardcode_libdir_flag_spec='-L$libdir'
6836 hardcode_shlibpath_var=no
6845 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6846 echo "${ECHO_T}$ld_shlibs" >&6
6847 test "$ld_shlibs" = no && can_build_shared=no
6849 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6850 if test "$GCC" = yes; then
6851 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6855 # Do we need to explicitly link libc?
6857 case "x$archive_cmds_need_lc" in
6859 # Assume -lc should be added
6860 archive_cmds_need_lc=yes
6862 if test "$enable_shared" = yes && test "$GCC" = yes; then
6863 case $archive_cmds in
6865 # FIXME: we may have to deal with multi-command sequences.
6868 # Test whether the compiler implicitly links with -lc since on some
6869 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6870 # to ld, don't add -lc before -lgcc.
6871 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6872 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6874 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6877 (eval $ac_compile) 2>&5
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); } 2>conftest.err; then
6883 libobjs=conftest.$ac_objext
6885 wl=$lt_prog_compiler_wl
6891 lt_save_allow_undefined_flag=$allow_undefined_flag
6892 allow_undefined_flag=
6893 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6894 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); }
6899 archive_cmds_need_lc=no
6901 archive_cmds_need_lc=yes
6903 allow_undefined_flag=$lt_save_allow_undefined_flag
6905 cat conftest.err 1>&5
6908 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
6909 echo "${ECHO_T}$archive_cmds_need_lc" >&6
6916 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6917 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6919 if test -n "$hardcode_libdir_flag_spec" || \
6920 test -n "$runpath_var " || \
6921 test "X$hardcode_automatic"="Xyes" ; then
6923 # We can hardcode non-existant directories.
6924 if test "$hardcode_direct" != no &&
6925 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6926 # have to relink, otherwise we might link with an installed library
6927 # when we should be linking with a yet-to-be-installed one
6928 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
6929 test "$hardcode_minus_L" != no; then
6930 # Linking always hardcodes the temporary library directory.
6931 hardcode_action=relink
6933 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6934 hardcode_action=immediate
6937 # We cannot hardcode anything, or else we can only hardcode existing
6939 hardcode_action=unsupported
6941 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6942 echo "${ECHO_T}$hardcode_action" >&6
6944 if test "$hardcode_action" = relink; then
6945 # Fast installation is not supported
6946 enable_fast_install=no
6947 elif test "$shlibpath_overrides_runpath" = yes ||
6948 test "$enable_shared" = no; then
6949 # Fast installation is not necessary
6950 enable_fast_install=needless
6955 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6956 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6957 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6958 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6959 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6960 echo "$as_me:$LINENO: result: yes" >&5
6961 echo "${ECHO_T}yes" >&6
6963 # FIXME - insert some real tests, host_os isn't really good enough
6966 if test -n "$STRIP" ; then
6967 striplib="$STRIP -x"
6968 echo "$as_me:$LINENO: result: yes" >&5
6969 echo "${ECHO_T}yes" >&6
6971 echo "$as_me:$LINENO: result: no" >&5
6972 echo "${ECHO_T}no" >&6
6976 echo "$as_me:$LINENO: result: no" >&5
6977 echo "${ECHO_T}no" >&6
6982 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6983 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6985 libname_spec='lib$name'
6993 shlibpath_overrides_runpath=unknown
6995 dynamic_linker="$host_os ld.so"
6996 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6997 if test "$GCC" = yes; then
6998 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6999 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7000 # if the path contains ";" then we assume it to be the separator
7001 # otherwise default to the standard path separator (i.e. ":") - it is
7002 # assumed that no part of a normal pathname contains ";" but that should
7003 # okay in the real world where ";" in dirpaths is itself problematic.
7004 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7006 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7009 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7011 need_lib_prefix=unknown
7012 hardcode_into_libs=no
7014 # when you set need_version to no, make sure it does not cause -set_version
7015 # flags to be left without arguments
7016 need_version=unknown
7021 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7022 shlibpath_var=LIBPATH
7024 # AIX 3 has no versioning support, so we append a major version to the name.
7025 soname_spec='${libname}${release}${shared_ext}$major'
7032 hardcode_into_libs=yes
7033 if test "$host_cpu" = ia64; then
7034 # AIX 5 supports IA64
7035 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7036 shlibpath_var=LD_LIBRARY_PATH
7038 # With GCC up to 2.95.x, collect2 would create an import file
7039 # for dependence libraries. The import file would start with
7040 # the line `#! .'. This would cause the generated library to
7041 # depend on `.', always an invalid library. This was fixed in
7042 # development snapshots of GCC prior to 3.0.
7044 aix4 | aix4.[01] | aix4.[01].*)
7045 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7047 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7054 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7055 # soname into executable. Probably we can add versioning support to
7056 # collect2, so additional links can be useful in future.
7057 if test "$aix_use_runtimelinking" = yes; then
7058 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7059 # instead of lib<name>.a to let people know that these are not
7060 # typical AIX shared libraries.
7061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7063 # We preserve .a as extension for shared libraries through AIX4.2
7064 # and later when we are not doing run time linking.
7065 library_names_spec='${libname}${release}.a $libname.a'
7066 soname_spec='${libname}${release}${shared_ext}$major'
7068 shlibpath_var=LIBPATH
7073 library_names_spec='$libname.ixlibrary $libname.a'
7074 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7075 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'
7079 library_names_spec='${libname}${shared_ext}'
7080 dynamic_linker="$host_os ld.so"
7081 shlibpath_var=LIBRARY_PATH
7087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7088 soname_spec='${libname}${release}${shared_ext}$major'
7089 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7090 shlibpath_var=LD_LIBRARY_PATH
7091 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7092 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7093 # the default ld.so.conf also contains /usr/contrib/lib and
7094 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7095 # libtool to hard-code these into programs
7098 cygwin* | mingw* | pw32*)
7099 version_type=windows
7104 case $GCC,$host_os in
7105 yes,cygwin* | yes,mingw* | yes,pw32*)
7106 library_names_spec='$libname.dll.a'
7107 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7108 postinstall_cmds='base_file=`basename \${file}`~
7109 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7110 dldir=$destdir/`dirname \$dlpath`~
7111 test -d \$dldir || mkdir -p \$dldir~
7112 $install_prog $dir/$dlname \$dldir/$dlname'
7113 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7114 dlpath=$dir/\$dldll~
7116 shlibpath_overrides_runpath=yes
7120 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7121 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7122 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7125 # MinGW DLLs use traditional 'lib' prefix
7126 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7127 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7128 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7129 # It is most probably a Windows format PATH printed by
7130 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7131 # path with ; separators, and with drive letters. We can handle the
7132 # drive letters (cygwin fileutils understands them), so leave them,
7133 # especially as we might pass files found there to a mingw objdump,
7134 # which wouldn't understand a cygwinified path. Ahh.
7135 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7137 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7141 # pw32 DLLs use 'pw' prefix rather than 'lib'
7142 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7148 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7151 dynamic_linker='Win32 ld.exe'
7152 # FIXME: first we should search . and the directory the executable is in
7156 darwin* | rhapsody*)
7157 dynamic_linker="$host_os dyld"
7161 # FIXME: Relying on posixy $() will cause problems for
7162 # cross-compilation, but unfortunately the echo tests do not
7163 # yet detect zsh echo's removal of \ escapes.
7164 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7165 soname_spec='${libname}${release}${major}$shared_ext'
7166 shlibpath_overrides_runpath=yes
7167 shlibpath_var=DYLD_LIBRARY_PATH
7168 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7169 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7170 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7171 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"`
7173 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7181 soname_spec='${libname}${release}${shared_ext}$major'
7182 shlibpath_var=LD_LIBRARY_PATH
7190 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7191 version_type=freebsd-$objformat
7192 case $version_type in
7194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7199 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7203 shlibpath_var=LD_LIBRARY_PATH
7206 shlibpath_overrides_runpath=yes
7208 freebsd3.01* | freebsdelf3.01*)
7209 shlibpath_overrides_runpath=yes
7210 hardcode_into_libs=yes
7213 shlibpath_overrides_runpath=no
7214 hardcode_into_libs=yes
7223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7224 soname_spec='${libname}${release}${shared_ext}$major'
7225 shlibpath_var=LD_LIBRARY_PATH
7226 hardcode_into_libs=yes
7229 hpux9* | hpux10* | hpux11*)
7230 # Give a soname corresponding to the major version so that dld.sl refuses to
7231 # link against other versions.
7238 hardcode_into_libs=yes
7239 dynamic_linker="$host_os dld.so"
7240 shlibpath_var=LD_LIBRARY_PATH
7241 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7243 soname_spec='${libname}${release}${shared_ext}$major'
7244 if test "X$HPUX_IA64_MODE" = X32; then
7245 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7247 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7249 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7253 hardcode_into_libs=yes
7254 dynamic_linker="$host_os dld.sl"
7255 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7256 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7258 soname_spec='${libname}${release}${shared_ext}$major'
7259 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7260 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7264 dynamic_linker="$host_os dld.sl"
7265 shlibpath_var=SHLIB_PATH
7266 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7268 soname_spec='${libname}${release}${shared_ext}$major'
7271 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7272 postinstall_cmds='chmod 555 $lib'
7275 irix5* | irix6* | nonstopux*)
7277 nonstopux*) version_type=nonstopux ;;
7279 if test "$lt_cv_prog_gnu_ld" = yes; then
7287 soname_spec='${libname}${release}${shared_ext}$major'
7288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7290 irix5* | nonstopux*)
7294 case $LD in # libtool.m4 will add one of these switches to LD
7295 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7296 libsuff= shlibsuff= libmagic=32-bit;;
7297 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7298 libsuff=32 shlibsuff=N32 libmagic=N32;;
7299 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7300 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7301 *) libsuff= shlibsuff= libmagic=never-match;;
7305 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7306 shlibpath_overrides_runpath=no
7307 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7308 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7309 hardcode_into_libs=yes
7312 # No shared lib support for Linux oldld, aout, or coff.
7313 linux*oldld* | linux*aout* | linux*coff*)
7317 # This must be Linux ELF.
7322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7323 soname_spec='${libname}${release}${shared_ext}$major'
7324 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7325 shlibpath_var=LD_LIBRARY_PATH
7326 shlibpath_overrides_runpath=no
7327 # This implies no fast_install, which is unacceptable.
7328 # Some rework will be needed to allow for fast_install
7329 # before this can be enabled.
7330 hardcode_into_libs=yes
7332 # We used to test for /lib/ld.so.1 and disable shared libraries on
7333 # powerpc, because MkLinux only supported shared libraries with the
7334 # GNU dynamic linker. Since this was broken with cross compilers,
7335 # most powerpc-linux boxes support dynamic linking these days and
7336 # people can always --disable-shared, the test was removed, and we
7337 # assume the GNU/Linux dynamic linker is in use.
7338 dynamic_linker='GNU/Linux ld.so'
7345 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7347 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7348 dynamic_linker='NetBSD (a.out) ld.so'
7350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7351 soname_spec='${libname}${release}${shared_ext}$major'
7352 dynamic_linker='NetBSD ld.elf_so'
7354 shlibpath_var=LD_LIBRARY_PATH
7355 shlibpath_overrides_runpath=yes
7356 hardcode_into_libs=yes
7361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7362 shlibpath_var=LD_LIBRARY_PATH
7363 shlibpath_overrides_runpath=yes
7370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7371 soname_spec='${libname}${release}${shared_ext}$major'
7372 shlibpath_var=LD_LIBRARY_PATH
7373 shlibpath_overrides_runpath=yes
7380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7381 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7382 shlibpath_var=LD_LIBRARY_PATH
7383 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7385 openbsd2.[89] | openbsd2.[89].*)
7386 shlibpath_overrides_runpath=no
7389 shlibpath_overrides_runpath=yes
7393 shlibpath_overrides_runpath=yes
7398 libname_spec='$name'
7401 library_names_spec='$libname${shared_ext} $libname.a'
7402 dynamic_linker='OS/2 ld.exe'
7403 shlibpath_var=LIBPATH
7406 osf3* | osf4* | osf5*)
7410 soname_spec='${libname}${release}${shared_ext}$major'
7411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7412 shlibpath_var=LD_LIBRARY_PATH
7413 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7414 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7419 soname_spec='${libname}${release}${shared_ext}$major'
7420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7421 shlibpath_var=LD_LIBRARY_PATH
7428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7429 soname_spec='${libname}${release}${shared_ext}$major'
7430 shlibpath_var=LD_LIBRARY_PATH
7431 shlibpath_overrides_runpath=yes
7432 hardcode_into_libs=yes
7433 # ldd complains unless libraries are executable
7434 postinstall_cmds='chmod +x $lib'
7439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7440 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7441 shlibpath_var=LD_LIBRARY_PATH
7442 shlibpath_overrides_runpath=yes
7443 if test "$with_gnu_ld" = yes; then
7449 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7452 soname_spec='${libname}${release}${shared_ext}$major'
7453 shlibpath_var=LD_LIBRARY_PATH
7454 case $host_vendor in
7456 shlibpath_overrides_runpath=no
7458 export_dynamic_flag_spec='${wl}-Blargedynsym'
7459 runpath_var=LD_RUN_PATH
7467 shlibpath_overrides_runpath=no
7468 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7474 if test -d /usr/nec ;then
7476 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7477 soname_spec='$libname${shared_ext}.$major'
7478 shlibpath_var=LD_LIBRARY_PATH
7484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7485 soname_spec='${libname}${release}${shared_ext}$major'
7486 shlibpath_var=LD_LIBRARY_PATH
7493 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7494 echo "${ECHO_T}$dynamic_linker" >&6
7495 test "$dynamic_linker" = no && can_build_shared=no
7497 if test "x$enable_dlopen" != xyes; then
7498 enable_dlopen=unknown
7499 enable_dlopen_self=unknown
7500 enable_dlopen_self_static=unknown
7507 lt_cv_dlopen="load_add_on"
7509 lt_cv_dlopen_self=yes
7513 lt_cv_dlopen="LoadLibrary"
7518 lt_cv_dlopen="dlopen"
7523 # if libdl is installed we need to link against it
7524 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7525 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7526 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7527 echo $ECHO_N "(cached) $ECHO_C" >&6
7529 ac_check_lib_save_LIBS=$LIBS
7531 cat >conftest.$ac_ext <<_ACEOF
7532 #line $LINENO "configure"
7535 cat confdefs.h >>conftest.$ac_ext
7536 cat >>conftest.$ac_ext <<_ACEOF
7537 /* end confdefs.h. */
7539 /* Override any gcc2 internal prototype to avoid an error. */
7543 /* We use char because int might match the return type of a gcc2
7544 builtin and then its argument prototype would still apply. */
7554 rm -f conftest.$ac_objext conftest$ac_exeext
7555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7556 (eval $ac_link) 2>&5
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); } &&
7560 { ac_try='test -s conftest$ac_exeext'
7561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); }; }; then
7566 ac_cv_lib_dl_dlopen=yes
7568 echo "$as_me: failed program was:" >&5
7569 sed 's/^/| /' conftest.$ac_ext >&5
7571 ac_cv_lib_dl_dlopen=no
7573 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7574 LIBS=$ac_check_lib_save_LIBS
7576 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7577 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7578 if test $ac_cv_lib_dl_dlopen = yes; then
7579 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7584 lt_cv_dlopen_self=yes
7591 echo "$as_me:$LINENO: checking for shl_load" >&5
7592 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7593 if test "${ac_cv_func_shl_load+set}" = set; then
7594 echo $ECHO_N "(cached) $ECHO_C" >&6
7596 cat >conftest.$ac_ext <<_ACEOF
7597 #line $LINENO "configure"
7600 cat confdefs.h >>conftest.$ac_ext
7601 cat >>conftest.$ac_ext <<_ACEOF
7602 /* end confdefs.h. */
7603 /* System header to define __stub macros and hopefully few prototypes,
7604 which can conflict with char shl_load (); below.
7605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7606 <limits.h> exists even on freestanding compilers. */
7608 # include <limits.h>
7610 # include <assert.h>
7612 /* Override any gcc2 internal prototype to avoid an error. */
7617 /* We use char because int might match the return type of a gcc2
7618 builtin and then its argument prototype would still apply. */
7620 /* The GNU C library defines this for functions which it implements
7621 to always fail with ENOSYS. Some functions are actually named
7622 something starting with __ and the normal name is an alias. */
7623 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7626 char (*f) () = shl_load;
7635 return f != shl_load;
7640 rm -f conftest.$ac_objext conftest$ac_exeext
7641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7642 (eval $ac_link) 2>&5
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); } &&
7646 { ac_try='test -s conftest$ac_exeext'
7647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651 (exit $ac_status); }; }; then
7652 ac_cv_func_shl_load=yes
7654 echo "$as_me: failed program was:" >&5
7655 sed 's/^/| /' conftest.$ac_ext >&5
7657 ac_cv_func_shl_load=no
7659 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7661 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7662 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7663 if test $ac_cv_func_shl_load = yes; then
7664 lt_cv_dlopen="shl_load"
7666 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7667 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7668 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7669 echo $ECHO_N "(cached) $ECHO_C" >&6
7671 ac_check_lib_save_LIBS=$LIBS
7673 cat >conftest.$ac_ext <<_ACEOF
7674 #line $LINENO "configure"
7677 cat confdefs.h >>conftest.$ac_ext
7678 cat >>conftest.$ac_ext <<_ACEOF
7679 /* end confdefs.h. */
7681 /* Override any gcc2 internal prototype to avoid an error. */
7685 /* We use char because int might match the return type of a gcc2
7686 builtin and then its argument prototype would still apply. */
7696 rm -f conftest.$ac_objext conftest$ac_exeext
7697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7698 (eval $ac_link) 2>&5
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); } &&
7702 { ac_try='test -s conftest$ac_exeext'
7703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707 (exit $ac_status); }; }; then
7708 ac_cv_lib_dld_shl_load=yes
7710 echo "$as_me: failed program was:" >&5
7711 sed 's/^/| /' conftest.$ac_ext >&5
7713 ac_cv_lib_dld_shl_load=no
7715 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7716 LIBS=$ac_check_lib_save_LIBS
7718 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7719 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7720 if test $ac_cv_lib_dld_shl_load = yes; then
7721 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7723 echo "$as_me:$LINENO: checking for dlopen" >&5
7724 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7725 if test "${ac_cv_func_dlopen+set}" = set; then
7726 echo $ECHO_N "(cached) $ECHO_C" >&6
7728 cat >conftest.$ac_ext <<_ACEOF
7729 #line $LINENO "configure"
7732 cat confdefs.h >>conftest.$ac_ext
7733 cat >>conftest.$ac_ext <<_ACEOF
7734 /* end confdefs.h. */
7735 /* System header to define __stub macros and hopefully few prototypes,
7736 which can conflict with char dlopen (); below.
7737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7738 <limits.h> exists even on freestanding compilers. */
7740 # include <limits.h>
7742 # include <assert.h>
7744 /* Override any gcc2 internal prototype to avoid an error. */
7749 /* We use char because int might match the return type of a gcc2
7750 builtin and then its argument prototype would still apply. */
7752 /* The GNU C library defines this for functions which it implements
7753 to always fail with ENOSYS. Some functions are actually named
7754 something starting with __ and the normal name is an alias. */
7755 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7758 char (*f) () = dlopen;
7772 rm -f conftest.$ac_objext conftest$ac_exeext
7773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7774 (eval $ac_link) 2>&5
7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); } &&
7778 { ac_try='test -s conftest$ac_exeext'
7779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783 (exit $ac_status); }; }; then
7784 ac_cv_func_dlopen=yes
7786 echo "$as_me: failed program was:" >&5
7787 sed 's/^/| /' conftest.$ac_ext >&5
7789 ac_cv_func_dlopen=no
7791 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7793 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7794 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7795 if test $ac_cv_func_dlopen = yes; then
7796 lt_cv_dlopen="dlopen"
7798 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7799 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7800 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7801 echo $ECHO_N "(cached) $ECHO_C" >&6
7803 ac_check_lib_save_LIBS=$LIBS
7805 cat >conftest.$ac_ext <<_ACEOF
7806 #line $LINENO "configure"
7809 cat confdefs.h >>conftest.$ac_ext
7810 cat >>conftest.$ac_ext <<_ACEOF
7811 /* end confdefs.h. */
7813 /* Override any gcc2 internal prototype to avoid an error. */
7817 /* We use char because int might match the return type of a gcc2
7818 builtin and then its argument prototype would still apply. */
7828 rm -f conftest.$ac_objext conftest$ac_exeext
7829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7830 (eval $ac_link) 2>&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); } &&
7834 { ac_try='test -s conftest$ac_exeext'
7835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); }; }; then
7840 ac_cv_lib_dl_dlopen=yes
7842 echo "$as_me: failed program was:" >&5
7843 sed 's/^/| /' conftest.$ac_ext >&5
7845 ac_cv_lib_dl_dlopen=no
7847 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7848 LIBS=$ac_check_lib_save_LIBS
7850 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7851 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7852 if test $ac_cv_lib_dl_dlopen = yes; then
7853 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7855 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7856 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7857 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7858 echo $ECHO_N "(cached) $ECHO_C" >&6
7860 ac_check_lib_save_LIBS=$LIBS
7862 cat >conftest.$ac_ext <<_ACEOF
7863 #line $LINENO "configure"
7866 cat confdefs.h >>conftest.$ac_ext
7867 cat >>conftest.$ac_ext <<_ACEOF
7868 /* end confdefs.h. */
7870 /* Override any gcc2 internal prototype to avoid an error. */
7874 /* We use char because int might match the return type of a gcc2
7875 builtin and then its argument prototype would still apply. */
7885 rm -f conftest.$ac_objext conftest$ac_exeext
7886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7887 (eval $ac_link) 2>&5
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); } &&
7891 { ac_try='test -s conftest$ac_exeext'
7892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); }; }; then
7897 ac_cv_lib_svld_dlopen=yes
7899 echo "$as_me: failed program was:" >&5
7900 sed 's/^/| /' conftest.$ac_ext >&5
7902 ac_cv_lib_svld_dlopen=no
7904 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7905 LIBS=$ac_check_lib_save_LIBS
7907 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7908 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7909 if test $ac_cv_lib_svld_dlopen = yes; then
7910 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7912 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7913 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7914 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7915 echo $ECHO_N "(cached) $ECHO_C" >&6
7917 ac_check_lib_save_LIBS=$LIBS
7919 cat >conftest.$ac_ext <<_ACEOF
7920 #line $LINENO "configure"
7923 cat confdefs.h >>conftest.$ac_ext
7924 cat >>conftest.$ac_ext <<_ACEOF
7925 /* end confdefs.h. */
7927 /* Override any gcc2 internal prototype to avoid an error. */
7931 /* We use char because int might match the return type of a gcc2
7932 builtin and then its argument prototype would still apply. */
7942 rm -f conftest.$ac_objext conftest$ac_exeext
7943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7944 (eval $ac_link) 2>&5
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); } &&
7948 { ac_try='test -s conftest$ac_exeext'
7949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); }; }; then
7954 ac_cv_lib_dld_dld_link=yes
7956 echo "$as_me: failed program was:" >&5
7957 sed 's/^/| /' conftest.$ac_ext >&5
7959 ac_cv_lib_dld_dld_link=no
7961 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7962 LIBS=$ac_check_lib_save_LIBS
7964 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7965 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7966 if test $ac_cv_lib_dld_dld_link = yes; then
7967 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7988 if test "x$lt_cv_dlopen" != xno; then
7994 case $lt_cv_dlopen in
7996 save_CPPFLAGS="$CPPFLAGS"
7997 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7999 save_LDFLAGS="$LDFLAGS"
8000 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8003 LIBS="$lt_cv_dlopen_libs $LIBS"
8005 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8006 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8007 if test "${lt_cv_dlopen_self+set}" = set; then
8008 echo $ECHO_N "(cached) $ECHO_C" >&6
8010 if test "$cross_compiling" = yes; then :
8011 lt_cv_dlopen_self=cross
8013 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8014 lt_status=$lt_dlunknown
8015 cat > conftest.$ac_ext <<EOF
8016 #line 8016 "configure"
8017 #include "confdefs.h"
8026 # define LT_DLGLOBAL RTLD_GLOBAL
8029 # define LT_DLGLOBAL DL_GLOBAL
8031 # define LT_DLGLOBAL 0
8035 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8036 find out it does not work in some platform. */
8037 #ifndef LT_DLLAZY_OR_NOW
8039 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8042 # define LT_DLLAZY_OR_NOW DL_LAZY
8045 # define LT_DLLAZY_OR_NOW RTLD_NOW
8048 # define LT_DLLAZY_OR_NOW DL_NOW
8050 # define LT_DLLAZY_OR_NOW 0
8058 extern "C" void exit (int);
8061 void fnord() { int i=42;}
8064 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8065 int status = $lt_dlunknown;
8069 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8070 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8071 /* dlclose (self); */
8077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8078 (eval $ac_link) 2>&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8082 (./conftest; exit; ) 2>/dev/null
8085 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8086 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8087 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8090 # compilation failed
8091 lt_cv_dlopen_self=no
8098 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8099 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8101 if test "x$lt_cv_dlopen_self" = xyes; then
8102 LDFLAGS="$LDFLAGS $link_static_flag"
8103 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8104 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8105 if test "${lt_cv_dlopen_self_static+set}" = set; then
8106 echo $ECHO_N "(cached) $ECHO_C" >&6
8108 if test "$cross_compiling" = yes; then :
8109 lt_cv_dlopen_self_static=cross
8111 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8112 lt_status=$lt_dlunknown
8113 cat > conftest.$ac_ext <<EOF
8114 #line 8114 "configure"
8115 #include "confdefs.h"
8124 # define LT_DLGLOBAL RTLD_GLOBAL
8127 # define LT_DLGLOBAL DL_GLOBAL
8129 # define LT_DLGLOBAL 0
8133 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8134 find out it does not work in some platform. */
8135 #ifndef LT_DLLAZY_OR_NOW
8137 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8140 # define LT_DLLAZY_OR_NOW DL_LAZY
8143 # define LT_DLLAZY_OR_NOW RTLD_NOW
8146 # define LT_DLLAZY_OR_NOW DL_NOW
8148 # define LT_DLLAZY_OR_NOW 0
8156 extern "C" void exit (int);
8159 void fnord() { int i=42;}
8162 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8163 int status = $lt_dlunknown;
8167 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8168 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8169 /* dlclose (self); */
8175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8176 (eval $ac_link) 2>&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8180 (./conftest; exit; ) 2>/dev/null
8183 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8184 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8185 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8188 # compilation failed
8189 lt_cv_dlopen_self_static=no
8196 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8197 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8200 CPPFLAGS="$save_CPPFLAGS"
8201 LDFLAGS="$save_LDFLAGS"
8206 case $lt_cv_dlopen_self in
8207 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8208 *) enable_dlopen_self=unknown ;;
8211 case $lt_cv_dlopen_self_static in
8212 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8213 *) enable_dlopen_self_static=unknown ;;
8218 # Report which librarie types wil actually be built
8219 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8220 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8221 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8222 echo "${ECHO_T}$can_build_shared" >&6
8224 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8225 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8226 test "$can_build_shared" = "no" && enable_shared=no
8228 # On AIX, shared libraries and static libraries use the same namespace, and
8229 # are all built from PIC.
8232 test "$enable_shared" = yes && enable_static=no
8233 if test -n "$RANLIB"; then
8234 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8235 postinstall_cmds='$RANLIB $lib'
8240 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8241 test "$enable_shared" = yes && enable_static=no
8244 darwin* | rhapsody*)
8245 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8246 archive_cmds_need_lc=no
8248 rhapsody* | darwin1.[012])
8249 allow_undefined_flag='-undefined suppress'
8252 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8255 # FIXME: Relying on posixy $() will cause problems for
8256 # cross-compilation, but unfortunately the echo tests do not
8257 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8258 # `"' quotes if we put them in here... so don't!
8259 output_verbose_link_cmd='echo'
8260 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8261 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8262 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8263 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}'
8264 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}'
8266 hardcode_automatic=yes
8267 hardcode_shlibpath_var=unsupported
8268 whole_archive_flag_spec='-all_load $convenience'
8269 link_all_deplibs=yes
8273 echo "$as_me:$LINENO: result: $enable_shared" >&5
8274 echo "${ECHO_T}$enable_shared" >&6
8276 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8277 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8278 # Make sure either enable_shared or enable_static is yes.
8279 test "$enable_shared" = yes || enable_static=yes
8280 echo "$as_me:$LINENO: result: $enable_static" >&5
8281 echo "${ECHO_T}$enable_static" >&6
8283 # The else clause should only fire when bootstrapping the
8284 # libtool distribution, otherwise you forgot to ship ltmain.sh
8285 # with your package, and you will get complaints that there are
8286 # no rules to generate ltmain.sh.
8287 if test -f "$ltmain"; then
8288 # See if we are running on zsh, and set the options which allow our commands through
8289 # without removal of \ escapes.
8290 if test -n "${ZSH_VERSION+set}" ; then
8291 setopt NO_GLOB_SUBST
8293 # Now quote all the things that may contain metacharacters while being
8294 # careful not to overquote the AC_SUBSTed values. We take copies of the
8295 # variables and quote the copies for generation of the libtool script.
8296 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8297 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8298 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8299 deplibs_check_method reload_flag reload_cmds need_locks \
8300 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8301 lt_cv_sys_global_symbol_to_c_name_address \
8302 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8303 old_postinstall_cmds old_postuninstall_cmds \
8307 lt_prog_compiler_wl \
8308 lt_prog_compiler_pic \
8309 lt_prog_compiler_static \
8310 lt_prog_compiler_no_builtin_flag \
8311 export_dynamic_flag_spec \
8312 thread_safe_flag_spec \
8313 whole_archive_flag_spec \
8314 enable_shared_with_static_runtimes \
8316 old_archive_from_new_cmds \
8321 compiler_lib_search_path \
8323 archive_expsym_cmds \
8325 postuninstall_cmds \
8326 old_archive_from_expsyms_cmds \
8327 allow_undefined_flag \
8329 export_symbols_cmds \
8330 hardcode_libdir_flag_spec \
8331 hardcode_libdir_flag_spec_ld \
8332 hardcode_libdir_separator \
8333 hardcode_automatic \
8335 module_expsym_cmds \
8336 lt_cv_prog_compiler_c_o \
8341 old_archive_cmds | \
8342 old_archive_from_new_cmds | \
8344 archive_expsym_cmds | \
8346 module_expsym_cmds | \
8347 old_archive_from_expsyms_cmds | \
8348 export_symbols_cmds | \
8349 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8350 postinstall_cmds | postuninstall_cmds | \
8351 old_postinstall_cmds | old_postuninstall_cmds | \
8352 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8353 # Double-quote double-evaled strings.
8354 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8357 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8363 *'\$0 --fallback-echo"')
8364 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8369 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8371 { echo "$as_me:$LINENO: creating $ofile" >&5
8372 echo "$as_me: creating $ofile" >&6;}
8374 cat <<__EOF__ >> "$cfgfile"
8377 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8378 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8379 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8381 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8382 # Free Software Foundation, Inc.
8384 # This file is part of GNU Libtool:
8385 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8387 # This program is free software; you can redistribute it and/or modify
8388 # it under the terms of the GNU General Public License as published by
8389 # the Free Software Foundation; either version 2 of the License, or
8390 # (at your option) any later version.
8392 # This program is distributed in the hope that it will be useful, but
8393 # WITHOUT ANY WARRANTY; without even the implied warranty of
8394 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8395 # General Public License for more details.
8397 # You should have received a copy of the GNU General Public License
8398 # along with this program; if not, write to the Free Software
8399 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8401 # As a special exception to the GNU General Public License, if you
8402 # distribute this file as part of a program that contains a
8403 # configuration script generated by Autoconf, you may include it under
8404 # the same distribution terms that you use for the rest of that program.
8406 # A sed program that does not truncate output.
8409 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8410 Xsed="$SED -e s/^X//"
8412 # The HP-UX ksh and POSIX shell print the target directory to stdout
8414 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8416 # The names of the tagged configurations supported by this script.
8419 # ### BEGIN LIBTOOL CONFIG
8421 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8423 # Shell to use when invoking shell scripts.
8426 # Whether or not to build shared libraries.
8427 build_libtool_libs=$enable_shared
8429 # Whether or not to build static libraries.
8430 build_old_libs=$enable_static
8432 # Whether or not to add -lc for building shared libraries.
8433 build_libtool_need_lc=$archive_cmds_need_lc
8435 # Whether or not to disallow shared libs when runtime libs are static
8436 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8438 # Whether or not to optimize for fast installation.
8439 fast_install=$enable_fast_install
8442 host_alias=$host_alias
8445 # An echo program that does not interpret backslashes.
8450 AR_FLAGS=$lt_AR_FLAGS
8455 # A language-specific compiler.
8458 # Is the compiler the GNU C compiler?
8464 # The linker used to build libraries.
8467 # Whether we need hard or soft links.
8470 # A BSD-compatible nm program.
8473 # A symbol stripping program
8476 # Used to examine libraries when file_magic_cmd begins "file"
8477 MAGIC_CMD=$MAGIC_CMD
8479 # Used on cygwin: DLL creation program.
8482 # Used on cygwin: object dumper.
8485 # Used on cygwin: assembler.
8488 # The name of the directory that contains temporary libtool files.
8491 # How to create reloadable object files.
8492 reload_flag=$lt_reload_flag
8493 reload_cmds=$lt_reload_cmds
8495 # How to pass a linker flag through the compiler.
8496 wl=$lt_lt_prog_compiler_wl
8498 # Object file suffix (normally "o").
8501 # Old archive suffix (normally "a").
8504 # Shared library suffix (normally ".so").
8507 # Executable file suffix (normally "").
8510 # Additional compiler flags for building library objects.
8511 pic_flag=$lt_lt_prog_compiler_pic
8514 # What is the maximum length of a command?
8515 max_cmd_len=$lt_cv_sys_max_cmd_len
8517 # Does compiler simultaneously support -c and -o options?
8518 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8520 # Must we lock files when doing compilation ?
8521 need_locks=$lt_need_locks
8523 # Do we need the lib prefix for modules?
8524 need_lib_prefix=$need_lib_prefix
8526 # Do we need a version for libraries?
8527 need_version=$need_version
8529 # Whether dlopen is supported.
8530 dlopen_support=$enable_dlopen
8532 # Whether dlopen of programs is supported.
8533 dlopen_self=$enable_dlopen_self
8535 # Whether dlopen of statically linked programs is supported.
8536 dlopen_self_static=$enable_dlopen_self_static
8538 # Compiler flag to prevent dynamic linking.
8539 link_static_flag=$lt_lt_prog_compiler_static
8541 # Compiler flag to turn off builtin functions.
8542 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8544 # Compiler flag to allow reflexive dlopens.
8545 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8547 # Compiler flag to generate shared objects directly from archives.
8548 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8550 # Compiler flag to generate thread-safe objects.
8551 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8553 # Library versioning type.
8554 version_type=$version_type
8556 # Format of library name prefix.
8557 libname_spec=$lt_libname_spec
8559 # List of archive names. First name is the real one, the rest are links.
8560 # The last name is the one that the linker finds with -lNAME.
8561 library_names_spec=$lt_library_names_spec
8563 # The coded name of the library, if different from the real name.
8564 soname_spec=$lt_soname_spec
8566 # Commands used to build and install an old-style archive.
8568 old_archive_cmds=$lt_old_archive_cmds
8569 old_postinstall_cmds=$lt_old_postinstall_cmds
8570 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8572 # Create an old-style archive from a shared archive.
8573 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8575 # Create a temporary old-style archive to link instead of a shared archive.
8576 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8578 # Commands used to build and install a shared archive.
8579 archive_cmds=$lt_archive_cmds
8580 archive_expsym_cmds=$lt_archive_expsym_cmds
8581 postinstall_cmds=$lt_postinstall_cmds
8582 postuninstall_cmds=$lt_postuninstall_cmds
8584 # Commands used to build a loadable module (assumed same as above if empty)
8585 module_cmds=$lt_module_cmds
8586 module_expsym_cmds=$lt_module_expsym_cmds
8588 # Commands to strip libraries.
8589 old_striplib=$lt_old_striplib
8590 striplib=$lt_striplib
8592 # Dependencies to place before the objects being linked to create a
8594 predep_objects=$lt_predep_objects
8596 # Dependencies to place after the objects being linked to create a
8598 postdep_objects=$lt_postdep_objects
8600 # Dependencies to place before the objects being linked to create a
8604 # Dependencies to place after the objects being linked to create a
8606 postdeps=$lt_postdeps
8608 # The library search path used internally by the compiler when linking
8610 compiler_lib_search_path=$lt_compiler_lib_search_path
8612 # Method to check whether dependent libraries are shared objects.
8613 deplibs_check_method=$lt_deplibs_check_method
8615 # Command to use when deplibs_check_method == file_magic.
8616 file_magic_cmd=$lt_file_magic_cmd
8618 # Flag that allows shared libraries with undefined symbols to be built.
8619 allow_undefined_flag=$lt_allow_undefined_flag
8621 # Flag that forces no undefined symbols.
8622 no_undefined_flag=$lt_no_undefined_flag
8624 # Commands used to finish a libtool library installation in a directory.
8625 finish_cmds=$lt_finish_cmds
8627 # Same as above, but a single script fragment to be evaled but not shown.
8628 finish_eval=$lt_finish_eval
8630 # Take the output of nm and produce a listing of raw symbols and C names.
8631 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8633 # Transform the output of nm in a proper C declaration
8634 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8636 # Transform the output of nm in a C name address pair
8637 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8639 # This is the shared library runtime path variable.
8640 runpath_var=$runpath_var
8642 # This is the shared library path variable.
8643 shlibpath_var=$shlibpath_var
8645 # Is shlibpath searched before the hard-coded library search path?
8646 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8648 # How to hardcode a shared library path into an executable.
8649 hardcode_action=$hardcode_action
8651 # Whether we should hardcode library paths into libraries.
8652 hardcode_into_libs=$hardcode_into_libs
8654 # Flag to hardcode \$libdir into a binary during linking.
8655 # This must work even if \$libdir does not exist.
8656 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8658 # If ld is used when linking, flag to hardcode \$libdir into
8659 # a binary during linking. This must work even if \$libdir does
8661 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8663 # Whether we need a single -rpath flag with a separated argument.
8664 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8666 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8668 hardcode_direct=$hardcode_direct
8670 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8672 hardcode_minus_L=$hardcode_minus_L
8674 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8675 # the resulting binary.
8676 hardcode_shlibpath_var=$hardcode_shlibpath_var
8678 # Set to yes if building a shared library automatically hardcodes DIR into the library
8679 # and all subsequent libraries and executables linked against it.
8680 hardcode_automatic=$hardcode_automatic
8682 # Variables whose values should be saved in libtool wrapper scripts and
8683 # restored at relink time.
8684 variables_saved_for_relink="$variables_saved_for_relink"
8686 # Whether libtool must link a program against all its dependency libraries.
8687 link_all_deplibs=$link_all_deplibs
8689 # Compile-time system search path for libraries
8690 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8692 # Run-time system search path for libraries
8693 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8695 # Fix the shell variable \$srcfile for the compiler.
8696 fix_srcfile_path="$fix_srcfile_path"
8698 # Set to yes if exported symbols are required.
8699 always_export_symbols=$always_export_symbols
8701 # The commands to list exported symbols.
8702 export_symbols_cmds=$lt_export_symbols_cmds
8704 # The commands to extract the exported symbol list from a shared archive.
8705 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8707 # Symbols that should not be listed in the preloaded symbols.
8708 exclude_expsyms=$lt_exclude_expsyms
8710 # Symbols that must always be exported.
8711 include_expsyms=$lt_include_expsyms
8713 # ### END LIBTOOL CONFIG
8720 cat <<\EOF >> "$cfgfile"
8722 # AIX sometimes has problems with the GCC collect2 program. For some
8723 # reason, if we set the COLLECT_NAMES environment variable, the problems
8724 # vanish in a puff of smoke.
8725 if test "X${COLLECT_NAMES+set}" != Xset; then
8727 export COLLECT_NAMES
8733 # We use sed instead of cat because bash on DJGPP gets confused if
8734 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8735 # text mode, it properly converts lines to CR/LF. This bash problem
8736 # is reportedly fixed, but why not run on old versions too?
8737 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8739 mv -f "$cfgfile" "$ofile" || \
8740 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8744 # If there is no Makefile yet, we rely on a make rule to execute
8745 # `config.status --recheck' to rerun these tests and create the
8746 # libtool script then.
8747 test -f Makefile && make "$ltmain"
8752 ac_cpp='$CPP $CPPFLAGS'
8753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8760 # Check whether --with-tags or --without-tags was given.
8761 if test "${with_tags+set}" = set; then
8762 withval="$with_tags"
8766 if test -f "$ltmain" && test -n "$tagnames"; then
8767 if test ! -f "${ofile}"; then
8768 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8769 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8772 if test -z "$LTCC"; then
8773 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8774 if test -z "$LTCC"; then
8775 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8776 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8778 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8779 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8783 # Extract list of available tagged configurations in $ofile.
8784 # Note that this assumes the entire list is on one line.
8785 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8787 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8788 for tagname in $tagnames; do
8790 # Check whether tagname contains only valid characters
8791 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8793 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8794 echo "$as_me: error: invalid tag name: $tagname" >&2;}
8795 { (exit 1); exit 1; }; }
8799 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8801 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8802 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8803 { (exit 1); exit 1; }; }
8806 # Update the list of available tags.
8807 if test -n "$tagname"; then
8808 echo appending configuration tag \"$tagname\" to $ofile
8812 if test -n "$CXX" && test "X$CXX" != "Xno"; then
8814 ac_cpp='$CXXCPP $CPPFLAGS'
8815 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8816 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8817 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8822 archive_cmds_need_lc_CXX=no
8823 allow_undefined_flag_CXX=
8824 always_export_symbols_CXX=no
8825 archive_expsym_cmds_CXX=
8826 export_dynamic_flag_spec_CXX=
8827 hardcode_direct_CXX=no
8828 hardcode_libdir_flag_spec_CXX=
8829 hardcode_libdir_flag_spec_ld_CXX=
8830 hardcode_libdir_separator_CXX=
8831 hardcode_minus_L_CXX=no
8832 hardcode_automatic_CXX=no
8834 module_expsym_cmds_CXX=
8835 link_all_deplibs_CXX=unknown
8836 old_archive_cmds_CXX=$old_archive_cmds
8837 no_undefined_flag_CXX=
8838 whole_archive_flag_spec_CXX=
8839 enable_shared_with_static_runtimes_CXX=no
8841 # Dependencies to place before and after the object being linked:
8843 postdep_objects_CXX=
8846 compiler_lib_search_path_CXX=
8848 # Source file extension for C++ test sources.
8851 # Object file extension for compiled C++ test sources.
8855 # Code to be used in simple compile tests
8856 lt_simple_compile_test_code="int some_variable = 0;\n"
8858 # Code to be used in simple link tests
8859 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
8861 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8863 # If no C compiler was specified, use CC.
8866 # Allow CC to be a program name with arguments.
8870 # Allow CC to be a program name with arguments.
8875 lt_save_with_gnu_ld=$with_gnu_ld
8876 lt_save_path_LD=$lt_cv_path_LD
8877 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
8878 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
8880 unset lt_cv_prog_gnu_ld
8882 if test -n "${lt_cv_path_LDCXX+set}"; then
8883 lt_cv_path_LD=$lt_cv_path_LDCXX
8887 test -z "${LDCXX+set}" || LD=$LDCXX
8891 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
8893 # We don't want -fno-exception wen compiling C++ code, so set the
8894 # no_builtin_flag separately
8895 if test "$GXX" = yes; then
8896 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
8898 lt_prog_compiler_no_builtin_flag_CXX=
8901 if test "$GXX" = yes; then
8902 # Set up default GNU C++ configuration
8905 # Check whether --with-gnu-ld or --without-gnu-ld was given.
8906 if test "${with_gnu_ld+set}" = set; then
8907 withval="$with_gnu_ld"
8908 test "$withval" = no || with_gnu_ld=yes
8913 if test "$GCC" = yes; then
8914 # Check if gcc -print-prog-name=ld gives a path.
8915 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
8916 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
8919 # gcc leaves a trailing carriage return which upsets mingw
8920 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8922 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8925 # Accept absolute paths.
8927 re_direlt='/[^/][^/]*/\.\./'
8928 # Canonicalize the path of ld
8929 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
8930 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8931 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
8933 test -z "$LD" && LD="$ac_prog"
8936 # If it fails, then pretend we aren't using GCC.
8940 # If it is relative, then search for the first ld in PATH.
8944 elif test "$with_gnu_ld" = yes; then
8945 echo "$as_me:$LINENO: checking for GNU ld" >&5
8946 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
8948 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8949 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
8951 if test "${lt_cv_path_LD+set}" = set; then
8952 echo $ECHO_N "(cached) $ECHO_C" >&6
8954 if test -z "$LD"; then
8955 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8956 for ac_dir in $PATH; do
8958 test -z "$ac_dir" && ac_dir=.
8959 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8960 lt_cv_path_LD="$ac_dir/$ac_prog"
8961 # Check to see if the program is GNU ld. I'd rather use --version,
8962 # but apparently some GNU ld's only accept -v.
8963 # Break only if it was the GNU/non-GNU ld that we prefer.
8964 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8965 *GNU* | *'with BFD'*)
8966 test "$with_gnu_ld" != no && break
8969 test "$with_gnu_ld" != yes && break
8976 lt_cv_path_LD="$LD" # Let the user override the test with a path.
8981 if test -n "$LD"; then
8982 echo "$as_me:$LINENO: result: $LD" >&5
8983 echo "${ECHO_T}$LD" >&6
8985 echo "$as_me:$LINENO: result: no" >&5
8986 echo "${ECHO_T}no" >&6
8988 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8989 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8990 { (exit 1); exit 1; }; }
8991 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8992 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
8993 if test "${lt_cv_prog_gnu_ld+set}" = set; then
8994 echo $ECHO_N "(cached) $ECHO_C" >&6
8996 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8997 case `"$LD" -v 2>&1 </dev/null` in
8998 *GNU* | *'with BFD'*)
8999 lt_cv_prog_gnu_ld=yes
9002 lt_cv_prog_gnu_ld=no
9006 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9007 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9008 with_gnu_ld=$lt_cv_prog_gnu_ld
9012 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9013 # archiving commands below assume that GNU ld is being used.
9014 if test "$with_gnu_ld" = yes; then
9015 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9016 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'
9018 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9019 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9021 # If archive_cmds runs LD, not CC, wlarc should be empty
9022 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9023 # investigate it a little bit more. (MM)
9026 # ancient GNU ld didn't support --whole-archive et. al.
9027 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9028 grep 'no-whole-archive' > /dev/null; then
9029 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9031 whole_archive_flag_spec_CXX=
9037 # A generic and very simple default shared library creation
9038 # command for GNU C++ for the case where it uses the native
9039 # linker, instead of GNU ld. If possible, this setting should
9040 # overridden to take advantage of the native linker features on
9041 # the platform it is being used on.
9042 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9045 # Commands to make compiler produce verbose output that lists
9046 # what "hidden" libraries, object files and flags are used when
9047 # linking a shared library.
9048 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9056 # PORTME: fill in a description of your system's C++ link characteristics
9057 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9058 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9062 # FIXME: insert proper C++ library support
9066 if test "$host_cpu" = ia64; then
9067 # On IA64, the linker does run time linking by default, so we don't
9068 # have to do anything special.
9069 aix_use_runtimelinking=no
9070 exp_sym_flag='-Bexport'
9073 aix_use_runtimelinking=no
9075 # Test if we are trying to use run time linking or normal
9076 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9077 # need to do runtime linking.
9078 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9079 for ld_flag in $LDFLAGS; do
9082 aix_use_runtimelinking=yes
9089 exp_sym_flag='-bexport'
9090 no_entry_flag='-bnoentry'
9093 # When large executables or shared objects are built, AIX ld can
9094 # have problems creating the table of contents. If linking a library
9095 # or program results in "error TOC overflow" add -mminimal-toc to
9096 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9097 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9100 hardcode_direct_CXX=yes
9101 hardcode_libdir_separator_CXX=':'
9102 link_all_deplibs_CXX=yes
9104 if test "$GXX" = yes; then
9105 case $host_os in aix4.012|aix4.012.*)
9106 # We only want to do this on AIX 4.2 and lower, the check
9107 # below for broken collect2 doesn't work under 4.3+
9108 collect2name=`${CC} -print-prog-name=collect2`
9109 if test -f "$collect2name" && \
9110 strings "$collect2name" | grep resolve_lib_name >/dev/null
9112 # We have reworked collect2
9113 hardcode_direct_CXX=yes
9115 # We have old collect2
9116 hardcode_direct_CXX=unsupported
9117 # It fails to find uninstalled libraries when the uninstalled
9118 # path is not listed in the libpath. Setting hardcode_minus_L
9119 # to unsupported forces relinking
9120 hardcode_minus_L_CXX=yes
9121 hardcode_libdir_flag_spec_CXX='-L$libdir'
9122 hardcode_libdir_separator_CXX=
9125 shared_flag='-shared'
9128 if test "$host_cpu" = ia64; then
9129 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9130 # chokes on -Wl,-G. The following line is correct:
9133 if test "$aix_use_runtimelinking" = yes; then
9134 shared_flag='${wl}-G'
9136 shared_flag='${wl}-bM:SRE'
9141 # It seems that -bexpall does not export symbols beginning with
9142 # underscore (_), so it is better to generate a list of symbols to export.
9143 always_export_symbols_CXX=yes
9144 if test "$aix_use_runtimelinking" = yes; then
9145 # Warning - without using the other runtime loading flags (-brtl),
9146 # -berok will link without error, but may produce a broken library.
9147 allow_undefined_flag_CXX='-berok'
9148 # Determine the default libpath from the value encoded in an empty executable.
9149 cat >conftest.$ac_ext <<_ACEOF
9150 #line $LINENO "configure"
9153 cat confdefs.h >>conftest.$ac_ext
9154 cat >>conftest.$ac_ext <<_ACEOF
9155 /* end confdefs.h. */
9165 rm -f conftest.$ac_objext conftest$ac_exeext
9166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9167 (eval $ac_link) 2>&5
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); } &&
9171 { ac_try='test -s conftest$ac_exeext'
9172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176 (exit $ac_status); }; }; then
9178 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9180 # Check for a 64-bit object if we didn't find anything.
9181 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; }
9184 echo "$as_me: failed program was:" >&5
9185 sed 's/^/| /' conftest.$ac_ext >&5
9188 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9189 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9191 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9193 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"
9195 if test "$host_cpu" = ia64; then
9196 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9197 allow_undefined_flag_CXX="-z nodefs"
9198 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"
9200 # Determine the default libpath from the value encoded in an empty executable.
9201 cat >conftest.$ac_ext <<_ACEOF
9202 #line $LINENO "configure"
9205 cat confdefs.h >>conftest.$ac_ext
9206 cat >>conftest.$ac_ext <<_ACEOF
9207 /* end confdefs.h. */
9217 rm -f conftest.$ac_objext conftest$ac_exeext
9218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9219 (eval $ac_link) 2>&5
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); } &&
9223 { ac_try='test -s conftest$ac_exeext'
9224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228 (exit $ac_status); }; }; then
9230 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9232 # Check for a 64-bit object if we didn't find anything.
9233 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; }
9236 echo "$as_me: failed program was:" >&5
9237 sed 's/^/| /' conftest.$ac_ext >&5
9240 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9241 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9243 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9244 # Warning - without using the other run time loading flags,
9245 # -berok will link without error, but may produce a broken library.
9246 no_undefined_flag_CXX=' ${wl}-bernotok'
9247 allow_undefined_flag_CXX=' ${wl}-berok'
9248 # -bexpall does not export symbols beginning with underscore (_)
9249 always_export_symbols_CXX=yes
9250 # Exported symbols can be pulled into shared objects from archives
9251 whole_archive_flag_spec_CXX=' '
9252 archive_cmds_need_lc_CXX=yes
9253 # This is similar to how AIX traditionally builds it's shared libraries.
9254 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'
9259 case $cc_basename in
9261 # FIXME: insert proper C++ library support
9267 cygwin* | mingw* | pw32*)
9268 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9269 # as there is no search path for DLLs.
9270 hardcode_libdir_flag_spec_CXX='-L$libdir'
9271 allow_undefined_flag_CXX=unsupported
9272 always_export_symbols_CXX=no
9273 enable_shared_with_static_runtimes_CXX=yes
9275 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9276 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'
9277 # If the export-symbols file already is a .def file (1st line
9278 # is EXPORTS), use it as is; otherwise, prepend...
9279 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9280 cp $export_symbols $output_objdir/$soname.def;
9282 echo EXPORTS > $output_objdir/$soname.def;
9283 cat $export_symbols >> $output_objdir/$soname.def;
9285 $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'
9291 darwin* | rhapsody*)
9292 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9293 archive_cmds_need_lc_CXX=no
9295 rhapsody* | darwin1.[012])
9296 allow_undefined_flag_CXX='-undefined suppress'
9299 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9302 lt_int_apple_cc_single_mod=no
9303 output_verbose_link_cmd='echo'
9304 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9305 lt_int_apple_cc_single_mod=yes
9307 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9308 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9310 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'
9312 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9314 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9315 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9316 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}'
9318 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}'
9320 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}'
9321 hardcode_direct_CXX=no
9322 hardcode_automatic_CXX=yes
9323 hardcode_shlibpath_var_CXX=unsupported
9324 whole_archive_flag_spec_CXX='-all_load $convenience'
9325 link_all_deplibs_CXX=yes
9330 case $cc_basename in
9332 # FIXME: insert proper C++ library support
9336 # Green Hills C++ Compiler
9337 # FIXME: insert proper C++ library support
9341 # FIXME: insert proper C++ library support
9347 # C++ shared libraries reported to be fairly broken before switch to ELF
9351 archive_cmds_need_lc_CXX=no
9354 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9361 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9362 hardcode_libdir_separator_CXX=:
9363 export_dynamic_flag_spec_CXX='${wl}-E'
9364 hardcode_direct_CXX=yes
9365 hardcode_minus_L_CXX=yes # Not in the search PATH,
9366 # but as the default
9367 # location of the library.
9369 case $cc_basename in
9371 # FIXME: insert proper C++ library support
9375 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'
9376 # Commands to make compiler produce verbose output that lists
9377 # what "hidden" libraries, object files and flags are used when
9378 # linking a shared library.
9380 # There doesn't appear to be a way to prevent this compiler from
9381 # explicitly linking system object files so we need to strip them
9382 # from the output so that they don't get included in the library
9384 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'
9387 if test "$GXX" = yes; then
9388 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'
9390 # FIXME: insert proper C++ library support
9397 if test $with_gnu_ld = no; then
9400 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9401 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9402 hardcode_libdir_separator_CXX=:
9405 hardcode_libdir_flag_spec_CXX='-L$libdir'
9408 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9409 hardcode_libdir_separator_CXX=:
9410 export_dynamic_flag_spec_CXX='${wl}-E'
9416 hardcode_direct_CXX=no
9417 hardcode_shlibpath_var_CXX=no
9420 hardcode_direct_CXX=no
9421 hardcode_shlibpath_var_CXX=no
9422 hardcode_minus_L_CXX=yes # Not in the search PATH,
9423 # but as the default
9424 # location of the library.
9427 hardcode_direct_CXX=yes
9428 hardcode_minus_L_CXX=yes # Not in the search PATH,
9429 # but as the default
9430 # location of the library.
9434 case $cc_basename in
9436 # FIXME: insert proper C++ library support
9442 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9445 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9448 # Commands to make compiler produce verbose output that lists
9449 # what "hidden" libraries, object files and flags are used when
9450 # linking a shared library.
9452 # There doesn't appear to be a way to prevent this compiler from
9453 # explicitly linking system object files so we need to strip them
9454 # from the output so that they don't get included in the library
9456 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'
9459 if test "$GXX" = yes; then
9460 if test $with_gnu_ld = no; then
9463 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9466 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'
9471 # FIXME: insert proper C++ library support
9478 case $cc_basename in
9481 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'
9483 # Archives containing C++ object files must be created using
9484 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9485 # necessary to make sure instantiated templates are included
9487 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9490 if test "$GXX" = yes; then
9491 if test "$with_gnu_ld" = no; then
9492 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'
9494 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'
9497 link_all_deplibs_CXX=yes
9500 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9501 hardcode_libdir_separator_CXX=:
9504 case $cc_basename in
9506 # Kuck and Associates, Inc. (KAI) C++ Compiler
9508 # KCC will only create a shared library if the output file
9509 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9510 # to its proper name (with version) after linking.
9511 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'
9512 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'
9513 # Commands to make compiler produce verbose output that lists
9514 # what "hidden" libraries, object files and flags are used when
9515 # linking a shared library.
9517 # There doesn't appear to be a way to prevent this compiler from
9518 # explicitly linking system object files so we need to strip them
9519 # from the output so that they don't get included in the library
9521 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'
9523 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9524 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9526 # Archives containing C++ object files must be created using
9527 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9528 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9533 archive_cmds_need_lc_CXX=no
9534 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9535 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'
9536 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9537 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9538 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9542 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9543 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'
9545 runpath_var=LD_RUN_PATH
9546 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9547 hardcode_libdir_separator_CXX=:
9549 # Commands to make compiler produce verbose output that lists
9550 # what "hidden" libraries, object files and flags are used when
9551 # linking a shared library.
9553 # There doesn't appear to be a way to prevent this compiler from
9554 # explicitly linking system object files so we need to strip them
9555 # from the output so that they don't get included in the library
9557 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'
9562 # FIXME: insert proper C++ library support
9566 # FIXME: insert proper C++ library support
9570 case $cc_basename in
9572 # FIXME: insert proper C++ library support
9576 # FIXME: insert proper C++ library support
9582 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9583 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9585 hardcode_libdir_flag_spec_CXX='-R$libdir'
9586 hardcode_direct_CXX=yes
9587 hardcode_shlibpath_var_CXX=no
9589 # Workaround some broken pre-1.5 toolchains
9590 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9593 case $cc_basename in
9595 # Kuck and Associates, Inc. (KAI) C++ Compiler
9597 # KCC will only create a shared library if the output file
9598 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9599 # to its proper name (with version) after linking.
9600 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'
9602 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9603 hardcode_libdir_separator_CXX=:
9605 # Archives containing C++ object files must be created using
9606 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9607 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9611 # Rational C++ 2.4.1
9612 # FIXME: insert proper C++ library support
9616 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9617 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'
9619 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9620 hardcode_libdir_separator_CXX=:
9622 # Commands to make compiler produce verbose output that lists
9623 # what "hidden" libraries, object files and flags are used when
9624 # linking a shared library.
9626 # There doesn't appear to be a way to prevent this compiler from
9627 # explicitly linking system object files so we need to strip them
9628 # from the output so that they don't get included in the library
9630 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'
9633 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9634 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9635 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'
9637 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9638 hardcode_libdir_separator_CXX=:
9640 # Commands to make compiler produce verbose output that lists
9641 # what "hidden" libraries, object files and flags are used when
9642 # linking a shared library.
9643 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9646 # FIXME: insert proper C++ library support
9653 case $cc_basename in
9655 # Kuck and Associates, Inc. (KAI) C++ Compiler
9657 # KCC will only create a shared library if the output file
9658 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9659 # to its proper name (with version) after linking.
9660 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'
9662 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9663 hardcode_libdir_separator_CXX=:
9665 # Archives containing C++ object files must be created using
9666 # the KAI C++ compiler.
9667 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9670 # Rational C++ 2.4.1
9671 # FIXME: insert proper C++ library support
9675 allow_undefined_flag_CXX=' -expect_unresolved \*'
9676 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'
9677 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9678 echo "-hidden">> $lib.exp~
9679 $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~
9682 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9683 hardcode_libdir_separator_CXX=:
9685 # Commands to make compiler produce verbose output that lists
9686 # what "hidden" libraries, object files and flags are used when
9687 # linking a shared library.
9689 # There doesn't appear to be a way to prevent this compiler from
9690 # explicitly linking system object files so we need to strip them
9691 # from the output so that they don't get included in the library
9693 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'
9696 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9697 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9698 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'
9700 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9701 hardcode_libdir_separator_CXX=:
9703 # Commands to make compiler produce verbose output that lists
9704 # what "hidden" libraries, object files and flags are used when
9705 # linking a shared library.
9706 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9709 # FIXME: insert proper C++ library support
9716 # FIXME: insert proper C++ library support
9720 archive_cmds_need_lc_CXX=no
9721 case $cc_basename in
9723 # FIXME: insert proper C++ library support
9727 # FIXME: insert proper C++ library support
9733 case $cc_basename in
9736 # FIXME: insert proper C++ library support
9741 # FIXME: insert proper C++ library support
9745 # FIXME: insert proper C++ library support
9751 case $cc_basename in
9753 # Sun C++ 4.2, 5.x and Centerline C++
9754 no_undefined_flag_CXX=' -zdefs'
9755 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9756 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9757 $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'
9759 hardcode_libdir_flag_spec_CXX='-R$libdir'
9760 hardcode_shlibpath_var_CXX=no
9762 solaris2.0-5 | solaris2.0-5.*) ;;
9764 # The C++ compiler is used as linker so we must use $wl
9765 # flag to pass the commands to the underlying system
9767 # Supported since Solaris 2.6 (maybe 2.5.1?)
9768 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9771 link_all_deplibs_CXX=yes
9773 # Commands to make compiler produce verbose output that lists
9774 # what "hidden" libraries, object files and flags are used when
9775 # linking a shared library.
9777 # There doesn't appear to be a way to prevent this compiler from
9778 # explicitly linking system object files so we need to strip them
9779 # from the output so that they don't get included in the library
9781 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'
9783 # Archives containing C++ object files must be created using
9784 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9785 # necessary to make sure instantiated templates are included
9787 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9790 # Green Hills C++ Compiler
9791 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9793 # The C++ compiler must be used to create the archive.
9794 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9797 # GNU C++ compiler with Solaris linker
9798 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9799 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9800 if $CC --version | grep -v '^2\.7' > /dev/null; then
9801 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9802 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9803 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9805 # Commands to make compiler produce verbose output that lists
9806 # what "hidden" libraries, object files and flags are used when
9807 # linking a shared library.
9808 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9810 # g++ 2.7 appears to require `-G' NOT `-shared' on this
9812 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9813 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9814 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9816 # Commands to make compiler produce verbose output that lists
9817 # what "hidden" libraries, object files and flags are used when
9818 # linking a shared library.
9819 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9822 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
9827 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9828 archive_cmds_need_lc_CXX=no
9831 case $cc_basename in
9833 # NonStop-UX NCC 3.20
9834 # FIXME: insert proper C++ library support
9838 # FIXME: insert proper C++ library support
9844 # FIXME: insert proper C++ library support
9848 # FIXME: insert proper C++ library support
9852 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
9853 echo "${ECHO_T}$ld_shlibs_CXX" >&6
9854 test "$ld_shlibs_CXX" = no && can_build_shared=no
9860 ## There is no encapsulation within the following macros, do not change
9861 ## the running order or otherwise move them around unless you know exactly
9862 ## what you are doing...
9864 cat > conftest.$ac_ext <<EOF
9868 Foo (void) { a = 0; }
9874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9875 (eval $ac_compile) 2>&5
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); }; then
9879 # Parse the compiler output and extract the necessary
9880 # objects, libraries and library flags.
9882 # Sentinel used to keep track of whether or not we are before
9883 # the conftest object file.
9884 pre_test_object_deps_done=no
9886 # The `*' in the case matches for architectures that use `case' in
9887 # $output_verbose_cmd can trigger glob expansion during the loop
9888 # eval without this substitution.
9889 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
9891 for p in `eval $output_verbose_link_cmd`; do
9895 # Some compilers place space between "-{L,R}" and the path.
9898 || test $p = "-R"; then
9905 if test "$pre_test_object_deps_done" = no; then
9908 # Internal compiler library paths should come after those
9909 # provided the user. The postdeps already come after the
9910 # user supplied libs so there is no need to process them.
9911 if test -z "$compiler_lib_search_path_CXX"; then
9912 compiler_lib_search_path_CXX="${prev}${p}"
9914 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
9917 # The "-l" case would never come before the object being
9918 # linked, so don't bother handling this case.
9921 if test -z "$postdeps_CXX"; then
9922 postdeps_CXX="${prev}${p}"
9924 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
9930 # This assumes that the test object file only shows up
9931 # once in the compiler output.
9932 if test "$p" = "conftest.$objext"; then
9933 pre_test_object_deps_done=yes
9937 if test "$pre_test_object_deps_done" = no; then
9938 if test -z "$predep_objects_CXX"; then
9939 predep_objects_CXX="$p"
9941 predep_objects_CXX="$predep_objects_CXX $p"
9944 if test -z "$postdep_objects_CXX"; then
9945 postdep_objects_CXX="$p"
9947 postdep_objects_CXX="$postdep_objects_CXX $p"
9952 *) ;; # Ignore the rest.
9960 echo "libtool.m4: error: problem compiling CXX test program"
9963 $rm -f confest.$objext
9965 case " $postdeps_CXX " in
9966 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
9969 lt_prog_compiler_wl_CXX=
9970 lt_prog_compiler_pic_CXX=
9971 lt_prog_compiler_static_CXX=
9973 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9974 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9976 # C++ specific cases for pic, static, wl, etc.
9977 if test "$GXX" = yes; then
9978 lt_prog_compiler_wl_CXX='-Wl,'
9979 lt_prog_compiler_static_CXX='-static'
9983 # All AIX code is PIC.
9984 if test "$host_cpu" = ia64; then
9985 # AIX 5 now supports IA64 processor
9986 lt_prog_compiler_static_CXX='-Bstatic'
9990 # FIXME: we need at least 68020 code to build shared libraries, but
9991 # adding the `-m68020' flag to GCC prevents building anything better,
9993 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
9995 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9996 # PIC is the default for these OSes.
9998 mingw* | os2* | pw32*)
9999 # This hack is so that the source file can tell whether it is being
10000 # built for inclusion in a dll (and should export symbols for example).
10001 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10003 darwin* | rhapsody*)
10004 # PIC is the default on this platform
10005 # Common symbols not allowed in MH_DYLIB files
10006 lt_prog_compiler_pic_CXX='-fno-common'
10009 # DJGPP does not support shared libraries at all
10010 lt_prog_compiler_pic_CXX=
10013 if test -d /usr/nec; then
10014 lt_prog_compiler_pic_CXX=-Kconform_pic
10018 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10019 # not for PA HP-UX.
10020 case "$host_cpu" in
10024 lt_prog_compiler_pic_CXX='-fPIC'
10029 lt_prog_compiler_pic_CXX='-fPIC'
10035 # All AIX code is PIC.
10036 if test "$host_cpu" = ia64; then
10037 # AIX 5 now supports IA64 processor
10038 lt_prog_compiler_static_CXX='-Bstatic'
10040 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10044 case $cc_basename in
10046 # Green Hills C++ Compiler
10047 # _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"
10052 case $cc_basename in
10054 lt_prog_compiler_pic_CXX='-KPIC'
10057 # Green Hills C++ Compiler
10058 lt_prog_compiler_pic_CXX='-pic'
10065 # FreeBSD uses GNU C++
10067 hpux9* | hpux10* | hpux11*)
10068 case $cc_basename in
10070 lt_prog_compiler_wl_CXX='-Wl,'
10071 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10072 if test "$host_cpu" != ia64; then
10073 lt_prog_compiler_pic_CXX='+Z'
10077 lt_prog_compiler_wl_CXX='-Wl,'
10078 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10079 case "$host_cpu" in
10084 lt_prog_compiler_pic_CXX='+Z'
10092 irix5* | irix6* | nonstopux*)
10093 case $cc_basename in
10095 lt_prog_compiler_wl_CXX='-Wl,'
10096 lt_prog_compiler_static_CXX='-non_shared'
10097 # CC pic flag -KPIC is the default.
10104 case $cc_basename in
10107 lt_prog_compiler_wl_CXX='--backend -Wl,'
10108 lt_prog_compiler_pic_CXX='-fPIC'
10112 lt_prog_compiler_wl_CXX='-Wl,'
10113 lt_prog_compiler_pic_CXX='-KPIC'
10114 lt_prog_compiler_static_CXX='-static'
10118 # Make sure the PIC flag is empty. It appears that all Alpha
10119 # Linux and Compaq Tru64 Unix objects are PIC.
10120 lt_prog_compiler_pic_CXX=
10121 lt_prog_compiler_static_CXX='-non_shared'
10132 case $cc_basename in
10134 lt_prog_compiler_pic_CXX='-W c,exportall'
10142 osf3* | osf4* | osf5*)
10143 case $cc_basename in
10145 lt_prog_compiler_wl_CXX='--backend -Wl,'
10148 # Rational C++ 2.4.1
10149 lt_prog_compiler_pic_CXX='-pic'
10152 # Digital/Compaq C++
10153 lt_prog_compiler_wl_CXX='-Wl,'
10154 # Make sure the PIC flag is empty. It appears that all Alpha
10155 # Linux and Compaq Tru64 Unix objects are PIC.
10156 lt_prog_compiler_pic_CXX=
10157 lt_prog_compiler_static_CXX='-non_shared'
10166 case $cc_basename in
10168 lt_prog_compiler_pic_CXX='-fPIC'
10175 case $cc_basename in
10177 # Sun C++ 4.2, 5.x and Centerline C++
10178 lt_prog_compiler_pic_CXX='-KPIC'
10179 lt_prog_compiler_static_CXX='-Bstatic'
10180 lt_prog_compiler_wl_CXX='-Qoption ld '
10183 # Green Hills C++ Compiler
10184 lt_prog_compiler_pic_CXX='-PIC'
10191 case $cc_basename in
10194 lt_prog_compiler_pic_CXX='-pic'
10195 lt_prog_compiler_static_CXX='-Bstatic'
10199 lt_prog_compiler_pic_CXX='-pic'
10206 case $cc_basename in
10208 # NonStop-UX NCC 3.20
10209 lt_prog_compiler_pic_CXX='-KPIC'
10220 lt_prog_compiler_can_build_shared_CXX=no
10225 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10226 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10229 # Check to make sure the PIC flag actually works.
10231 if test -n "$lt_prog_compiler_pic_CXX"; then
10232 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10233 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10234 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10235 echo $ECHO_N "(cached) $ECHO_C" >&6
10237 lt_prog_compiler_pic_works_CXX=no
10238 ac_outfile=conftest.$ac_objext
10239 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10240 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10241 # Insert the option either (1) after the last *FLAGS variable, or
10242 # (2) before a word containing "conftest.", or (3) at the end.
10243 # Note that $ac_compile itself does not contain backslashes and begins
10244 # with a dollar sign (not a hyphen), so the echo should work correctly.
10245 # The option is referenced via a variable to avoid confusing sed.
10246 lt_compile=`echo "$ac_compile" | $SED \
10247 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10248 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10249 -e 's:$: $lt_compiler_flag:'`
10250 (eval echo "\"\$as_me:10250: $lt_compile\"" >&5)
10251 (eval "$lt_compile" 2>conftest.err)
10253 cat conftest.err >&5
10254 echo "$as_me:10254: \$? = $ac_status" >&5
10255 if (exit $ac_status) && test -s "$ac_outfile"; then
10256 # The compiler can only warn and ignore the option if not recognized
10257 # So say no if there are warnings
10258 if test ! -s conftest.err; then
10259 lt_prog_compiler_pic_works_CXX=yes
10265 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10266 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10268 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10269 case $lt_prog_compiler_pic_CXX in
10271 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10274 lt_prog_compiler_pic_CXX=
10275 lt_prog_compiler_can_build_shared_CXX=no
10280 # For platforms which do not support PIC, -DPIC is meaningless:
10282 lt_prog_compiler_pic_CXX=
10285 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10289 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10290 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10291 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10292 echo $ECHO_N "(cached) $ECHO_C" >&6
10294 lt_cv_prog_compiler_c_o_CXX=no
10295 $rm -r conftest 2>/dev/null
10299 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10301 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10302 # that will create temporary files in the current directory regardless of
10303 # the output directory. Thus, making CWD read-only will cause this test
10304 # to fail, enabling locking or at least warning the user not to do parallel
10308 lt_compiler_flag="-o out/conftest2.$ac_objext"
10309 # Insert the option either (1) after the last *FLAGS variable, or
10310 # (2) before a word containing "conftest.", or (3) at the end.
10311 # Note that $ac_compile itself does not contain backslashes and begins
10312 # with a dollar sign (not a hyphen), so the echo should work correctly.
10313 lt_compile=`echo "$ac_compile" | $SED \
10314 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10315 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10316 -e 's:$: $lt_compiler_flag:'`
10317 (eval echo "\"\$as_me:10317: $lt_compile\"" >&5)
10318 (eval "$lt_compile" 2>out/conftest.err)
10320 cat out/conftest.err >&5
10321 echo "$as_me:10321: \$? = $ac_status" >&5
10322 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10324 # The compiler can only warn and ignore the option if not recognized
10325 # So say no if there are warnings
10326 if test ! -s out/conftest.err; then
10327 lt_cv_prog_compiler_c_o_CXX=yes
10331 $rm conftest* out/*
10338 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10339 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10342 hard_links="nottested"
10343 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10344 # do not overwrite the value of need_locks provided by the user
10345 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10346 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10349 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10351 ln conftest.a conftest.b 2>&5 || hard_links=no
10352 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10353 echo "$as_me:$LINENO: result: $hard_links" >&5
10354 echo "${ECHO_T}$hard_links" >&6
10355 if test "$hard_links" = no; then
10356 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10357 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10364 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10365 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10367 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10370 # If we're using GNU nm, then we don't want the "-C" option.
10371 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10372 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10373 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'
10375 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'
10379 export_symbols_cmds_CXX="$ltdll_cmds"
10382 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10385 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10389 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10390 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10391 test "$ld_shlibs_CXX" = no && can_build_shared=no
10393 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10394 if test "$GCC" = yes; then
10395 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10399 # Do we need to explicitly link libc?
10401 case "x$archive_cmds_need_lc_CXX" in
10403 # Assume -lc should be added
10404 archive_cmds_need_lc_CXX=yes
10406 if test "$enable_shared" = yes && test "$GCC" = yes; then
10407 case $archive_cmds_CXX in
10409 # FIXME: we may have to deal with multi-command sequences.
10412 # Test whether the compiler implicitly links with -lc since on some
10413 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10414 # to ld, don't add -lc before -lgcc.
10415 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10416 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10418 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10421 (eval $ac_compile) 2>&5
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); } 2>conftest.err; then
10427 libobjs=conftest.$ac_objext
10429 wl=$lt_prog_compiler_wl_CXX
10435 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10436 allow_undefined_flag_CXX=
10437 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10438 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 (exit $ac_status); }
10443 archive_cmds_need_lc_CXX=no
10445 archive_cmds_need_lc_CXX=yes
10447 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10449 cat conftest.err 1>&5
10452 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10453 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10460 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10461 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10462 hardcode_action_CXX=
10463 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10464 test -n "$runpath_var CXX" || \
10465 test "X$hardcode_automatic_CXX"="Xyes" ; then
10467 # We can hardcode non-existant directories.
10468 if test "$hardcode_direct_CXX" != no &&
10469 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10470 # have to relink, otherwise we might link with an installed library
10471 # when we should be linking with a yet-to-be-installed one
10472 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10473 test "$hardcode_minus_L_CXX" != no; then
10474 # Linking always hardcodes the temporary library directory.
10475 hardcode_action_CXX=relink
10477 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10478 hardcode_action_CXX=immediate
10481 # We cannot hardcode anything, or else we can only hardcode existing
10483 hardcode_action_CXX=unsupported
10485 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10486 echo "${ECHO_T}$hardcode_action_CXX" >&6
10488 if test "$hardcode_action_CXX" = relink; then
10489 # Fast installation is not supported
10490 enable_fast_install=no
10491 elif test "$shlibpath_overrides_runpath" = yes ||
10492 test "$enable_shared" = no; then
10493 # Fast installation is not necessary
10494 enable_fast_install=needless
10499 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10500 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10501 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10502 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10503 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10504 echo "$as_me:$LINENO: result: yes" >&5
10505 echo "${ECHO_T}yes" >&6
10507 # FIXME - insert some real tests, host_os isn't really good enough
10510 if test -n "$STRIP" ; then
10511 striplib="$STRIP -x"
10512 echo "$as_me:$LINENO: result: yes" >&5
10513 echo "${ECHO_T}yes" >&6
10515 echo "$as_me:$LINENO: result: no" >&5
10516 echo "${ECHO_T}no" >&6
10520 echo "$as_me:$LINENO: result: no" >&5
10521 echo "${ECHO_T}no" >&6
10526 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10527 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10528 library_names_spec=
10529 libname_spec='lib$name'
10533 postuninstall_cmds=
10537 shlibpath_overrides_runpath=unknown
10539 dynamic_linker="$host_os ld.so"
10540 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10541 if test "$GCC" = yes; then
10542 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10543 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10544 # if the path contains ";" then we assume it to be the separator
10545 # otherwise default to the standard path separator (i.e. ":") - it is
10546 # assumed that no part of a normal pathname contains ";" but that should
10547 # okay in the real world where ";" in dirpaths is itself problematic.
10548 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10550 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10553 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10555 need_lib_prefix=unknown
10556 hardcode_into_libs=no
10558 # when you set need_version to no, make sure it does not cause -set_version
10559 # flags to be left without arguments
10560 need_version=unknown
10565 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10566 shlibpath_var=LIBPATH
10568 # AIX 3 has no versioning support, so we append a major version to the name.
10569 soname_spec='${libname}${release}${shared_ext}$major'
10576 hardcode_into_libs=yes
10577 if test "$host_cpu" = ia64; then
10578 # AIX 5 supports IA64
10579 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10580 shlibpath_var=LD_LIBRARY_PATH
10582 # With GCC up to 2.95.x, collect2 would create an import file
10583 # for dependence libraries. The import file would start with
10584 # the line `#! .'. This would cause the generated library to
10585 # depend on `.', always an invalid library. This was fixed in
10586 # development snapshots of GCC prior to 3.0.
10588 aix4 | aix4.[01] | aix4.[01].*)
10589 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10591 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10594 can_build_shared=no
10598 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10599 # soname into executable. Probably we can add versioning support to
10600 # collect2, so additional links can be useful in future.
10601 if test "$aix_use_runtimelinking" = yes; then
10602 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10603 # instead of lib<name>.a to let people know that these are not
10604 # typical AIX shared libraries.
10605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10607 # We preserve .a as extension for shared libraries through AIX4.2
10608 # and later when we are not doing run time linking.
10609 library_names_spec='${libname}${release}.a $libname.a'
10610 soname_spec='${libname}${release}${shared_ext}$major'
10612 shlibpath_var=LIBPATH
10617 library_names_spec='$libname.ixlibrary $libname.a'
10618 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10619 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'
10623 library_names_spec='${libname}${shared_ext}'
10624 dynamic_linker="$host_os ld.so"
10625 shlibpath_var=LIBRARY_PATH
10631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10632 soname_spec='${libname}${release}${shared_ext}$major'
10633 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10634 shlibpath_var=LD_LIBRARY_PATH
10635 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10636 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10637 # the default ld.so.conf also contains /usr/contrib/lib and
10638 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10639 # libtool to hard-code these into programs
10642 cygwin* | mingw* | pw32*)
10643 version_type=windows
10648 case $GCC,$host_os in
10649 yes,cygwin* | yes,mingw* | yes,pw32*)
10650 library_names_spec='$libname.dll.a'
10651 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10652 postinstall_cmds='base_file=`basename \${file}`~
10653 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10654 dldir=$destdir/`dirname \$dlpath`~
10655 test -d \$dldir || mkdir -p \$dldir~
10656 $install_prog $dir/$dlname \$dldir/$dlname'
10657 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10658 dlpath=$dir/\$dldll~
10660 shlibpath_overrides_runpath=yes
10664 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10665 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10666 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10669 # MinGW DLLs use traditional 'lib' prefix
10670 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10671 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10672 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10673 # It is most probably a Windows format PATH printed by
10674 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10675 # path with ; separators, and with drive letters. We can handle the
10676 # drive letters (cygwin fileutils understands them), so leave them,
10677 # especially as we might pass files found there to a mingw objdump,
10678 # which wouldn't understand a cygwinified path. Ahh.
10679 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10681 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10685 # pw32 DLLs use 'pw' prefix rather than 'lib'
10686 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10692 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10695 dynamic_linker='Win32 ld.exe'
10696 # FIXME: first we should search . and the directory the executable is in
10700 darwin* | rhapsody*)
10701 dynamic_linker="$host_os dyld"
10702 version_type=darwin
10705 # FIXME: Relying on posixy $() will cause problems for
10706 # cross-compilation, but unfortunately the echo tests do not
10707 # yet detect zsh echo's removal of \ escapes.
10708 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10709 soname_spec='${libname}${release}${major}$shared_ext'
10710 shlibpath_overrides_runpath=yes
10711 shlibpath_var=DYLD_LIBRARY_PATH
10712 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10713 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10714 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10715 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"`
10717 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10725 soname_spec='${libname}${release}${shared_ext}$major'
10726 shlibpath_var=LD_LIBRARY_PATH
10734 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10735 version_type=freebsd-$objformat
10736 case $version_type in
10738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10743 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10747 shlibpath_var=LD_LIBRARY_PATH
10750 shlibpath_overrides_runpath=yes
10752 freebsd3.01* | freebsdelf3.01*)
10753 shlibpath_overrides_runpath=yes
10754 hardcode_into_libs=yes
10757 shlibpath_overrides_runpath=no
10758 hardcode_into_libs=yes
10767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10768 soname_spec='${libname}${release}${shared_ext}$major'
10769 shlibpath_var=LD_LIBRARY_PATH
10770 hardcode_into_libs=yes
10773 hpux9* | hpux10* | hpux11*)
10774 # Give a soname corresponding to the major version so that dld.sl refuses to
10775 # link against other versions.
10779 case "$host_cpu" in
10782 hardcode_into_libs=yes
10783 dynamic_linker="$host_os dld.so"
10784 shlibpath_var=LD_LIBRARY_PATH
10785 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10787 soname_spec='${libname}${release}${shared_ext}$major'
10788 if test "X$HPUX_IA64_MODE" = X32; then
10789 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10791 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10793 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10797 hardcode_into_libs=yes
10798 dynamic_linker="$host_os dld.sl"
10799 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10800 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10802 soname_spec='${libname}${release}${shared_ext}$major'
10803 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10804 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10808 dynamic_linker="$host_os dld.sl"
10809 shlibpath_var=SHLIB_PATH
10810 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10812 soname_spec='${libname}${release}${shared_ext}$major'
10815 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10816 postinstall_cmds='chmod 555 $lib'
10819 irix5* | irix6* | nonstopux*)
10821 nonstopux*) version_type=nonstopux ;;
10823 if test "$lt_cv_prog_gnu_ld" = yes; then
10831 soname_spec='${libname}${release}${shared_ext}$major'
10832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10834 irix5* | nonstopux*)
10835 libsuff= shlibsuff=
10838 case $LD in # libtool.m4 will add one of these switches to LD
10839 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10840 libsuff= shlibsuff= libmagic=32-bit;;
10841 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10842 libsuff=32 shlibsuff=N32 libmagic=N32;;
10843 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10844 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10845 *) libsuff= shlibsuff= libmagic=never-match;;
10849 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10850 shlibpath_overrides_runpath=no
10851 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10852 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10853 hardcode_into_libs=yes
10856 # No shared lib support for Linux oldld, aout, or coff.
10857 linux*oldld* | linux*aout* | linux*coff*)
10861 # This must be Linux ELF.
10866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10867 soname_spec='${libname}${release}${shared_ext}$major'
10868 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10869 shlibpath_var=LD_LIBRARY_PATH
10870 shlibpath_overrides_runpath=no
10871 # This implies no fast_install, which is unacceptable.
10872 # Some rework will be needed to allow for fast_install
10873 # before this can be enabled.
10874 hardcode_into_libs=yes
10876 # We used to test for /lib/ld.so.1 and disable shared libraries on
10877 # powerpc, because MkLinux only supported shared libraries with the
10878 # GNU dynamic linker. Since this was broken with cross compilers,
10879 # most powerpc-linux boxes support dynamic linking these days and
10880 # people can always --disable-shared, the test was removed, and we
10881 # assume the GNU/Linux dynamic linker is in use.
10882 dynamic_linker='GNU/Linux ld.so'
10889 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10891 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10892 dynamic_linker='NetBSD (a.out) ld.so'
10894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
10895 soname_spec='${libname}${release}${shared_ext}$major'
10896 dynamic_linker='NetBSD ld.elf_so'
10898 shlibpath_var=LD_LIBRARY_PATH
10899 shlibpath_overrides_runpath=yes
10900 hardcode_into_libs=yes
10905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10906 shlibpath_var=LD_LIBRARY_PATH
10907 shlibpath_overrides_runpath=yes
10914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10915 soname_spec='${libname}${release}${shared_ext}$major'
10916 shlibpath_var=LD_LIBRARY_PATH
10917 shlibpath_overrides_runpath=yes
10924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10925 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10926 shlibpath_var=LD_LIBRARY_PATH
10927 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10929 openbsd2.[89] | openbsd2.[89].*)
10930 shlibpath_overrides_runpath=no
10933 shlibpath_overrides_runpath=yes
10937 shlibpath_overrides_runpath=yes
10942 libname_spec='$name'
10945 library_names_spec='$libname${shared_ext} $libname.a'
10946 dynamic_linker='OS/2 ld.exe'
10947 shlibpath_var=LIBPATH
10950 osf3* | osf4* | osf5*)
10954 soname_spec='${libname}${release}${shared_ext}$major'
10955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10956 shlibpath_var=LD_LIBRARY_PATH
10957 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10958 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10963 soname_spec='${libname}${release}${shared_ext}$major'
10964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10965 shlibpath_var=LD_LIBRARY_PATH
10972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10973 soname_spec='${libname}${release}${shared_ext}$major'
10974 shlibpath_var=LD_LIBRARY_PATH
10975 shlibpath_overrides_runpath=yes
10976 hardcode_into_libs=yes
10977 # ldd complains unless libraries are executable
10978 postinstall_cmds='chmod +x $lib'
10983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10984 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10985 shlibpath_var=LD_LIBRARY_PATH
10986 shlibpath_overrides_runpath=yes
10987 if test "$with_gnu_ld" = yes; then
10993 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10996 soname_spec='${libname}${release}${shared_ext}$major'
10997 shlibpath_var=LD_LIBRARY_PATH
10998 case $host_vendor in
11000 shlibpath_overrides_runpath=no
11002 export_dynamic_flag_spec='${wl}-Blargedynsym'
11003 runpath_var=LD_RUN_PATH
11011 shlibpath_overrides_runpath=no
11012 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11018 if test -d /usr/nec ;then
11020 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11021 soname_spec='$libname${shared_ext}.$major'
11022 shlibpath_var=LD_LIBRARY_PATH
11028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11029 soname_spec='${libname}${release}${shared_ext}$major'
11030 shlibpath_var=LD_LIBRARY_PATH
11037 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11038 echo "${ECHO_T}$dynamic_linker" >&6
11039 test "$dynamic_linker" = no && can_build_shared=no
11041 if test "x$enable_dlopen" != xyes; then
11042 enable_dlopen=unknown
11043 enable_dlopen_self=unknown
11044 enable_dlopen_self_static=unknown
11051 lt_cv_dlopen="load_add_on"
11053 lt_cv_dlopen_self=yes
11057 lt_cv_dlopen="LoadLibrary"
11062 lt_cv_dlopen="dlopen"
11067 # if libdl is installed we need to link against it
11068 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11069 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11070 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11071 echo $ECHO_N "(cached) $ECHO_C" >&6
11073 ac_check_lib_save_LIBS=$LIBS
11075 cat >conftest.$ac_ext <<_ACEOF
11076 #line $LINENO "configure"
11079 cat confdefs.h >>conftest.$ac_ext
11080 cat >>conftest.$ac_ext <<_ACEOF
11081 /* end confdefs.h. */
11083 /* Override any gcc2 internal prototype to avoid an error. */
11087 /* We use char because int might match the return type of a gcc2
11088 builtin and then its argument prototype would still apply. */
11098 rm -f conftest.$ac_objext conftest$ac_exeext
11099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11100 (eval $ac_link) 2>&5
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); } &&
11104 { ac_try='test -s conftest$ac_exeext'
11105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11106 (eval $ac_try) 2>&5
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); }; }; then
11110 ac_cv_lib_dl_dlopen=yes
11112 echo "$as_me: failed program was:" >&5
11113 sed 's/^/| /' conftest.$ac_ext >&5
11115 ac_cv_lib_dl_dlopen=no
11117 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11118 LIBS=$ac_check_lib_save_LIBS
11120 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11121 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11122 if test $ac_cv_lib_dl_dlopen = yes; then
11123 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11126 lt_cv_dlopen="dyld"
11128 lt_cv_dlopen_self=yes
11135 echo "$as_me:$LINENO: checking for shl_load" >&5
11136 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11137 if test "${ac_cv_func_shl_load+set}" = set; then
11138 echo $ECHO_N "(cached) $ECHO_C" >&6
11140 cat >conftest.$ac_ext <<_ACEOF
11141 #line $LINENO "configure"
11144 cat confdefs.h >>conftest.$ac_ext
11145 cat >>conftest.$ac_ext <<_ACEOF
11146 /* end confdefs.h. */
11147 /* System header to define __stub macros and hopefully few prototypes,
11148 which can conflict with char shl_load (); below.
11149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11150 <limits.h> exists even on freestanding compilers. */
11152 # include <limits.h>
11154 # include <assert.h>
11156 /* Override any gcc2 internal prototype to avoid an error. */
11161 /* We use char because int might match the return type of a gcc2
11162 builtin and then its argument prototype would still apply. */
11164 /* The GNU C library defines this for functions which it implements
11165 to always fail with ENOSYS. Some functions are actually named
11166 something starting with __ and the normal name is an alias. */
11167 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11170 char (*f) () = shl_load;
11179 return f != shl_load;
11184 rm -f conftest.$ac_objext conftest$ac_exeext
11185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11186 (eval $ac_link) 2>&5
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); } &&
11190 { ac_try='test -s conftest$ac_exeext'
11191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11192 (eval $ac_try) 2>&5
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); }; }; then
11196 ac_cv_func_shl_load=yes
11198 echo "$as_me: failed program was:" >&5
11199 sed 's/^/| /' conftest.$ac_ext >&5
11201 ac_cv_func_shl_load=no
11203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11205 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11206 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11207 if test $ac_cv_func_shl_load = yes; then
11208 lt_cv_dlopen="shl_load"
11210 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11211 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11212 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11213 echo $ECHO_N "(cached) $ECHO_C" >&6
11215 ac_check_lib_save_LIBS=$LIBS
11217 cat >conftest.$ac_ext <<_ACEOF
11218 #line $LINENO "configure"
11221 cat confdefs.h >>conftest.$ac_ext
11222 cat >>conftest.$ac_ext <<_ACEOF
11223 /* end confdefs.h. */
11225 /* Override any gcc2 internal prototype to avoid an error. */
11229 /* We use char because int might match the return type of a gcc2
11230 builtin and then its argument prototype would still apply. */
11240 rm -f conftest.$ac_objext conftest$ac_exeext
11241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11242 (eval $ac_link) 2>&5
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); } &&
11246 { ac_try='test -s conftest$ac_exeext'
11247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11248 (eval $ac_try) 2>&5
11250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251 (exit $ac_status); }; }; then
11252 ac_cv_lib_dld_shl_load=yes
11254 echo "$as_me: failed program was:" >&5
11255 sed 's/^/| /' conftest.$ac_ext >&5
11257 ac_cv_lib_dld_shl_load=no
11259 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11260 LIBS=$ac_check_lib_save_LIBS
11262 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11263 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11264 if test $ac_cv_lib_dld_shl_load = yes; then
11265 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11267 echo "$as_me:$LINENO: checking for dlopen" >&5
11268 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11269 if test "${ac_cv_func_dlopen+set}" = set; then
11270 echo $ECHO_N "(cached) $ECHO_C" >&6
11272 cat >conftest.$ac_ext <<_ACEOF
11273 #line $LINENO "configure"
11276 cat confdefs.h >>conftest.$ac_ext
11277 cat >>conftest.$ac_ext <<_ACEOF
11278 /* end confdefs.h. */
11279 /* System header to define __stub macros and hopefully few prototypes,
11280 which can conflict with char dlopen (); below.
11281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11282 <limits.h> exists even on freestanding compilers. */
11284 # include <limits.h>
11286 # include <assert.h>
11288 /* Override any gcc2 internal prototype to avoid an error. */
11293 /* We use char because int might match the return type of a gcc2
11294 builtin and then its argument prototype would still apply. */
11296 /* The GNU C library defines this for functions which it implements
11297 to always fail with ENOSYS. Some functions are actually named
11298 something starting with __ and the normal name is an alias. */
11299 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11302 char (*f) () = dlopen;
11311 return f != dlopen;
11316 rm -f conftest.$ac_objext conftest$ac_exeext
11317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11318 (eval $ac_link) 2>&5
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); } &&
11322 { ac_try='test -s conftest$ac_exeext'
11323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11324 (eval $ac_try) 2>&5
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); }; }; then
11328 ac_cv_func_dlopen=yes
11330 echo "$as_me: failed program was:" >&5
11331 sed 's/^/| /' conftest.$ac_ext >&5
11333 ac_cv_func_dlopen=no
11335 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11337 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11338 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11339 if test $ac_cv_func_dlopen = yes; then
11340 lt_cv_dlopen="dlopen"
11342 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11343 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11344 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11345 echo $ECHO_N "(cached) $ECHO_C" >&6
11347 ac_check_lib_save_LIBS=$LIBS
11349 cat >conftest.$ac_ext <<_ACEOF
11350 #line $LINENO "configure"
11353 cat confdefs.h >>conftest.$ac_ext
11354 cat >>conftest.$ac_ext <<_ACEOF
11355 /* end confdefs.h. */
11357 /* Override any gcc2 internal prototype to avoid an error. */
11361 /* We use char because int might match the return type of a gcc2
11362 builtin and then its argument prototype would still apply. */
11372 rm -f conftest.$ac_objext conftest$ac_exeext
11373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11374 (eval $ac_link) 2>&5
11376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377 (exit $ac_status); } &&
11378 { ac_try='test -s conftest$ac_exeext'
11379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11380 (eval $ac_try) 2>&5
11382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383 (exit $ac_status); }; }; then
11384 ac_cv_lib_dl_dlopen=yes
11386 echo "$as_me: failed program was:" >&5
11387 sed 's/^/| /' conftest.$ac_ext >&5
11389 ac_cv_lib_dl_dlopen=no
11391 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11392 LIBS=$ac_check_lib_save_LIBS
11394 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11395 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11396 if test $ac_cv_lib_dl_dlopen = yes; then
11397 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11399 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11400 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11401 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11402 echo $ECHO_N "(cached) $ECHO_C" >&6
11404 ac_check_lib_save_LIBS=$LIBS
11405 LIBS="-lsvld $LIBS"
11406 cat >conftest.$ac_ext <<_ACEOF
11407 #line $LINENO "configure"
11410 cat confdefs.h >>conftest.$ac_ext
11411 cat >>conftest.$ac_ext <<_ACEOF
11412 /* end confdefs.h. */
11414 /* Override any gcc2 internal prototype to avoid an error. */
11418 /* We use char because int might match the return type of a gcc2
11419 builtin and then its argument prototype would still apply. */
11429 rm -f conftest.$ac_objext conftest$ac_exeext
11430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11431 (eval $ac_link) 2>&5
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); } &&
11435 { ac_try='test -s conftest$ac_exeext'
11436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11437 (eval $ac_try) 2>&5
11439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440 (exit $ac_status); }; }; then
11441 ac_cv_lib_svld_dlopen=yes
11443 echo "$as_me: failed program was:" >&5
11444 sed 's/^/| /' conftest.$ac_ext >&5
11446 ac_cv_lib_svld_dlopen=no
11448 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11449 LIBS=$ac_check_lib_save_LIBS
11451 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11452 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11453 if test $ac_cv_lib_svld_dlopen = yes; then
11454 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11456 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11457 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11458 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11459 echo $ECHO_N "(cached) $ECHO_C" >&6
11461 ac_check_lib_save_LIBS=$LIBS
11463 cat >conftest.$ac_ext <<_ACEOF
11464 #line $LINENO "configure"
11467 cat confdefs.h >>conftest.$ac_ext
11468 cat >>conftest.$ac_ext <<_ACEOF
11469 /* end confdefs.h. */
11471 /* Override any gcc2 internal prototype to avoid an error. */
11475 /* We use char because int might match the return type of a gcc2
11476 builtin and then its argument prototype would still apply. */
11486 rm -f conftest.$ac_objext conftest$ac_exeext
11487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11488 (eval $ac_link) 2>&5
11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491 (exit $ac_status); } &&
11492 { ac_try='test -s conftest$ac_exeext'
11493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11494 (eval $ac_try) 2>&5
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); }; }; then
11498 ac_cv_lib_dld_dld_link=yes
11500 echo "$as_me: failed program was:" >&5
11501 sed 's/^/| /' conftest.$ac_ext >&5
11503 ac_cv_lib_dld_dld_link=no
11505 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11506 LIBS=$ac_check_lib_save_LIBS
11508 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11509 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11510 if test $ac_cv_lib_dld_dld_link = yes; then
11511 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11532 if test "x$lt_cv_dlopen" != xno; then
11538 case $lt_cv_dlopen in
11540 save_CPPFLAGS="$CPPFLAGS"
11541 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11543 save_LDFLAGS="$LDFLAGS"
11544 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11547 LIBS="$lt_cv_dlopen_libs $LIBS"
11549 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11550 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11551 if test "${lt_cv_dlopen_self+set}" = set; then
11552 echo $ECHO_N "(cached) $ECHO_C" >&6
11554 if test "$cross_compiling" = yes; then :
11555 lt_cv_dlopen_self=cross
11557 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11558 lt_status=$lt_dlunknown
11559 cat > conftest.$ac_ext <<EOF
11560 #line 11560 "configure"
11561 #include "confdefs.h"
11570 # define LT_DLGLOBAL RTLD_GLOBAL
11573 # define LT_DLGLOBAL DL_GLOBAL
11575 # define LT_DLGLOBAL 0
11579 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11580 find out it does not work in some platform. */
11581 #ifndef LT_DLLAZY_OR_NOW
11583 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11586 # define LT_DLLAZY_OR_NOW DL_LAZY
11589 # define LT_DLLAZY_OR_NOW RTLD_NOW
11592 # define LT_DLLAZY_OR_NOW DL_NOW
11594 # define LT_DLLAZY_OR_NOW 0
11602 extern "C" void exit (int);
11605 void fnord() { int i=42;}
11608 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11609 int status = $lt_dlunknown;
11613 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11614 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11615 /* dlclose (self); */
11621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11622 (eval $ac_link) 2>&5
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11626 (./conftest; exit; ) 2>/dev/null
11628 case x$lt_status in
11629 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11630 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11631 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11634 # compilation failed
11635 lt_cv_dlopen_self=no
11642 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11643 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11645 if test "x$lt_cv_dlopen_self" = xyes; then
11646 LDFLAGS="$LDFLAGS $link_static_flag"
11647 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11648 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11649 if test "${lt_cv_dlopen_self_static+set}" = set; then
11650 echo $ECHO_N "(cached) $ECHO_C" >&6
11652 if test "$cross_compiling" = yes; then :
11653 lt_cv_dlopen_self_static=cross
11655 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11656 lt_status=$lt_dlunknown
11657 cat > conftest.$ac_ext <<EOF
11658 #line 11658 "configure"
11659 #include "confdefs.h"
11668 # define LT_DLGLOBAL RTLD_GLOBAL
11671 # define LT_DLGLOBAL DL_GLOBAL
11673 # define LT_DLGLOBAL 0
11677 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11678 find out it does not work in some platform. */
11679 #ifndef LT_DLLAZY_OR_NOW
11681 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11684 # define LT_DLLAZY_OR_NOW DL_LAZY
11687 # define LT_DLLAZY_OR_NOW RTLD_NOW
11690 # define LT_DLLAZY_OR_NOW DL_NOW
11692 # define LT_DLLAZY_OR_NOW 0
11700 extern "C" void exit (int);
11703 void fnord() { int i=42;}
11706 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11707 int status = $lt_dlunknown;
11711 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11712 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11713 /* dlclose (self); */
11719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11720 (eval $ac_link) 2>&5
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11724 (./conftest; exit; ) 2>/dev/null
11726 case x$lt_status in
11727 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11728 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11729 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11732 # compilation failed
11733 lt_cv_dlopen_self_static=no
11740 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11741 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11744 CPPFLAGS="$save_CPPFLAGS"
11745 LDFLAGS="$save_LDFLAGS"
11750 case $lt_cv_dlopen_self in
11751 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11752 *) enable_dlopen_self=unknown ;;
11755 case $lt_cv_dlopen_self_static in
11756 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11757 *) enable_dlopen_self_static=unknown ;;
11762 # The else clause should only fire when bootstrapping the
11763 # libtool distribution, otherwise you forgot to ship ltmain.sh
11764 # with your package, and you will get complaints that there are
11765 # no rules to generate ltmain.sh.
11766 if test -f "$ltmain"; then
11767 # See if we are running on zsh, and set the options which allow our commands through
11768 # without removal of \ escapes.
11769 if test -n "${ZSH_VERSION+set}" ; then
11770 setopt NO_GLOB_SUBST
11772 # Now quote all the things that may contain metacharacters while being
11773 # careful not to overquote the AC_SUBSTed values. We take copies of the
11774 # variables and quote the copies for generation of the libtool script.
11775 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11776 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11777 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11778 deplibs_check_method reload_flag reload_cmds need_locks \
11779 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11780 lt_cv_sys_global_symbol_to_c_name_address \
11781 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11782 old_postinstall_cmds old_postuninstall_cmds \
11786 lt_prog_compiler_wl_CXX \
11787 lt_prog_compiler_pic_CXX \
11788 lt_prog_compiler_static_CXX \
11789 lt_prog_compiler_no_builtin_flag_CXX \
11790 export_dynamic_flag_spec_CXX \
11791 thread_safe_flag_spec_CXX \
11792 whole_archive_flag_spec_CXX \
11793 enable_shared_with_static_runtimes_CXX \
11794 old_archive_cmds_CXX \
11795 old_archive_from_new_cmds_CXX \
11796 predep_objects_CXX \
11797 postdep_objects_CXX \
11800 compiler_lib_search_path_CXX \
11802 archive_expsym_cmds_CXX \
11803 postinstall_cmds_CXX \
11804 postuninstall_cmds_CXX \
11805 old_archive_from_expsyms_cmds_CXX \
11806 allow_undefined_flag_CXX \
11807 no_undefined_flag_CXX \
11808 export_symbols_cmds_CXX \
11809 hardcode_libdir_flag_spec_CXX \
11810 hardcode_libdir_flag_spec_ld_CXX \
11811 hardcode_libdir_separator_CXX \
11812 hardcode_automatic_CXX \
11814 module_expsym_cmds_CXX \
11815 lt_cv_prog_compiler_c_o_CXX \
11816 exclude_expsyms_CXX \
11817 include_expsyms_CXX; do
11820 old_archive_cmds_CXX | \
11821 old_archive_from_new_cmds_CXX | \
11822 archive_cmds_CXX | \
11823 archive_expsym_cmds_CXX | \
11824 module_cmds_CXX | \
11825 module_expsym_cmds_CXX | \
11826 old_archive_from_expsyms_cmds_CXX | \
11827 export_symbols_cmds_CXX | \
11828 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11829 postinstall_cmds | postuninstall_cmds | \
11830 old_postinstall_cmds | old_postuninstall_cmds | \
11831 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11832 # Double-quote double-evaled strings.
11833 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11836 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11842 *'\$0 --fallback-echo"')
11843 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11849 cat <<__EOF__ >> "$cfgfile"
11850 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11852 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11854 # Shell to use when invoking shell scripts.
11857 # Whether or not to build shared libraries.
11858 build_libtool_libs=$enable_shared
11860 # Whether or not to build static libraries.
11861 build_old_libs=$enable_static
11863 # Whether or not to add -lc for building shared libraries.
11864 build_libtool_need_lc=$archive_cmds_need_lc_CXX
11866 # Whether or not to disallow shared libs when runtime libs are static
11867 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
11869 # Whether or not to optimize for fast installation.
11870 fast_install=$enable_fast_install
11873 host_alias=$host_alias
11876 # An echo program that does not interpret backslashes.
11881 AR_FLAGS=$lt_AR_FLAGS
11886 # A language-specific compiler.
11887 CC=$lt_compiler_CXX
11889 # Is the compiler the GNU C compiler?
11895 # The linker used to build libraries.
11898 # Whether we need hard or soft links.
11901 # A BSD-compatible nm program.
11904 # A symbol stripping program
11907 # Used to examine libraries when file_magic_cmd begins "file"
11908 MAGIC_CMD=$MAGIC_CMD
11910 # Used on cygwin: DLL creation program.
11913 # Used on cygwin: object dumper.
11916 # Used on cygwin: assembler.
11919 # The name of the directory that contains temporary libtool files.
11922 # How to create reloadable object files.
11923 reload_flag=$lt_reload_flag
11924 reload_cmds=$lt_reload_cmds
11926 # How to pass a linker flag through the compiler.
11927 wl=$lt_lt_prog_compiler_wl_CXX
11929 # Object file suffix (normally "o").
11930 objext="$ac_objext"
11932 # Old archive suffix (normally "a").
11935 # Shared library suffix (normally ".so").
11938 # Executable file suffix (normally "").
11941 # Additional compiler flags for building library objects.
11942 pic_flag=$lt_lt_prog_compiler_pic_CXX
11945 # What is the maximum length of a command?
11946 max_cmd_len=$lt_cv_sys_max_cmd_len
11948 # Does compiler simultaneously support -c and -o options?
11949 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
11951 # Must we lock files when doing compilation ?
11952 need_locks=$lt_need_locks
11954 # Do we need the lib prefix for modules?
11955 need_lib_prefix=$need_lib_prefix
11957 # Do we need a version for libraries?
11958 need_version=$need_version
11960 # Whether dlopen is supported.
11961 dlopen_support=$enable_dlopen
11963 # Whether dlopen of programs is supported.
11964 dlopen_self=$enable_dlopen_self
11966 # Whether dlopen of statically linked programs is supported.
11967 dlopen_self_static=$enable_dlopen_self_static
11969 # Compiler flag to prevent dynamic linking.
11970 link_static_flag=$lt_lt_prog_compiler_static_CXX
11972 # Compiler flag to turn off builtin functions.
11973 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
11975 # Compiler flag to allow reflexive dlopens.
11976 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
11978 # Compiler flag to generate shared objects directly from archives.
11979 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
11981 # Compiler flag to generate thread-safe objects.
11982 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
11984 # Library versioning type.
11985 version_type=$version_type
11987 # Format of library name prefix.
11988 libname_spec=$lt_libname_spec
11990 # List of archive names. First name is the real one, the rest are links.
11991 # The last name is the one that the linker finds with -lNAME.
11992 library_names_spec=$lt_library_names_spec
11994 # The coded name of the library, if different from the real name.
11995 soname_spec=$lt_soname_spec
11997 # Commands used to build and install an old-style archive.
11999 old_archive_cmds=$lt_old_archive_cmds_CXX
12000 old_postinstall_cmds=$lt_old_postinstall_cmds
12001 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12003 # Create an old-style archive from a shared archive.
12004 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12006 # Create a temporary old-style archive to link instead of a shared archive.
12007 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12009 # Commands used to build and install a shared archive.
12010 archive_cmds=$lt_archive_cmds_CXX
12011 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12012 postinstall_cmds=$lt_postinstall_cmds
12013 postuninstall_cmds=$lt_postuninstall_cmds
12015 # Commands used to build a loadable module (assumed same as above if empty)
12016 module_cmds=$lt_module_cmds_CXX
12017 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12019 # Commands to strip libraries.
12020 old_striplib=$lt_old_striplib
12021 striplib=$lt_striplib
12023 # Dependencies to place before the objects being linked to create a
12025 predep_objects=$lt_predep_objects_CXX
12027 # Dependencies to place after the objects being linked to create a
12029 postdep_objects=$lt_postdep_objects_CXX
12031 # Dependencies to place before the objects being linked to create a
12033 predeps=$lt_predeps_CXX
12035 # Dependencies to place after the objects being linked to create a
12037 postdeps=$lt_postdeps_CXX
12039 # The library search path used internally by the compiler when linking
12040 # a shared library.
12041 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12043 # Method to check whether dependent libraries are shared objects.
12044 deplibs_check_method=$lt_deplibs_check_method
12046 # Command to use when deplibs_check_method == file_magic.
12047 file_magic_cmd=$lt_file_magic_cmd
12049 # Flag that allows shared libraries with undefined symbols to be built.
12050 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12052 # Flag that forces no undefined symbols.
12053 no_undefined_flag=$lt_no_undefined_flag_CXX
12055 # Commands used to finish a libtool library installation in a directory.
12056 finish_cmds=$lt_finish_cmds
12058 # Same as above, but a single script fragment to be evaled but not shown.
12059 finish_eval=$lt_finish_eval
12061 # Take the output of nm and produce a listing of raw symbols and C names.
12062 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12064 # Transform the output of nm in a proper C declaration
12065 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12067 # Transform the output of nm in a C name address pair
12068 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12070 # This is the shared library runtime path variable.
12071 runpath_var=$runpath_var
12073 # This is the shared library path variable.
12074 shlibpath_var=$shlibpath_var
12076 # Is shlibpath searched before the hard-coded library search path?
12077 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12079 # How to hardcode a shared library path into an executable.
12080 hardcode_action=$hardcode_action_CXX
12082 # Whether we should hardcode library paths into libraries.
12083 hardcode_into_libs=$hardcode_into_libs
12085 # Flag to hardcode \$libdir into a binary during linking.
12086 # This must work even if \$libdir does not exist.
12087 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12089 # If ld is used when linking, flag to hardcode \$libdir into
12090 # a binary during linking. This must work even if \$libdir does
12092 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12094 # Whether we need a single -rpath flag with a separated argument.
12095 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12097 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12098 # resulting binary.
12099 hardcode_direct=$hardcode_direct_CXX
12101 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12102 # resulting binary.
12103 hardcode_minus_L=$hardcode_minus_L_CXX
12105 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12106 # the resulting binary.
12107 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12109 # Set to yes if building a shared library automatically hardcodes DIR into the library
12110 # and all subsequent libraries and executables linked against it.
12111 hardcode_automatic=$hardcode_automatic_CXX
12113 # Variables whose values should be saved in libtool wrapper scripts and
12114 # restored at relink time.
12115 variables_saved_for_relink="$variables_saved_for_relink"
12117 # Whether libtool must link a program against all its dependency libraries.
12118 link_all_deplibs=$link_all_deplibs_CXX
12120 # Compile-time system search path for libraries
12121 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12123 # Run-time system search path for libraries
12124 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12126 # Fix the shell variable \$srcfile for the compiler.
12127 fix_srcfile_path="$fix_srcfile_path_CXX"
12129 # Set to yes if exported symbols are required.
12130 always_export_symbols=$always_export_symbols_CXX
12132 # The commands to list exported symbols.
12133 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12135 # The commands to extract the exported symbol list from a shared archive.
12136 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12138 # Symbols that should not be listed in the preloaded symbols.
12139 exclude_expsyms=$lt_exclude_expsyms_CXX
12141 # Symbols that must always be exported.
12142 include_expsyms=$lt_include_expsyms_CXX
12144 # ### END LIBTOOL TAG CONFIG: $tagname
12150 # If there is no Makefile yet, we rely on a make rule to execute
12151 # `config.status --recheck' to rerun these tests and create the
12152 # libtool script then.
12153 test -f Makefile && make "$ltmain"
12158 ac_cpp='$CPP $CPPFLAGS'
12159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12167 with_gnu_ldcxx=$with_gnu_ld
12168 with_gnu_ld=$lt_save_with_gnu_ld
12169 lt_cv_path_LDCXX=$lt_cv_path_LD
12170 lt_cv_path_LD=$lt_save_path_LD
12171 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12172 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12180 if test -n "$F77" && test "X$F77" != "Xno"; then
12183 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12184 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12185 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12188 archive_cmds_need_lc_F77=no
12189 allow_undefined_flag_F77=
12190 always_export_symbols_F77=no
12191 archive_expsym_cmds_F77=
12192 export_dynamic_flag_spec_F77=
12193 hardcode_direct_F77=no
12194 hardcode_libdir_flag_spec_F77=
12195 hardcode_libdir_flag_spec_ld_F77=
12196 hardcode_libdir_separator_F77=
12197 hardcode_minus_L_F77=no
12198 hardcode_automatic_F77=no
12200 module_expsym_cmds_F77=
12201 link_all_deplibs_F77=unknown
12202 old_archive_cmds_F77=$old_archive_cmds
12203 no_undefined_flag_F77=
12204 whole_archive_flag_spec_F77=
12205 enable_shared_with_static_runtimes_F77=no
12207 # Source file extension for f77 test sources.
12210 # Object file extension for compiled f77 test sources.
12214 # Code to be used in simple compile tests
12215 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12217 # Code to be used in simple link tests
12218 lt_simple_link_test_code=" program t\n end\n"
12220 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12222 # If no C compiler was specified, use CC.
12225 # Allow CC to be a program name with arguments.
12229 # Allow CC to be a program name with arguments.
12234 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12236 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12237 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12238 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12239 echo "${ECHO_T}$can_build_shared" >&6
12241 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12242 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12243 test "$can_build_shared" = "no" && enable_shared=no
12245 # On AIX, shared libraries and static libraries use the same namespace, and
12246 # are all built from PIC.
12249 test "$enable_shared" = yes && enable_static=no
12250 if test -n "$RANLIB"; then
12251 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12252 postinstall_cmds='$RANLIB $lib'
12256 test "$enable_shared" = yes && enable_static=no
12259 echo "$as_me:$LINENO: result: $enable_shared" >&5
12260 echo "${ECHO_T}$enable_shared" >&6
12262 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12263 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12264 # Make sure either enable_shared or enable_static is yes.
12265 test "$enable_shared" = yes || enable_static=yes
12266 echo "$as_me:$LINENO: result: $enable_static" >&5
12267 echo "${ECHO_T}$enable_static" >&6
12269 test "$ld_shlibs_F77" = no && can_build_shared=no
12274 lt_prog_compiler_wl_F77=
12275 lt_prog_compiler_pic_F77=
12276 lt_prog_compiler_static_F77=
12278 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12279 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12281 if test "$GCC" = yes; then
12282 lt_prog_compiler_wl_F77='-Wl,'
12283 lt_prog_compiler_static_F77='-static'
12287 # All AIX code is PIC.
12288 if test "$host_cpu" = ia64; then
12289 # AIX 5 now supports IA64 processor
12290 lt_prog_compiler_static_F77='-Bstatic'
12295 # FIXME: we need at least 68020 code to build shared libraries, but
12296 # adding the `-m68020' flag to GCC prevents building anything better,
12298 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12301 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12302 # PIC is the default for these OSes.
12305 mingw* | pw32* | os2*)
12306 # This hack is so that the source file can tell whether it is being
12307 # built for inclusion in a dll (and should export symbols for example).
12308 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12311 darwin* | rhapsody*)
12312 # PIC is the default on this platform
12313 # Common symbols not allowed in MH_DYLIB files
12314 lt_prog_compiler_pic_F77='-fno-common'
12318 # Just because we use GCC doesn't mean we suddenly get shared libraries
12319 # on systems that don't support them.
12320 lt_prog_compiler_can_build_shared_F77=no
12325 if test -d /usr/nec; then
12326 lt_prog_compiler_pic_F77=-Kconform_pic
12331 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12332 # not for PA HP-UX.
12333 case "$host_cpu" in
12338 lt_prog_compiler_pic_F77='-fPIC'
12344 lt_prog_compiler_pic_F77='-fPIC'
12348 # PORTME Check for flag to pass linker flags through the system compiler.
12351 lt_prog_compiler_wl_F77='-Wl,'
12352 if test "$host_cpu" = ia64; then
12353 # AIX 5 now supports IA64 processor
12354 lt_prog_compiler_static_F77='-Bstatic'
12356 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12360 mingw* | pw32* | os2*)
12361 # This hack is so that the source file can tell whether it is being
12362 # built for inclusion in a dll (and should export symbols for example).
12363 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12366 hpux9* | hpux10* | hpux11*)
12367 lt_prog_compiler_wl_F77='-Wl,'
12368 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12369 # not for PA HP-UX.
12370 case "$host_cpu" in
12375 lt_prog_compiler_pic_F77='+Z'
12378 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12379 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12382 irix5* | irix6* | nonstopux*)
12383 lt_prog_compiler_wl_F77='-Wl,'
12384 # PIC (with -KPIC) is the default.
12385 lt_prog_compiler_static_F77='-non_shared'
12389 lt_prog_compiler_pic_F77='-KPIC'
12390 lt_prog_compiler_static_F77='-Bstatic'
12396 lt_prog_compiler_wl_F77='-Wl,'
12397 lt_prog_compiler_pic_F77='-KPIC'
12398 lt_prog_compiler_static_F77='-static'
12401 lt_prog_compiler_wl_F77='-Wl,'
12402 # All Alpha code is PIC.
12403 lt_prog_compiler_static_F77='-non_shared'
12408 osf3* | osf4* | osf5*)
12409 lt_prog_compiler_wl_F77='-Wl,'
12410 # All OSF/1 code is PIC.
12411 lt_prog_compiler_static_F77='-non_shared'
12415 lt_prog_compiler_pic_F77='-Kpic'
12416 lt_prog_compiler_static_F77='-dn'
12420 lt_prog_compiler_wl_F77='-Wl,'
12421 lt_prog_compiler_pic_F77='-KPIC'
12422 lt_prog_compiler_static_F77='-Bstatic'
12426 lt_prog_compiler_wl_F77='-Qoption ld '
12427 lt_prog_compiler_pic_F77='-PIC'
12428 lt_prog_compiler_static_F77='-Bstatic'
12431 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12432 lt_prog_compiler_wl_F77='-Wl,'
12433 lt_prog_compiler_pic_F77='-KPIC'
12434 lt_prog_compiler_static_F77='-Bstatic'
12438 if test -d /usr/nec ;then
12439 lt_prog_compiler_pic_F77='-Kconform_pic'
12440 lt_prog_compiler_static_F77='-Bstatic'
12445 lt_prog_compiler_pic_F77='-pic'
12446 lt_prog_compiler_static_F77='-Bstatic'
12450 lt_prog_compiler_can_build_shared_F77=no
12455 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12456 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12459 # Check to make sure the PIC flag actually works.
12461 if test -n "$lt_prog_compiler_pic_F77"; then
12462 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12463 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12464 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12465 echo $ECHO_N "(cached) $ECHO_C" >&6
12467 lt_prog_compiler_pic_works_F77=no
12468 ac_outfile=conftest.$ac_objext
12469 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12470 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12471 # Insert the option either (1) after the last *FLAGS variable, or
12472 # (2) before a word containing "conftest.", or (3) at the end.
12473 # Note that $ac_compile itself does not contain backslashes and begins
12474 # with a dollar sign (not a hyphen), so the echo should work correctly.
12475 # The option is referenced via a variable to avoid confusing sed.
12476 lt_compile=`echo "$ac_compile" | $SED \
12477 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12478 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12479 -e 's:$: $lt_compiler_flag:'`
12480 (eval echo "\"\$as_me:12480: $lt_compile\"" >&5)
12481 (eval "$lt_compile" 2>conftest.err)
12483 cat conftest.err >&5
12484 echo "$as_me:12484: \$? = $ac_status" >&5
12485 if (exit $ac_status) && test -s "$ac_outfile"; then
12486 # The compiler can only warn and ignore the option if not recognized
12487 # So say no if there are warnings
12488 if test ! -s conftest.err; then
12489 lt_prog_compiler_pic_works_F77=yes
12495 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12496 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12498 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12499 case $lt_prog_compiler_pic_F77 in
12501 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12504 lt_prog_compiler_pic_F77=
12505 lt_prog_compiler_can_build_shared_F77=no
12510 # For platforms which do not support PIC, -DPIC is meaningless:
12512 lt_prog_compiler_pic_F77=
12515 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12519 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12520 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12521 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12522 echo $ECHO_N "(cached) $ECHO_C" >&6
12524 lt_cv_prog_compiler_c_o_F77=no
12525 $rm -r conftest 2>/dev/null
12529 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12531 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12532 # that will create temporary files in the current directory regardless of
12533 # the output directory. Thus, making CWD read-only will cause this test
12534 # to fail, enabling locking or at least warning the user not to do parallel
12538 lt_compiler_flag="-o out/conftest2.$ac_objext"
12539 # Insert the option either (1) after the last *FLAGS variable, or
12540 # (2) before a word containing "conftest.", or (3) at the end.
12541 # Note that $ac_compile itself does not contain backslashes and begins
12542 # with a dollar sign (not a hyphen), so the echo should work correctly.
12543 lt_compile=`echo "$ac_compile" | $SED \
12544 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12545 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12546 -e 's:$: $lt_compiler_flag:'`
12547 (eval echo "\"\$as_me:12547: $lt_compile\"" >&5)
12548 (eval "$lt_compile" 2>out/conftest.err)
12550 cat out/conftest.err >&5
12551 echo "$as_me:12551: \$? = $ac_status" >&5
12552 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12554 # The compiler can only warn and ignore the option if not recognized
12555 # So say no if there are warnings
12556 if test ! -s out/conftest.err; then
12557 lt_cv_prog_compiler_c_o_F77=yes
12561 $rm conftest* out/*
12568 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12569 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12572 hard_links="nottested"
12573 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12574 # do not overwrite the value of need_locks provided by the user
12575 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12576 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12579 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12581 ln conftest.a conftest.b 2>&5 || hard_links=no
12582 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12583 echo "$as_me:$LINENO: result: $hard_links" >&5
12584 echo "${ECHO_T}$hard_links" >&6
12585 if test "$hard_links" = no; then
12586 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12587 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12594 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12595 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12598 allow_undefined_flag_F77=
12599 enable_shared_with_static_runtimes_F77=no
12601 archive_expsym_cmds_F77=
12602 old_archive_From_new_cmds_F77=
12603 old_archive_from_expsyms_cmds_F77=
12604 export_dynamic_flag_spec_F77=
12605 whole_archive_flag_spec_F77=
12606 thread_safe_flag_spec_F77=
12607 hardcode_libdir_flag_spec_F77=
12608 hardcode_libdir_flag_spec_ld_F77=
12609 hardcode_libdir_separator_F77=
12610 hardcode_direct_F77=no
12611 hardcode_minus_L_F77=no
12612 hardcode_shlibpath_var_F77=unsupported
12613 link_all_deplibs_F77=unknown
12614 hardcode_automatic_F77=no
12616 module_expsym_cmds_F77=
12617 always_export_symbols_F77=no
12618 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12619 # include_expsyms should be a list of space-separated symbols to be *always*
12620 # included in the symbol list
12621 include_expsyms_F77=
12622 # exclude_expsyms can be an extended regexp of symbols to exclude
12623 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12624 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12625 # as well as any symbol that contains `d'.
12626 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12627 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12628 # platforms (ab)use it in PIC code, but their linkers get confused if
12629 # the symbol is explicitly referenced. Since portable code cannot
12630 # rely on this symbol name, it's probably fine to never include it in
12631 # preloaded symbol tables.
12632 extract_expsyms_cmds=
12635 cygwin* | mingw* | pw32*)
12636 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12637 # When not using gcc, we currently assume that we are using
12638 # Microsoft Visual C++.
12639 if test "$GCC" != yes; then
12649 if test "$with_gnu_ld" = yes; then
12650 # If archive_cmds runs LD, not CC, wlarc should be empty
12653 # See if GNU ld supports shared libraries.
12655 aix3* | aix4* | aix5*)
12656 # On AIX/PPC, the GNU linker is very broken
12657 if test "$host_cpu" != ia64; then
12661 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12662 *** to be unable to reliably create shared libraries on AIX.
12663 *** Therefore, libtool is disabling shared libraries support. If you
12664 *** really care for shared libraries, you may want to modify your PATH
12665 *** so that a non-GNU linker is found, and then restart.
12672 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)'
12673 hardcode_libdir_flag_spec_F77='-L$libdir'
12674 hardcode_minus_L_F77=yes
12676 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12677 # that the semantics of dynamic libraries on AmigaOS, at least up
12678 # to version 4, is to share data among multiple programs linked
12679 # with the same dynamic library. Since this doesn't match the
12680 # behavior of shared libraries on other platforms, we can't use
12686 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12687 allow_undefined_flag_F77=unsupported
12688 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12689 # support --undefined. This deserves some investigation. FIXME
12690 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12696 cygwin* | mingw* | pw32*)
12697 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12698 # as there is no search path for DLLs.
12699 hardcode_libdir_flag_spec_F77='-L$libdir'
12700 allow_undefined_flag_F77=unsupported
12701 always_export_symbols_F77=no
12702 enable_shared_with_static_runtimes_F77=yes
12703 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12705 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12706 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12707 # If the export-symbols file already is a .def file (1st line
12708 # is EXPORTS), use it as is; otherwise, prepend...
12709 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12710 cp $export_symbols $output_objdir/$soname.def;
12712 echo EXPORTS > $output_objdir/$soname.def;
12713 cat $export_symbols >> $output_objdir/$soname.def;
12715 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12722 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12723 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12726 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12727 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12732 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12736 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12737 *** create shared libraries on Solaris systems. Therefore, libtool
12738 *** is disabling shared libraries support. We urge you to upgrade GNU
12739 *** binutils to release 2.9.1 or newer. Another option is to modify
12740 *** your PATH or compiler configuration so that the native linker is
12741 *** used, and then restart.
12744 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12745 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12746 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12753 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12755 hardcode_direct_F77=yes
12756 hardcode_shlibpath_var_F77=no
12760 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12761 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12762 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12769 if test "$ld_shlibs_F77" = yes; then
12770 runpath_var=LD_RUN_PATH
12771 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12772 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12773 # ancient GNU ld didn't support --whole-archive et. al.
12774 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12775 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12777 whole_archive_flag_spec_F77=
12781 # PORTME fill in a description of your system's linker (not GNU ld)
12784 allow_undefined_flag_F77=unsupported
12785 always_export_symbols_F77=yes
12786 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'
12787 # Note: this linker hardcodes the directories in LIBPATH if there
12788 # are no directories specified by -L.
12789 hardcode_minus_L_F77=yes
12790 if test "$GCC" = yes && test -z "$link_static_flag"; then
12791 # Neither direct hardcoding nor static linking is supported with a
12793 hardcode_direct_F77=unsupported
12798 if test "$host_cpu" = ia64; then
12799 # On IA64, the linker does run time linking by default, so we don't
12800 # have to do anything special.
12801 aix_use_runtimelinking=no
12802 exp_sym_flag='-Bexport'
12805 # If we're using GNU nm, then we don't want the "-C" option.
12806 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12807 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12808 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'
12810 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'
12812 aix_use_runtimelinking=no
12814 # Test if we are trying to use run time linking or normal
12815 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12816 # need to do runtime linking.
12817 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12818 for ld_flag in $LDFLAGS; do
12819 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12820 aix_use_runtimelinking=yes
12826 exp_sym_flag='-bexport'
12827 no_entry_flag='-bnoentry'
12830 # When large executables or shared objects are built, AIX ld can
12831 # have problems creating the table of contents. If linking a library
12832 # or program results in "error TOC overflow" add -mminimal-toc to
12833 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12834 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12836 archive_cmds_F77=''
12837 hardcode_direct_F77=yes
12838 hardcode_libdir_separator_F77=':'
12839 link_all_deplibs_F77=yes
12841 if test "$GCC" = yes; then
12842 case $host_os in aix4.012|aix4.012.*)
12843 # We only want to do this on AIX 4.2 and lower, the check
12844 # below for broken collect2 doesn't work under 4.3+
12845 collect2name=`${CC} -print-prog-name=collect2`
12846 if test -f "$collect2name" && \
12847 strings "$collect2name" | grep resolve_lib_name >/dev/null
12849 # We have reworked collect2
12850 hardcode_direct_F77=yes
12852 # We have old collect2
12853 hardcode_direct_F77=unsupported
12854 # It fails to find uninstalled libraries when the uninstalled
12855 # path is not listed in the libpath. Setting hardcode_minus_L
12856 # to unsupported forces relinking
12857 hardcode_minus_L_F77=yes
12858 hardcode_libdir_flag_spec_F77='-L$libdir'
12859 hardcode_libdir_separator_F77=
12862 shared_flag='-shared'
12865 if test "$host_cpu" = ia64; then
12866 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12867 # chokes on -Wl,-G. The following line is correct:
12870 if test "$aix_use_runtimelinking" = yes; then
12871 shared_flag='${wl}-G'
12873 shared_flag='${wl}-bM:SRE'
12878 # It seems that -bexpall does not export symbols beginning with
12879 # underscore (_), so it is better to generate a list of symbols to export.
12880 always_export_symbols_F77=yes
12881 if test "$aix_use_runtimelinking" = yes; then
12882 # Warning - without using the other runtime loading flags (-brtl),
12883 # -berok will link without error, but may produce a broken library.
12884 allow_undefined_flag_F77='-berok'
12885 # Determine the default libpath from the value encoded in an empty executable.
12886 cat >conftest.$ac_ext <<_ACEOF
12891 rm -f conftest.$ac_objext conftest$ac_exeext
12892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12893 (eval $ac_link) 2>&5
12895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896 (exit $ac_status); } &&
12897 { ac_try='test -s conftest$ac_exeext'
12898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12899 (eval $ac_try) 2>&5
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); }; }; then
12904 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12906 # Check for a 64-bit object if we didn't find anything.
12907 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; }
12910 echo "$as_me: failed program was:" >&5
12911 sed 's/^/| /' conftest.$ac_ext >&5
12914 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12915 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12917 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
12918 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"
12920 if test "$host_cpu" = ia64; then
12921 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
12922 allow_undefined_flag_F77="-z nodefs"
12923 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"
12925 # Determine the default libpath from the value encoded in an empty executable.
12926 cat >conftest.$ac_ext <<_ACEOF
12931 rm -f conftest.$ac_objext conftest$ac_exeext
12932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12933 (eval $ac_link) 2>&5
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); } &&
12937 { ac_try='test -s conftest$ac_exeext'
12938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12939 (eval $ac_try) 2>&5
12941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942 (exit $ac_status); }; }; then
12944 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12946 # Check for a 64-bit object if we didn't find anything.
12947 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; }
12950 echo "$as_me: failed program was:" >&5
12951 sed 's/^/| /' conftest.$ac_ext >&5
12954 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12955 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12957 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
12958 # Warning - without using the other run time loading flags,
12959 # -berok will link without error, but may produce a broken library.
12960 no_undefined_flag_F77=' ${wl}-bernotok'
12961 allow_undefined_flag_F77=' ${wl}-berok'
12962 # -bexpall does not export symbols beginning with underscore (_)
12963 always_export_symbols_F77=yes
12964 # Exported symbols can be pulled into shared objects from archives
12965 whole_archive_flag_spec_F77=' '
12966 archive_cmds_need_lc_F77=yes
12967 # This is similar to how AIX traditionally builds it's shared libraries.
12968 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'
12974 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)'
12975 hardcode_libdir_flag_spec_F77='-L$libdir'
12976 hardcode_minus_L_F77=yes
12977 # see comment about different semantics on the GNU ld section
12982 export_dynamic_flag_spec_F77=-rdynamic
12985 cygwin* | mingw* | pw32*)
12986 # When not using gcc, we currently assume that we are using
12987 # Microsoft Visual C++.
12988 # hardcode_libdir_flag_spec is actually meaningless, as there is
12989 # no search path for DLLs.
12990 hardcode_libdir_flag_spec_F77=' '
12991 allow_undefined_flag_F77=unsupported
12992 # Tell ltmain to make .lib files, not .a files.
12994 # Tell ltmain to make .dll files, not .so files.
12996 # FIXME: Setting linknames here is a bad hack.
12997 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12998 # The linker will automatically build a .lib file if we build a DLL.
12999 old_archive_From_new_cmds_F77='true'
13000 # FIXME: Should let the user specify the lib program.
13001 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13002 fix_srcfile_path='`cygpath -w "$srcfile"`'
13003 enable_shared_with_static_runtimes_F77=yes
13006 darwin* | rhapsody*)
13007 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13008 archive_cmds_need_lc_F77=no
13010 rhapsody* | darwin1.[012])
13011 allow_undefined_flag_F77='-undefined suppress'
13014 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13017 # FIXME: Relying on posixy $() will cause problems for
13018 # cross-compilation, but unfortunately the echo tests do not
13019 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13020 # `"' quotes if we put them in here... so don't!
13021 lt_int_apple_cc_single_mod=no
13022 output_verbose_link_cmd='echo'
13023 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13024 lt_int_apple_cc_single_mod=yes
13026 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13027 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13029 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'
13031 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13032 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13033 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13034 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}'
13036 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}'
13038 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}'
13039 hardcode_direct_F77=no
13040 hardcode_automatic_F77=yes
13041 hardcode_shlibpath_var_F77=unsupported
13042 whole_archive_flag_spec_F77='-all_load $convenience'
13043 link_all_deplibs_F77=yes
13048 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13049 hardcode_libdir_flag_spec_F77='-L$libdir'
13050 hardcode_shlibpath_var_F77=no
13057 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13058 # support. Future versions do this automatically, but an explicit c++rt0.o
13059 # does not break anything, and helps significantly (at the cost of a little
13062 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13063 hardcode_libdir_flag_spec_F77='-R$libdir'
13064 hardcode_direct_F77=yes
13065 hardcode_shlibpath_var_F77=no
13068 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13070 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13071 hardcode_direct_F77=yes
13072 hardcode_minus_L_F77=yes
13073 hardcode_shlibpath_var_F77=no
13076 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13078 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13079 hardcode_libdir_flag_spec_F77='-R$libdir'
13080 hardcode_direct_F77=yes
13081 hardcode_shlibpath_var_F77=no
13085 if test "$GCC" = yes; then
13086 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'
13088 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'
13090 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13091 hardcode_libdir_separator_F77=:
13092 hardcode_direct_F77=yes
13094 # hardcode_minus_L: Not really in the search PATH,
13095 # but as the default location of the library.
13096 hardcode_minus_L_F77=yes
13097 export_dynamic_flag_spec_F77='${wl}-E'
13101 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13102 case "$host_cpu" in
13104 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13107 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13111 case "$host_cpu" in
13113 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13116 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13120 if test "$with_gnu_ld" = no; then
13121 case "$host_cpu" in
13123 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13124 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13125 hardcode_libdir_separator_F77=:
13126 hardcode_direct_F77=no
13127 hardcode_shlibpath_var_F77=no
13130 hardcode_libdir_flag_spec_F77='-L$libdir'
13131 hardcode_direct_F77=no
13132 hardcode_shlibpath_var_F77=no
13134 # hardcode_minus_L: Not really in the search PATH,
13135 # but as the default location of the library.
13136 hardcode_minus_L_F77=yes
13139 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13140 hardcode_libdir_separator_F77=:
13141 hardcode_direct_F77=yes
13142 export_dynamic_flag_spec_F77='${wl}-E'
13144 # hardcode_minus_L: Not really in the search PATH,
13145 # but as the default location of the library.
13146 hardcode_minus_L_F77=yes
13152 irix5* | irix6* | nonstopux*)
13153 if test "$GCC" = yes; then
13154 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'
13156 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'
13157 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13159 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13160 hardcode_libdir_separator_F77=:
13161 link_all_deplibs_F77=yes
13165 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13166 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13168 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13170 hardcode_libdir_flag_spec_F77='-R$libdir'
13171 hardcode_direct_F77=yes
13172 hardcode_shlibpath_var_F77=no
13176 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13177 hardcode_direct_F77=yes
13178 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13179 hardcode_libdir_separator_F77=:
13180 hardcode_shlibpath_var_F77=no
13184 hardcode_direct_F77=yes
13185 hardcode_shlibpath_var_F77=no
13186 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13187 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13188 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13189 export_dynamic_flag_spec_F77='${wl}-E'
13192 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13193 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13194 hardcode_libdir_flag_spec_F77='-R$libdir'
13197 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13198 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13205 hardcode_libdir_flag_spec_F77='-L$libdir'
13206 hardcode_minus_L_F77=yes
13207 allow_undefined_flag_F77=unsupported
13208 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'
13209 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13213 if test "$GCC" = yes; then
13214 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13215 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'
13217 allow_undefined_flag_F77=' -expect_unresolved \*'
13218 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'
13220 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13221 hardcode_libdir_separator_F77=:
13224 osf4* | osf5*) # as osf3* with the addition of -msym flag
13225 if test "$GCC" = yes; then
13226 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13227 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'
13228 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13230 allow_undefined_flag_F77=' -expect_unresolved \*'
13231 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'
13232 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~
13233 $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'
13235 # Both c and cxx compiler support -rpath directly
13236 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13238 hardcode_libdir_separator_F77=:
13242 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13243 hardcode_shlibpath_var_F77=no
13244 export_dynamic_flag_spec_F77='${wl}-Bexport'
13245 runpath_var=LD_RUN_PATH
13246 hardcode_runpath_var=yes
13250 no_undefined_flag_F77=' -z text'
13251 if test "$GCC" = yes; then
13252 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13253 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13254 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13256 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13257 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13258 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13260 hardcode_libdir_flag_spec_F77='-R$libdir'
13261 hardcode_shlibpath_var_F77=no
13263 solaris2.[0-5] | solaris2.[0-5].*) ;;
13264 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13265 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13267 link_all_deplibs_F77=yes
13271 if test "x$host_vendor" = xsequent; then
13272 # Use $CC to link under sequent, because it throws in some extra .o
13273 # files that make .init and .fini sections work.
13274 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13276 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13278 hardcode_libdir_flag_spec_F77='-L$libdir'
13279 hardcode_direct_F77=yes
13280 hardcode_minus_L_F77=yes
13281 hardcode_shlibpath_var_F77=no
13285 case $host_vendor in
13287 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13288 hardcode_direct_F77=yes # is this really true???
13291 ## LD is ld it makes a PLAMLIB
13292 ## CC just makes a GrossModule.
13293 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13294 reload_cmds_F77='$CC -r -o $output$reload_objs'
13295 hardcode_direct_F77=no
13298 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13299 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13302 runpath_var='LD_RUN_PATH'
13303 hardcode_shlibpath_var_F77=no
13307 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13308 hardcode_shlibpath_var_F77=no
13309 export_dynamic_flag_spec_F77='-Bexport'
13313 if test -d /usr/nec; then
13314 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13315 hardcode_shlibpath_var_F77=no
13316 runpath_var=LD_RUN_PATH
13317 hardcode_runpath_var=yes
13323 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13324 hardcode_direct_F77=yes
13325 hardcode_minus_L_F77=no
13326 hardcode_shlibpath_var_F77=no
13327 hardcode_runpath_var=yes
13328 runpath_var=LD_RUN_PATH
13331 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13332 no_undefined_flag_F77='${wl}-z ${wl}text'
13333 if test "$GCC" = yes; then
13334 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13336 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13338 runpath_var='LD_RUN_PATH'
13339 hardcode_shlibpath_var_F77=no
13343 no_undefined_flag_F77=' -z text'
13344 # $CC -shared without GNU ld will not create a library from C++
13345 # object files and a static libstdc++, better avoid it by now
13346 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13347 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13348 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13349 hardcode_libdir_flag_spec_F77=
13350 hardcode_shlibpath_var_F77=no
13351 runpath_var='LD_RUN_PATH'
13355 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13356 hardcode_libdir_flag_spec_F77='-L$libdir'
13357 hardcode_shlibpath_var_F77=no
13366 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13367 echo "${ECHO_T}$ld_shlibs_F77" >&6
13368 test "$ld_shlibs_F77" = no && can_build_shared=no
13370 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13371 if test "$GCC" = yes; then
13372 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13376 # Do we need to explicitly link libc?
13378 case "x$archive_cmds_need_lc_F77" in
13380 # Assume -lc should be added
13381 archive_cmds_need_lc_F77=yes
13383 if test "$enable_shared" = yes && test "$GCC" = yes; then
13384 case $archive_cmds_F77 in
13386 # FIXME: we may have to deal with multi-command sequences.
13389 # Test whether the compiler implicitly links with -lc since on some
13390 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13391 # to ld, don't add -lc before -lgcc.
13392 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13393 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13395 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13398 (eval $ac_compile) 2>&5
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); } 2>conftest.err; then
13404 libobjs=conftest.$ac_objext
13406 wl=$lt_prog_compiler_wl_F77
13412 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13413 allow_undefined_flag_F77=
13414 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13415 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); }
13420 archive_cmds_need_lc_F77=no
13422 archive_cmds_need_lc_F77=yes
13424 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13426 cat conftest.err 1>&5
13429 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13430 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13437 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13438 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13439 hardcode_action_F77=
13440 if test -n "$hardcode_libdir_flag_spec_F77" || \
13441 test -n "$runpath_var F77" || \
13442 test "X$hardcode_automatic_F77"="Xyes" ; then
13444 # We can hardcode non-existant directories.
13445 if test "$hardcode_direct_F77" != no &&
13446 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13447 # have to relink, otherwise we might link with an installed library
13448 # when we should be linking with a yet-to-be-installed one
13449 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13450 test "$hardcode_minus_L_F77" != no; then
13451 # Linking always hardcodes the temporary library directory.
13452 hardcode_action_F77=relink
13454 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13455 hardcode_action_F77=immediate
13458 # We cannot hardcode anything, or else we can only hardcode existing
13460 hardcode_action_F77=unsupported
13462 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13463 echo "${ECHO_T}$hardcode_action_F77" >&6
13465 if test "$hardcode_action_F77" = relink; then
13466 # Fast installation is not supported
13467 enable_fast_install=no
13468 elif test "$shlibpath_overrides_runpath" = yes ||
13469 test "$enable_shared" = no; then
13470 # Fast installation is not necessary
13471 enable_fast_install=needless
13476 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13477 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13478 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13479 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13480 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13481 echo "$as_me:$LINENO: result: yes" >&5
13482 echo "${ECHO_T}yes" >&6
13484 # FIXME - insert some real tests, host_os isn't really good enough
13487 if test -n "$STRIP" ; then
13488 striplib="$STRIP -x"
13489 echo "$as_me:$LINENO: result: yes" >&5
13490 echo "${ECHO_T}yes" >&6
13492 echo "$as_me:$LINENO: result: no" >&5
13493 echo "${ECHO_T}no" >&6
13497 echo "$as_me:$LINENO: result: no" >&5
13498 echo "${ECHO_T}no" >&6
13503 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13504 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13505 library_names_spec=
13506 libname_spec='lib$name'
13510 postuninstall_cmds=
13514 shlibpath_overrides_runpath=unknown
13516 dynamic_linker="$host_os ld.so"
13517 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13518 if test "$GCC" = yes; then
13519 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13520 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13521 # if the path contains ";" then we assume it to be the separator
13522 # otherwise default to the standard path separator (i.e. ":") - it is
13523 # assumed that no part of a normal pathname contains ";" but that should
13524 # okay in the real world where ";" in dirpaths is itself problematic.
13525 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13527 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13530 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13532 need_lib_prefix=unknown
13533 hardcode_into_libs=no
13535 # when you set need_version to no, make sure it does not cause -set_version
13536 # flags to be left without arguments
13537 need_version=unknown
13542 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13543 shlibpath_var=LIBPATH
13545 # AIX 3 has no versioning support, so we append a major version to the name.
13546 soname_spec='${libname}${release}${shared_ext}$major'
13553 hardcode_into_libs=yes
13554 if test "$host_cpu" = ia64; then
13555 # AIX 5 supports IA64
13556 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13557 shlibpath_var=LD_LIBRARY_PATH
13559 # With GCC up to 2.95.x, collect2 would create an import file
13560 # for dependence libraries. The import file would start with
13561 # the line `#! .'. This would cause the generated library to
13562 # depend on `.', always an invalid library. This was fixed in
13563 # development snapshots of GCC prior to 3.0.
13565 aix4 | aix4.[01] | aix4.[01].*)
13566 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13568 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13571 can_build_shared=no
13575 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13576 # soname into executable. Probably we can add versioning support to
13577 # collect2, so additional links can be useful in future.
13578 if test "$aix_use_runtimelinking" = yes; then
13579 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13580 # instead of lib<name>.a to let people know that these are not
13581 # typical AIX shared libraries.
13582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13584 # We preserve .a as extension for shared libraries through AIX4.2
13585 # and later when we are not doing run time linking.
13586 library_names_spec='${libname}${release}.a $libname.a'
13587 soname_spec='${libname}${release}${shared_ext}$major'
13589 shlibpath_var=LIBPATH
13594 library_names_spec='$libname.ixlibrary $libname.a'
13595 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13596 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'
13600 library_names_spec='${libname}${shared_ext}'
13601 dynamic_linker="$host_os ld.so"
13602 shlibpath_var=LIBRARY_PATH
13608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13609 soname_spec='${libname}${release}${shared_ext}$major'
13610 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13611 shlibpath_var=LD_LIBRARY_PATH
13612 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13613 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13614 # the default ld.so.conf also contains /usr/contrib/lib and
13615 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13616 # libtool to hard-code these into programs
13619 cygwin* | mingw* | pw32*)
13620 version_type=windows
13625 case $GCC,$host_os in
13626 yes,cygwin* | yes,mingw* | yes,pw32*)
13627 library_names_spec='$libname.dll.a'
13628 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13629 postinstall_cmds='base_file=`basename \${file}`~
13630 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13631 dldir=$destdir/`dirname \$dlpath`~
13632 test -d \$dldir || mkdir -p \$dldir~
13633 $install_prog $dir/$dlname \$dldir/$dlname'
13634 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13635 dlpath=$dir/\$dldll~
13637 shlibpath_overrides_runpath=yes
13641 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13642 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13643 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13646 # MinGW DLLs use traditional 'lib' prefix
13647 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13648 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13649 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13650 # It is most probably a Windows format PATH printed by
13651 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13652 # path with ; separators, and with drive letters. We can handle the
13653 # drive letters (cygwin fileutils understands them), so leave them,
13654 # especially as we might pass files found there to a mingw objdump,
13655 # which wouldn't understand a cygwinified path. Ahh.
13656 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13658 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13662 # pw32 DLLs use 'pw' prefix rather than 'lib'
13663 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13669 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13672 dynamic_linker='Win32 ld.exe'
13673 # FIXME: first we should search . and the directory the executable is in
13677 darwin* | rhapsody*)
13678 dynamic_linker="$host_os dyld"
13679 version_type=darwin
13682 # FIXME: Relying on posixy $() will cause problems for
13683 # cross-compilation, but unfortunately the echo tests do not
13684 # yet detect zsh echo's removal of \ escapes.
13685 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13686 soname_spec='${libname}${release}${major}$shared_ext'
13687 shlibpath_overrides_runpath=yes
13688 shlibpath_var=DYLD_LIBRARY_PATH
13689 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13690 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13691 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13692 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"`
13694 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13702 soname_spec='${libname}${release}${shared_ext}$major'
13703 shlibpath_var=LD_LIBRARY_PATH
13711 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13712 version_type=freebsd-$objformat
13713 case $version_type in
13715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13720 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13724 shlibpath_var=LD_LIBRARY_PATH
13727 shlibpath_overrides_runpath=yes
13729 freebsd3.01* | freebsdelf3.01*)
13730 shlibpath_overrides_runpath=yes
13731 hardcode_into_libs=yes
13734 shlibpath_overrides_runpath=no
13735 hardcode_into_libs=yes
13744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13745 soname_spec='${libname}${release}${shared_ext}$major'
13746 shlibpath_var=LD_LIBRARY_PATH
13747 hardcode_into_libs=yes
13750 hpux9* | hpux10* | hpux11*)
13751 # Give a soname corresponding to the major version so that dld.sl refuses to
13752 # link against other versions.
13756 case "$host_cpu" in
13759 hardcode_into_libs=yes
13760 dynamic_linker="$host_os dld.so"
13761 shlibpath_var=LD_LIBRARY_PATH
13762 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13764 soname_spec='${libname}${release}${shared_ext}$major'
13765 if test "X$HPUX_IA64_MODE" = X32; then
13766 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13768 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13770 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13774 hardcode_into_libs=yes
13775 dynamic_linker="$host_os dld.sl"
13776 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13777 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13779 soname_spec='${libname}${release}${shared_ext}$major'
13780 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13781 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13785 dynamic_linker="$host_os dld.sl"
13786 shlibpath_var=SHLIB_PATH
13787 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13789 soname_spec='${libname}${release}${shared_ext}$major'
13792 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13793 postinstall_cmds='chmod 555 $lib'
13796 irix5* | irix6* | nonstopux*)
13798 nonstopux*) version_type=nonstopux ;;
13800 if test "$lt_cv_prog_gnu_ld" = yes; then
13808 soname_spec='${libname}${release}${shared_ext}$major'
13809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13811 irix5* | nonstopux*)
13812 libsuff= shlibsuff=
13815 case $LD in # libtool.m4 will add one of these switches to LD
13816 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13817 libsuff= shlibsuff= libmagic=32-bit;;
13818 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13819 libsuff=32 shlibsuff=N32 libmagic=N32;;
13820 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13821 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13822 *) libsuff= shlibsuff= libmagic=never-match;;
13826 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13827 shlibpath_overrides_runpath=no
13828 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13829 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13830 hardcode_into_libs=yes
13833 # No shared lib support for Linux oldld, aout, or coff.
13834 linux*oldld* | linux*aout* | linux*coff*)
13838 # This must be Linux ELF.
13843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13844 soname_spec='${libname}${release}${shared_ext}$major'
13845 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13846 shlibpath_var=LD_LIBRARY_PATH
13847 shlibpath_overrides_runpath=no
13848 # This implies no fast_install, which is unacceptable.
13849 # Some rework will be needed to allow for fast_install
13850 # before this can be enabled.
13851 hardcode_into_libs=yes
13853 # We used to test for /lib/ld.so.1 and disable shared libraries on
13854 # powerpc, because MkLinux only supported shared libraries with the
13855 # GNU dynamic linker. Since this was broken with cross compilers,
13856 # most powerpc-linux boxes support dynamic linking these days and
13857 # people can always --disable-shared, the test was removed, and we
13858 # assume the GNU/Linux dynamic linker is in use.
13859 dynamic_linker='GNU/Linux ld.so'
13866 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13868 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13869 dynamic_linker='NetBSD (a.out) ld.so'
13871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
13872 soname_spec='${libname}${release}${shared_ext}$major'
13873 dynamic_linker='NetBSD ld.elf_so'
13875 shlibpath_var=LD_LIBRARY_PATH
13876 shlibpath_overrides_runpath=yes
13877 hardcode_into_libs=yes
13882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13883 shlibpath_var=LD_LIBRARY_PATH
13884 shlibpath_overrides_runpath=yes
13891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13892 soname_spec='${libname}${release}${shared_ext}$major'
13893 shlibpath_var=LD_LIBRARY_PATH
13894 shlibpath_overrides_runpath=yes
13901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13902 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13903 shlibpath_var=LD_LIBRARY_PATH
13904 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13906 openbsd2.[89] | openbsd2.[89].*)
13907 shlibpath_overrides_runpath=no
13910 shlibpath_overrides_runpath=yes
13914 shlibpath_overrides_runpath=yes
13919 libname_spec='$name'
13922 library_names_spec='$libname${shared_ext} $libname.a'
13923 dynamic_linker='OS/2 ld.exe'
13924 shlibpath_var=LIBPATH
13927 osf3* | osf4* | osf5*)
13931 soname_spec='${libname}${release}${shared_ext}$major'
13932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13933 shlibpath_var=LD_LIBRARY_PATH
13934 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13935 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13940 soname_spec='${libname}${release}${shared_ext}$major'
13941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13942 shlibpath_var=LD_LIBRARY_PATH
13949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13950 soname_spec='${libname}${release}${shared_ext}$major'
13951 shlibpath_var=LD_LIBRARY_PATH
13952 shlibpath_overrides_runpath=yes
13953 hardcode_into_libs=yes
13954 # ldd complains unless libraries are executable
13955 postinstall_cmds='chmod +x $lib'
13960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13961 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13962 shlibpath_var=LD_LIBRARY_PATH
13963 shlibpath_overrides_runpath=yes
13964 if test "$with_gnu_ld" = yes; then
13970 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13973 soname_spec='${libname}${release}${shared_ext}$major'
13974 shlibpath_var=LD_LIBRARY_PATH
13975 case $host_vendor in
13977 shlibpath_overrides_runpath=no
13979 export_dynamic_flag_spec='${wl}-Blargedynsym'
13980 runpath_var=LD_RUN_PATH
13988 shlibpath_overrides_runpath=no
13989 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13995 if test -d /usr/nec ;then
13997 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13998 soname_spec='$libname${shared_ext}.$major'
13999 shlibpath_var=LD_LIBRARY_PATH
14005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14006 soname_spec='${libname}${release}${shared_ext}$major'
14007 shlibpath_var=LD_LIBRARY_PATH
14014 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14015 echo "${ECHO_T}$dynamic_linker" >&6
14016 test "$dynamic_linker" = no && can_build_shared=no
14019 # The else clause should only fire when bootstrapping the
14020 # libtool distribution, otherwise you forgot to ship ltmain.sh
14021 # with your package, and you will get complaints that there are
14022 # no rules to generate ltmain.sh.
14023 if test -f "$ltmain"; then
14024 # See if we are running on zsh, and set the options which allow our commands through
14025 # without removal of \ escapes.
14026 if test -n "${ZSH_VERSION+set}" ; then
14027 setopt NO_GLOB_SUBST
14029 # Now quote all the things that may contain metacharacters while being
14030 # careful not to overquote the AC_SUBSTed values. We take copies of the
14031 # variables and quote the copies for generation of the libtool script.
14032 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14033 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14034 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14035 deplibs_check_method reload_flag reload_cmds need_locks \
14036 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14037 lt_cv_sys_global_symbol_to_c_name_address \
14038 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14039 old_postinstall_cmds old_postuninstall_cmds \
14043 lt_prog_compiler_wl_F77 \
14044 lt_prog_compiler_pic_F77 \
14045 lt_prog_compiler_static_F77 \
14046 lt_prog_compiler_no_builtin_flag_F77 \
14047 export_dynamic_flag_spec_F77 \
14048 thread_safe_flag_spec_F77 \
14049 whole_archive_flag_spec_F77 \
14050 enable_shared_with_static_runtimes_F77 \
14051 old_archive_cmds_F77 \
14052 old_archive_from_new_cmds_F77 \
14053 predep_objects_F77 \
14054 postdep_objects_F77 \
14057 compiler_lib_search_path_F77 \
14059 archive_expsym_cmds_F77 \
14060 postinstall_cmds_F77 \
14061 postuninstall_cmds_F77 \
14062 old_archive_from_expsyms_cmds_F77 \
14063 allow_undefined_flag_F77 \
14064 no_undefined_flag_F77 \
14065 export_symbols_cmds_F77 \
14066 hardcode_libdir_flag_spec_F77 \
14067 hardcode_libdir_flag_spec_ld_F77 \
14068 hardcode_libdir_separator_F77 \
14069 hardcode_automatic_F77 \
14071 module_expsym_cmds_F77 \
14072 lt_cv_prog_compiler_c_o_F77 \
14073 exclude_expsyms_F77 \
14074 include_expsyms_F77; do
14077 old_archive_cmds_F77 | \
14078 old_archive_from_new_cmds_F77 | \
14079 archive_cmds_F77 | \
14080 archive_expsym_cmds_F77 | \
14081 module_cmds_F77 | \
14082 module_expsym_cmds_F77 | \
14083 old_archive_from_expsyms_cmds_F77 | \
14084 export_symbols_cmds_F77 | \
14085 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14086 postinstall_cmds | postuninstall_cmds | \
14087 old_postinstall_cmds | old_postuninstall_cmds | \
14088 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14089 # Double-quote double-evaled strings.
14090 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14093 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14099 *'\$0 --fallback-echo"')
14100 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14106 cat <<__EOF__ >> "$cfgfile"
14107 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14109 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14111 # Shell to use when invoking shell scripts.
14114 # Whether or not to build shared libraries.
14115 build_libtool_libs=$enable_shared
14117 # Whether or not to build static libraries.
14118 build_old_libs=$enable_static
14120 # Whether or not to add -lc for building shared libraries.
14121 build_libtool_need_lc=$archive_cmds_need_lc_F77
14123 # Whether or not to disallow shared libs when runtime libs are static
14124 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14126 # Whether or not to optimize for fast installation.
14127 fast_install=$enable_fast_install
14130 host_alias=$host_alias
14133 # An echo program that does not interpret backslashes.
14138 AR_FLAGS=$lt_AR_FLAGS
14143 # A language-specific compiler.
14144 CC=$lt_compiler_F77
14146 # Is the compiler the GNU C compiler?
14152 # The linker used to build libraries.
14155 # Whether we need hard or soft links.
14158 # A BSD-compatible nm program.
14161 # A symbol stripping program
14164 # Used to examine libraries when file_magic_cmd begins "file"
14165 MAGIC_CMD=$MAGIC_CMD
14167 # Used on cygwin: DLL creation program.
14170 # Used on cygwin: object dumper.
14173 # Used on cygwin: assembler.
14176 # The name of the directory that contains temporary libtool files.
14179 # How to create reloadable object files.
14180 reload_flag=$lt_reload_flag
14181 reload_cmds=$lt_reload_cmds
14183 # How to pass a linker flag through the compiler.
14184 wl=$lt_lt_prog_compiler_wl_F77
14186 # Object file suffix (normally "o").
14187 objext="$ac_objext"
14189 # Old archive suffix (normally "a").
14192 # Shared library suffix (normally ".so").
14195 # Executable file suffix (normally "").
14198 # Additional compiler flags for building library objects.
14199 pic_flag=$lt_lt_prog_compiler_pic_F77
14202 # What is the maximum length of a command?
14203 max_cmd_len=$lt_cv_sys_max_cmd_len
14205 # Does compiler simultaneously support -c and -o options?
14206 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14208 # Must we lock files when doing compilation ?
14209 need_locks=$lt_need_locks
14211 # Do we need the lib prefix for modules?
14212 need_lib_prefix=$need_lib_prefix
14214 # Do we need a version for libraries?
14215 need_version=$need_version
14217 # Whether dlopen is supported.
14218 dlopen_support=$enable_dlopen
14220 # Whether dlopen of programs is supported.
14221 dlopen_self=$enable_dlopen_self
14223 # Whether dlopen of statically linked programs is supported.
14224 dlopen_self_static=$enable_dlopen_self_static
14226 # Compiler flag to prevent dynamic linking.
14227 link_static_flag=$lt_lt_prog_compiler_static_F77
14229 # Compiler flag to turn off builtin functions.
14230 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14232 # Compiler flag to allow reflexive dlopens.
14233 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14235 # Compiler flag to generate shared objects directly from archives.
14236 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14238 # Compiler flag to generate thread-safe objects.
14239 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14241 # Library versioning type.
14242 version_type=$version_type
14244 # Format of library name prefix.
14245 libname_spec=$lt_libname_spec
14247 # List of archive names. First name is the real one, the rest are links.
14248 # The last name is the one that the linker finds with -lNAME.
14249 library_names_spec=$lt_library_names_spec
14251 # The coded name of the library, if different from the real name.
14252 soname_spec=$lt_soname_spec
14254 # Commands used to build and install an old-style archive.
14256 old_archive_cmds=$lt_old_archive_cmds_F77
14257 old_postinstall_cmds=$lt_old_postinstall_cmds
14258 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14260 # Create an old-style archive from a shared archive.
14261 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14263 # Create a temporary old-style archive to link instead of a shared archive.
14264 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14266 # Commands used to build and install a shared archive.
14267 archive_cmds=$lt_archive_cmds_F77
14268 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14269 postinstall_cmds=$lt_postinstall_cmds
14270 postuninstall_cmds=$lt_postuninstall_cmds
14272 # Commands used to build a loadable module (assumed same as above if empty)
14273 module_cmds=$lt_module_cmds_F77
14274 module_expsym_cmds=$lt_module_expsym_cmds_F77
14276 # Commands to strip libraries.
14277 old_striplib=$lt_old_striplib
14278 striplib=$lt_striplib
14280 # Dependencies to place before the objects being linked to create a
14282 predep_objects=$lt_predep_objects_F77
14284 # Dependencies to place after the objects being linked to create a
14286 postdep_objects=$lt_postdep_objects_F77
14288 # Dependencies to place before the objects being linked to create a
14290 predeps=$lt_predeps_F77
14292 # Dependencies to place after the objects being linked to create a
14294 postdeps=$lt_postdeps_F77
14296 # The library search path used internally by the compiler when linking
14297 # a shared library.
14298 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14300 # Method to check whether dependent libraries are shared objects.
14301 deplibs_check_method=$lt_deplibs_check_method
14303 # Command to use when deplibs_check_method == file_magic.
14304 file_magic_cmd=$lt_file_magic_cmd
14306 # Flag that allows shared libraries with undefined symbols to be built.
14307 allow_undefined_flag=$lt_allow_undefined_flag_F77
14309 # Flag that forces no undefined symbols.
14310 no_undefined_flag=$lt_no_undefined_flag_F77
14312 # Commands used to finish a libtool library installation in a directory.
14313 finish_cmds=$lt_finish_cmds
14315 # Same as above, but a single script fragment to be evaled but not shown.
14316 finish_eval=$lt_finish_eval
14318 # Take the output of nm and produce a listing of raw symbols and C names.
14319 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14321 # Transform the output of nm in a proper C declaration
14322 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14324 # Transform the output of nm in a C name address pair
14325 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14327 # This is the shared library runtime path variable.
14328 runpath_var=$runpath_var
14330 # This is the shared library path variable.
14331 shlibpath_var=$shlibpath_var
14333 # Is shlibpath searched before the hard-coded library search path?
14334 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14336 # How to hardcode a shared library path into an executable.
14337 hardcode_action=$hardcode_action_F77
14339 # Whether we should hardcode library paths into libraries.
14340 hardcode_into_libs=$hardcode_into_libs
14342 # Flag to hardcode \$libdir into a binary during linking.
14343 # This must work even if \$libdir does not exist.
14344 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14346 # If ld is used when linking, flag to hardcode \$libdir into
14347 # a binary during linking. This must work even if \$libdir does
14349 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14351 # Whether we need a single -rpath flag with a separated argument.
14352 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14354 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14355 # resulting binary.
14356 hardcode_direct=$hardcode_direct_F77
14358 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14359 # resulting binary.
14360 hardcode_minus_L=$hardcode_minus_L_F77
14362 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14363 # the resulting binary.
14364 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14366 # Set to yes if building a shared library automatically hardcodes DIR into the library
14367 # and all subsequent libraries and executables linked against it.
14368 hardcode_automatic=$hardcode_automatic_F77
14370 # Variables whose values should be saved in libtool wrapper scripts and
14371 # restored at relink time.
14372 variables_saved_for_relink="$variables_saved_for_relink"
14374 # Whether libtool must link a program against all its dependency libraries.
14375 link_all_deplibs=$link_all_deplibs_F77
14377 # Compile-time system search path for libraries
14378 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14380 # Run-time system search path for libraries
14381 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14383 # Fix the shell variable \$srcfile for the compiler.
14384 fix_srcfile_path="$fix_srcfile_path_F77"
14386 # Set to yes if exported symbols are required.
14387 always_export_symbols=$always_export_symbols_F77
14389 # The commands to list exported symbols.
14390 export_symbols_cmds=$lt_export_symbols_cmds_F77
14392 # The commands to extract the exported symbol list from a shared archive.
14393 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14395 # Symbols that should not be listed in the preloaded symbols.
14396 exclude_expsyms=$lt_exclude_expsyms_F77
14398 # Symbols that must always be exported.
14399 include_expsyms=$lt_include_expsyms_F77
14401 # ### END LIBTOOL TAG CONFIG: $tagname
14407 # If there is no Makefile yet, we rely on a make rule to execute
14408 # `config.status --recheck' to rerun these tests and create the
14409 # libtool script then.
14410 test -f Makefile && make "$ltmain"
14415 ac_cpp='$CPP $CPPFLAGS'
14416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14428 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14432 # Source file extension for Java test sources.
14435 # Object file extension for compiled Java test sources.
14439 # Code to be used in simple compile tests
14440 lt_simple_compile_test_code="class foo {}\n"
14442 # Code to be used in simple link tests
14443 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14445 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14447 # If no C compiler was specified, use CC.
14450 # Allow CC to be a program name with arguments.
14454 # Allow CC to be a program name with arguments.
14460 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14461 archive_cmds_need_lc_GCJ=no
14464 ## There is no encapsulation within the following macros, do not change
14465 ## the running order or otherwise move them around unless you know exactly
14466 ## what you are doing...
14468 lt_prog_compiler_no_builtin_flag_GCJ=
14470 if test "$GCC" = yes; then
14471 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14473 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14474 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14475 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14476 echo $ECHO_N "(cached) $ECHO_C" >&6
14478 lt_cv_prog_compiler_rtti_exceptions=no
14479 ac_outfile=conftest.$ac_objext
14480 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14481 lt_compiler_flag="-fno-rtti -fno-exceptions"
14482 # Insert the option either (1) after the last *FLAGS variable, or
14483 # (2) before a word containing "conftest.", or (3) at the end.
14484 # Note that $ac_compile itself does not contain backslashes and begins
14485 # with a dollar sign (not a hyphen), so the echo should work correctly.
14486 # The option is referenced via a variable to avoid confusing sed.
14487 lt_compile=`echo "$ac_compile" | $SED \
14488 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14489 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14490 -e 's:$: $lt_compiler_flag:'`
14491 (eval echo "\"\$as_me:14491: $lt_compile\"" >&5)
14492 (eval "$lt_compile" 2>conftest.err)
14494 cat conftest.err >&5
14495 echo "$as_me:14495: \$? = $ac_status" >&5
14496 if (exit $ac_status) && test -s "$ac_outfile"; then
14497 # The compiler can only warn and ignore the option if not recognized
14498 # So say no if there are warnings
14499 if test ! -s conftest.err; then
14500 lt_cv_prog_compiler_rtti_exceptions=yes
14506 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14507 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14509 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14510 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14517 lt_prog_compiler_wl_GCJ=
14518 lt_prog_compiler_pic_GCJ=
14519 lt_prog_compiler_static_GCJ=
14521 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14522 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14524 if test "$GCC" = yes; then
14525 lt_prog_compiler_wl_GCJ='-Wl,'
14526 lt_prog_compiler_static_GCJ='-static'
14530 # All AIX code is PIC.
14531 if test "$host_cpu" = ia64; then
14532 # AIX 5 now supports IA64 processor
14533 lt_prog_compiler_static_GCJ='-Bstatic'
14538 # FIXME: we need at least 68020 code to build shared libraries, but
14539 # adding the `-m68020' flag to GCC prevents building anything better,
14541 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14544 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14545 # PIC is the default for these OSes.
14548 mingw* | pw32* | os2*)
14549 # This hack is so that the source file can tell whether it is being
14550 # built for inclusion in a dll (and should export symbols for example).
14551 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14554 darwin* | rhapsody*)
14555 # PIC is the default on this platform
14556 # Common symbols not allowed in MH_DYLIB files
14557 lt_prog_compiler_pic_GCJ='-fno-common'
14561 # Just because we use GCC doesn't mean we suddenly get shared libraries
14562 # on systems that don't support them.
14563 lt_prog_compiler_can_build_shared_GCJ=no
14568 if test -d /usr/nec; then
14569 lt_prog_compiler_pic_GCJ=-Kconform_pic
14574 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14575 # not for PA HP-UX.
14576 case "$host_cpu" in
14581 lt_prog_compiler_pic_GCJ='-fPIC'
14587 lt_prog_compiler_pic_GCJ='-fPIC'
14591 # PORTME Check for flag to pass linker flags through the system compiler.
14594 lt_prog_compiler_wl_GCJ='-Wl,'
14595 if test "$host_cpu" = ia64; then
14596 # AIX 5 now supports IA64 processor
14597 lt_prog_compiler_static_GCJ='-Bstatic'
14599 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14603 mingw* | pw32* | os2*)
14604 # This hack is so that the source file can tell whether it is being
14605 # built for inclusion in a dll (and should export symbols for example).
14606 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14609 hpux9* | hpux10* | hpux11*)
14610 lt_prog_compiler_wl_GCJ='-Wl,'
14611 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14612 # not for PA HP-UX.
14613 case "$host_cpu" in
14618 lt_prog_compiler_pic_GCJ='+Z'
14621 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14622 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14625 irix5* | irix6* | nonstopux*)
14626 lt_prog_compiler_wl_GCJ='-Wl,'
14627 # PIC (with -KPIC) is the default.
14628 lt_prog_compiler_static_GCJ='-non_shared'
14632 lt_prog_compiler_pic_GCJ='-KPIC'
14633 lt_prog_compiler_static_GCJ='-Bstatic'
14639 lt_prog_compiler_wl_GCJ='-Wl,'
14640 lt_prog_compiler_pic_GCJ='-KPIC'
14641 lt_prog_compiler_static_GCJ='-static'
14644 lt_prog_compiler_wl_GCJ='-Wl,'
14645 # All Alpha code is PIC.
14646 lt_prog_compiler_static_GCJ='-non_shared'
14651 osf3* | osf4* | osf5*)
14652 lt_prog_compiler_wl_GCJ='-Wl,'
14653 # All OSF/1 code is PIC.
14654 lt_prog_compiler_static_GCJ='-non_shared'
14658 lt_prog_compiler_pic_GCJ='-Kpic'
14659 lt_prog_compiler_static_GCJ='-dn'
14663 lt_prog_compiler_wl_GCJ='-Wl,'
14664 lt_prog_compiler_pic_GCJ='-KPIC'
14665 lt_prog_compiler_static_GCJ='-Bstatic'
14669 lt_prog_compiler_wl_GCJ='-Qoption ld '
14670 lt_prog_compiler_pic_GCJ='-PIC'
14671 lt_prog_compiler_static_GCJ='-Bstatic'
14674 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14675 lt_prog_compiler_wl_GCJ='-Wl,'
14676 lt_prog_compiler_pic_GCJ='-KPIC'
14677 lt_prog_compiler_static_GCJ='-Bstatic'
14681 if test -d /usr/nec ;then
14682 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14683 lt_prog_compiler_static_GCJ='-Bstatic'
14688 lt_prog_compiler_pic_GCJ='-pic'
14689 lt_prog_compiler_static_GCJ='-Bstatic'
14693 lt_prog_compiler_can_build_shared_GCJ=no
14698 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14699 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14702 # Check to make sure the PIC flag actually works.
14704 if test -n "$lt_prog_compiler_pic_GCJ"; then
14705 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14706 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14707 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14708 echo $ECHO_N "(cached) $ECHO_C" >&6
14710 lt_prog_compiler_pic_works_GCJ=no
14711 ac_outfile=conftest.$ac_objext
14712 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14713 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14714 # Insert the option either (1) after the last *FLAGS variable, or
14715 # (2) before a word containing "conftest.", or (3) at the end.
14716 # Note that $ac_compile itself does not contain backslashes and begins
14717 # with a dollar sign (not a hyphen), so the echo should work correctly.
14718 # The option is referenced via a variable to avoid confusing sed.
14719 lt_compile=`echo "$ac_compile" | $SED \
14720 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14721 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14722 -e 's:$: $lt_compiler_flag:'`
14723 (eval echo "\"\$as_me:14723: $lt_compile\"" >&5)
14724 (eval "$lt_compile" 2>conftest.err)
14726 cat conftest.err >&5
14727 echo "$as_me:14727: \$? = $ac_status" >&5
14728 if (exit $ac_status) && test -s "$ac_outfile"; then
14729 # The compiler can only warn and ignore the option if not recognized
14730 # So say no if there are warnings
14731 if test ! -s conftest.err; then
14732 lt_prog_compiler_pic_works_GCJ=yes
14738 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14739 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14741 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14742 case $lt_prog_compiler_pic_GCJ in
14744 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14747 lt_prog_compiler_pic_GCJ=
14748 lt_prog_compiler_can_build_shared_GCJ=no
14753 # For platforms which do not support PIC, -DPIC is meaningless:
14755 lt_prog_compiler_pic_GCJ=
14758 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14762 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14763 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14764 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14765 echo $ECHO_N "(cached) $ECHO_C" >&6
14767 lt_cv_prog_compiler_c_o_GCJ=no
14768 $rm -r conftest 2>/dev/null
14772 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14774 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14775 # that will create temporary files in the current directory regardless of
14776 # the output directory. Thus, making CWD read-only will cause this test
14777 # to fail, enabling locking or at least warning the user not to do parallel
14781 lt_compiler_flag="-o out/conftest2.$ac_objext"
14782 # Insert the option either (1) after the last *FLAGS variable, or
14783 # (2) before a word containing "conftest.", or (3) at the end.
14784 # Note that $ac_compile itself does not contain backslashes and begins
14785 # with a dollar sign (not a hyphen), so the echo should work correctly.
14786 lt_compile=`echo "$ac_compile" | $SED \
14787 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14788 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14789 -e 's:$: $lt_compiler_flag:'`
14790 (eval echo "\"\$as_me:14790: $lt_compile\"" >&5)
14791 (eval "$lt_compile" 2>out/conftest.err)
14793 cat out/conftest.err >&5
14794 echo "$as_me:14794: \$? = $ac_status" >&5
14795 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14797 # The compiler can only warn and ignore the option if not recognized
14798 # So say no if there are warnings
14799 if test ! -s out/conftest.err; then
14800 lt_cv_prog_compiler_c_o_GCJ=yes
14804 $rm conftest* out/*
14811 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
14812 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
14815 hard_links="nottested"
14816 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
14817 # do not overwrite the value of need_locks provided by the user
14818 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14819 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14822 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14824 ln conftest.a conftest.b 2>&5 || hard_links=no
14825 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14826 echo "$as_me:$LINENO: result: $hard_links" >&5
14827 echo "${ECHO_T}$hard_links" >&6
14828 if test "$hard_links" = no; then
14829 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14830 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14837 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14838 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14841 allow_undefined_flag_GCJ=
14842 enable_shared_with_static_runtimes_GCJ=no
14844 archive_expsym_cmds_GCJ=
14845 old_archive_From_new_cmds_GCJ=
14846 old_archive_from_expsyms_cmds_GCJ=
14847 export_dynamic_flag_spec_GCJ=
14848 whole_archive_flag_spec_GCJ=
14849 thread_safe_flag_spec_GCJ=
14850 hardcode_libdir_flag_spec_GCJ=
14851 hardcode_libdir_flag_spec_ld_GCJ=
14852 hardcode_libdir_separator_GCJ=
14853 hardcode_direct_GCJ=no
14854 hardcode_minus_L_GCJ=no
14855 hardcode_shlibpath_var_GCJ=unsupported
14856 link_all_deplibs_GCJ=unknown
14857 hardcode_automatic_GCJ=no
14859 module_expsym_cmds_GCJ=
14860 always_export_symbols_GCJ=no
14861 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14862 # include_expsyms should be a list of space-separated symbols to be *always*
14863 # included in the symbol list
14864 include_expsyms_GCJ=
14865 # exclude_expsyms can be an extended regexp of symbols to exclude
14866 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14867 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14868 # as well as any symbol that contains `d'.
14869 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
14870 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14871 # platforms (ab)use it in PIC code, but their linkers get confused if
14872 # the symbol is explicitly referenced. Since portable code cannot
14873 # rely on this symbol name, it's probably fine to never include it in
14874 # preloaded symbol tables.
14875 extract_expsyms_cmds=
14878 cygwin* | mingw* | pw32*)
14879 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14880 # When not using gcc, we currently assume that we are using
14881 # Microsoft Visual C++.
14882 if test "$GCC" != yes; then
14892 if test "$with_gnu_ld" = yes; then
14893 # If archive_cmds runs LD, not CC, wlarc should be empty
14896 # See if GNU ld supports shared libraries.
14898 aix3* | aix4* | aix5*)
14899 # On AIX/PPC, the GNU linker is very broken
14900 if test "$host_cpu" != ia64; then
14904 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14905 *** to be unable to reliably create shared libraries on AIX.
14906 *** Therefore, libtool is disabling shared libraries support. If you
14907 *** really care for shared libraries, you may want to modify your PATH
14908 *** so that a non-GNU linker is found, and then restart.
14915 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)'
14916 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14917 hardcode_minus_L_GCJ=yes
14919 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14920 # that the semantics of dynamic libraries on AmigaOS, at least up
14921 # to version 4, is to share data among multiple programs linked
14922 # with the same dynamic library. Since this doesn't match the
14923 # behavior of shared libraries on other platforms, we can't use
14929 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14930 allow_undefined_flag_GCJ=unsupported
14931 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14932 # support --undefined. This deserves some investigation. FIXME
14933 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14939 cygwin* | mingw* | pw32*)
14940 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
14941 # as there is no search path for DLLs.
14942 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14943 allow_undefined_flag_GCJ=unsupported
14944 always_export_symbols_GCJ=no
14945 enable_shared_with_static_runtimes_GCJ=yes
14946 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14948 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14949 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14950 # If the export-symbols file already is a .def file (1st line
14951 # is EXPORTS), use it as is; otherwise, prepend...
14952 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14953 cp $export_symbols $output_objdir/$soname.def;
14955 echo EXPORTS > $output_objdir/$soname.def;
14956 cat $export_symbols >> $output_objdir/$soname.def;
14958 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14965 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14966 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14969 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14970 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14975 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14979 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14980 *** create shared libraries on Solaris systems. Therefore, libtool
14981 *** is disabling shared libraries support. We urge you to upgrade GNU
14982 *** binutils to release 2.9.1 or newer. Another option is to modify
14983 *** your PATH or compiler configuration so that the native linker is
14984 *** used, and then restart.
14987 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14988 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14989 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14996 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14998 hardcode_direct_GCJ=yes
14999 hardcode_shlibpath_var_GCJ=no
15003 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15004 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15005 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15012 if test "$ld_shlibs_GCJ" = yes; then
15013 runpath_var=LD_RUN_PATH
15014 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15015 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15016 # ancient GNU ld didn't support --whole-archive et. al.
15017 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15018 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15020 whole_archive_flag_spec_GCJ=
15024 # PORTME fill in a description of your system's linker (not GNU ld)
15027 allow_undefined_flag_GCJ=unsupported
15028 always_export_symbols_GCJ=yes
15029 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'
15030 # Note: this linker hardcodes the directories in LIBPATH if there
15031 # are no directories specified by -L.
15032 hardcode_minus_L_GCJ=yes
15033 if test "$GCC" = yes && test -z "$link_static_flag"; then
15034 # Neither direct hardcoding nor static linking is supported with a
15036 hardcode_direct_GCJ=unsupported
15041 if test "$host_cpu" = ia64; then
15042 # On IA64, the linker does run time linking by default, so we don't
15043 # have to do anything special.
15044 aix_use_runtimelinking=no
15045 exp_sym_flag='-Bexport'
15048 # If we're using GNU nm, then we don't want the "-C" option.
15049 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15050 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15051 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'
15053 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'
15055 aix_use_runtimelinking=no
15057 # Test if we are trying to use run time linking or normal
15058 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15059 # need to do runtime linking.
15060 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15061 for ld_flag in $LDFLAGS; do
15062 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15063 aix_use_runtimelinking=yes
15069 exp_sym_flag='-bexport'
15070 no_entry_flag='-bnoentry'
15073 # When large executables or shared objects are built, AIX ld can
15074 # have problems creating the table of contents. If linking a library
15075 # or program results in "error TOC overflow" add -mminimal-toc to
15076 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15077 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15079 archive_cmds_GCJ=''
15080 hardcode_direct_GCJ=yes
15081 hardcode_libdir_separator_GCJ=':'
15082 link_all_deplibs_GCJ=yes
15084 if test "$GCC" = yes; then
15085 case $host_os in aix4.012|aix4.012.*)
15086 # We only want to do this on AIX 4.2 and lower, the check
15087 # below for broken collect2 doesn't work under 4.3+
15088 collect2name=`${CC} -print-prog-name=collect2`
15089 if test -f "$collect2name" && \
15090 strings "$collect2name" | grep resolve_lib_name >/dev/null
15092 # We have reworked collect2
15093 hardcode_direct_GCJ=yes
15095 # We have old collect2
15096 hardcode_direct_GCJ=unsupported
15097 # It fails to find uninstalled libraries when the uninstalled
15098 # path is not listed in the libpath. Setting hardcode_minus_L
15099 # to unsupported forces relinking
15100 hardcode_minus_L_GCJ=yes
15101 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15102 hardcode_libdir_separator_GCJ=
15105 shared_flag='-shared'
15108 if test "$host_cpu" = ia64; then
15109 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15110 # chokes on -Wl,-G. The following line is correct:
15113 if test "$aix_use_runtimelinking" = yes; then
15114 shared_flag='${wl}-G'
15116 shared_flag='${wl}-bM:SRE'
15121 # It seems that -bexpall does not export symbols beginning with
15122 # underscore (_), so it is better to generate a list of symbols to export.
15123 always_export_symbols_GCJ=yes
15124 if test "$aix_use_runtimelinking" = yes; then
15125 # Warning - without using the other runtime loading flags (-brtl),
15126 # -berok will link without error, but may produce a broken library.
15127 allow_undefined_flag_GCJ='-berok'
15128 # Determine the default libpath from the value encoded in an empty executable.
15129 cat >conftest.$ac_ext <<_ACEOF
15130 #line $LINENO "configure"
15133 cat confdefs.h >>conftest.$ac_ext
15134 cat >>conftest.$ac_ext <<_ACEOF
15135 /* end confdefs.h. */
15145 rm -f conftest.$ac_objext conftest$ac_exeext
15146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15147 (eval $ac_link) 2>&5
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); } &&
15151 { ac_try='test -s conftest$ac_exeext'
15152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15153 (eval $ac_try) 2>&5
15155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156 (exit $ac_status); }; }; then
15158 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15160 # Check for a 64-bit object if we didn't find anything.
15161 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; }
15164 echo "$as_me: failed program was:" >&5
15165 sed 's/^/| /' conftest.$ac_ext >&5
15168 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15169 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15171 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15172 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"
15174 if test "$host_cpu" = ia64; then
15175 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15176 allow_undefined_flag_GCJ="-z nodefs"
15177 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"
15179 # Determine the default libpath from the value encoded in an empty executable.
15180 cat >conftest.$ac_ext <<_ACEOF
15181 #line $LINENO "configure"
15184 cat confdefs.h >>conftest.$ac_ext
15185 cat >>conftest.$ac_ext <<_ACEOF
15186 /* end confdefs.h. */
15196 rm -f conftest.$ac_objext conftest$ac_exeext
15197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15198 (eval $ac_link) 2>&5
15200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201 (exit $ac_status); } &&
15202 { ac_try='test -s conftest$ac_exeext'
15203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15204 (eval $ac_try) 2>&5
15206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207 (exit $ac_status); }; }; then
15209 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15211 # Check for a 64-bit object if we didn't find anything.
15212 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; }
15215 echo "$as_me: failed program was:" >&5
15216 sed 's/^/| /' conftest.$ac_ext >&5
15219 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15220 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15222 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15223 # Warning - without using the other run time loading flags,
15224 # -berok will link without error, but may produce a broken library.
15225 no_undefined_flag_GCJ=' ${wl}-bernotok'
15226 allow_undefined_flag_GCJ=' ${wl}-berok'
15227 # -bexpall does not export symbols beginning with underscore (_)
15228 always_export_symbols_GCJ=yes
15229 # Exported symbols can be pulled into shared objects from archives
15230 whole_archive_flag_spec_GCJ=' '
15231 archive_cmds_need_lc_GCJ=yes
15232 # This is similar to how AIX traditionally builds it's shared libraries.
15233 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'
15239 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)'
15240 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15241 hardcode_minus_L_GCJ=yes
15242 # see comment about different semantics on the GNU ld section
15247 export_dynamic_flag_spec_GCJ=-rdynamic
15250 cygwin* | mingw* | pw32*)
15251 # When not using gcc, we currently assume that we are using
15252 # Microsoft Visual C++.
15253 # hardcode_libdir_flag_spec is actually meaningless, as there is
15254 # no search path for DLLs.
15255 hardcode_libdir_flag_spec_GCJ=' '
15256 allow_undefined_flag_GCJ=unsupported
15257 # Tell ltmain to make .lib files, not .a files.
15259 # Tell ltmain to make .dll files, not .so files.
15261 # FIXME: Setting linknames here is a bad hack.
15262 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15263 # The linker will automatically build a .lib file if we build a DLL.
15264 old_archive_From_new_cmds_GCJ='true'
15265 # FIXME: Should let the user specify the lib program.
15266 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15267 fix_srcfile_path='`cygpath -w "$srcfile"`'
15268 enable_shared_with_static_runtimes_GCJ=yes
15271 darwin* | rhapsody*)
15272 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15273 archive_cmds_need_lc_GCJ=no
15275 rhapsody* | darwin1.[012])
15276 allow_undefined_flag_GCJ='-undefined suppress'
15279 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15282 # FIXME: Relying on posixy $() will cause problems for
15283 # cross-compilation, but unfortunately the echo tests do not
15284 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15285 # `"' quotes if we put them in here... so don't!
15286 lt_int_apple_cc_single_mod=no
15287 output_verbose_link_cmd='echo'
15288 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15289 lt_int_apple_cc_single_mod=yes
15291 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15292 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15294 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'
15296 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15297 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15298 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15299 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}'
15301 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}'
15303 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}'
15304 hardcode_direct_GCJ=no
15305 hardcode_automatic_GCJ=yes
15306 hardcode_shlibpath_var_GCJ=unsupported
15307 whole_archive_flag_spec_GCJ='-all_load $convenience'
15308 link_all_deplibs_GCJ=yes
15313 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15314 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15315 hardcode_shlibpath_var_GCJ=no
15322 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15323 # support. Future versions do this automatically, but an explicit c++rt0.o
15324 # does not break anything, and helps significantly (at the cost of a little
15327 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15328 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15329 hardcode_direct_GCJ=yes
15330 hardcode_shlibpath_var_GCJ=no
15333 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15335 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15336 hardcode_direct_GCJ=yes
15337 hardcode_minus_L_GCJ=yes
15338 hardcode_shlibpath_var_GCJ=no
15341 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15343 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15344 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15345 hardcode_direct_GCJ=yes
15346 hardcode_shlibpath_var_GCJ=no
15350 if test "$GCC" = yes; then
15351 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'
15353 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'
15355 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15356 hardcode_libdir_separator_GCJ=:
15357 hardcode_direct_GCJ=yes
15359 # hardcode_minus_L: Not really in the search PATH,
15360 # but as the default location of the library.
15361 hardcode_minus_L_GCJ=yes
15362 export_dynamic_flag_spec_GCJ='${wl}-E'
15366 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15367 case "$host_cpu" in
15369 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15372 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15376 case "$host_cpu" in
15378 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15381 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15385 if test "$with_gnu_ld" = no; then
15386 case "$host_cpu" in
15388 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15389 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15390 hardcode_libdir_separator_GCJ=:
15391 hardcode_direct_GCJ=no
15392 hardcode_shlibpath_var_GCJ=no
15395 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15396 hardcode_direct_GCJ=no
15397 hardcode_shlibpath_var_GCJ=no
15399 # hardcode_minus_L: Not really in the search PATH,
15400 # but as the default location of the library.
15401 hardcode_minus_L_GCJ=yes
15404 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15405 hardcode_libdir_separator_GCJ=:
15406 hardcode_direct_GCJ=yes
15407 export_dynamic_flag_spec_GCJ='${wl}-E'
15409 # hardcode_minus_L: Not really in the search PATH,
15410 # but as the default location of the library.
15411 hardcode_minus_L_GCJ=yes
15417 irix5* | irix6* | nonstopux*)
15418 if test "$GCC" = yes; then
15419 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'
15421 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'
15422 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15424 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15425 hardcode_libdir_separator_GCJ=:
15426 link_all_deplibs_GCJ=yes
15430 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15431 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15433 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15435 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15436 hardcode_direct_GCJ=yes
15437 hardcode_shlibpath_var_GCJ=no
15441 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15442 hardcode_direct_GCJ=yes
15443 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15444 hardcode_libdir_separator_GCJ=:
15445 hardcode_shlibpath_var_GCJ=no
15449 hardcode_direct_GCJ=yes
15450 hardcode_shlibpath_var_GCJ=no
15451 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15452 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15453 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15454 export_dynamic_flag_spec_GCJ='${wl}-E'
15457 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15458 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15459 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15462 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15463 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15470 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15471 hardcode_minus_L_GCJ=yes
15472 allow_undefined_flag_GCJ=unsupported
15473 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'
15474 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15478 if test "$GCC" = yes; then
15479 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15480 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'
15482 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15483 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'
15485 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15486 hardcode_libdir_separator_GCJ=:
15489 osf4* | osf5*) # as osf3* with the addition of -msym flag
15490 if test "$GCC" = yes; then
15491 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15492 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'
15493 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15495 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15496 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'
15497 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~
15498 $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'
15500 # Both c and cxx compiler support -rpath directly
15501 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15503 hardcode_libdir_separator_GCJ=:
15507 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15508 hardcode_shlibpath_var_GCJ=no
15509 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15510 runpath_var=LD_RUN_PATH
15511 hardcode_runpath_var=yes
15515 no_undefined_flag_GCJ=' -z text'
15516 if test "$GCC" = yes; then
15517 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15518 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15519 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15521 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15522 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15523 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15525 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15526 hardcode_shlibpath_var_GCJ=no
15528 solaris2.[0-5] | solaris2.[0-5].*) ;;
15529 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15530 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15532 link_all_deplibs_GCJ=yes
15536 if test "x$host_vendor" = xsequent; then
15537 # Use $CC to link under sequent, because it throws in some extra .o
15538 # files that make .init and .fini sections work.
15539 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15541 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15543 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15544 hardcode_direct_GCJ=yes
15545 hardcode_minus_L_GCJ=yes
15546 hardcode_shlibpath_var_GCJ=no
15550 case $host_vendor in
15552 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15553 hardcode_direct_GCJ=yes # is this really true???
15556 ## LD is ld it makes a PLAMLIB
15557 ## CC just makes a GrossModule.
15558 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15559 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15560 hardcode_direct_GCJ=no
15563 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15564 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15567 runpath_var='LD_RUN_PATH'
15568 hardcode_shlibpath_var_GCJ=no
15572 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15573 hardcode_shlibpath_var_GCJ=no
15574 export_dynamic_flag_spec_GCJ='-Bexport'
15578 if test -d /usr/nec; then
15579 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15580 hardcode_shlibpath_var_GCJ=no
15581 runpath_var=LD_RUN_PATH
15582 hardcode_runpath_var=yes
15588 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15589 hardcode_direct_GCJ=yes
15590 hardcode_minus_L_GCJ=no
15591 hardcode_shlibpath_var_GCJ=no
15592 hardcode_runpath_var=yes
15593 runpath_var=LD_RUN_PATH
15596 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15597 no_undefined_flag_GCJ='${wl}-z ${wl}text'
15598 if test "$GCC" = yes; then
15599 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15601 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15603 runpath_var='LD_RUN_PATH'
15604 hardcode_shlibpath_var_GCJ=no
15608 no_undefined_flag_GCJ=' -z text'
15609 # $CC -shared without GNU ld will not create a library from C++
15610 # object files and a static libstdc++, better avoid it by now
15611 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15612 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15613 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15614 hardcode_libdir_flag_spec_GCJ=
15615 hardcode_shlibpath_var_GCJ=no
15616 runpath_var='LD_RUN_PATH'
15620 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15621 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15622 hardcode_shlibpath_var_GCJ=no
15631 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15632 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15633 test "$ld_shlibs_GCJ" = no && can_build_shared=no
15635 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15636 if test "$GCC" = yes; then
15637 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15641 # Do we need to explicitly link libc?
15643 case "x$archive_cmds_need_lc_GCJ" in
15645 # Assume -lc should be added
15646 archive_cmds_need_lc_GCJ=yes
15648 if test "$enable_shared" = yes && test "$GCC" = yes; then
15649 case $archive_cmds_GCJ in
15651 # FIXME: we may have to deal with multi-command sequences.
15654 # Test whether the compiler implicitly links with -lc since on some
15655 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15656 # to ld, don't add -lc before -lgcc.
15657 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15658 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15660 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15663 (eval $ac_compile) 2>&5
15665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666 (exit $ac_status); } 2>conftest.err; then
15669 libobjs=conftest.$ac_objext
15671 wl=$lt_prog_compiler_wl_GCJ
15677 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15678 allow_undefined_flag_GCJ=
15679 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15680 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683 (exit $ac_status); }
15685 archive_cmds_need_lc_GCJ=no
15687 archive_cmds_need_lc_GCJ=yes
15689 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15691 cat conftest.err 1>&5
15694 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15695 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15702 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15703 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15704 hardcode_action_GCJ=
15705 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15706 test -n "$runpath_var GCJ" || \
15707 test "X$hardcode_automatic_GCJ"="Xyes" ; then
15709 # We can hardcode non-existant directories.
15710 if test "$hardcode_direct_GCJ" != no &&
15711 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15712 # have to relink, otherwise we might link with an installed library
15713 # when we should be linking with a yet-to-be-installed one
15714 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15715 test "$hardcode_minus_L_GCJ" != no; then
15716 # Linking always hardcodes the temporary library directory.
15717 hardcode_action_GCJ=relink
15719 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15720 hardcode_action_GCJ=immediate
15723 # We cannot hardcode anything, or else we can only hardcode existing
15725 hardcode_action_GCJ=unsupported
15727 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15728 echo "${ECHO_T}$hardcode_action_GCJ" >&6
15730 if test "$hardcode_action_GCJ" = relink; then
15731 # Fast installation is not supported
15732 enable_fast_install=no
15733 elif test "$shlibpath_overrides_runpath" = yes ||
15734 test "$enable_shared" = no; then
15735 # Fast installation is not necessary
15736 enable_fast_install=needless
15741 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15742 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15743 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15744 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15745 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15746 echo "$as_me:$LINENO: result: yes" >&5
15747 echo "${ECHO_T}yes" >&6
15749 # FIXME - insert some real tests, host_os isn't really good enough
15752 if test -n "$STRIP" ; then
15753 striplib="$STRIP -x"
15754 echo "$as_me:$LINENO: result: yes" >&5
15755 echo "${ECHO_T}yes" >&6
15757 echo "$as_me:$LINENO: result: no" >&5
15758 echo "${ECHO_T}no" >&6
15762 echo "$as_me:$LINENO: result: no" >&5
15763 echo "${ECHO_T}no" >&6
15768 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15769 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15770 library_names_spec=
15771 libname_spec='lib$name'
15775 postuninstall_cmds=
15779 shlibpath_overrides_runpath=unknown
15781 dynamic_linker="$host_os ld.so"
15782 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15783 if test "$GCC" = yes; then
15784 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15785 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15786 # if the path contains ";" then we assume it to be the separator
15787 # otherwise default to the standard path separator (i.e. ":") - it is
15788 # assumed that no part of a normal pathname contains ";" but that should
15789 # okay in the real world where ";" in dirpaths is itself problematic.
15790 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15792 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15795 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15797 need_lib_prefix=unknown
15798 hardcode_into_libs=no
15800 # when you set need_version to no, make sure it does not cause -set_version
15801 # flags to be left without arguments
15802 need_version=unknown
15807 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15808 shlibpath_var=LIBPATH
15810 # AIX 3 has no versioning support, so we append a major version to the name.
15811 soname_spec='${libname}${release}${shared_ext}$major'
15818 hardcode_into_libs=yes
15819 if test "$host_cpu" = ia64; then
15820 # AIX 5 supports IA64
15821 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15822 shlibpath_var=LD_LIBRARY_PATH
15824 # With GCC up to 2.95.x, collect2 would create an import file
15825 # for dependence libraries. The import file would start with
15826 # the line `#! .'. This would cause the generated library to
15827 # depend on `.', always an invalid library. This was fixed in
15828 # development snapshots of GCC prior to 3.0.
15830 aix4 | aix4.[01] | aix4.[01].*)
15831 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15833 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15836 can_build_shared=no
15840 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15841 # soname into executable. Probably we can add versioning support to
15842 # collect2, so additional links can be useful in future.
15843 if test "$aix_use_runtimelinking" = yes; then
15844 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15845 # instead of lib<name>.a to let people know that these are not
15846 # typical AIX shared libraries.
15847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15849 # We preserve .a as extension for shared libraries through AIX4.2
15850 # and later when we are not doing run time linking.
15851 library_names_spec='${libname}${release}.a $libname.a'
15852 soname_spec='${libname}${release}${shared_ext}$major'
15854 shlibpath_var=LIBPATH
15859 library_names_spec='$libname.ixlibrary $libname.a'
15860 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15861 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'
15865 library_names_spec='${libname}${shared_ext}'
15866 dynamic_linker="$host_os ld.so"
15867 shlibpath_var=LIBRARY_PATH
15873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15874 soname_spec='${libname}${release}${shared_ext}$major'
15875 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15876 shlibpath_var=LD_LIBRARY_PATH
15877 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15878 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15879 # the default ld.so.conf also contains /usr/contrib/lib and
15880 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15881 # libtool to hard-code these into programs
15884 cygwin* | mingw* | pw32*)
15885 version_type=windows
15890 case $GCC,$host_os in
15891 yes,cygwin* | yes,mingw* | yes,pw32*)
15892 library_names_spec='$libname.dll.a'
15893 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15894 postinstall_cmds='base_file=`basename \${file}`~
15895 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15896 dldir=$destdir/`dirname \$dlpath`~
15897 test -d \$dldir || mkdir -p \$dldir~
15898 $install_prog $dir/$dlname \$dldir/$dlname'
15899 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15900 dlpath=$dir/\$dldll~
15902 shlibpath_overrides_runpath=yes
15906 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15907 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15908 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
15911 # MinGW DLLs use traditional 'lib' prefix
15912 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15913 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15914 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15915 # It is most probably a Windows format PATH printed by
15916 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15917 # path with ; separators, and with drive letters. We can handle the
15918 # drive letters (cygwin fileutils understands them), so leave them,
15919 # especially as we might pass files found there to a mingw objdump,
15920 # which wouldn't understand a cygwinified path. Ahh.
15921 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15923 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15927 # pw32 DLLs use 'pw' prefix rather than 'lib'
15928 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15934 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15937 dynamic_linker='Win32 ld.exe'
15938 # FIXME: first we should search . and the directory the executable is in
15942 darwin* | rhapsody*)
15943 dynamic_linker="$host_os dyld"
15944 version_type=darwin
15947 # FIXME: Relying on posixy $() will cause problems for
15948 # cross-compilation, but unfortunately the echo tests do not
15949 # yet detect zsh echo's removal of \ escapes.
15950 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15951 soname_spec='${libname}${release}${major}$shared_ext'
15952 shlibpath_overrides_runpath=yes
15953 shlibpath_var=DYLD_LIBRARY_PATH
15954 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
15955 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15956 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15957 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"`
15959 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15967 soname_spec='${libname}${release}${shared_ext}$major'
15968 shlibpath_var=LD_LIBRARY_PATH
15976 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15977 version_type=freebsd-$objformat
15978 case $version_type in
15980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15985 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15989 shlibpath_var=LD_LIBRARY_PATH
15992 shlibpath_overrides_runpath=yes
15994 freebsd3.01* | freebsdelf3.01*)
15995 shlibpath_overrides_runpath=yes
15996 hardcode_into_libs=yes
15999 shlibpath_overrides_runpath=no
16000 hardcode_into_libs=yes
16009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16010 soname_spec='${libname}${release}${shared_ext}$major'
16011 shlibpath_var=LD_LIBRARY_PATH
16012 hardcode_into_libs=yes
16015 hpux9* | hpux10* | hpux11*)
16016 # Give a soname corresponding to the major version so that dld.sl refuses to
16017 # link against other versions.
16021 case "$host_cpu" in
16024 hardcode_into_libs=yes
16025 dynamic_linker="$host_os dld.so"
16026 shlibpath_var=LD_LIBRARY_PATH
16027 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16029 soname_spec='${libname}${release}${shared_ext}$major'
16030 if test "X$HPUX_IA64_MODE" = X32; then
16031 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16033 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16035 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16039 hardcode_into_libs=yes
16040 dynamic_linker="$host_os dld.sl"
16041 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16042 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16044 soname_spec='${libname}${release}${shared_ext}$major'
16045 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16046 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16050 dynamic_linker="$host_os dld.sl"
16051 shlibpath_var=SHLIB_PATH
16052 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16054 soname_spec='${libname}${release}${shared_ext}$major'
16057 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16058 postinstall_cmds='chmod 555 $lib'
16061 irix5* | irix6* | nonstopux*)
16063 nonstopux*) version_type=nonstopux ;;
16065 if test "$lt_cv_prog_gnu_ld" = yes; then
16073 soname_spec='${libname}${release}${shared_ext}$major'
16074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16076 irix5* | nonstopux*)
16077 libsuff= shlibsuff=
16080 case $LD in # libtool.m4 will add one of these switches to LD
16081 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16082 libsuff= shlibsuff= libmagic=32-bit;;
16083 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16084 libsuff=32 shlibsuff=N32 libmagic=N32;;
16085 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16086 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16087 *) libsuff= shlibsuff= libmagic=never-match;;
16091 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16092 shlibpath_overrides_runpath=no
16093 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16094 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16095 hardcode_into_libs=yes
16098 # No shared lib support for Linux oldld, aout, or coff.
16099 linux*oldld* | linux*aout* | linux*coff*)
16103 # This must be Linux ELF.
16108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16109 soname_spec='${libname}${release}${shared_ext}$major'
16110 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16111 shlibpath_var=LD_LIBRARY_PATH
16112 shlibpath_overrides_runpath=no
16113 # This implies no fast_install, which is unacceptable.
16114 # Some rework will be needed to allow for fast_install
16115 # before this can be enabled.
16116 hardcode_into_libs=yes
16118 # We used to test for /lib/ld.so.1 and disable shared libraries on
16119 # powerpc, because MkLinux only supported shared libraries with the
16120 # GNU dynamic linker. Since this was broken with cross compilers,
16121 # most powerpc-linux boxes support dynamic linking these days and
16122 # people can always --disable-shared, the test was removed, and we
16123 # assume the GNU/Linux dynamic linker is in use.
16124 dynamic_linker='GNU/Linux ld.so'
16131 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16133 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16134 dynamic_linker='NetBSD (a.out) ld.so'
16136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16137 soname_spec='${libname}${release}${shared_ext}$major'
16138 dynamic_linker='NetBSD ld.elf_so'
16140 shlibpath_var=LD_LIBRARY_PATH
16141 shlibpath_overrides_runpath=yes
16142 hardcode_into_libs=yes
16147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16148 shlibpath_var=LD_LIBRARY_PATH
16149 shlibpath_overrides_runpath=yes
16156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16157 soname_spec='${libname}${release}${shared_ext}$major'
16158 shlibpath_var=LD_LIBRARY_PATH
16159 shlibpath_overrides_runpath=yes
16166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16167 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16168 shlibpath_var=LD_LIBRARY_PATH
16169 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16171 openbsd2.[89] | openbsd2.[89].*)
16172 shlibpath_overrides_runpath=no
16175 shlibpath_overrides_runpath=yes
16179 shlibpath_overrides_runpath=yes
16184 libname_spec='$name'
16187 library_names_spec='$libname${shared_ext} $libname.a'
16188 dynamic_linker='OS/2 ld.exe'
16189 shlibpath_var=LIBPATH
16192 osf3* | osf4* | osf5*)
16196 soname_spec='${libname}${release}${shared_ext}$major'
16197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16198 shlibpath_var=LD_LIBRARY_PATH
16199 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16200 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16205 soname_spec='${libname}${release}${shared_ext}$major'
16206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16207 shlibpath_var=LD_LIBRARY_PATH
16214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16215 soname_spec='${libname}${release}${shared_ext}$major'
16216 shlibpath_var=LD_LIBRARY_PATH
16217 shlibpath_overrides_runpath=yes
16218 hardcode_into_libs=yes
16219 # ldd complains unless libraries are executable
16220 postinstall_cmds='chmod +x $lib'
16225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16226 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16227 shlibpath_var=LD_LIBRARY_PATH
16228 shlibpath_overrides_runpath=yes
16229 if test "$with_gnu_ld" = yes; then
16235 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16238 soname_spec='${libname}${release}${shared_ext}$major'
16239 shlibpath_var=LD_LIBRARY_PATH
16240 case $host_vendor in
16242 shlibpath_overrides_runpath=no
16244 export_dynamic_flag_spec='${wl}-Blargedynsym'
16245 runpath_var=LD_RUN_PATH
16253 shlibpath_overrides_runpath=no
16254 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16260 if test -d /usr/nec ;then
16262 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16263 soname_spec='$libname${shared_ext}.$major'
16264 shlibpath_var=LD_LIBRARY_PATH
16270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16271 soname_spec='${libname}${release}${shared_ext}$major'
16272 shlibpath_var=LD_LIBRARY_PATH
16279 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16280 echo "${ECHO_T}$dynamic_linker" >&6
16281 test "$dynamic_linker" = no && can_build_shared=no
16283 if test "x$enable_dlopen" != xyes; then
16284 enable_dlopen=unknown
16285 enable_dlopen_self=unknown
16286 enable_dlopen_self_static=unknown
16293 lt_cv_dlopen="load_add_on"
16295 lt_cv_dlopen_self=yes
16299 lt_cv_dlopen="LoadLibrary"
16304 lt_cv_dlopen="dlopen"
16309 # if libdl is installed we need to link against it
16310 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16311 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16312 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16313 echo $ECHO_N "(cached) $ECHO_C" >&6
16315 ac_check_lib_save_LIBS=$LIBS
16317 cat >conftest.$ac_ext <<_ACEOF
16318 #line $LINENO "configure"
16321 cat confdefs.h >>conftest.$ac_ext
16322 cat >>conftest.$ac_ext <<_ACEOF
16323 /* end confdefs.h. */
16325 /* Override any gcc2 internal prototype to avoid an error. */
16329 /* We use char because int might match the return type of a gcc2
16330 builtin and then its argument prototype would still apply. */
16340 rm -f conftest.$ac_objext conftest$ac_exeext
16341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16342 (eval $ac_link) 2>&5
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); } &&
16346 { ac_try='test -s conftest$ac_exeext'
16347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16348 (eval $ac_try) 2>&5
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); }; }; then
16352 ac_cv_lib_dl_dlopen=yes
16354 echo "$as_me: failed program was:" >&5
16355 sed 's/^/| /' conftest.$ac_ext >&5
16357 ac_cv_lib_dl_dlopen=no
16359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16360 LIBS=$ac_check_lib_save_LIBS
16362 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16363 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16364 if test $ac_cv_lib_dl_dlopen = yes; then
16365 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16368 lt_cv_dlopen="dyld"
16370 lt_cv_dlopen_self=yes
16377 echo "$as_me:$LINENO: checking for shl_load" >&5
16378 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16379 if test "${ac_cv_func_shl_load+set}" = set; then
16380 echo $ECHO_N "(cached) $ECHO_C" >&6
16382 cat >conftest.$ac_ext <<_ACEOF
16383 #line $LINENO "configure"
16386 cat confdefs.h >>conftest.$ac_ext
16387 cat >>conftest.$ac_ext <<_ACEOF
16388 /* end confdefs.h. */
16389 /* System header to define __stub macros and hopefully few prototypes,
16390 which can conflict with char shl_load (); below.
16391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16392 <limits.h> exists even on freestanding compilers. */
16394 # include <limits.h>
16396 # include <assert.h>
16398 /* Override any gcc2 internal prototype to avoid an error. */
16403 /* We use char because int might match the return type of a gcc2
16404 builtin and then its argument prototype would still apply. */
16406 /* The GNU C library defines this for functions which it implements
16407 to always fail with ENOSYS. Some functions are actually named
16408 something starting with __ and the normal name is an alias. */
16409 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16412 char (*f) () = shl_load;
16421 return f != shl_load;
16426 rm -f conftest.$ac_objext conftest$ac_exeext
16427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16428 (eval $ac_link) 2>&5
16430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); } &&
16432 { ac_try='test -s conftest$ac_exeext'
16433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16434 (eval $ac_try) 2>&5
16436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 (exit $ac_status); }; }; then
16438 ac_cv_func_shl_load=yes
16440 echo "$as_me: failed program was:" >&5
16441 sed 's/^/| /' conftest.$ac_ext >&5
16443 ac_cv_func_shl_load=no
16445 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16447 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16448 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16449 if test $ac_cv_func_shl_load = yes; then
16450 lt_cv_dlopen="shl_load"
16452 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16453 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16454 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16455 echo $ECHO_N "(cached) $ECHO_C" >&6
16457 ac_check_lib_save_LIBS=$LIBS
16459 cat >conftest.$ac_ext <<_ACEOF
16460 #line $LINENO "configure"
16463 cat confdefs.h >>conftest.$ac_ext
16464 cat >>conftest.$ac_ext <<_ACEOF
16465 /* end confdefs.h. */
16467 /* Override any gcc2 internal prototype to avoid an error. */
16471 /* We use char because int might match the return type of a gcc2
16472 builtin and then its argument prototype would still apply. */
16482 rm -f conftest.$ac_objext conftest$ac_exeext
16483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16484 (eval $ac_link) 2>&5
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); } &&
16488 { ac_try='test -s conftest$ac_exeext'
16489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16490 (eval $ac_try) 2>&5
16492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493 (exit $ac_status); }; }; then
16494 ac_cv_lib_dld_shl_load=yes
16496 echo "$as_me: failed program was:" >&5
16497 sed 's/^/| /' conftest.$ac_ext >&5
16499 ac_cv_lib_dld_shl_load=no
16501 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16502 LIBS=$ac_check_lib_save_LIBS
16504 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16505 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16506 if test $ac_cv_lib_dld_shl_load = yes; then
16507 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16509 echo "$as_me:$LINENO: checking for dlopen" >&5
16510 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16511 if test "${ac_cv_func_dlopen+set}" = set; then
16512 echo $ECHO_N "(cached) $ECHO_C" >&6
16514 cat >conftest.$ac_ext <<_ACEOF
16515 #line $LINENO "configure"
16518 cat confdefs.h >>conftest.$ac_ext
16519 cat >>conftest.$ac_ext <<_ACEOF
16520 /* end confdefs.h. */
16521 /* System header to define __stub macros and hopefully few prototypes,
16522 which can conflict with char dlopen (); below.
16523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16524 <limits.h> exists even on freestanding compilers. */
16526 # include <limits.h>
16528 # include <assert.h>
16530 /* Override any gcc2 internal prototype to avoid an error. */
16535 /* We use char because int might match the return type of a gcc2
16536 builtin and then its argument prototype would still apply. */
16538 /* The GNU C library defines this for functions which it implements
16539 to always fail with ENOSYS. Some functions are actually named
16540 something starting with __ and the normal name is an alias. */
16541 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16544 char (*f) () = dlopen;
16553 return f != dlopen;
16558 rm -f conftest.$ac_objext conftest$ac_exeext
16559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16560 (eval $ac_link) 2>&5
16562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563 (exit $ac_status); } &&
16564 { ac_try='test -s conftest$ac_exeext'
16565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16566 (eval $ac_try) 2>&5
16568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569 (exit $ac_status); }; }; then
16570 ac_cv_func_dlopen=yes
16572 echo "$as_me: failed program was:" >&5
16573 sed 's/^/| /' conftest.$ac_ext >&5
16575 ac_cv_func_dlopen=no
16577 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16579 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16580 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16581 if test $ac_cv_func_dlopen = yes; then
16582 lt_cv_dlopen="dlopen"
16584 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16585 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16586 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16587 echo $ECHO_N "(cached) $ECHO_C" >&6
16589 ac_check_lib_save_LIBS=$LIBS
16591 cat >conftest.$ac_ext <<_ACEOF
16592 #line $LINENO "configure"
16595 cat confdefs.h >>conftest.$ac_ext
16596 cat >>conftest.$ac_ext <<_ACEOF
16597 /* end confdefs.h. */
16599 /* Override any gcc2 internal prototype to avoid an error. */
16603 /* We use char because int might match the return type of a gcc2
16604 builtin and then its argument prototype would still apply. */
16614 rm -f conftest.$ac_objext conftest$ac_exeext
16615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16616 (eval $ac_link) 2>&5
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); } &&
16620 { ac_try='test -s conftest$ac_exeext'
16621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16622 (eval $ac_try) 2>&5
16624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); }; }; then
16626 ac_cv_lib_dl_dlopen=yes
16628 echo "$as_me: failed program was:" >&5
16629 sed 's/^/| /' conftest.$ac_ext >&5
16631 ac_cv_lib_dl_dlopen=no
16633 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16634 LIBS=$ac_check_lib_save_LIBS
16636 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16637 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16638 if test $ac_cv_lib_dl_dlopen = yes; then
16639 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16641 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16642 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16643 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16644 echo $ECHO_N "(cached) $ECHO_C" >&6
16646 ac_check_lib_save_LIBS=$LIBS
16647 LIBS="-lsvld $LIBS"
16648 cat >conftest.$ac_ext <<_ACEOF
16649 #line $LINENO "configure"
16652 cat confdefs.h >>conftest.$ac_ext
16653 cat >>conftest.$ac_ext <<_ACEOF
16654 /* end confdefs.h. */
16656 /* Override any gcc2 internal prototype to avoid an error. */
16660 /* We use char because int might match the return type of a gcc2
16661 builtin and then its argument prototype would still apply. */
16671 rm -f conftest.$ac_objext conftest$ac_exeext
16672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16673 (eval $ac_link) 2>&5
16675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676 (exit $ac_status); } &&
16677 { ac_try='test -s conftest$ac_exeext'
16678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16679 (eval $ac_try) 2>&5
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); }; }; then
16683 ac_cv_lib_svld_dlopen=yes
16685 echo "$as_me: failed program was:" >&5
16686 sed 's/^/| /' conftest.$ac_ext >&5
16688 ac_cv_lib_svld_dlopen=no
16690 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16691 LIBS=$ac_check_lib_save_LIBS
16693 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16694 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16695 if test $ac_cv_lib_svld_dlopen = yes; then
16696 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16698 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16699 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16700 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16701 echo $ECHO_N "(cached) $ECHO_C" >&6
16703 ac_check_lib_save_LIBS=$LIBS
16705 cat >conftest.$ac_ext <<_ACEOF
16706 #line $LINENO "configure"
16709 cat confdefs.h >>conftest.$ac_ext
16710 cat >>conftest.$ac_ext <<_ACEOF
16711 /* end confdefs.h. */
16713 /* Override any gcc2 internal prototype to avoid an error. */
16717 /* We use char because int might match the return type of a gcc2
16718 builtin and then its argument prototype would still apply. */
16728 rm -f conftest.$ac_objext conftest$ac_exeext
16729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16730 (eval $ac_link) 2>&5
16732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733 (exit $ac_status); } &&
16734 { ac_try='test -s conftest$ac_exeext'
16735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16736 (eval $ac_try) 2>&5
16738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739 (exit $ac_status); }; }; then
16740 ac_cv_lib_dld_dld_link=yes
16742 echo "$as_me: failed program was:" >&5
16743 sed 's/^/| /' conftest.$ac_ext >&5
16745 ac_cv_lib_dld_dld_link=no
16747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16748 LIBS=$ac_check_lib_save_LIBS
16750 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16751 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16752 if test $ac_cv_lib_dld_dld_link = yes; then
16753 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16774 if test "x$lt_cv_dlopen" != xno; then
16780 case $lt_cv_dlopen in
16782 save_CPPFLAGS="$CPPFLAGS"
16783 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16785 save_LDFLAGS="$LDFLAGS"
16786 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16789 LIBS="$lt_cv_dlopen_libs $LIBS"
16791 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16792 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16793 if test "${lt_cv_dlopen_self+set}" = set; then
16794 echo $ECHO_N "(cached) $ECHO_C" >&6
16796 if test "$cross_compiling" = yes; then :
16797 lt_cv_dlopen_self=cross
16799 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16800 lt_status=$lt_dlunknown
16801 cat > conftest.$ac_ext <<EOF
16802 #line 16802 "configure"
16803 #include "confdefs.h"
16812 # define LT_DLGLOBAL RTLD_GLOBAL
16815 # define LT_DLGLOBAL DL_GLOBAL
16817 # define LT_DLGLOBAL 0
16821 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16822 find out it does not work in some platform. */
16823 #ifndef LT_DLLAZY_OR_NOW
16825 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16828 # define LT_DLLAZY_OR_NOW DL_LAZY
16831 # define LT_DLLAZY_OR_NOW RTLD_NOW
16834 # define LT_DLLAZY_OR_NOW DL_NOW
16836 # define LT_DLLAZY_OR_NOW 0
16844 extern "C" void exit (int);
16847 void fnord() { int i=42;}
16850 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16851 int status = $lt_dlunknown;
16855 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16856 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16857 /* dlclose (self); */
16863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16864 (eval $ac_link) 2>&5
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16868 (./conftest; exit; ) 2>/dev/null
16870 case x$lt_status in
16871 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16872 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16873 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
16876 # compilation failed
16877 lt_cv_dlopen_self=no
16884 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16885 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
16887 if test "x$lt_cv_dlopen_self" = xyes; then
16888 LDFLAGS="$LDFLAGS $link_static_flag"
16889 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16890 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
16891 if test "${lt_cv_dlopen_self_static+set}" = set; then
16892 echo $ECHO_N "(cached) $ECHO_C" >&6
16894 if test "$cross_compiling" = yes; then :
16895 lt_cv_dlopen_self_static=cross
16897 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16898 lt_status=$lt_dlunknown
16899 cat > conftest.$ac_ext <<EOF
16900 #line 16900 "configure"
16901 #include "confdefs.h"
16910 # define LT_DLGLOBAL RTLD_GLOBAL
16913 # define LT_DLGLOBAL DL_GLOBAL
16915 # define LT_DLGLOBAL 0
16919 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16920 find out it does not work in some platform. */
16921 #ifndef LT_DLLAZY_OR_NOW
16923 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16926 # define LT_DLLAZY_OR_NOW DL_LAZY
16929 # define LT_DLLAZY_OR_NOW RTLD_NOW
16932 # define LT_DLLAZY_OR_NOW DL_NOW
16934 # define LT_DLLAZY_OR_NOW 0
16942 extern "C" void exit (int);
16945 void fnord() { int i=42;}
16948 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16949 int status = $lt_dlunknown;
16953 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16954 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16955 /* dlclose (self); */
16961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16962 (eval $ac_link) 2>&5
16964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16966 (./conftest; exit; ) 2>/dev/null
16968 case x$lt_status in
16969 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16970 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16971 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
16974 # compilation failed
16975 lt_cv_dlopen_self_static=no
16982 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16983 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
16986 CPPFLAGS="$save_CPPFLAGS"
16987 LDFLAGS="$save_LDFLAGS"
16992 case $lt_cv_dlopen_self in
16993 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16994 *) enable_dlopen_self=unknown ;;
16997 case $lt_cv_dlopen_self_static in
16998 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16999 *) enable_dlopen_self_static=unknown ;;
17004 # The else clause should only fire when bootstrapping the
17005 # libtool distribution, otherwise you forgot to ship ltmain.sh
17006 # with your package, and you will get complaints that there are
17007 # no rules to generate ltmain.sh.
17008 if test -f "$ltmain"; then
17009 # See if we are running on zsh, and set the options which allow our commands through
17010 # without removal of \ escapes.
17011 if test -n "${ZSH_VERSION+set}" ; then
17012 setopt NO_GLOB_SUBST
17014 # Now quote all the things that may contain metacharacters while being
17015 # careful not to overquote the AC_SUBSTed values. We take copies of the
17016 # variables and quote the copies for generation of the libtool script.
17017 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17018 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17019 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17020 deplibs_check_method reload_flag reload_cmds need_locks \
17021 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17022 lt_cv_sys_global_symbol_to_c_name_address \
17023 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17024 old_postinstall_cmds old_postuninstall_cmds \
17028 lt_prog_compiler_wl_GCJ \
17029 lt_prog_compiler_pic_GCJ \
17030 lt_prog_compiler_static_GCJ \
17031 lt_prog_compiler_no_builtin_flag_GCJ \
17032 export_dynamic_flag_spec_GCJ \
17033 thread_safe_flag_spec_GCJ \
17034 whole_archive_flag_spec_GCJ \
17035 enable_shared_with_static_runtimes_GCJ \
17036 old_archive_cmds_GCJ \
17037 old_archive_from_new_cmds_GCJ \
17038 predep_objects_GCJ \
17039 postdep_objects_GCJ \
17042 compiler_lib_search_path_GCJ \
17044 archive_expsym_cmds_GCJ \
17045 postinstall_cmds_GCJ \
17046 postuninstall_cmds_GCJ \
17047 old_archive_from_expsyms_cmds_GCJ \
17048 allow_undefined_flag_GCJ \
17049 no_undefined_flag_GCJ \
17050 export_symbols_cmds_GCJ \
17051 hardcode_libdir_flag_spec_GCJ \
17052 hardcode_libdir_flag_spec_ld_GCJ \
17053 hardcode_libdir_separator_GCJ \
17054 hardcode_automatic_GCJ \
17056 module_expsym_cmds_GCJ \
17057 lt_cv_prog_compiler_c_o_GCJ \
17058 exclude_expsyms_GCJ \
17059 include_expsyms_GCJ; do
17062 old_archive_cmds_GCJ | \
17063 old_archive_from_new_cmds_GCJ | \
17064 archive_cmds_GCJ | \
17065 archive_expsym_cmds_GCJ | \
17066 module_cmds_GCJ | \
17067 module_expsym_cmds_GCJ | \
17068 old_archive_from_expsyms_cmds_GCJ | \
17069 export_symbols_cmds_GCJ | \
17070 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17071 postinstall_cmds | postuninstall_cmds | \
17072 old_postinstall_cmds | old_postuninstall_cmds | \
17073 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17074 # Double-quote double-evaled strings.
17075 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17078 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17084 *'\$0 --fallback-echo"')
17085 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17091 cat <<__EOF__ >> "$cfgfile"
17092 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17094 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17096 # Shell to use when invoking shell scripts.
17099 # Whether or not to build shared libraries.
17100 build_libtool_libs=$enable_shared
17102 # Whether or not to build static libraries.
17103 build_old_libs=$enable_static
17105 # Whether or not to add -lc for building shared libraries.
17106 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17108 # Whether or not to disallow shared libs when runtime libs are static
17109 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17111 # Whether or not to optimize for fast installation.
17112 fast_install=$enable_fast_install
17115 host_alias=$host_alias
17118 # An echo program that does not interpret backslashes.
17123 AR_FLAGS=$lt_AR_FLAGS
17128 # A language-specific compiler.
17129 CC=$lt_compiler_GCJ
17131 # Is the compiler the GNU C compiler?
17137 # The linker used to build libraries.
17140 # Whether we need hard or soft links.
17143 # A BSD-compatible nm program.
17146 # A symbol stripping program
17149 # Used to examine libraries when file_magic_cmd begins "file"
17150 MAGIC_CMD=$MAGIC_CMD
17152 # Used on cygwin: DLL creation program.
17155 # Used on cygwin: object dumper.
17158 # Used on cygwin: assembler.
17161 # The name of the directory that contains temporary libtool files.
17164 # How to create reloadable object files.
17165 reload_flag=$lt_reload_flag
17166 reload_cmds=$lt_reload_cmds
17168 # How to pass a linker flag through the compiler.
17169 wl=$lt_lt_prog_compiler_wl_GCJ
17171 # Object file suffix (normally "o").
17172 objext="$ac_objext"
17174 # Old archive suffix (normally "a").
17177 # Shared library suffix (normally ".so").
17180 # Executable file suffix (normally "").
17183 # Additional compiler flags for building library objects.
17184 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17187 # What is the maximum length of a command?
17188 max_cmd_len=$lt_cv_sys_max_cmd_len
17190 # Does compiler simultaneously support -c and -o options?
17191 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17193 # Must we lock files when doing compilation ?
17194 need_locks=$lt_need_locks
17196 # Do we need the lib prefix for modules?
17197 need_lib_prefix=$need_lib_prefix
17199 # Do we need a version for libraries?
17200 need_version=$need_version
17202 # Whether dlopen is supported.
17203 dlopen_support=$enable_dlopen
17205 # Whether dlopen of programs is supported.
17206 dlopen_self=$enable_dlopen_self
17208 # Whether dlopen of statically linked programs is supported.
17209 dlopen_self_static=$enable_dlopen_self_static
17211 # Compiler flag to prevent dynamic linking.
17212 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17214 # Compiler flag to turn off builtin functions.
17215 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17217 # Compiler flag to allow reflexive dlopens.
17218 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17220 # Compiler flag to generate shared objects directly from archives.
17221 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17223 # Compiler flag to generate thread-safe objects.
17224 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17226 # Library versioning type.
17227 version_type=$version_type
17229 # Format of library name prefix.
17230 libname_spec=$lt_libname_spec
17232 # List of archive names. First name is the real one, the rest are links.
17233 # The last name is the one that the linker finds with -lNAME.
17234 library_names_spec=$lt_library_names_spec
17236 # The coded name of the library, if different from the real name.
17237 soname_spec=$lt_soname_spec
17239 # Commands used to build and install an old-style archive.
17241 old_archive_cmds=$lt_old_archive_cmds_GCJ
17242 old_postinstall_cmds=$lt_old_postinstall_cmds
17243 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17245 # Create an old-style archive from a shared archive.
17246 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17248 # Create a temporary old-style archive to link instead of a shared archive.
17249 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17251 # Commands used to build and install a shared archive.
17252 archive_cmds=$lt_archive_cmds_GCJ
17253 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17254 postinstall_cmds=$lt_postinstall_cmds
17255 postuninstall_cmds=$lt_postuninstall_cmds
17257 # Commands used to build a loadable module (assumed same as above if empty)
17258 module_cmds=$lt_module_cmds_GCJ
17259 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17261 # Commands to strip libraries.
17262 old_striplib=$lt_old_striplib
17263 striplib=$lt_striplib
17265 # Dependencies to place before the objects being linked to create a
17267 predep_objects=$lt_predep_objects_GCJ
17269 # Dependencies to place after the objects being linked to create a
17271 postdep_objects=$lt_postdep_objects_GCJ
17273 # Dependencies to place before the objects being linked to create a
17275 predeps=$lt_predeps_GCJ
17277 # Dependencies to place after the objects being linked to create a
17279 postdeps=$lt_postdeps_GCJ
17281 # The library search path used internally by the compiler when linking
17282 # a shared library.
17283 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17285 # Method to check whether dependent libraries are shared objects.
17286 deplibs_check_method=$lt_deplibs_check_method
17288 # Command to use when deplibs_check_method == file_magic.
17289 file_magic_cmd=$lt_file_magic_cmd
17291 # Flag that allows shared libraries with undefined symbols to be built.
17292 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17294 # Flag that forces no undefined symbols.
17295 no_undefined_flag=$lt_no_undefined_flag_GCJ
17297 # Commands used to finish a libtool library installation in a directory.
17298 finish_cmds=$lt_finish_cmds
17300 # Same as above, but a single script fragment to be evaled but not shown.
17301 finish_eval=$lt_finish_eval
17303 # Take the output of nm and produce a listing of raw symbols and C names.
17304 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17306 # Transform the output of nm in a proper C declaration
17307 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17309 # Transform the output of nm in a C name address pair
17310 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17312 # This is the shared library runtime path variable.
17313 runpath_var=$runpath_var
17315 # This is the shared library path variable.
17316 shlibpath_var=$shlibpath_var
17318 # Is shlibpath searched before the hard-coded library search path?
17319 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17321 # How to hardcode a shared library path into an executable.
17322 hardcode_action=$hardcode_action_GCJ
17324 # Whether we should hardcode library paths into libraries.
17325 hardcode_into_libs=$hardcode_into_libs
17327 # Flag to hardcode \$libdir into a binary during linking.
17328 # This must work even if \$libdir does not exist.
17329 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17331 # If ld is used when linking, flag to hardcode \$libdir into
17332 # a binary during linking. This must work even if \$libdir does
17334 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17336 # Whether we need a single -rpath flag with a separated argument.
17337 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17339 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17340 # resulting binary.
17341 hardcode_direct=$hardcode_direct_GCJ
17343 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17344 # resulting binary.
17345 hardcode_minus_L=$hardcode_minus_L_GCJ
17347 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17348 # the resulting binary.
17349 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17351 # Set to yes if building a shared library automatically hardcodes DIR into the library
17352 # and all subsequent libraries and executables linked against it.
17353 hardcode_automatic=$hardcode_automatic_GCJ
17355 # Variables whose values should be saved in libtool wrapper scripts and
17356 # restored at relink time.
17357 variables_saved_for_relink="$variables_saved_for_relink"
17359 # Whether libtool must link a program against all its dependency libraries.
17360 link_all_deplibs=$link_all_deplibs_GCJ
17362 # Compile-time system search path for libraries
17363 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17365 # Run-time system search path for libraries
17366 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17368 # Fix the shell variable \$srcfile for the compiler.
17369 fix_srcfile_path="$fix_srcfile_path_GCJ"
17371 # Set to yes if exported symbols are required.
17372 always_export_symbols=$always_export_symbols_GCJ
17374 # The commands to list exported symbols.
17375 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17377 # The commands to extract the exported symbol list from a shared archive.
17378 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17380 # Symbols that should not be listed in the preloaded symbols.
17381 exclude_expsyms=$lt_exclude_expsyms_GCJ
17383 # Symbols that must always be exported.
17384 include_expsyms=$lt_include_expsyms_GCJ
17386 # ### END LIBTOOL TAG CONFIG: $tagname
17392 # If there is no Makefile yet, we rely on a make rule to execute
17393 # `config.status --recheck' to rerun these tests and create the
17394 # libtool script then.
17395 test -f Makefile && make "$ltmain"
17400 ac_cpp='$CPP $CPPFLAGS'
17401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17416 # Source file extension for RC test sources.
17419 # Object file extension for compiled RC test sources.
17423 # Code to be used in simple compile tests
17424 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17426 # Code to be used in simple link tests
17427 lt_simple_link_test_code="$lt_simple_compile_test_code"
17429 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17431 # If no C compiler was specified, use CC.
17434 # Allow CC to be a program name with arguments.
17438 # Allow CC to be a program name with arguments.
17443 lt_cv_prog_compiler_c_o_RC=yes
17445 # The else clause should only fire when bootstrapping the
17446 # libtool distribution, otherwise you forgot to ship ltmain.sh
17447 # with your package, and you will get complaints that there are
17448 # no rules to generate ltmain.sh.
17449 if test -f "$ltmain"; then
17450 # See if we are running on zsh, and set the options which allow our commands through
17451 # without removal of \ escapes.
17452 if test -n "${ZSH_VERSION+set}" ; then
17453 setopt NO_GLOB_SUBST
17455 # Now quote all the things that may contain metacharacters while being
17456 # careful not to overquote the AC_SUBSTed values. We take copies of the
17457 # variables and quote the copies for generation of the libtool script.
17458 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17459 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17460 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17461 deplibs_check_method reload_flag reload_cmds need_locks \
17462 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17463 lt_cv_sys_global_symbol_to_c_name_address \
17464 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17465 old_postinstall_cmds old_postuninstall_cmds \
17469 lt_prog_compiler_wl_RC \
17470 lt_prog_compiler_pic_RC \
17471 lt_prog_compiler_static_RC \
17472 lt_prog_compiler_no_builtin_flag_RC \
17473 export_dynamic_flag_spec_RC \
17474 thread_safe_flag_spec_RC \
17475 whole_archive_flag_spec_RC \
17476 enable_shared_with_static_runtimes_RC \
17477 old_archive_cmds_RC \
17478 old_archive_from_new_cmds_RC \
17479 predep_objects_RC \
17480 postdep_objects_RC \
17483 compiler_lib_search_path_RC \
17485 archive_expsym_cmds_RC \
17486 postinstall_cmds_RC \
17487 postuninstall_cmds_RC \
17488 old_archive_from_expsyms_cmds_RC \
17489 allow_undefined_flag_RC \
17490 no_undefined_flag_RC \
17491 export_symbols_cmds_RC \
17492 hardcode_libdir_flag_spec_RC \
17493 hardcode_libdir_flag_spec_ld_RC \
17494 hardcode_libdir_separator_RC \
17495 hardcode_automatic_RC \
17497 module_expsym_cmds_RC \
17498 lt_cv_prog_compiler_c_o_RC \
17499 exclude_expsyms_RC \
17500 include_expsyms_RC; do
17503 old_archive_cmds_RC | \
17504 old_archive_from_new_cmds_RC | \
17505 archive_cmds_RC | \
17506 archive_expsym_cmds_RC | \
17508 module_expsym_cmds_RC | \
17509 old_archive_from_expsyms_cmds_RC | \
17510 export_symbols_cmds_RC | \
17511 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17512 postinstall_cmds | postuninstall_cmds | \
17513 old_postinstall_cmds | old_postuninstall_cmds | \
17514 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17515 # Double-quote double-evaled strings.
17516 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17519 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17525 *'\$0 --fallback-echo"')
17526 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17532 cat <<__EOF__ >> "$cfgfile"
17533 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17535 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17537 # Shell to use when invoking shell scripts.
17540 # Whether or not to build shared libraries.
17541 build_libtool_libs=$enable_shared
17543 # Whether or not to build static libraries.
17544 build_old_libs=$enable_static
17546 # Whether or not to add -lc for building shared libraries.
17547 build_libtool_need_lc=$archive_cmds_need_lc_RC
17549 # Whether or not to disallow shared libs when runtime libs are static
17550 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17552 # Whether or not to optimize for fast installation.
17553 fast_install=$enable_fast_install
17556 host_alias=$host_alias
17559 # An echo program that does not interpret backslashes.
17564 AR_FLAGS=$lt_AR_FLAGS
17569 # A language-specific compiler.
17572 # Is the compiler the GNU C compiler?
17578 # The linker used to build libraries.
17581 # Whether we need hard or soft links.
17584 # A BSD-compatible nm program.
17587 # A symbol stripping program
17590 # Used to examine libraries when file_magic_cmd begins "file"
17591 MAGIC_CMD=$MAGIC_CMD
17593 # Used on cygwin: DLL creation program.
17596 # Used on cygwin: object dumper.
17599 # Used on cygwin: assembler.
17602 # The name of the directory that contains temporary libtool files.
17605 # How to create reloadable object files.
17606 reload_flag=$lt_reload_flag
17607 reload_cmds=$lt_reload_cmds
17609 # How to pass a linker flag through the compiler.
17610 wl=$lt_lt_prog_compiler_wl_RC
17612 # Object file suffix (normally "o").
17613 objext="$ac_objext"
17615 # Old archive suffix (normally "a").
17618 # Shared library suffix (normally ".so").
17621 # Executable file suffix (normally "").
17624 # Additional compiler flags for building library objects.
17625 pic_flag=$lt_lt_prog_compiler_pic_RC
17628 # What is the maximum length of a command?
17629 max_cmd_len=$lt_cv_sys_max_cmd_len
17631 # Does compiler simultaneously support -c and -o options?
17632 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17634 # Must we lock files when doing compilation ?
17635 need_locks=$lt_need_locks
17637 # Do we need the lib prefix for modules?
17638 need_lib_prefix=$need_lib_prefix
17640 # Do we need a version for libraries?
17641 need_version=$need_version
17643 # Whether dlopen is supported.
17644 dlopen_support=$enable_dlopen
17646 # Whether dlopen of programs is supported.
17647 dlopen_self=$enable_dlopen_self
17649 # Whether dlopen of statically linked programs is supported.
17650 dlopen_self_static=$enable_dlopen_self_static
17652 # Compiler flag to prevent dynamic linking.
17653 link_static_flag=$lt_lt_prog_compiler_static_RC
17655 # Compiler flag to turn off builtin functions.
17656 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17658 # Compiler flag to allow reflexive dlopens.
17659 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17661 # Compiler flag to generate shared objects directly from archives.
17662 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17664 # Compiler flag to generate thread-safe objects.
17665 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17667 # Library versioning type.
17668 version_type=$version_type
17670 # Format of library name prefix.
17671 libname_spec=$lt_libname_spec
17673 # List of archive names. First name is the real one, the rest are links.
17674 # The last name is the one that the linker finds with -lNAME.
17675 library_names_spec=$lt_library_names_spec
17677 # The coded name of the library, if different from the real name.
17678 soname_spec=$lt_soname_spec
17680 # Commands used to build and install an old-style archive.
17682 old_archive_cmds=$lt_old_archive_cmds_RC
17683 old_postinstall_cmds=$lt_old_postinstall_cmds
17684 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17686 # Create an old-style archive from a shared archive.
17687 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17689 # Create a temporary old-style archive to link instead of a shared archive.
17690 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17692 # Commands used to build and install a shared archive.
17693 archive_cmds=$lt_archive_cmds_RC
17694 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17695 postinstall_cmds=$lt_postinstall_cmds
17696 postuninstall_cmds=$lt_postuninstall_cmds
17698 # Commands used to build a loadable module (assumed same as above if empty)
17699 module_cmds=$lt_module_cmds_RC
17700 module_expsym_cmds=$lt_module_expsym_cmds_RC
17702 # Commands to strip libraries.
17703 old_striplib=$lt_old_striplib
17704 striplib=$lt_striplib
17706 # Dependencies to place before the objects being linked to create a
17708 predep_objects=$lt_predep_objects_RC
17710 # Dependencies to place after the objects being linked to create a
17712 postdep_objects=$lt_postdep_objects_RC
17714 # Dependencies to place before the objects being linked to create a
17716 predeps=$lt_predeps_RC
17718 # Dependencies to place after the objects being linked to create a
17720 postdeps=$lt_postdeps_RC
17722 # The library search path used internally by the compiler when linking
17723 # a shared library.
17724 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17726 # Method to check whether dependent libraries are shared objects.
17727 deplibs_check_method=$lt_deplibs_check_method
17729 # Command to use when deplibs_check_method == file_magic.
17730 file_magic_cmd=$lt_file_magic_cmd
17732 # Flag that allows shared libraries with undefined symbols to be built.
17733 allow_undefined_flag=$lt_allow_undefined_flag_RC
17735 # Flag that forces no undefined symbols.
17736 no_undefined_flag=$lt_no_undefined_flag_RC
17738 # Commands used to finish a libtool library installation in a directory.
17739 finish_cmds=$lt_finish_cmds
17741 # Same as above, but a single script fragment to be evaled but not shown.
17742 finish_eval=$lt_finish_eval
17744 # Take the output of nm and produce a listing of raw symbols and C names.
17745 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17747 # Transform the output of nm in a proper C declaration
17748 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17750 # Transform the output of nm in a C name address pair
17751 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17753 # This is the shared library runtime path variable.
17754 runpath_var=$runpath_var
17756 # This is the shared library path variable.
17757 shlibpath_var=$shlibpath_var
17759 # Is shlibpath searched before the hard-coded library search path?
17760 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17762 # How to hardcode a shared library path into an executable.
17763 hardcode_action=$hardcode_action_RC
17765 # Whether we should hardcode library paths into libraries.
17766 hardcode_into_libs=$hardcode_into_libs
17768 # Flag to hardcode \$libdir into a binary during linking.
17769 # This must work even if \$libdir does not exist.
17770 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17772 # If ld is used when linking, flag to hardcode \$libdir into
17773 # a binary during linking. This must work even if \$libdir does
17775 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17777 # Whether we need a single -rpath flag with a separated argument.
17778 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17780 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17781 # resulting binary.
17782 hardcode_direct=$hardcode_direct_RC
17784 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17785 # resulting binary.
17786 hardcode_minus_L=$hardcode_minus_L_RC
17788 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17789 # the resulting binary.
17790 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17792 # Set to yes if building a shared library automatically hardcodes DIR into the library
17793 # and all subsequent libraries and executables linked against it.
17794 hardcode_automatic=$hardcode_automatic_RC
17796 # Variables whose values should be saved in libtool wrapper scripts and
17797 # restored at relink time.
17798 variables_saved_for_relink="$variables_saved_for_relink"
17800 # Whether libtool must link a program against all its dependency libraries.
17801 link_all_deplibs=$link_all_deplibs_RC
17803 # Compile-time system search path for libraries
17804 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17806 # Run-time system search path for libraries
17807 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17809 # Fix the shell variable \$srcfile for the compiler.
17810 fix_srcfile_path="$fix_srcfile_path_RC"
17812 # Set to yes if exported symbols are required.
17813 always_export_symbols=$always_export_symbols_RC
17815 # The commands to list exported symbols.
17816 export_symbols_cmds=$lt_export_symbols_cmds_RC
17818 # The commands to extract the exported symbol list from a shared archive.
17819 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17821 # Symbols that should not be listed in the preloaded symbols.
17822 exclude_expsyms=$lt_exclude_expsyms_RC
17824 # Symbols that must always be exported.
17825 include_expsyms=$lt_include_expsyms_RC
17827 # ### END LIBTOOL TAG CONFIG: $tagname
17833 # If there is no Makefile yet, we rely on a make rule to execute
17834 # `config.status --recheck' to rerun these tests and create the
17835 # libtool script then.
17836 test -f Makefile && make "$ltmain"
17841 ac_cpp='$CPP $CPPFLAGS'
17842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17851 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
17852 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
17853 { (exit 1); exit 1; }; }
17857 # Append the new tag name to the list of available tags.
17858 if test -n "$tagname" ; then
17859 available_tags="$available_tags $tagname"
17865 # Now substitute the updated list of available tags.
17866 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
17867 mv "${ofile}T" "$ofile"
17871 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
17872 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
17873 { (exit 1); exit 1; }; }
17879 # This can be used to rebuild libtool when needed
17880 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
17882 # Always use our own libtool.
17883 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
17885 # Prevent multiple expansion
17907 # Extract the first word of "ar", so it can be a program name with args.
17908 set dummy ar; ac_word=$2
17909 echo "$as_me:$LINENO: checking for $ac_word" >&5
17910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17911 if test "${ac_cv_path_AR+set}" = set; then
17912 echo $ECHO_N "(cached) $ECHO_C" >&6
17916 ac_cv_path_AR="$AR" # Let the user override the test with a path.
17919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17920 for as_dir in $PATH
17923 test -z "$as_dir" && as_dir=.
17924 for ac_exec_ext in '' $ac_executable_extensions; do
17925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17926 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
17927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17938 if test -n "$AR"; then
17939 echo "$as_me:$LINENO: result: $AR" >&5
17940 echo "${ECHO_T}$AR" >&6
17942 echo "$as_me:$LINENO: result: no" >&5
17943 echo "${ECHO_T}no" >&6
17946 # Extract the first word of "sed", so it can be a program name with args.
17947 set dummy sed; ac_word=$2
17948 echo "$as_me:$LINENO: checking for $ac_word" >&5
17949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17950 if test "${ac_cv_path_SED+set}" = set; then
17951 echo $ECHO_N "(cached) $ECHO_C" >&6
17955 ac_cv_path_SED="$SED" # Let the user override the test with a path.
17958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17959 for as_dir in $PATH
17962 test -z "$as_dir" && as_dir=.
17963 for ac_exec_ext in '' $ac_executable_extensions; do
17964 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17965 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
17966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17975 SED=$ac_cv_path_SED
17977 if test -n "$SED"; then
17978 echo "$as_me:$LINENO: result: $SED" >&5
17979 echo "${ECHO_T}$SED" >&6
17981 echo "$as_me:$LINENO: result: no" >&5
17982 echo "${ECHO_T}no" >&6
17985 # Extract the first word of "rm", so it can be a program name with args.
17986 set dummy rm; ac_word=$2
17987 echo "$as_me:$LINENO: checking for $ac_word" >&5
17988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17989 if test "${ac_cv_path_RM+set}" = set; then
17990 echo $ECHO_N "(cached) $ECHO_C" >&6
17994 ac_cv_path_RM="$RM" # Let the user override the test with a path.
17997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17998 for as_dir in $PATH
18001 test -z "$as_dir" && as_dir=.
18002 for ac_exec_ext in '' $ac_executable_extensions; do
18003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18004 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18016 if test -n "$RM"; then
18017 echo "$as_me:$LINENO: result: $RM" >&5
18018 echo "${ECHO_T}$RM" >&6
18020 echo "$as_me:$LINENO: result: no" >&5
18021 echo "${ECHO_T}no" >&6
18024 # Extract the first word of "echo", so it can be a program name with args.
18025 set dummy echo; ac_word=$2
18026 echo "$as_me:$LINENO: checking for $ac_word" >&5
18027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18028 if test "${ac_cv_path_ECHO+set}" = set; then
18029 echo $ECHO_N "(cached) $ECHO_C" >&6
18033 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18037 for as_dir in $PATH
18040 test -z "$as_dir" && as_dir=.
18041 for ac_exec_ext in '' $ac_executable_extensions; do
18042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18043 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18053 ECHO=$ac_cv_path_ECHO
18055 if test -n "$ECHO"; then
18056 echo "$as_me:$LINENO: result: $ECHO" >&5
18057 echo "${ECHO_T}$ECHO" >&6
18059 echo "$as_me:$LINENO: result: no" >&5
18060 echo "${ECHO_T}no" >&6
18063 # Extract the first word of "mkdir", so it can be a program name with args.
18064 set dummy mkdir; ac_word=$2
18065 echo "$as_me:$LINENO: checking for $ac_word" >&5
18066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18067 if test "${ac_cv_path_MKDIR+set}" = set; then
18068 echo $ECHO_N "(cached) $ECHO_C" >&6
18072 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18076 for as_dir in $PATH
18079 test -z "$as_dir" && as_dir=.
18080 for ac_exec_ext in '' $ac_executable_extensions; do
18081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18082 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18092 MKDIR=$ac_cv_path_MKDIR
18094 if test -n "$MKDIR"; then
18095 echo "$as_me:$LINENO: result: $MKDIR" >&5
18096 echo "${ECHO_T}$MKDIR" >&6
18098 echo "$as_me:$LINENO: result: no" >&5
18099 echo "${ECHO_T}no" >&6
18102 # Extract the first word of "date", so it can be a program name with args.
18103 set dummy date; ac_word=$2
18104 echo "$as_me:$LINENO: checking for $ac_word" >&5
18105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18106 if test "${ac_cv_path_DATE+set}" = set; then
18107 echo $ECHO_N "(cached) $ECHO_C" >&6
18111 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18115 for as_dir in $PATH
18118 test -z "$as_dir" && as_dir=.
18119 for ac_exec_ext in '' $ac_executable_extensions; do
18120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18121 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18131 DATE=$ac_cv_path_DATE
18133 if test -n "$DATE"; then
18134 echo "$as_me:$LINENO: result: $DATE" >&5
18135 echo "${ECHO_T}$DATE" >&6
18137 echo "$as_me:$LINENO: result: no" >&5
18138 echo "${ECHO_T}no" >&6
18141 # Extract the first word of "mv", so it can be a program name with args.
18142 set dummy mv; ac_word=$2
18143 echo "$as_me:$LINENO: checking for $ac_word" >&5
18144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18145 if test "${ac_cv_path_MV+set}" = set; then
18146 echo $ECHO_N "(cached) $ECHO_C" >&6
18150 ac_cv_path_MV="$MV" # Let the user override the test with a path.
18153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18154 for as_dir in $PATH
18157 test -z "$as_dir" && as_dir=.
18158 for ac_exec_ext in '' $ac_executable_extensions; do
18159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18160 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18172 if test -n "$MV"; then
18173 echo "$as_me:$LINENO: result: $MV" >&5
18174 echo "${ECHO_T}$MV" >&6
18176 echo "$as_me:$LINENO: result: no" >&5
18177 echo "${ECHO_T}no" >&6
18180 # Extract the first word of "dot", so it can be a program name with args.
18181 set dummy dot; ac_word=$2
18182 echo "$as_me:$LINENO: checking for $ac_word" >&5
18183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18184 if test "${ac_cv_path_DOT+set}" = set; then
18185 echo $ECHO_N "(cached) $ECHO_C" >&6
18189 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18193 for as_dir in $PATH
18196 test -z "$as_dir" && as_dir=.
18197 for ac_exec_ext in '' $ac_executable_extensions; do
18198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18199 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18209 DOT=$ac_cv_path_DOT
18211 if test -n "$DOT"; then
18212 echo "$as_me:$LINENO: result: $DOT" >&5
18213 echo "${ECHO_T}$DOT" >&6
18215 echo "$as_me:$LINENO: result: no" >&5
18216 echo "${ECHO_T}no" >&6
18219 # Extract the first word of "etags", so it can be a program name with args.
18220 set dummy etags; ac_word=$2
18221 echo "$as_me:$LINENO: checking for $ac_word" >&5
18222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18223 if test "${ac_cv_path_ETAGS+set}" = set; then
18224 echo $ECHO_N "(cached) $ECHO_C" >&6
18228 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18232 for as_dir in $PATH
18235 test -z "$as_dir" && as_dir=.
18236 for ac_exec_ext in '' $ac_executable_extensions; do
18237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18238 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18248 ETAGS=$ac_cv_path_ETAGS
18250 if test -n "$ETAGS"; then
18251 echo "$as_me:$LINENO: result: $ETAGS" >&5
18252 echo "${ECHO_T}$ETAGS" >&6
18254 echo "$as_me:$LINENO: result: no" >&5
18255 echo "${ECHO_T}no" >&6
18258 # Extract the first word of "purify", so it can be a program name with args.
18259 set dummy purify; ac_word=$2
18260 echo "$as_me:$LINENO: checking for $ac_word" >&5
18261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18262 if test "${ac_cv_path_PURIFY+set}" = set; then
18263 echo $ECHO_N "(cached) $ECHO_C" >&6
18267 ac_cv_path_PURIFY="$PURIFY" # Let the user override the test with a path.
18270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18271 for as_dir in $PATH
18274 test -z "$as_dir" && as_dir=.
18275 for ac_exec_ext in '' $ac_executable_extensions; do
18276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18277 ac_cv_path_PURIFY="$as_dir/$ac_word$ac_exec_ext"
18278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18287 PURIFY=$ac_cv_path_PURIFY
18289 if test -n "$PURIFY"; then
18290 echo "$as_me:$LINENO: result: $PURIFY" >&5
18291 echo "${ECHO_T}$PURIFY" >&6
18293 echo "$as_me:$LINENO: result: no" >&5
18294 echo "${ECHO_T}no" >&6
18302 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18303 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18304 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18305 echo $ECHO_N "(cached) $ECHO_C" >&6
18307 ac_check_lib_save_LIBS=$LIBS
18309 cat >conftest.$ac_ext <<_ACEOF
18310 #line $LINENO "configure"
18313 cat confdefs.h >>conftest.$ac_ext
18314 cat >>conftest.$ac_ext <<_ACEOF
18315 /* end confdefs.h. */
18317 /* Override any gcc2 internal prototype to avoid an error. */
18321 /* We use char because int might match the return type of a gcc2
18322 builtin and then its argument prototype would still apply. */
18332 rm -f conftest.$ac_objext conftest$ac_exeext
18333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18334 (eval $ac_link) 2>&5
18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337 (exit $ac_status); } &&
18338 { ac_try='test -s conftest$ac_exeext'
18339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18340 (eval $ac_try) 2>&5
18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); }; }; then
18344 ac_cv_lib_elf_elf_begin=yes
18346 echo "$as_me: failed program was:" >&5
18347 sed 's/^/| /' conftest.$ac_ext >&5
18349 ac_cv_lib_elf_elf_begin=no
18351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18352 LIBS=$ac_check_lib_save_LIBS
18354 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18355 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18356 if test $ac_cv_lib_elf_elf_begin = yes; then
18357 cat >>confdefs.h <<_ACEOF
18358 #define HAVE_LIBELF 1
18366 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18367 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18368 if test "${ac_cv_search_dlopen+set}" = set; then
18369 echo $ECHO_N "(cached) $ECHO_C" >&6
18371 ac_func_search_save_LIBS=$LIBS
18372 ac_cv_search_dlopen=no
18373 cat >conftest.$ac_ext <<_ACEOF
18374 #line $LINENO "configure"
18377 cat confdefs.h >>conftest.$ac_ext
18378 cat >>conftest.$ac_ext <<_ACEOF
18379 /* end confdefs.h. */
18381 /* Override any gcc2 internal prototype to avoid an error. */
18385 /* We use char because int might match the return type of a gcc2
18386 builtin and then its argument prototype would still apply. */
18396 rm -f conftest.$ac_objext conftest$ac_exeext
18397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18398 (eval $ac_link) 2>&5
18400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401 (exit $ac_status); } &&
18402 { ac_try='test -s conftest$ac_exeext'
18403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18404 (eval $ac_try) 2>&5
18406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407 (exit $ac_status); }; }; then
18408 ac_cv_search_dlopen="none required"
18410 echo "$as_me: failed program was:" >&5
18411 sed 's/^/| /' conftest.$ac_ext >&5
18414 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18415 if test "$ac_cv_search_dlopen" = no; then
18416 for ac_lib in dl; do
18417 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18418 cat >conftest.$ac_ext <<_ACEOF
18419 #line $LINENO "configure"
18422 cat confdefs.h >>conftest.$ac_ext
18423 cat >>conftest.$ac_ext <<_ACEOF
18424 /* end confdefs.h. */
18426 /* Override any gcc2 internal prototype to avoid an error. */
18430 /* We use char because int might match the return type of a gcc2
18431 builtin and then its argument prototype would still apply. */
18441 rm -f conftest.$ac_objext conftest$ac_exeext
18442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18443 (eval $ac_link) 2>&5
18445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446 (exit $ac_status); } &&
18447 { ac_try='test -s conftest$ac_exeext'
18448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18449 (eval $ac_try) 2>&5
18451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452 (exit $ac_status); }; }; then
18453 ac_cv_search_dlopen="-l$ac_lib"
18456 echo "$as_me: failed program was:" >&5
18457 sed 's/^/| /' conftest.$ac_ext >&5
18460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18463 LIBS=$ac_func_search_save_LIBS
18465 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18466 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
18467 if test "$ac_cv_search_dlopen" != no; then
18468 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
18471 { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5
18472 echo "$as_me: error: dlopen() required but not found" >&2;}
18473 { (exit 1); exit 1; }; }
18477 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
18478 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
18479 if test "${ac_cv_search_mallinfo+set}" = set; then
18480 echo $ECHO_N "(cached) $ECHO_C" >&6
18482 ac_func_search_save_LIBS=$LIBS
18483 ac_cv_search_mallinfo=no
18484 cat >conftest.$ac_ext <<_ACEOF
18485 #line $LINENO "configure"
18488 cat confdefs.h >>conftest.$ac_ext
18489 cat >>conftest.$ac_ext <<_ACEOF
18490 /* end confdefs.h. */
18492 /* Override any gcc2 internal prototype to avoid an error. */
18496 /* We use char because int might match the return type of a gcc2
18497 builtin and then its argument prototype would still apply. */
18507 rm -f conftest.$ac_objext conftest$ac_exeext
18508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18509 (eval $ac_link) 2>&5
18511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18512 (exit $ac_status); } &&
18513 { ac_try='test -s conftest$ac_exeext'
18514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18515 (eval $ac_try) 2>&5
18517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518 (exit $ac_status); }; }; then
18519 ac_cv_search_mallinfo="none required"
18521 echo "$as_me: failed program was:" >&5
18522 sed 's/^/| /' conftest.$ac_ext >&5
18525 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18526 if test "$ac_cv_search_mallinfo" = no; then
18527 for ac_lib in malloc; do
18528 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18529 cat >conftest.$ac_ext <<_ACEOF
18530 #line $LINENO "configure"
18533 cat confdefs.h >>conftest.$ac_ext
18534 cat >>conftest.$ac_ext <<_ACEOF
18535 /* end confdefs.h. */
18537 /* Override any gcc2 internal prototype to avoid an error. */
18541 /* We use char because int might match the return type of a gcc2
18542 builtin and then its argument prototype would still apply. */
18552 rm -f conftest.$ac_objext conftest$ac_exeext
18553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18554 (eval $ac_link) 2>&5
18556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557 (exit $ac_status); } &&
18558 { ac_try='test -s conftest$ac_exeext'
18559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18560 (eval $ac_try) 2>&5
18562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18563 (exit $ac_status); }; }; then
18564 ac_cv_search_mallinfo="-l$ac_lib"
18567 echo "$as_me: failed program was:" >&5
18568 sed 's/^/| /' conftest.$ac_ext >&5
18571 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18574 LIBS=$ac_func_search_save_LIBS
18576 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
18577 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
18578 if test "$ac_cv_search_mallinfo" != no; then
18579 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
18580 cat >>confdefs.h <<\_ACEOF
18581 #define HAVE_MALLINFO 1
18588 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18589 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18590 if test "${ac_cv_header_stdc+set}" = set; then
18591 echo $ECHO_N "(cached) $ECHO_C" >&6
18593 cat >conftest.$ac_ext <<_ACEOF
18594 #line $LINENO "configure"
18597 cat confdefs.h >>conftest.$ac_ext
18598 cat >>conftest.$ac_ext <<_ACEOF
18599 /* end confdefs.h. */
18600 #include <stdlib.h>
18601 #include <stdarg.h>
18602 #include <string.h>
18613 rm -f conftest.$ac_objext
18614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18615 (eval $ac_compile) 2>&5
18617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18618 (exit $ac_status); } &&
18619 { ac_try='test -s conftest.$ac_objext'
18620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18621 (eval $ac_try) 2>&5
18623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); }; }; then
18625 ac_cv_header_stdc=yes
18627 echo "$as_me: failed program was:" >&5
18628 sed 's/^/| /' conftest.$ac_ext >&5
18630 ac_cv_header_stdc=no
18632 rm -f conftest.$ac_objext conftest.$ac_ext
18634 if test $ac_cv_header_stdc = yes; then
18635 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18636 cat >conftest.$ac_ext <<_ACEOF
18637 #line $LINENO "configure"
18640 cat confdefs.h >>conftest.$ac_ext
18641 cat >>conftest.$ac_ext <<_ACEOF
18642 /* end confdefs.h. */
18643 #include <string.h>
18646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18647 $EGREP "memchr" >/dev/null 2>&1; then
18650 ac_cv_header_stdc=no
18656 if test $ac_cv_header_stdc = yes; then
18657 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18658 cat >conftest.$ac_ext <<_ACEOF
18659 #line $LINENO "configure"
18662 cat confdefs.h >>conftest.$ac_ext
18663 cat >>conftest.$ac_ext <<_ACEOF
18664 /* end confdefs.h. */
18665 #include <stdlib.h>
18668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18669 $EGREP "free" >/dev/null 2>&1; then
18672 ac_cv_header_stdc=no
18678 if test $ac_cv_header_stdc = yes; then
18679 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18680 if test "$cross_compiling" = yes; then
18683 cat >conftest.$ac_ext <<_ACEOF
18684 #line $LINENO "configure"
18687 cat confdefs.h >>conftest.$ac_ext
18688 cat >>conftest.$ac_ext <<_ACEOF
18689 /* end confdefs.h. */
18691 #if ((' ' & 0x0FF) == 0x020)
18692 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18693 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18695 # define ISLOWER(c) \
18696 (('a' <= (c) && (c) <= 'i') \
18697 || ('j' <= (c) && (c) <= 'r') \
18698 || ('s' <= (c) && (c) <= 'z'))
18699 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18702 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18707 for (i = 0; i < 256; i++)
18708 if (XOR (islower (i), ISLOWER (i))
18709 || toupper (i) != TOUPPER (i))
18714 rm -f conftest$ac_exeext
18715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18716 (eval $ac_link) 2>&5
18718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18721 (eval $ac_try) 2>&5
18723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18724 (exit $ac_status); }; }; then
18727 echo "$as_me: program exited with status $ac_status" >&5
18728 echo "$as_me: failed program was:" >&5
18729 sed 's/^/| /' conftest.$ac_ext >&5
18731 ( exit $ac_status )
18732 ac_cv_header_stdc=no
18734 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18738 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18739 echo "${ECHO_T}$ac_cv_header_stdc" >&6
18740 if test $ac_cv_header_stdc = yes; then
18742 cat >>confdefs.h <<\_ACEOF
18743 #define STDC_HEADERS 1
18748 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
18749 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
18750 if test "${ac_cv_header_sys_wait_h+set}" = set; then
18751 echo $ECHO_N "(cached) $ECHO_C" >&6
18753 cat >conftest.$ac_ext <<_ACEOF
18754 #line $LINENO "configure"
18757 cat confdefs.h >>conftest.$ac_ext
18758 cat >>conftest.$ac_ext <<_ACEOF
18759 /* end confdefs.h. */
18760 #include <sys/types.h>
18761 #include <sys/wait.h>
18762 #ifndef WEXITSTATUS
18763 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
18766 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18774 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18779 rm -f conftest.$ac_objext
18780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18781 (eval $ac_compile) 2>&5
18783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784 (exit $ac_status); } &&
18785 { ac_try='test -s conftest.$ac_objext'
18786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18787 (eval $ac_try) 2>&5
18789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790 (exit $ac_status); }; }; then
18791 ac_cv_header_sys_wait_h=yes
18793 echo "$as_me: failed program was:" >&5
18794 sed 's/^/| /' conftest.$ac_ext >&5
18796 ac_cv_header_sys_wait_h=no
18798 rm -f conftest.$ac_objext conftest.$ac_ext
18800 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
18801 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
18802 if test $ac_cv_header_sys_wait_h = yes; then
18804 cat >>confdefs.h <<\_ACEOF
18805 #define HAVE_SYS_WAIT_H 1
18819 for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
18821 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18823 echo "$as_me:$LINENO: checking for $ac_header" >&5
18824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18826 echo $ECHO_N "(cached) $ECHO_C" >&6
18828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18829 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18831 # Is the header compilable?
18832 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18833 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18834 cat >conftest.$ac_ext <<_ACEOF
18835 #line $LINENO "configure"
18838 cat confdefs.h >>conftest.$ac_ext
18839 cat >>conftest.$ac_ext <<_ACEOF
18840 /* end confdefs.h. */
18841 $ac_includes_default
18842 #include <$ac_header>
18844 rm -f conftest.$ac_objext
18845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18846 (eval $ac_compile) 2>&5
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); } &&
18850 { ac_try='test -s conftest.$ac_objext'
18851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18852 (eval $ac_try) 2>&5
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); }; }; then
18856 ac_header_compiler=yes
18858 echo "$as_me: failed program was:" >&5
18859 sed 's/^/| /' conftest.$ac_ext >&5
18861 ac_header_compiler=no
18863 rm -f conftest.$ac_objext conftest.$ac_ext
18864 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18865 echo "${ECHO_T}$ac_header_compiler" >&6
18867 # Is the header present?
18868 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18869 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18870 cat >conftest.$ac_ext <<_ACEOF
18871 #line $LINENO "configure"
18874 cat confdefs.h >>conftest.$ac_ext
18875 cat >>conftest.$ac_ext <<_ACEOF
18876 /* end confdefs.h. */
18877 #include <$ac_header>
18879 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18880 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18882 grep -v '^ *+' conftest.er1 >conftest.err
18884 cat conftest.err >&5
18885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886 (exit $ac_status); } >/dev/null; then
18887 if test -s conftest.err; then
18888 ac_cpp_err=$ac_c_preproc_warn_flag
18895 if test -z "$ac_cpp_err"; then
18896 ac_header_preproc=yes
18898 echo "$as_me: failed program was:" >&5
18899 sed 's/^/| /' conftest.$ac_ext >&5
18901 ac_header_preproc=no
18903 rm -f conftest.err conftest.$ac_ext
18904 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18905 echo "${ECHO_T}$ac_header_preproc" >&6
18907 # So? What about this header?
18908 case $ac_header_compiler:$ac_header_preproc in
18910 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18911 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18913 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18916 ## ------------------------------------ ##
18917 ## Report this to bug-autoconf@gnu.org. ##
18918 ## ------------------------------------ ##
18921 sed "s/^/$as_me: WARNING: /" >&2
18924 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18925 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18926 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18927 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18929 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18932 ## ------------------------------------ ##
18933 ## Report this to bug-autoconf@gnu.org. ##
18934 ## ------------------------------------ ##
18937 sed "s/^/$as_me: WARNING: /" >&2
18940 echo "$as_me:$LINENO: checking for $ac_header" >&5
18941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18943 echo $ECHO_N "(cached) $ECHO_C" >&6
18945 eval "$as_ac_Header=$ac_header_preproc"
18947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18948 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18952 cat >>confdefs.h <<_ACEOF
18953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18965 for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
18967 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18969 echo "$as_me:$LINENO: checking for $ac_header" >&5
18970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18972 echo $ECHO_N "(cached) $ECHO_C" >&6
18974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18977 # Is the header compilable?
18978 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18979 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18980 cat >conftest.$ac_ext <<_ACEOF
18981 #line $LINENO "configure"
18984 cat confdefs.h >>conftest.$ac_ext
18985 cat >>conftest.$ac_ext <<_ACEOF
18986 /* end confdefs.h. */
18987 $ac_includes_default
18988 #include <$ac_header>
18990 rm -f conftest.$ac_objext
18991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18992 (eval $ac_compile) 2>&5
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); } &&
18996 { ac_try='test -s conftest.$ac_objext'
18997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18998 (eval $ac_try) 2>&5
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); }; }; then
19002 ac_header_compiler=yes
19004 echo "$as_me: failed program was:" >&5
19005 sed 's/^/| /' conftest.$ac_ext >&5
19007 ac_header_compiler=no
19009 rm -f conftest.$ac_objext conftest.$ac_ext
19010 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19011 echo "${ECHO_T}$ac_header_compiler" >&6
19013 # Is the header present?
19014 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19015 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19016 cat >conftest.$ac_ext <<_ACEOF
19017 #line $LINENO "configure"
19020 cat confdefs.h >>conftest.$ac_ext
19021 cat >>conftest.$ac_ext <<_ACEOF
19022 /* end confdefs.h. */
19023 #include <$ac_header>
19025 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19026 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19028 grep -v '^ *+' conftest.er1 >conftest.err
19030 cat conftest.err >&5
19031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032 (exit $ac_status); } >/dev/null; then
19033 if test -s conftest.err; then
19034 ac_cpp_err=$ac_c_preproc_warn_flag
19041 if test -z "$ac_cpp_err"; then
19042 ac_header_preproc=yes
19044 echo "$as_me: failed program was:" >&5
19045 sed 's/^/| /' conftest.$ac_ext >&5
19047 ac_header_preproc=no
19049 rm -f conftest.err conftest.$ac_ext
19050 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19051 echo "${ECHO_T}$ac_header_preproc" >&6
19053 # So? What about this header?
19054 case $ac_header_compiler:$ac_header_preproc in
19056 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19057 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19059 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19062 ## ------------------------------------ ##
19063 ## Report this to bug-autoconf@gnu.org. ##
19064 ## ------------------------------------ ##
19067 sed "s/^/$as_me: WARNING: /" >&2
19070 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19071 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19072 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19073 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19075 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19078 ## ------------------------------------ ##
19079 ## Report this to bug-autoconf@gnu.org. ##
19080 ## ------------------------------------ ##
19083 sed "s/^/$as_me: WARNING: /" >&2
19086 echo "$as_me:$LINENO: checking for $ac_header" >&5
19087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19089 echo $ECHO_N "(cached) $ECHO_C" >&6
19091 eval "$as_ac_Header=$ac_header_preproc"
19093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19094 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19098 cat >>confdefs.h <<_ACEOF
19099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19109 for ac_header in dlfcn.h link.h
19111 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19113 echo "$as_me:$LINENO: checking for $ac_header" >&5
19114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19116 echo $ECHO_N "(cached) $ECHO_C" >&6
19118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19119 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19121 # Is the header compilable?
19122 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19123 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19124 cat >conftest.$ac_ext <<_ACEOF
19125 #line $LINENO "configure"
19128 cat confdefs.h >>conftest.$ac_ext
19129 cat >>conftest.$ac_ext <<_ACEOF
19130 /* end confdefs.h. */
19131 $ac_includes_default
19132 #include <$ac_header>
19134 rm -f conftest.$ac_objext
19135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19136 (eval $ac_compile) 2>&5
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); } &&
19140 { ac_try='test -s conftest.$ac_objext'
19141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19142 (eval $ac_try) 2>&5
19144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145 (exit $ac_status); }; }; then
19146 ac_header_compiler=yes
19148 echo "$as_me: failed program was:" >&5
19149 sed 's/^/| /' conftest.$ac_ext >&5
19151 ac_header_compiler=no
19153 rm -f conftest.$ac_objext conftest.$ac_ext
19154 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19155 echo "${ECHO_T}$ac_header_compiler" >&6
19157 # Is the header present?
19158 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19159 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19160 cat >conftest.$ac_ext <<_ACEOF
19161 #line $LINENO "configure"
19164 cat confdefs.h >>conftest.$ac_ext
19165 cat >>conftest.$ac_ext <<_ACEOF
19166 /* end confdefs.h. */
19167 #include <$ac_header>
19169 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19170 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19172 grep -v '^ *+' conftest.er1 >conftest.err
19174 cat conftest.err >&5
19175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176 (exit $ac_status); } >/dev/null; then
19177 if test -s conftest.err; then
19178 ac_cpp_err=$ac_c_preproc_warn_flag
19185 if test -z "$ac_cpp_err"; then
19186 ac_header_preproc=yes
19188 echo "$as_me: failed program was:" >&5
19189 sed 's/^/| /' conftest.$ac_ext >&5
19191 ac_header_preproc=no
19193 rm -f conftest.err conftest.$ac_ext
19194 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19195 echo "${ECHO_T}$ac_header_preproc" >&6
19197 # So? What about this header?
19198 case $ac_header_compiler:$ac_header_preproc in
19200 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19201 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19203 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19206 ## ------------------------------------ ##
19207 ## Report this to bug-autoconf@gnu.org. ##
19208 ## ------------------------------------ ##
19211 sed "s/^/$as_me: WARNING: /" >&2
19214 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19215 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19216 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19217 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19219 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19222 ## ------------------------------------ ##
19223 ## Report this to bug-autoconf@gnu.org. ##
19224 ## ------------------------------------ ##
19227 sed "s/^/$as_me: WARNING: /" >&2
19230 echo "$as_me:$LINENO: checking for $ac_header" >&5
19231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19233 echo $ECHO_N "(cached) $ECHO_C" >&6
19235 eval "$as_ac_Header=$ac_header_preproc"
19237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19242 cat >>confdefs.h <<_ACEOF
19243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19252 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19253 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19254 if test "${ac_cv_c_const+set}" = set; then
19255 echo $ECHO_N "(cached) $ECHO_C" >&6
19257 cat >conftest.$ac_ext <<_ACEOF
19258 #line $LINENO "configure"
19261 cat confdefs.h >>conftest.$ac_ext
19262 cat >>conftest.$ac_ext <<_ACEOF
19263 /* end confdefs.h. */
19268 /* FIXME: Include the comments suggested by Paul. */
19269 #ifndef __cplusplus
19270 /* Ultrix mips cc rejects this. */
19271 typedef int charset[2];
19273 /* SunOS 4.1.1 cc rejects this. */
19274 char const *const *ccp;
19276 /* NEC SVR4.0.2 mips cc rejects this. */
19277 struct point {int x, y;};
19278 static struct point const zero = {0,0};
19279 /* AIX XL C 1.02.0.0 rejects this.
19280 It does not let you subtract one const X* pointer from another in
19281 an arm of an if-expression whose if-part is not a constant
19283 const char *g = "string";
19284 ccp = &g + (g ? g-g : 0);
19285 /* HPUX 7.0 cc rejects these. */
19288 ccp = (char const *const *) p;
19289 { /* SCO 3.2v4 cc rejects this. */
19291 char const *s = 0 ? (char *) 0 : (char const *) 0;
19295 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19296 int x[] = {25, 17};
19297 const int *foo = &x[0];
19300 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19301 typedef const int *iptr;
19305 { /* AIX XL C 1.02.0.0 rejects this saying
19306 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19307 struct s { int j; const int *ap[3]; };
19308 struct s *b; b->j = 5;
19310 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19311 const int foo = 10;
19319 rm -f conftest.$ac_objext
19320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19321 (eval $ac_compile) 2>&5
19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); } &&
19325 { ac_try='test -s conftest.$ac_objext'
19326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19327 (eval $ac_try) 2>&5
19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330 (exit $ac_status); }; }; then
19333 echo "$as_me: failed program was:" >&5
19334 sed 's/^/| /' conftest.$ac_ext >&5
19338 rm -f conftest.$ac_objext conftest.$ac_ext
19340 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19341 echo "${ECHO_T}$ac_cv_c_const" >&6
19342 if test $ac_cv_c_const = no; then
19344 cat >>confdefs.h <<\_ACEOF
19350 echo "$as_me:$LINENO: checking for inline" >&5
19351 echo $ECHO_N "checking for inline... $ECHO_C" >&6
19352 if test "${ac_cv_c_inline+set}" = set; then
19353 echo $ECHO_N "(cached) $ECHO_C" >&6
19356 for ac_kw in inline __inline__ __inline; do
19357 cat >conftest.$ac_ext <<_ACEOF
19358 #line $LINENO "configure"
19361 cat confdefs.h >>conftest.$ac_ext
19362 cat >>conftest.$ac_ext <<_ACEOF
19363 /* end confdefs.h. */
19364 #ifndef __cplusplus
19366 static $ac_kw foo_t static_foo () {return 0; }
19367 $ac_kw foo_t foo () {return 0; }
19371 rm -f conftest.$ac_objext
19372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19373 (eval $ac_compile) 2>&5
19375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376 (exit $ac_status); } &&
19377 { ac_try='test -s conftest.$ac_objext'
19378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19379 (eval $ac_try) 2>&5
19381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); }; }; then
19383 ac_cv_c_inline=$ac_kw; break
19385 echo "$as_me: failed program was:" >&5
19386 sed 's/^/| /' conftest.$ac_ext >&5
19389 rm -f conftest.$ac_objext conftest.$ac_ext
19393 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19394 echo "${ECHO_T}$ac_cv_c_inline" >&6
19395 case $ac_cv_c_inline in
19398 cat >>confdefs.h <<\_ACEOF
19402 *) cat >>confdefs.h <<_ACEOF
19403 #define inline $ac_cv_c_inline
19409 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19410 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19411 if test "${ac_cv_c_bigendian+set}" = set; then
19412 echo $ECHO_N "(cached) $ECHO_C" >&6
19414 # See if sys/param.h defines the BYTE_ORDER macro.
19415 cat >conftest.$ac_ext <<_ACEOF
19416 #line $LINENO "configure"
19419 cat confdefs.h >>conftest.$ac_ext
19420 cat >>conftest.$ac_ext <<_ACEOF
19421 /* end confdefs.h. */
19422 #include <sys/types.h>
19423 #include <sys/param.h>
19428 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19429 bogus endian macros
19436 rm -f conftest.$ac_objext
19437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19438 (eval $ac_compile) 2>&5
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); } &&
19442 { ac_try='test -s conftest.$ac_objext'
19443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19444 (eval $ac_try) 2>&5
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); }; }; then
19448 # It does; now see whether it defined to BIG_ENDIAN or not.
19449 cat >conftest.$ac_ext <<_ACEOF
19450 #line $LINENO "configure"
19453 cat confdefs.h >>conftest.$ac_ext
19454 cat >>conftest.$ac_ext <<_ACEOF
19455 /* end confdefs.h. */
19456 #include <sys/types.h>
19457 #include <sys/param.h>
19462 #if BYTE_ORDER != BIG_ENDIAN
19470 rm -f conftest.$ac_objext
19471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19472 (eval $ac_compile) 2>&5
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); } &&
19476 { ac_try='test -s conftest.$ac_objext'
19477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19478 (eval $ac_try) 2>&5
19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); }; }; then
19482 ac_cv_c_bigendian=yes
19484 echo "$as_me: failed program was:" >&5
19485 sed 's/^/| /' conftest.$ac_ext >&5
19487 ac_cv_c_bigendian=no
19489 rm -f conftest.$ac_objext conftest.$ac_ext
19491 echo "$as_me: failed program was:" >&5
19492 sed 's/^/| /' conftest.$ac_ext >&5
19494 # It does not; compile a test program.
19495 if test "$cross_compiling" = yes; then
19496 # try to guess the endianness by grepping values into an object file
19497 ac_cv_c_bigendian=unknown
19498 cat >conftest.$ac_ext <<_ACEOF
19499 #line $LINENO "configure"
19502 cat confdefs.h >>conftest.$ac_ext
19503 cat >>conftest.$ac_ext <<_ACEOF
19504 /* end confdefs.h. */
19505 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19506 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19507 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19508 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19509 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19510 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19514 _ascii (); _ebcdic ();
19519 rm -f conftest.$ac_objext
19520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19521 (eval $ac_compile) 2>&5
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); } &&
19525 { ac_try='test -s conftest.$ac_objext'
19526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19527 (eval $ac_try) 2>&5
19529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); }; }; then
19531 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
19532 ac_cv_c_bigendian=yes
19534 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19535 if test "$ac_cv_c_bigendian" = unknown; then
19536 ac_cv_c_bigendian=no
19538 # finding both strings is unlikely to happen, but who knows?
19539 ac_cv_c_bigendian=unknown
19543 echo "$as_me: failed program was:" >&5
19544 sed 's/^/| /' conftest.$ac_ext >&5
19547 rm -f conftest.$ac_objext conftest.$ac_ext
19549 cat >conftest.$ac_ext <<_ACEOF
19550 #line $LINENO "configure"
19553 cat confdefs.h >>conftest.$ac_ext
19554 cat >>conftest.$ac_ext <<_ACEOF
19555 /* end confdefs.h. */
19559 /* Are we little or big endian? From Harbison&Steele. */
19563 char c[sizeof (long)];
19566 exit (u.c[sizeof (long) - 1] == 1);
19569 rm -f conftest$ac_exeext
19570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19571 (eval $ac_link) 2>&5
19573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19576 (eval $ac_try) 2>&5
19578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579 (exit $ac_status); }; }; then
19580 ac_cv_c_bigendian=no
19582 echo "$as_me: program exited with status $ac_status" >&5
19583 echo "$as_me: failed program was:" >&5
19584 sed 's/^/| /' conftest.$ac_ext >&5
19586 ( exit $ac_status )
19587 ac_cv_c_bigendian=yes
19589 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19592 rm -f conftest.$ac_objext conftest.$ac_ext
19594 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19595 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19596 case $ac_cv_c_bigendian in
19598 cat >>confdefs.h <<\_ACEOF
19599 #define ENDIAN_BIG 1
19603 cat >>confdefs.h <<\_ACEOF
19604 #define ENDIAN_LITTLE 1
19608 { { echo "$as_me:$LINENO: error: unknown endianness
19609 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
19610 echo "$as_me: error: unknown endianness
19611 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19612 { (exit 1); exit 1; }; } ;;
19616 echo "$as_me:$LINENO: checking for pid_t" >&5
19617 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19618 if test "${ac_cv_type_pid_t+set}" = set; then
19619 echo $ECHO_N "(cached) $ECHO_C" >&6
19621 cat >conftest.$ac_ext <<_ACEOF
19622 #line $LINENO "configure"
19625 cat confdefs.h >>conftest.$ac_ext
19626 cat >>conftest.$ac_ext <<_ACEOF
19627 /* end confdefs.h. */
19628 $ac_includes_default
19634 if (sizeof (pid_t))
19640 rm -f conftest.$ac_objext
19641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19642 (eval $ac_compile) 2>&5
19644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645 (exit $ac_status); } &&
19646 { ac_try='test -s conftest.$ac_objext'
19647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19648 (eval $ac_try) 2>&5
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); }; }; then
19652 ac_cv_type_pid_t=yes
19654 echo "$as_me: failed program was:" >&5
19655 sed 's/^/| /' conftest.$ac_ext >&5
19657 ac_cv_type_pid_t=no
19659 rm -f conftest.$ac_objext conftest.$ac_ext
19661 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19662 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19663 if test $ac_cv_type_pid_t = yes; then
19667 cat >>confdefs.h <<_ACEOF
19673 echo "$as_me:$LINENO: checking for size_t" >&5
19674 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19675 if test "${ac_cv_type_size_t+set}" = set; then
19676 echo $ECHO_N "(cached) $ECHO_C" >&6
19678 cat >conftest.$ac_ext <<_ACEOF
19679 #line $LINENO "configure"
19682 cat confdefs.h >>conftest.$ac_ext
19683 cat >>conftest.$ac_ext <<_ACEOF
19684 /* end confdefs.h. */
19685 $ac_includes_default
19691 if (sizeof (size_t))
19697 rm -f conftest.$ac_objext
19698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19699 (eval $ac_compile) 2>&5
19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); } &&
19703 { ac_try='test -s conftest.$ac_objext'
19704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19705 (eval $ac_try) 2>&5
19707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708 (exit $ac_status); }; }; then
19709 ac_cv_type_size_t=yes
19711 echo "$as_me: failed program was:" >&5
19712 sed 's/^/| /' conftest.$ac_ext >&5
19714 ac_cv_type_size_t=no
19716 rm -f conftest.$ac_objext conftest.$ac_ext
19718 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19719 echo "${ECHO_T}$ac_cv_type_size_t" >&6
19720 if test $ac_cv_type_size_t = yes; then
19724 cat >>confdefs.h <<_ACEOF
19725 #define size_t unsigned
19730 echo "$as_me:$LINENO: checking for int64_t" >&5
19731 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
19732 if test "${ac_cv_type_int64_t+set}" = set; then
19733 echo $ECHO_N "(cached) $ECHO_C" >&6
19735 cat >conftest.$ac_ext <<_ACEOF
19736 #line $LINENO "configure"
19739 cat confdefs.h >>conftest.$ac_ext
19740 cat >>conftest.$ac_ext <<_ACEOF
19741 /* end confdefs.h. */
19742 $ac_includes_default
19748 if (sizeof (int64_t))
19754 rm -f conftest.$ac_objext
19755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19756 (eval $ac_compile) 2>&5
19758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19759 (exit $ac_status); } &&
19760 { ac_try='test -s conftest.$ac_objext'
19761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19762 (eval $ac_try) 2>&5
19764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19765 (exit $ac_status); }; }; then
19766 ac_cv_type_int64_t=yes
19768 echo "$as_me: failed program was:" >&5
19769 sed 's/^/| /' conftest.$ac_ext >&5
19771 ac_cv_type_int64_t=no
19773 rm -f conftest.$ac_objext conftest.$ac_ext
19775 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
19776 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
19777 if test $ac_cv_type_int64_t = yes; then
19779 cat >>confdefs.h <<_ACEOF
19780 #define HAVE_INT64_T 1
19785 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
19786 echo "$as_me: error: Type int64_t required but not found" >&2;}
19787 { (exit 1); exit 1; }; }
19790 echo "$as_me:$LINENO: checking for uint64_t" >&5
19791 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
19792 if test "${ac_cv_type_uint64_t+set}" = set; then
19793 echo $ECHO_N "(cached) $ECHO_C" >&6
19795 cat >conftest.$ac_ext <<_ACEOF
19796 #line $LINENO "configure"
19799 cat confdefs.h >>conftest.$ac_ext
19800 cat >>conftest.$ac_ext <<_ACEOF
19801 /* end confdefs.h. */
19802 $ac_includes_default
19806 if ((uint64_t *) 0)
19808 if (sizeof (uint64_t))
19814 rm -f conftest.$ac_objext
19815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19816 (eval $ac_compile) 2>&5
19818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819 (exit $ac_status); } &&
19820 { ac_try='test -s conftest.$ac_objext'
19821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19822 (eval $ac_try) 2>&5
19824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825 (exit $ac_status); }; }; then
19826 ac_cv_type_uint64_t=yes
19828 echo "$as_me: failed program was:" >&5
19829 sed 's/^/| /' conftest.$ac_ext >&5
19831 ac_cv_type_uint64_t=no
19833 rm -f conftest.$ac_objext conftest.$ac_ext
19835 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
19836 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
19837 if test $ac_cv_type_uint64_t = yes; then
19839 cat >>confdefs.h <<_ACEOF
19840 #define HAVE_UINT64_T 1
19845 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
19846 echo "$as_me: error: Type uint64_t required but not found" >&2;}
19847 { (exit 1); exit 1; }; }
19850 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19851 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19852 if test "${ac_cv_header_time+set}" = set; then
19853 echo $ECHO_N "(cached) $ECHO_C" >&6
19855 cat >conftest.$ac_ext <<_ACEOF
19856 #line $LINENO "configure"
19859 cat confdefs.h >>conftest.$ac_ext
19860 cat >>conftest.$ac_ext <<_ACEOF
19861 /* end confdefs.h. */
19862 #include <sys/types.h>
19863 #include <sys/time.h>
19869 if ((struct tm *) 0)
19875 rm -f conftest.$ac_objext
19876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19877 (eval $ac_compile) 2>&5
19879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880 (exit $ac_status); } &&
19881 { ac_try='test -s conftest.$ac_objext'
19882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19883 (eval $ac_try) 2>&5
19885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886 (exit $ac_status); }; }; then
19887 ac_cv_header_time=yes
19889 echo "$as_me: failed program was:" >&5
19890 sed 's/^/| /' conftest.$ac_ext >&5
19892 ac_cv_header_time=no
19894 rm -f conftest.$ac_objext conftest.$ac_ext
19896 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19897 echo "${ECHO_T}$ac_cv_header_time" >&6
19898 if test $ac_cv_header_time = yes; then
19900 cat >>confdefs.h <<\_ACEOF
19901 #define TIME_WITH_SYS_TIME 1
19906 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19907 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
19908 if test "${ac_cv_struct_tm+set}" = set; then
19909 echo $ECHO_N "(cached) $ECHO_C" >&6
19911 cat >conftest.$ac_ext <<_ACEOF
19912 #line $LINENO "configure"
19915 cat confdefs.h >>conftest.$ac_ext
19916 cat >>conftest.$ac_ext <<_ACEOF
19917 /* end confdefs.h. */
19918 #include <sys/types.h>
19924 struct tm *tp; tp->tm_sec;
19929 rm -f conftest.$ac_objext
19930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19931 (eval $ac_compile) 2>&5
19933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934 (exit $ac_status); } &&
19935 { ac_try='test -s conftest.$ac_objext'
19936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19937 (eval $ac_try) 2>&5
19939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19940 (exit $ac_status); }; }; then
19941 ac_cv_struct_tm=time.h
19943 echo "$as_me: failed program was:" >&5
19944 sed 's/^/| /' conftest.$ac_ext >&5
19946 ac_cv_struct_tm=sys/time.h
19948 rm -f conftest.$ac_objext conftest.$ac_ext
19950 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19951 echo "${ECHO_T}$ac_cv_struct_tm" >&6
19952 if test $ac_cv_struct_tm = sys/time.h; then
19954 cat >>confdefs.h <<\_ACEOF
19955 #define TM_IN_SYS_TIME 1
19961 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
19962 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
19963 if test "${ac_cv_cxx_namespaces+set}" = set; then
19964 echo $ECHO_N "(cached) $ECHO_C" >&6
19969 ac_cpp='$CXXCPP $CPPFLAGS'
19970 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19971 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19972 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19974 cat >conftest.$ac_ext <<_ACEOF
19975 #line $LINENO "configure"
19978 cat confdefs.h >>conftest.$ac_ext
19979 cat >>conftest.$ac_ext <<_ACEOF
19980 /* end confdefs.h. */
19981 namespace Outer { namespace Inner { int i = 0; }}
19985 using namespace Outer::Inner; return i;
19990 rm -f conftest.$ac_objext
19991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19992 (eval $ac_compile) 2>&5
19994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995 (exit $ac_status); } &&
19996 { ac_try='test -s conftest.$ac_objext'
19997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19998 (eval $ac_try) 2>&5
20000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001 (exit $ac_status); }; }; then
20002 ac_cv_cxx_namespaces=yes
20004 echo "$as_me: failed program was:" >&5
20005 sed 's/^/| /' conftest.$ac_ext >&5
20007 ac_cv_cxx_namespaces=no
20009 rm -f conftest.$ac_objext conftest.$ac_ext
20011 ac_cpp='$CPP $CPPFLAGS'
20012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20018 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20019 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20020 if test "$ac_cv_cxx_namespaces" = yes; then
20022 cat >>confdefs.h <<\_ACEOF
20023 #define HAVE_NAMESPACES
20028 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20029 echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20030 if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20031 echo $ECHO_N "(cached) $ECHO_C" >&6
20037 ac_cpp='$CXXCPP $CPPFLAGS'
20038 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20039 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20040 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20042 cat >conftest.$ac_ext <<_ACEOF
20043 #line $LINENO "configure"
20046 cat confdefs.h >>conftest.$ac_ext
20047 cat >>conftest.$ac_ext <<_ACEOF
20048 /* end confdefs.h. */
20049 #include <ext/hash_map>
20050 #ifdef HAVE_NAMESPACES
20051 using namespace std;
20056 hash_map<int, int> t; return 0;
20061 rm -f conftest.$ac_objext
20062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20063 (eval $ac_compile) 2>&5
20065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066 (exit $ac_status); } &&
20067 { ac_try='test -s conftest.$ac_objext'
20068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20069 (eval $ac_try) 2>&5
20071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072 (exit $ac_status); }; }; then
20073 ac_cv_cxx_have_ext_hash_map=std
20075 echo "$as_me: failed program was:" >&5
20076 sed 's/^/| /' conftest.$ac_ext >&5
20078 ac_cv_cxx_have_ext_hash_map=no
20080 rm -f conftest.$ac_objext conftest.$ac_ext
20081 cat >conftest.$ac_ext <<_ACEOF
20082 #line $LINENO "configure"
20085 cat confdefs.h >>conftest.$ac_ext
20086 cat >>conftest.$ac_ext <<_ACEOF
20087 /* end confdefs.h. */
20088 #include <ext/hash_map>
20089 #ifdef HAVE_NAMESPACES
20090 using namespace __gnu_cxx;
20095 hash_map<int, int> t; return 0;
20100 rm -f conftest.$ac_objext
20101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20102 (eval $ac_compile) 2>&5
20104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105 (exit $ac_status); } &&
20106 { ac_try='test -s conftest.$ac_objext'
20107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20108 (eval $ac_try) 2>&5
20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); }; }; then
20112 ac_cv_cxx_have_ext_hash_map=gnu
20114 echo "$as_me: failed program was:" >&5
20115 sed 's/^/| /' conftest.$ac_ext >&5
20117 ac_cv_cxx_have_ext_hash_map=no
20119 rm -f conftest.$ac_objext conftest.$ac_ext
20121 ac_cpp='$CPP $CPPFLAGS'
20122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20128 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20129 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20130 if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20132 cat >>confdefs.h <<\_ACEOF
20133 #define HAVE_STD_EXT_HASH_MAP
20137 if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20139 cat >>confdefs.h <<\_ACEOF
20140 #define HAVE_GNU_EXT_HASH_MAP
20145 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20146 echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20147 if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20148 echo $ECHO_N "(cached) $ECHO_C" >&6
20154 ac_cpp='$CXXCPP $CPPFLAGS'
20155 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20156 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20157 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20159 cat >conftest.$ac_ext <<_ACEOF
20160 #line $LINENO "configure"
20163 cat confdefs.h >>conftest.$ac_ext
20164 cat >>conftest.$ac_ext <<_ACEOF
20165 /* end confdefs.h. */
20166 #include <ext/hash_set>
20167 #ifdef HAVE_NAMESPACES
20168 using namespace std;
20173 hash_set<int> t; return 0;
20178 rm -f conftest.$ac_objext
20179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20180 (eval $ac_compile) 2>&5
20182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183 (exit $ac_status); } &&
20184 { ac_try='test -s conftest.$ac_objext'
20185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20186 (eval $ac_try) 2>&5
20188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189 (exit $ac_status); }; }; then
20190 ac_cv_cxx_have_ext_hash_set=std
20192 echo "$as_me: failed program was:" >&5
20193 sed 's/^/| /' conftest.$ac_ext >&5
20195 ac_cv_cxx_have_ext_hash_set=no
20197 rm -f conftest.$ac_objext conftest.$ac_ext
20198 cat >conftest.$ac_ext <<_ACEOF
20199 #line $LINENO "configure"
20202 cat confdefs.h >>conftest.$ac_ext
20203 cat >>conftest.$ac_ext <<_ACEOF
20204 /* end confdefs.h. */
20205 #include <ext/hash_set>
20206 #ifdef HAVE_NAMESPACES
20207 using namespace __gnu_cxx;
20212 hash_set<int> t; return 0;
20217 rm -f conftest.$ac_objext
20218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20219 (eval $ac_compile) 2>&5
20221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222 (exit $ac_status); } &&
20223 { ac_try='test -s conftest.$ac_objext'
20224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20225 (eval $ac_try) 2>&5
20227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228 (exit $ac_status); }; }; then
20229 ac_cv_cxx_have_ext_hash_set=gnu
20231 echo "$as_me: failed program was:" >&5
20232 sed 's/^/| /' conftest.$ac_ext >&5
20234 ac_cv_cxx_have_ext_hash_set=no
20236 rm -f conftest.$ac_objext conftest.$ac_ext
20238 ac_cpp='$CPP $CPPFLAGS'
20239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20245 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
20246 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
20247 if test "$ac_cv_cxx_have_ext_hash_set" = std; then
20249 cat >>confdefs.h <<\_ACEOF
20250 #define HAVE_STD_EXT_HASH_SET
20254 if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
20256 cat >>confdefs.h <<\_ACEOF
20257 #define HAVE_GNU_EXT_HASH_SET
20262 echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
20263 echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
20264 if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
20265 echo $ECHO_N "(cached) $ECHO_C" >&6
20271 ac_cpp='$CXXCPP $CPPFLAGS'
20272 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20273 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20274 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20276 cat >conftest.$ac_ext <<_ACEOF
20277 #line $LINENO "configure"
20280 cat confdefs.h >>conftest.$ac_ext
20281 cat >>conftest.$ac_ext <<_ACEOF
20282 /* end confdefs.h. */
20283 #include <ext/slist>
20284 #ifdef HAVE_NAMESPACES
20285 using namespace std;
20290 slist<int> s; return 0;
20295 rm -f conftest.$ac_objext
20296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20297 (eval $ac_compile) 2>&5
20299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300 (exit $ac_status); } &&
20301 { ac_try='test -s conftest.$ac_objext'
20302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20303 (eval $ac_try) 2>&5
20305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306 (exit $ac_status); }; }; then
20307 ac_cv_cxx_have_ext_slist=std
20309 echo "$as_me: failed program was:" >&5
20310 sed 's/^/| /' conftest.$ac_ext >&5
20312 ac_cv_cxx_have_ext_slist=no
20314 rm -f conftest.$ac_objext conftest.$ac_ext
20315 cat >conftest.$ac_ext <<_ACEOF
20316 #line $LINENO "configure"
20319 cat confdefs.h >>conftest.$ac_ext
20320 cat >>conftest.$ac_ext <<_ACEOF
20321 /* end confdefs.h. */
20322 #include <ext/slist>
20323 #ifdef HAVE_NAMESPACES
20324 using namespace __gnu_cxx;
20329 slist<int> s; return 0;
20334 rm -f conftest.$ac_objext
20335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20336 (eval $ac_compile) 2>&5
20338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339 (exit $ac_status); } &&
20340 { ac_try='test -s conftest.$ac_objext'
20341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20342 (eval $ac_try) 2>&5
20344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345 (exit $ac_status); }; }; then
20346 ac_cv_cxx_have_ext_slist=gnu
20348 echo "$as_me: failed program was:" >&5
20349 sed 's/^/| /' conftest.$ac_ext >&5
20351 ac_cv_cxx_have_ext_slist=no
20353 rm -f conftest.$ac_objext conftest.$ac_ext
20356 ac_cpp='$CPP $CPPFLAGS'
20357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20363 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
20364 echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
20365 if test "$ac_cv_cxx_have_ext_slist" = std; then
20367 cat >>confdefs.h <<\_ACEOF
20368 #define HAVE_EXT_SLIST std
20372 if test "$ac_cv_cxx_have_ext_slist" = gnu; then
20374 cat >>confdefs.h <<\_ACEOF
20375 #define HAVE_EXT_SLIST gnu
20380 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
20381 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
20382 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
20383 echo $ECHO_N "(cached) $ECHO_C" >&6
20389 ac_cpp='$CXXCPP $CPPFLAGS'
20390 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20391 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20392 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20394 cat >conftest.$ac_ext <<_ACEOF
20395 #line $LINENO "configure"
20398 cat confdefs.h >>conftest.$ac_ext
20399 cat >>conftest.$ac_ext <<_ACEOF
20400 /* end confdefs.h. */
20401 #include <iterator>
20402 #ifdef HAVE_NAMESPACES
20403 using namespace std;
20408 iterator<int,int,int> t; return 0;
20413 rm -f conftest.$ac_objext
20414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20415 (eval $ac_compile) 2>&5
20417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418 (exit $ac_status); } &&
20419 { ac_try='test -s conftest.$ac_objext'
20420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20421 (eval $ac_try) 2>&5
20423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424 (exit $ac_status); }; }; then
20425 ac_cv_cxx_have_std_iterator=yes
20427 echo "$as_me: failed program was:" >&5
20428 sed 's/^/| /' conftest.$ac_ext >&5
20430 ac_cv_cxx_have_std_iterator=no
20432 rm -f conftest.$ac_objext conftest.$ac_ext
20434 ac_cpp='$CPP $CPPFLAGS'
20435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20441 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
20442 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
20443 if test "$ac_cv_cxx_have_std_iterator" = yes; then
20445 cat >>confdefs.h <<\_ACEOF
20446 #define HAVE_STD_ITERATOR
20451 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
20452 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
20453 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
20454 echo $ECHO_N "(cached) $ECHO_C" >&6
20460 ac_cpp='$CXXCPP $CPPFLAGS'
20461 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20462 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20463 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20465 cat >conftest.$ac_ext <<_ACEOF
20466 #line $LINENO "configure"
20469 cat confdefs.h >>conftest.$ac_ext
20470 cat >>conftest.$ac_ext <<_ACEOF
20471 /* end confdefs.h. */
20472 #include <iterator>
20473 #ifdef HAVE_NAMESPACES
20474 using namespace std;
20479 bidirectional_iterator<int,int,int> t; return 0;
20484 rm -f conftest.$ac_objext
20485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20486 (eval $ac_compile) 2>&5
20488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20489 (exit $ac_status); } &&
20490 { ac_try='test -s conftest.$ac_objext'
20491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20492 (eval $ac_try) 2>&5
20494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495 (exit $ac_status); }; }; then
20496 ac_cv_cxx_have_bi_iterator=yes
20498 echo "$as_me: failed program was:" >&5
20499 sed 's/^/| /' conftest.$ac_ext >&5
20501 ac_cv_cxx_have_bi_iterator=no
20503 rm -f conftest.$ac_objext conftest.$ac_ext
20505 ac_cpp='$CPP $CPPFLAGS'
20506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20512 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
20513 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
20514 if test "$ac_cv_cxx_have_bi_iterator" = yes; then
20516 cat >>confdefs.h <<\_ACEOF
20517 #define HAVE_BI_ITERATOR
20522 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
20523 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
20524 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
20525 echo $ECHO_N "(cached) $ECHO_C" >&6
20531 ac_cpp='$CXXCPP $CPPFLAGS'
20532 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20533 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20534 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20536 cat >conftest.$ac_ext <<_ACEOF
20537 #line $LINENO "configure"
20540 cat confdefs.h >>conftest.$ac_ext
20541 cat >>conftest.$ac_ext <<_ACEOF
20542 /* end confdefs.h. */
20543 #include <iterator>
20544 #ifdef HAVE_NAMESPACES
20545 using namespace std;
20550 forward_iterator<int,int,int> t; return 0;
20555 rm -f conftest.$ac_objext
20556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20557 (eval $ac_compile) 2>&5
20559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560 (exit $ac_status); } &&
20561 { ac_try='test -s conftest.$ac_objext'
20562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20563 (eval $ac_try) 2>&5
20565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566 (exit $ac_status); }; }; then
20567 ac_cv_cxx_have_fwd_iterator=yes
20569 echo "$as_me: failed program was:" >&5
20570 sed 's/^/| /' conftest.$ac_ext >&5
20572 ac_cv_cxx_have_fwd_iterator=no
20574 rm -f conftest.$ac_objext conftest.$ac_ext
20576 ac_cpp='$CPP $CPPFLAGS'
20577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20583 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
20584 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
20585 if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
20587 cat >>confdefs.h <<\_ACEOF
20588 #define HAVE_FWD_ITERATOR
20594 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20595 # for constant arguments. Useless!
20596 echo "$as_me:$LINENO: checking for working alloca.h" >&5
20597 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
20598 if test "${ac_cv_working_alloca_h+set}" = set; then
20599 echo $ECHO_N "(cached) $ECHO_C" >&6
20601 cat >conftest.$ac_ext <<_ACEOF
20602 #line $LINENO "configure"
20605 cat confdefs.h >>conftest.$ac_ext
20606 cat >>conftest.$ac_ext <<_ACEOF
20607 /* end confdefs.h. */
20608 #include <alloca.h>
20612 char *p = (char *) alloca (2 * sizeof (int));
20617 rm -f conftest.$ac_objext conftest$ac_exeext
20618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20619 (eval $ac_link) 2>&5
20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622 (exit $ac_status); } &&
20623 { ac_try='test -s conftest$ac_exeext'
20624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20625 (eval $ac_try) 2>&5
20627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628 (exit $ac_status); }; }; then
20629 ac_cv_working_alloca_h=yes
20631 echo "$as_me: failed program was:" >&5
20632 sed 's/^/| /' conftest.$ac_ext >&5
20634 ac_cv_working_alloca_h=no
20636 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20638 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20639 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
20640 if test $ac_cv_working_alloca_h = yes; then
20642 cat >>confdefs.h <<\_ACEOF
20643 #define HAVE_ALLOCA_H 1
20648 echo "$as_me:$LINENO: checking for alloca" >&5
20649 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
20650 if test "${ac_cv_func_alloca_works+set}" = set; then
20651 echo $ECHO_N "(cached) $ECHO_C" >&6
20653 cat >conftest.$ac_ext <<_ACEOF
20654 #line $LINENO "configure"
20657 cat confdefs.h >>conftest.$ac_ext
20658 cat >>conftest.$ac_ext <<_ACEOF
20659 /* end confdefs.h. */
20661 # define alloca __builtin_alloca
20664 # include <malloc.h>
20665 # define alloca _alloca
20668 # include <alloca.h>
20673 # ifndef alloca /* predefined by HP cc +Olibcalls */
20684 char *p = (char *) alloca (1);
20689 rm -f conftest.$ac_objext conftest$ac_exeext
20690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20691 (eval $ac_link) 2>&5
20693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694 (exit $ac_status); } &&
20695 { ac_try='test -s conftest$ac_exeext'
20696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20697 (eval $ac_try) 2>&5
20699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700 (exit $ac_status); }; }; then
20701 ac_cv_func_alloca_works=yes
20703 echo "$as_me: failed program was:" >&5
20704 sed 's/^/| /' conftest.$ac_ext >&5
20706 ac_cv_func_alloca_works=no
20708 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20710 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20711 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
20713 if test $ac_cv_func_alloca_works = yes; then
20715 cat >>confdefs.h <<\_ACEOF
20716 #define HAVE_ALLOCA 1
20720 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20721 # that cause trouble. Some versions do not even contain alloca or
20722 # contain a buggy version. If you still want to use their alloca,
20723 # use ar to extract alloca.o from them instead of compiling alloca.c.
20725 ALLOCA=alloca.$ac_objext
20727 cat >>confdefs.h <<\_ACEOF
20732 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20733 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
20734 if test "${ac_cv_os_cray+set}" = set; then
20735 echo $ECHO_N "(cached) $ECHO_C" >&6
20737 cat >conftest.$ac_ext <<_ACEOF
20738 #line $LINENO "configure"
20741 cat confdefs.h >>conftest.$ac_ext
20742 cat >>conftest.$ac_ext <<_ACEOF
20743 /* end confdefs.h. */
20744 #if defined(CRAY) && ! defined(CRAY2)
20751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20752 $EGREP "webecray" >/dev/null 2>&1; then
20760 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20761 echo "${ECHO_T}$ac_cv_os_cray" >&6
20762 if test $ac_cv_os_cray = yes; then
20763 for ac_func in _getb67 GETB67 getb67; do
20764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20765 echo "$as_me:$LINENO: checking for $ac_func" >&5
20766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20767 if eval "test \"\${$as_ac_var+set}\" = set"; then
20768 echo $ECHO_N "(cached) $ECHO_C" >&6
20770 cat >conftest.$ac_ext <<_ACEOF
20771 #line $LINENO "configure"
20774 cat confdefs.h >>conftest.$ac_ext
20775 cat >>conftest.$ac_ext <<_ACEOF
20776 /* end confdefs.h. */
20777 /* System header to define __stub macros and hopefully few prototypes,
20778 which can conflict with char $ac_func (); below.
20779 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20780 <limits.h> exists even on freestanding compilers. */
20782 # include <limits.h>
20784 # include <assert.h>
20786 /* Override any gcc2 internal prototype to avoid an error. */
20791 /* We use char because int might match the return type of a gcc2
20792 builtin and then its argument prototype would still apply. */
20794 /* The GNU C library defines this for functions which it implements
20795 to always fail with ENOSYS. Some functions are actually named
20796 something starting with __ and the normal name is an alias. */
20797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20800 char (*f) () = $ac_func;
20809 return f != $ac_func;
20814 rm -f conftest.$ac_objext conftest$ac_exeext
20815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20816 (eval $ac_link) 2>&5
20818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819 (exit $ac_status); } &&
20820 { ac_try='test -s conftest$ac_exeext'
20821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20822 (eval $ac_try) 2>&5
20824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825 (exit $ac_status); }; }; then
20826 eval "$as_ac_var=yes"
20828 echo "$as_me: failed program was:" >&5
20829 sed 's/^/| /' conftest.$ac_ext >&5
20831 eval "$as_ac_var=no"
20833 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20836 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20837 if test `eval echo '${'$as_ac_var'}'` = yes; then
20839 cat >>confdefs.h <<_ACEOF
20840 #define CRAY_STACKSEG_END $ac_func
20849 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20850 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
20851 if test "${ac_cv_c_stack_direction+set}" = set; then
20852 echo $ECHO_N "(cached) $ECHO_C" >&6
20854 if test "$cross_compiling" = yes; then
20855 ac_cv_c_stack_direction=0
20857 cat >conftest.$ac_ext <<_ACEOF
20858 #line $LINENO "configure"
20861 cat confdefs.h >>conftest.$ac_ext
20862 cat >>conftest.$ac_ext <<_ACEOF
20863 /* end confdefs.h. */
20865 find_stack_direction ()
20867 static char *addr = 0;
20872 return find_stack_direction ();
20875 return (&dummy > addr) ? 1 : -1;
20881 exit (find_stack_direction () < 0);
20884 rm -f conftest$ac_exeext
20885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20886 (eval $ac_link) 2>&5
20888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20891 (eval $ac_try) 2>&5
20893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894 (exit $ac_status); }; }; then
20895 ac_cv_c_stack_direction=1
20897 echo "$as_me: program exited with status $ac_status" >&5
20898 echo "$as_me: failed program was:" >&5
20899 sed 's/^/| /' conftest.$ac_ext >&5
20901 ( exit $ac_status )
20902 ac_cv_c_stack_direction=-1
20904 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20907 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20908 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
20910 cat >>confdefs.h <<_ACEOF
20911 #define STACK_DIRECTION $ac_cv_c_stack_direction
20917 if test $ac_cv_c_compiler_gnu = yes; then
20918 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
20919 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
20920 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
20921 echo $ECHO_N "(cached) $ECHO_C" >&6
20923 ac_pattern="Autoconf.*'x'"
20924 cat >conftest.$ac_ext <<_ACEOF
20925 #line $LINENO "configure"
20928 cat confdefs.h >>conftest.$ac_ext
20929 cat >>conftest.$ac_ext <<_ACEOF
20930 /* end confdefs.h. */
20934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20935 $EGREP "$ac_pattern" >/dev/null 2>&1; then
20936 ac_cv_prog_gcc_traditional=yes
20938 ac_cv_prog_gcc_traditional=no
20943 if test $ac_cv_prog_gcc_traditional = no; then
20944 cat >conftest.$ac_ext <<_ACEOF
20945 #line $LINENO "configure"
20948 cat confdefs.h >>conftest.$ac_ext
20949 cat >>conftest.$ac_ext <<_ACEOF
20950 /* end confdefs.h. */
20951 #include <termio.h>
20954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20955 $EGREP "$ac_pattern" >/dev/null 2>&1; then
20956 ac_cv_prog_gcc_traditional=yes
20962 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
20963 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
20964 if test $ac_cv_prog_gcc_traditional = yes; then
20965 CC="$CC -traditional"
20969 echo "$as_me:$LINENO: checking for working memcmp" >&5
20970 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
20971 if test "${ac_cv_func_memcmp_working+set}" = set; then
20972 echo $ECHO_N "(cached) $ECHO_C" >&6
20974 if test "$cross_compiling" = yes; then
20975 ac_cv_func_memcmp_working=no
20977 cat >conftest.$ac_ext <<_ACEOF
20978 #line $LINENO "configure"
20981 cat confdefs.h >>conftest.$ac_ext
20982 cat >>conftest.$ac_ext <<_ACEOF
20983 /* end confdefs.h. */
20989 /* Some versions of memcmp are not 8-bit clean. */
20990 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
20991 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
20994 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
20995 or more and with at least one buffer not starting on a 4-byte boundary.
20996 William Lewis provided this test program. */
21001 for (i = 0; i < 4; i++)
21005 strcpy (a, "--------01111111");
21006 strcpy (b, "--------10000000");
21007 if (memcmp (a, b, 16) >= 0)
21017 rm -f conftest$ac_exeext
21018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21019 (eval $ac_link) 2>&5
21021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21024 (eval $ac_try) 2>&5
21026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027 (exit $ac_status); }; }; then
21028 ac_cv_func_memcmp_working=yes
21030 echo "$as_me: program exited with status $ac_status" >&5
21031 echo "$as_me: failed program was:" >&5
21032 sed 's/^/| /' conftest.$ac_ext >&5
21034 ( exit $ac_status )
21035 ac_cv_func_memcmp_working=no
21037 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21040 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21041 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21042 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21046 for ac_header in stdlib.h unistd.h
21048 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21050 echo "$as_me:$LINENO: checking for $ac_header" >&5
21051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21053 echo $ECHO_N "(cached) $ECHO_C" >&6
21055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21056 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21058 # Is the header compilable?
21059 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21060 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21061 cat >conftest.$ac_ext <<_ACEOF
21062 #line $LINENO "configure"
21065 cat confdefs.h >>conftest.$ac_ext
21066 cat >>conftest.$ac_ext <<_ACEOF
21067 /* end confdefs.h. */
21068 $ac_includes_default
21069 #include <$ac_header>
21071 rm -f conftest.$ac_objext
21072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21073 (eval $ac_compile) 2>&5
21075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076 (exit $ac_status); } &&
21077 { ac_try='test -s conftest.$ac_objext'
21078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21079 (eval $ac_try) 2>&5
21081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082 (exit $ac_status); }; }; then
21083 ac_header_compiler=yes
21085 echo "$as_me: failed program was:" >&5
21086 sed 's/^/| /' conftest.$ac_ext >&5
21088 ac_header_compiler=no
21090 rm -f conftest.$ac_objext conftest.$ac_ext
21091 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21092 echo "${ECHO_T}$ac_header_compiler" >&6
21094 # Is the header present?
21095 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21096 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21097 cat >conftest.$ac_ext <<_ACEOF
21098 #line $LINENO "configure"
21101 cat confdefs.h >>conftest.$ac_ext
21102 cat >>conftest.$ac_ext <<_ACEOF
21103 /* end confdefs.h. */
21104 #include <$ac_header>
21106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21107 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21109 grep -v '^ *+' conftest.er1 >conftest.err
21111 cat conftest.err >&5
21112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113 (exit $ac_status); } >/dev/null; then
21114 if test -s conftest.err; then
21115 ac_cpp_err=$ac_c_preproc_warn_flag
21122 if test -z "$ac_cpp_err"; then
21123 ac_header_preproc=yes
21125 echo "$as_me: failed program was:" >&5
21126 sed 's/^/| /' conftest.$ac_ext >&5
21128 ac_header_preproc=no
21130 rm -f conftest.err conftest.$ac_ext
21131 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21132 echo "${ECHO_T}$ac_header_preproc" >&6
21134 # So? What about this header?
21135 case $ac_header_compiler:$ac_header_preproc in
21137 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21138 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21140 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21143 ## ------------------------------------ ##
21144 ## Report this to bug-autoconf@gnu.org. ##
21145 ## ------------------------------------ ##
21148 sed "s/^/$as_me: WARNING: /" >&2
21151 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21152 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21153 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21154 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21156 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21159 ## ------------------------------------ ##
21160 ## Report this to bug-autoconf@gnu.org. ##
21161 ## ------------------------------------ ##
21164 sed "s/^/$as_me: WARNING: /" >&2
21167 echo "$as_me:$LINENO: checking for $ac_header" >&5
21168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21170 echo $ECHO_N "(cached) $ECHO_C" >&6
21172 eval "$as_ac_Header=$ac_header_preproc"
21174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21175 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21178 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21179 cat >>confdefs.h <<_ACEOF
21180 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21188 for ac_func in getpagesize
21190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21191 echo "$as_me:$LINENO: checking for $ac_func" >&5
21192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21193 if eval "test \"\${$as_ac_var+set}\" = set"; then
21194 echo $ECHO_N "(cached) $ECHO_C" >&6
21196 cat >conftest.$ac_ext <<_ACEOF
21197 #line $LINENO "configure"
21200 cat confdefs.h >>conftest.$ac_ext
21201 cat >>conftest.$ac_ext <<_ACEOF
21202 /* end confdefs.h. */
21203 /* System header to define __stub macros and hopefully few prototypes,
21204 which can conflict with char $ac_func (); below.
21205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21206 <limits.h> exists even on freestanding compilers. */
21208 # include <limits.h>
21210 # include <assert.h>
21212 /* Override any gcc2 internal prototype to avoid an error. */
21217 /* We use char because int might match the return type of a gcc2
21218 builtin and then its argument prototype would still apply. */
21220 /* The GNU C library defines this for functions which it implements
21221 to always fail with ENOSYS. Some functions are actually named
21222 something starting with __ and the normal name is an alias. */
21223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21226 char (*f) () = $ac_func;
21235 return f != $ac_func;
21240 rm -f conftest.$ac_objext conftest$ac_exeext
21241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21242 (eval $ac_link) 2>&5
21244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245 (exit $ac_status); } &&
21246 { ac_try='test -s conftest$ac_exeext'
21247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21248 (eval $ac_try) 2>&5
21250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21251 (exit $ac_status); }; }; then
21252 eval "$as_ac_var=yes"
21254 echo "$as_me: failed program was:" >&5
21255 sed 's/^/| /' conftest.$ac_ext >&5
21257 eval "$as_ac_var=no"
21259 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21262 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21263 if test `eval echo '${'$as_ac_var'}'` = yes; then
21264 cat >>confdefs.h <<_ACEOF
21265 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21271 echo "$as_me:$LINENO: checking for working mmap" >&5
21272 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21273 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21274 echo $ECHO_N "(cached) $ECHO_C" >&6
21276 if test "$cross_compiling" = yes; then
21277 ac_cv_func_mmap_fixed_mapped=no
21279 cat >conftest.$ac_ext <<_ACEOF
21280 #line $LINENO "configure"
21283 cat confdefs.h >>conftest.$ac_ext
21284 cat >>conftest.$ac_ext <<_ACEOF
21285 /* end confdefs.h. */
21286 $ac_includes_default
21287 /* malloc might have been renamed as rpl_malloc. */
21290 /* Thanks to Mike Haertel and Jim Avera for this test.
21291 Here is a matrix of mmap possibilities:
21292 mmap private not fixed
21293 mmap private fixed at somewhere currently unmapped
21294 mmap private fixed at somewhere already mapped
21295 mmap shared not fixed
21296 mmap shared fixed at somewhere currently unmapped
21297 mmap shared fixed at somewhere already mapped
21298 For private mappings, we should verify that changes cannot be read()
21299 back from the file, nor mmap's back from the file at a different
21300 address. (There have been systems where private was not correctly
21301 implemented like the infamous i386 svr4.0, and systems where the
21302 VM page cache was not coherent with the file system buffer cache
21303 like early versions of FreeBSD and possibly contemporary NetBSD.)
21304 For shared mappings, we should conversely verify that changes get
21305 propagated back to all the places they're supposed to be.
21307 Grep wants private fixed already mapped.
21308 The main things grep needs to know about mmap are:
21309 * does it exist and is it safe to write into the mmap'd area
21310 * how to use it (BSD variants) */
21313 #include <sys/mman.h>
21315 #if !STDC_HEADERS && !HAVE_STDLIB_H
21319 /* This mess was copied from the GNU getpagesize.h. */
21320 #if !HAVE_GETPAGESIZE
21321 /* Assume that all systems that can run configure have sys/param.h. */
21322 # if !HAVE_SYS_PARAM_H
21323 # define HAVE_SYS_PARAM_H 1
21326 # ifdef _SC_PAGESIZE
21327 # define getpagesize() sysconf(_SC_PAGESIZE)
21328 # else /* no _SC_PAGESIZE */
21329 # if HAVE_SYS_PARAM_H
21330 # include <sys/param.h>
21331 # ifdef EXEC_PAGESIZE
21332 # define getpagesize() EXEC_PAGESIZE
21333 # else /* no EXEC_PAGESIZE */
21335 # define getpagesize() NBPG * CLSIZE
21338 # endif /* no CLSIZE */
21339 # else /* no NBPG */
21341 # define getpagesize() NBPC
21342 # else /* no NBPC */
21344 # define getpagesize() PAGESIZE
21345 # endif /* PAGESIZE */
21346 # endif /* no NBPC */
21347 # endif /* no NBPG */
21348 # endif /* no EXEC_PAGESIZE */
21349 # else /* no HAVE_SYS_PARAM_H */
21350 # define getpagesize() 8192 /* punt totally */
21351 # endif /* no HAVE_SYS_PARAM_H */
21352 # endif /* no _SC_PAGESIZE */
21354 #endif /* no HAVE_GETPAGESIZE */
21359 char *data, *data2, *data3;
21363 pagesize = getpagesize ();
21365 /* First, make a file with some known garbage in it. */
21366 data = (char *) malloc (pagesize);
21369 for (i = 0; i < pagesize; ++i)
21370 *(data + i) = rand ();
21372 fd = creat ("conftest.mmap", 0600);
21375 if (write (fd, data, pagesize) != pagesize)
21379 /* Next, try to mmap the file at a fixed address which already has
21380 something else allocated at it. If we can, also make sure that
21381 we see the same garbage. */
21382 fd = open ("conftest.mmap", O_RDWR);
21385 data2 = (char *) malloc (2 * pagesize);
21388 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21389 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21390 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21392 for (i = 0; i < pagesize; ++i)
21393 if (*(data + i) != *(data2 + i))
21396 /* Finally, make sure that changes to the mapped area do not
21397 percolate back to the file as seen by read(). (This is a bug on
21398 some variants of i386 svr4.0.) */
21399 for (i = 0; i < pagesize; ++i)
21400 *(data2 + i) = *(data2 + i) + 1;
21401 data3 = (char *) malloc (pagesize);
21404 if (read (fd, data3, pagesize) != pagesize)
21406 for (i = 0; i < pagesize; ++i)
21407 if (*(data + i) != *(data3 + i))
21413 rm -f conftest$ac_exeext
21414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21415 (eval $ac_link) 2>&5
21417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21418 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21420 (eval $ac_try) 2>&5
21422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21423 (exit $ac_status); }; }; then
21424 ac_cv_func_mmap_fixed_mapped=yes
21426 echo "$as_me: program exited with status $ac_status" >&5
21427 echo "$as_me: failed program was:" >&5
21428 sed 's/^/| /' conftest.$ac_ext >&5
21430 ( exit $ac_status )
21431 ac_cv_func_mmap_fixed_mapped=no
21433 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21436 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21437 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
21438 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21440 cat >>confdefs.h <<\_ACEOF
21441 #define HAVE_MMAP 1
21445 rm -f conftest.mmap
21447 echo "$as_me:$LINENO: checking for mmap of files" >&5
21448 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
21449 if test "${ac_cv_func_mmap_file+set}" = set; then
21450 echo $ECHO_N "(cached) $ECHO_C" >&6
21455 ac_cpp='$CPP $CPPFLAGS'
21456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21460 if test "$cross_compiling" = yes; then
21461 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21462 See \`config.log' for more details." >&5
21463 echo "$as_me: error: cannot run test program while cross compiling
21464 See \`config.log' for more details." >&2;}
21465 { (exit 1); exit 1; }; }
21467 cat >conftest.$ac_ext <<_ACEOF
21468 #line $LINENO "configure"
21471 cat confdefs.h >>conftest.$ac_ext
21472 cat >>conftest.$ac_ext <<_ACEOF
21473 /* end confdefs.h. */
21475 #ifdef HAVE_SYS_MMAN_H
21476 #include <sys/mman.h>
21479 #ifdef HAVE_SYS_TYPES_H
21480 #include <sys/types.h>
21483 #ifdef HAVE_FCNTL_H
21489 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
21491 rm -f conftest$ac_exeext
21492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21493 (eval $ac_link) 2>&5
21495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21498 (eval $ac_try) 2>&5
21500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21501 (exit $ac_status); }; }; then
21502 ac_cv_func_mmap_file=yes
21504 echo "$as_me: program exited with status $ac_status" >&5
21505 echo "$as_me: failed program was:" >&5
21506 sed 's/^/| /' conftest.$ac_ext >&5
21508 ( exit $ac_status )
21509 ac_cv_func_mmap_file=no
21511 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21514 ac_cpp='$CPP $CPPFLAGS'
21515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21521 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21522 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
21523 if test "$ac_cv_func_mmap_file" = yes; then
21524 cat >>confdefs.h <<\_ACEOF
21525 #define HAVE_MMAP_FILE 1
21532 if test ${ac_cv_func_mmap_file} = "no"
21534 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
21535 echo "$as_me: error: mmap() of files required but not found" >&2;}
21536 { (exit 1); exit 1; }; }
21538 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
21539 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
21540 if test "${ac_cv_header_mmap_anon+set}" = set; then
21541 echo $ECHO_N "(cached) $ECHO_C" >&6
21546 ac_cpp='$CPP $CPPFLAGS'
21547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21551 cat >conftest.$ac_ext <<_ACEOF
21552 #line $LINENO "configure"
21555 cat confdefs.h >>conftest.$ac_ext
21556 cat >>conftest.$ac_ext <<_ACEOF
21557 /* end confdefs.h. */
21558 #include <sys/mman.h>
21559 #include <unistd.h>
21564 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
21569 rm -f conftest.$ac_objext
21570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21571 (eval $ac_compile) 2>&5
21573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21574 (exit $ac_status); } &&
21575 { ac_try='test -s conftest.$ac_objext'
21576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21577 (eval $ac_try) 2>&5
21579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580 (exit $ac_status); }; }; then
21581 ac_cv_header_mmap_anon=yes
21583 echo "$as_me: failed program was:" >&5
21584 sed 's/^/| /' conftest.$ac_ext >&5
21586 ac_cv_header_mmap_anon=no
21588 rm -f conftest.$ac_objext conftest.$ac_ext
21590 ac_cpp='$CPP $CPPFLAGS'
21591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21597 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
21598 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
21599 if test "$ac_cv_header_mmap_anon" = yes; then
21600 cat >>confdefs.h <<\_ACEOF
21601 #define HAVE_MMAP_ANONYMOUS 1
21606 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21607 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21608 if test "${ac_cv_type_signal+set}" = set; then
21609 echo $ECHO_N "(cached) $ECHO_C" >&6
21611 cat >conftest.$ac_ext <<_ACEOF
21612 #line $LINENO "configure"
21615 cat confdefs.h >>conftest.$ac_ext
21616 cat >>conftest.$ac_ext <<_ACEOF
21617 /* end confdefs.h. */
21618 #include <sys/types.h>
21619 #include <signal.h>
21624 extern "C" void (*signal (int, void (*)(int)))(int);
21626 void (*signal ()) ();
21637 rm -f conftest.$ac_objext
21638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21639 (eval $ac_compile) 2>&5
21641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642 (exit $ac_status); } &&
21643 { ac_try='test -s conftest.$ac_objext'
21644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21645 (eval $ac_try) 2>&5
21647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21648 (exit $ac_status); }; }; then
21649 ac_cv_type_signal=void
21651 echo "$as_me: failed program was:" >&5
21652 sed 's/^/| /' conftest.$ac_ext >&5
21654 ac_cv_type_signal=int
21656 rm -f conftest.$ac_objext conftest.$ac_ext
21658 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21659 echo "${ECHO_T}$ac_cv_type_signal" >&6
21661 cat >>confdefs.h <<_ACEOF
21662 #define RETSIGTYPE $ac_cv_type_signal
21675 for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol
21677 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21678 echo "$as_me:$LINENO: checking for $ac_func" >&5
21679 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21680 if eval "test \"\${$as_ac_var+set}\" = set"; then
21681 echo $ECHO_N "(cached) $ECHO_C" >&6
21683 cat >conftest.$ac_ext <<_ACEOF
21684 #line $LINENO "configure"
21687 cat confdefs.h >>conftest.$ac_ext
21688 cat >>conftest.$ac_ext <<_ACEOF
21689 /* end confdefs.h. */
21690 /* System header to define __stub macros and hopefully few prototypes,
21691 which can conflict with char $ac_func (); below.
21692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21693 <limits.h> exists even on freestanding compilers. */
21695 # include <limits.h>
21697 # include <assert.h>
21699 /* Override any gcc2 internal prototype to avoid an error. */
21704 /* We use char because int might match the return type of a gcc2
21705 builtin and then its argument prototype would still apply. */
21707 /* The GNU C library defines this for functions which it implements
21708 to always fail with ENOSYS. Some functions are actually named
21709 something starting with __ and the normal name is an alias. */
21710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21713 char (*f) () = $ac_func;
21722 return f != $ac_func;
21727 rm -f conftest.$ac_objext conftest$ac_exeext
21728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21729 (eval $ac_link) 2>&5
21731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21732 (exit $ac_status); } &&
21733 { ac_try='test -s conftest$ac_exeext'
21734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21735 (eval $ac_try) 2>&5
21737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21738 (exit $ac_status); }; }; then
21739 eval "$as_ac_var=yes"
21741 echo "$as_me: failed program was:" >&5
21742 sed 's/^/| /' conftest.$ac_ext >&5
21744 eval "$as_ac_var=no"
21746 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21749 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21750 if test `eval echo '${'$as_ac_var'}'` = yes; then
21751 cat >>confdefs.h <<_ACEOF
21752 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21760 echo "$as_me:$LINENO: checking for mmap" >&5
21761 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
21762 if test "${ac_cv_func_mmap+set}" = set; then
21763 echo $ECHO_N "(cached) $ECHO_C" >&6
21765 cat >conftest.$ac_ext <<_ACEOF
21766 #line $LINENO "configure"
21769 cat confdefs.h >>conftest.$ac_ext
21770 cat >>conftest.$ac_ext <<_ACEOF
21771 /* end confdefs.h. */
21772 /* System header to define __stub macros and hopefully few prototypes,
21773 which can conflict with char mmap (); below.
21774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21775 <limits.h> exists even on freestanding compilers. */
21777 # include <limits.h>
21779 # include <assert.h>
21781 /* Override any gcc2 internal prototype to avoid an error. */
21786 /* We use char because int might match the return type of a gcc2
21787 builtin and then its argument prototype would still apply. */
21789 /* The GNU C library defines this for functions which it implements
21790 to always fail with ENOSYS. Some functions are actually named
21791 something starting with __ and the normal name is an alias. */
21792 #if defined (__stub_mmap) || defined (__stub___mmap)
21795 char (*f) () = mmap;
21809 rm -f conftest.$ac_objext conftest$ac_exeext
21810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21811 (eval $ac_link) 2>&5
21813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21814 (exit $ac_status); } &&
21815 { ac_try='test -s conftest$ac_exeext'
21816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21817 (eval $ac_try) 2>&5
21819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820 (exit $ac_status); }; }; then
21821 ac_cv_func_mmap=yes
21823 echo "$as_me: failed program was:" >&5
21824 sed 's/^/| /' conftest.$ac_ext >&5
21828 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21830 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
21831 echo "${ECHO_T}$ac_cv_func_mmap" >&6
21832 if test $ac_cv_func_mmap = yes; then
21835 { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
21836 echo "$as_me: error: Function mmap() required but not found" >&2;}
21837 { (exit 1); exit 1; }; }
21840 echo "$as_me:$LINENO: checking for mprotect" >&5
21841 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
21842 if test "${ac_cv_func_mprotect+set}" = set; then
21843 echo $ECHO_N "(cached) $ECHO_C" >&6
21845 cat >conftest.$ac_ext <<_ACEOF
21846 #line $LINENO "configure"
21849 cat confdefs.h >>conftest.$ac_ext
21850 cat >>conftest.$ac_ext <<_ACEOF
21851 /* end confdefs.h. */
21852 /* System header to define __stub macros and hopefully few prototypes,
21853 which can conflict with char mprotect (); below.
21854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21855 <limits.h> exists even on freestanding compilers. */
21857 # include <limits.h>
21859 # include <assert.h>
21861 /* Override any gcc2 internal prototype to avoid an error. */
21866 /* We use char because int might match the return type of a gcc2
21867 builtin and then its argument prototype would still apply. */
21869 /* The GNU C library defines this for functions which it implements
21870 to always fail with ENOSYS. Some functions are actually named
21871 something starting with __ and the normal name is an alias. */
21872 #if defined (__stub_mprotect) || defined (__stub___mprotect)
21875 char (*f) () = mprotect;
21884 return f != mprotect;
21889 rm -f conftest.$ac_objext conftest$ac_exeext
21890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21891 (eval $ac_link) 2>&5
21893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21894 (exit $ac_status); } &&
21895 { ac_try='test -s conftest$ac_exeext'
21896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21897 (eval $ac_try) 2>&5
21899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900 (exit $ac_status); }; }; then
21901 ac_cv_func_mprotect=yes
21903 echo "$as_me: failed program was:" >&5
21904 sed 's/^/| /' conftest.$ac_ext >&5
21906 ac_cv_func_mprotect=no
21908 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21910 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
21911 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
21912 if test $ac_cv_func_mprotect = yes; then
21915 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
21916 echo "$as_me: error: Function mprotect() required but not found" >&2;}
21917 { (exit 1); exit 1; }; }
21922 # Check whether --enable-purify or --disable-purify was given.
21923 if test "${enable_purify+set}" = set; then
21924 enableval="$enable_purify"
21929 if test ${enableval} = "no"
21934 ENABLE_PURIFY=ENABLE_PURIFY=1
21938 # Check whether --enable-optimized or --disable-optimized was given.
21939 if test "${enable_optimized+set}" = set; then
21940 enableval="$enable_optimized"
21945 if test ${enableval} = "no"
21950 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
21954 # Check whether --enable-spec or --disable-spec was given.
21955 if test "${enable_spec+set}" = set; then
21956 enableval="$enable_spec"
21961 if test ${enableval} = "no"
21966 USE_SPEC=USE_SPEC=1
21970 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
21971 if test "${enable_precompiled_bytecode+set}" = set; then
21972 enableval="$enable_precompiled_bytecode"
21977 if test ${enableval} = "no"
21982 UPB=USE_PRECOMPILED_BYTECODE=1
21987 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
21988 if test "${enable_llc_diffs+set}" = set; then
21989 enableval="$enable_llc_diffs"
21994 if test ${enableval} = "no"
21996 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
22003 # Check whether --enable-jit or --disable-jit was given.
22004 if test "${enable_jit+set}" = set; then
22005 enableval="$enable_jit"
22011 if test ${enableval} = "no"
22016 JIT=TARGET_HAS_JIT=1
22021 # Check whether --with-spec or --without-spec was given.
22022 if test "${with_spec+set}" = set; then
22023 withval="$with_spec"
22027 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22031 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22032 if test "${with_llvmgccdir+set}" = set; then
22033 withval="$with_llvmgccdir"
22034 LLVMGCCDIR=$withval
22038 # Check whether --with-bcrepos or --without-bcrepos was given.
22039 if test "${with_bcrepos+set}" = set; then
22040 withval="$with_bcrepos"
22044 BCR=/home/vadve/lattner/LLVMPrograms
22048 # Check whether --with-papi or --without-papi was given.
22049 if test "${with_papi+set}" = set; then
22050 withval="$with_papi"
22054 PAPIDIR=/home/vadve/shared/papi-2.3.4.1
22058 # Check whether --with-objroot or --without-objroot was given.
22059 if test "${with_objroot+set}" = set; then
22060 withval="$with_objroot"
22068 # Check whether --with-purify or --without-purify was given.
22069 if test "${with_purify+set}" = set; then
22070 withval="$with_purify"
22075 ac_config_files="$ac_config_files Makefile.config"
22076 cat >confcache <<\_ACEOF
22077 # This file is a shell script that caches the results of configure
22078 # tests run on this system so they can be shared between configure
22079 # scripts and configure runs, see configure's option --config-cache.
22080 # It is not useful on other systems. If it contains results you don't
22081 # want to keep, you may remove or edit it.
22083 # config.status only pays attention to the cache file if you give it
22084 # the --recheck option to rerun configure.
22086 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22087 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22088 # following values.
22092 # The following way of writing the cache mishandles newlines in values,
22093 # but we know of no workaround that is simple, portable, and efficient.
22094 # So, don't put newlines in cache variables' values.
22095 # Ultrix sh set writes to stderr and can't be redirected directly,
22096 # and sets the high bit in the cache file unless we assign to the vars.
22099 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22101 # `set' does not quote correctly, so add quotes (double-quote
22102 # substitution turns \\\\ into \\, and sed turns \\ into \).
22105 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22108 # `set' quotes correctly as required by POSIX, so do not add quotes.
22110 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22117 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22119 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22121 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22122 if test -w $cache_file; then
22123 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22124 cat confcache >$cache_file
22126 echo "not updating unwritable cache $cache_file"
22131 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22132 # Let make expand exec_prefix.
22133 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22135 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22136 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22137 # trailing colons and then remove the whole line if VPATH becomes empty
22138 # (actually we leave an empty line to preserve line numbers).
22139 if test "x$srcdir" = x.; then
22140 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22141 s/:*\$(srcdir):*/:/;
22142 s/:*\${srcdir}:*/:/;
22144 s/^\([^=]*=[ ]*\):*/\1/;
22150 DEFS=-DHAVE_CONFIG_H
22154 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22155 # 1. Remove the extension, and $U if already installed.
22156 ac_i=`echo "$ac_i" |
22157 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22159 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22160 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22162 LIBOBJS=$ac_libobjs
22164 LTLIBOBJS=$ac_ltlibobjs
22168 : ${CONFIG_STATUS=./config.status}
22169 ac_clean_files_save=$ac_clean_files
22170 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22171 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22172 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22173 cat >$CONFIG_STATUS <<_ACEOF
22175 # Generated by $as_me.
22176 # Run this file to recreate the current configuration.
22177 # Compiler output produced by configure, useful for debugging
22178 # configure, is in config.log if it exists.
22181 ac_cs_recheck=false
22183 SHELL=\${CONFIG_SHELL-$SHELL}
22186 cat >>$CONFIG_STATUS <<\_ACEOF
22187 ## --------------------- ##
22188 ## M4sh Initialization. ##
22189 ## --------------------- ##
22191 # Be Bourne compatible
22192 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22195 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22196 # is contrary to our usage. Disable this feature.
22197 alias -g '${1+"$@"}'='"$@"'
22198 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22202 # Support unset when possible.
22203 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22210 # Work around bugs in pre-3.0 UWIN ksh.
22211 $as_unset ENV MAIL MAILPATH
22218 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22219 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22220 LC_TELEPHONE LC_TIME
22222 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22223 eval $as_var=C; export $as_var
22229 # Required to use basename.
22230 if expr a : '\(a\)' >/dev/null 2>&1; then
22236 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22237 as_basename=basename
22243 # Name of the executable.
22244 as_me=`$as_basename "$0" ||
22245 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22246 X"$0" : 'X\(//\)$' \| \
22247 X"$0" : 'X\(/\)$' \| \
22248 . : '\(.\)' 2>/dev/null ||
22250 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22251 /^X\/\(\/\/\)$/{ s//\1/; q; }
22252 /^X\/\(\/\).*/{ s//\1/; q; }
22256 # PATH needs CR, and LINENO needs CR and PATH.
22257 # Avoid depending upon Character Ranges.
22258 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22259 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22260 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22261 as_cr_digits='0123456789'
22262 as_cr_alnum=$as_cr_Letters$as_cr_digits
22264 # The user is always right.
22265 if test "${PATH_SEPARATOR+set}" != set; then
22266 echo "#! /bin/sh" >conf$$.sh
22267 echo "exit 0" >>conf$$.sh
22269 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22278 as_lineno_1=$LINENO
22279 as_lineno_2=$LINENO
22280 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22281 test "x$as_lineno_1" != "x$as_lineno_2" &&
22282 test "x$as_lineno_3" = "x$as_lineno_2" || {
22283 # Find who we are. Look in the path if we contain no path at all
22286 *[\\/]* ) as_myself=$0 ;;
22287 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22288 for as_dir in $PATH
22291 test -z "$as_dir" && as_dir=.
22292 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22297 # We did not find ourselves, most probably we were run as `sh COMMAND'
22298 # in which case we are not to be found in the path.
22299 if test "x$as_myself" = x; then
22302 if test ! -f "$as_myself"; then
22303 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22304 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22305 { (exit 1); exit 1; }; }
22307 case $CONFIG_SHELL in
22309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22310 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22313 test -z "$as_dir" && as_dir=.
22314 for as_base in sh bash ksh sh5; do
22317 if ("$as_dir/$as_base" -c '
22318 as_lineno_1=$LINENO
22319 as_lineno_2=$LINENO
22320 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22321 test "x$as_lineno_1" != "x$as_lineno_2" &&
22322 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22323 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22324 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22325 CONFIG_SHELL=$as_dir/$as_base
22326 export CONFIG_SHELL
22327 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22335 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22336 # uniformly replaced by the line number. The first 'sed' inserts a
22337 # line-number line before each line; the second 'sed' does the real
22338 # work. The second script uses 'N' to pair each line-number line
22339 # with the numbered line, and appends trailing '-' during
22340 # substitution so that $LINENO is not a special case at line end.
22341 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22342 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22343 sed '=' <$as_myself |
22348 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22351 s,^['$as_cr_digits']*\n,,
22352 ' >$as_me.lineno &&
22353 chmod +x $as_me.lineno ||
22354 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22355 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22356 { (exit 1); exit 1; }; }
22358 # Don't try to exec as it changes $[0], causing all sort of problems
22359 # (the dirname of $[0] is not the place where we might find the
22360 # original and so on. Autoconf is especially sensible to this).
22362 # Exit status is that of the last command.
22367 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22368 *c*,-n*) ECHO_N= ECHO_C='
22370 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22371 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22374 if expr a : '\(a\)' >/dev/null 2>&1; then
22380 rm -f conf$$ conf$$.exe conf$$.file
22382 if ln -s conf$$.file conf$$ 2>/dev/null; then
22383 # We could just check for DJGPP; but this test a) works b) is more generic
22384 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22385 if test -f conf$$.exe; then
22386 # Don't use ln at all; we don't have any links
22391 elif ln conf$$.file conf$$ 2>/dev/null; then
22396 rm -f conf$$ conf$$.exe conf$$.file
22398 if mkdir -p . 2>/dev/null; then
22404 as_executable_p="test -f"
22406 # Sed expression to map a string onto a valid CPP name.
22407 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22409 # Sed expression to map a string onto a valid variable name.
22410 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
22414 # We need space, tab and new line, in precisely that order.
22424 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22425 # report actual input values of CONFIG_FILES etc. instead of their
22426 # values after options handling. Logging --version etc. is OK.
22430 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22431 ## Running $as_me. ##
22436 This file was extended by [LLVM] $as_me [1.0], which was
22437 generated by GNU Autoconf 2.57. Invocation command line was
22439 CONFIG_FILES = $CONFIG_FILES
22440 CONFIG_HEADERS = $CONFIG_HEADERS
22441 CONFIG_LINKS = $CONFIG_LINKS
22442 CONFIG_COMMANDS = $CONFIG_COMMANDS
22446 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22450 # Files that config.status was made for.
22451 if test -n "$ac_config_files"; then
22452 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22455 if test -n "$ac_config_headers"; then
22456 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22459 if test -n "$ac_config_links"; then
22460 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22463 if test -n "$ac_config_commands"; then
22464 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22467 cat >>$CONFIG_STATUS <<\_ACEOF
22470 \`$as_me' instantiates files from templates according to the
22471 current configuration.
22473 Usage: $0 [OPTIONS] [FILE]...
22475 -h, --help print this help, then exit
22476 -V, --version print version number, then exit
22477 -q, --quiet do not print progress messages
22478 -d, --debug don't remove temporary files
22479 --recheck update $as_me by reconfiguring in the same conditions
22480 --file=FILE[:TEMPLATE]
22481 instantiate the configuration file FILE
22482 --header=FILE[:TEMPLATE]
22483 instantiate the configuration header FILE
22485 Configuration files:
22488 Configuration headers:
22491 Report bugs to <bug-autoconf@gnu.org>."
22494 cat >>$CONFIG_STATUS <<_ACEOF
22496 [LLVM] config.status [1.0]
22497 configured by $0, generated by GNU Autoconf 2.57,
22498 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22500 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
22501 Free Software Foundation, Inc.
22502 This config.status script is free software; the Free Software Foundation
22503 gives unlimited permission to copy, distribute and modify it."
22508 cat >>$CONFIG_STATUS <<\_ACEOF
22509 # If no file are specified by the user, then we need to provide default
22510 # value. By we need to know if files were specified by the user.
22516 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22517 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22525 *) # This is not an option, so the user has probably given explicit
22528 ac_need_defaults=false;;
22532 # Handling of the options.
22534 cat >>$CONFIG_STATUS <<\_ACEOF
22535 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22537 --version | --vers* | -V )
22538 echo "$ac_cs_version"; exit 0 ;;
22540 # Conflict between --help and --header
22541 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22542 Try \`$0 --help' for more information." >&5
22543 echo "$as_me: error: ambiguous option: $1
22544 Try \`$0 --help' for more information." >&2;}
22545 { (exit 1); exit 1; }; };;
22546 --help | --hel | -h )
22547 echo "$ac_cs_usage"; exit 0 ;;
22548 --debug | --d* | -d )
22550 --file | --fil | --fi | --f )
22552 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22553 ac_need_defaults=false;;
22554 --header | --heade | --head | --hea )
22556 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22557 ac_need_defaults=false;;
22558 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22559 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22562 # This is an error.
22563 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22564 Try \`$0 --help' for more information." >&5
22565 echo "$as_me: error: unrecognized option: $1
22566 Try \`$0 --help' for more information." >&2;}
22567 { (exit 1); exit 1; }; } ;;
22569 *) ac_config_targets="$ac_config_targets $1" ;;
22575 ac_configure_extra_args=
22577 if $ac_cs_silent; then
22579 ac_configure_extra_args="$ac_configure_extra_args --silent"
22583 cat >>$CONFIG_STATUS <<_ACEOF
22584 if \$ac_cs_recheck; then
22585 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22586 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22595 cat >>$CONFIG_STATUS <<\_ACEOF
22596 for ac_config_target in $ac_config_targets
22598 case "$ac_config_target" in
22599 # Handling of arguments.
22600 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22601 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
22602 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22603 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22604 { (exit 1); exit 1; }; };;
22608 # If the user did not use the arguments to specify the items to instantiate,
22609 # then the envvar interface is used. Set only those that are not.
22610 # We use the long form for the default assignment because of an extremely
22611 # bizarre bug on SunOS 4.1.3.
22612 if $ac_need_defaults; then
22613 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22614 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22617 # Have a temporary directory for convenience. Make it in the build tree
22618 # simply because there is no reason to put it here, and in addition,
22619 # creating and moving files from /tmp can sometimes cause problems.
22620 # Create a temporary directory, and hook for its removal unless debugging.
22623 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22624 trap '{ (exit 1); exit 1; }' 1 2 13 15
22627 # Create a (secure) tmp directory for tmp files.
22630 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22631 test -n "$tmp" && test -d "$tmp"
22634 tmp=./confstat$$-$RANDOM
22635 (umask 077 && mkdir $tmp)
22638 echo "$me: cannot create a temporary directory in ." >&2
22639 { (exit 1); exit 1; }
22644 cat >>$CONFIG_STATUS <<_ACEOF
22647 # CONFIG_FILES section.
22650 # No need to generate the scripts if there are no CONFIG_FILES.
22651 # This happens for instance when ./config.status config.h
22652 if test -n "\$CONFIG_FILES"; then
22653 # Protect against being on the right side of a sed subst in config.status.
22654 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22655 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22656 s,@SHELL@,$SHELL,;t t
22657 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22658 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22659 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22660 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22661 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22662 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22663 s,@exec_prefix@,$exec_prefix,;t t
22664 s,@prefix@,$prefix,;t t
22665 s,@program_transform_name@,$program_transform_name,;t t
22666 s,@bindir@,$bindir,;t t
22667 s,@sbindir@,$sbindir,;t t
22668 s,@libexecdir@,$libexecdir,;t t
22669 s,@datadir@,$datadir,;t t
22670 s,@sysconfdir@,$sysconfdir,;t t
22671 s,@sharedstatedir@,$sharedstatedir,;t t
22672 s,@localstatedir@,$localstatedir,;t t
22673 s,@libdir@,$libdir,;t t
22674 s,@includedir@,$includedir,;t t
22675 s,@oldincludedir@,$oldincludedir,;t t
22676 s,@infodir@,$infodir,;t t
22677 s,@mandir@,$mandir,;t t
22678 s,@build_alias@,$build_alias,;t t
22679 s,@host_alias@,$host_alias,;t t
22680 s,@target_alias@,$target_alias,;t t
22681 s,@DEFS@,$DEFS,;t t
22682 s,@ECHO_C@,$ECHO_C,;t t
22683 s,@ECHO_N@,$ECHO_N,;t t
22684 s,@ECHO_T@,$ECHO_T,;t t
22685 s,@LIBS@,$LIBS,;t t
22686 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22687 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22688 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22689 s,@build@,$build,;t t
22690 s,@build_cpu@,$build_cpu,;t t
22691 s,@build_vendor@,$build_vendor,;t t
22692 s,@build_os@,$build_os,;t t
22693 s,@host@,$host,;t t
22694 s,@host_cpu@,$host_cpu,;t t
22695 s,@host_vendor@,$host_vendor,;t t
22696 s,@host_os@,$host_os,;t t
22697 s,@target@,$target,;t t
22698 s,@target_cpu@,$target_cpu,;t t
22699 s,@target_vendor@,$target_vendor,;t t
22700 s,@target_os@,$target_os,;t t
22702 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
22703 s,@ARCH@,$ARCH,;t t
22705 s,@CXXFLAGS@,$CXXFLAGS,;t t
22706 s,@LDFLAGS@,$LDFLAGS,;t t
22707 s,@CPPFLAGS@,$CPPFLAGS,;t t
22708 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22709 s,@EXEEXT@,$EXEEXT,;t t
22710 s,@OBJEXT@,$OBJEXT,;t t
22712 s,@CFLAGS@,$CFLAGS,;t t
22713 s,@ac_ct_CC@,$ac_ct_CC,;t t
22715 s,@ifGNUmake@,$ifGNUmake,;t t
22717 s,@LEXLIB@,$LEXLIB,;t t
22718 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
22719 s,@YACC@,$YACC,;t t
22720 s,@EGREP@,$EGREP,;t t
22721 s,@LN_S@,$LN_S,;t t
22722 s,@ECHO@,$ECHO,;t t
22724 s,@ac_ct_AR@,$ac_ct_AR,;t t
22725 s,@RANLIB@,$RANLIB,;t t
22726 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22727 s,@STRIP@,$STRIP,;t t
22728 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22729 s,@CXXCPP@,$CXXCPP,;t t
22731 s,@FFLAGS@,$FFLAGS,;t t
22732 s,@ac_ct_F77@,$ac_ct_F77,;t t
22733 s,@LIBTOOL@,$LIBTOOL,;t t
22736 s,@MKDIR@,$MKDIR,;t t
22737 s,@DATE@,$DATE,;t t
22740 s,@ETAGS@,$ETAGS,;t t
22741 s,@PURIFY@,$PURIFY,;t t
22742 s,@ALLOCA@,$ALLOCA,;t t
22743 s,@LIBOBJS@,$LIBOBJS,;t t
22744 s,@MMAP_FILE@,$MMAP_FILE,;t t
22745 s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
22746 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
22747 s,@USE_SPEC@,$USE_SPEC,;t t
22749 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
22751 s,@SPEC_ROOT@,$SPEC_ROOT,;t t
22753 s,@PAPIDIR@,$PAPIDIR,;t t
22754 s,@OBJROOT@,$OBJROOT,;t t
22755 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22760 cat >>$CONFIG_STATUS <<\_ACEOF
22761 # Split the substitutions into bite-sized pieces for seds with
22762 # small command number limits, like on Digital OSF/1 and HP-UX.
22763 ac_max_sed_lines=48
22764 ac_sed_frag=1 # Number of current file.
22765 ac_beg=1 # First line for current file.
22766 ac_end=$ac_max_sed_lines # Line after last line for current file.
22769 while $ac_more_lines; do
22770 if test $ac_beg -gt 1; then
22771 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22773 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22775 if test ! -s $tmp/subs.frag; then
22776 ac_more_lines=false
22778 # The purpose of the label and of the branching condition is to
22779 # speed up the sed processing (if there are no `@' at all, there
22780 # is no need to browse any of the substitutions).
22781 # These are the two extra sed commands mentioned above.
22783 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22784 if test -z "$ac_sed_cmds"; then
22785 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22787 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22789 ac_sed_frag=`expr $ac_sed_frag + 1`
22791 ac_end=`expr $ac_end + $ac_max_sed_lines`
22794 if test -z "$ac_sed_cmds"; then
22797 fi # test -n "$CONFIG_FILES"
22800 cat >>$CONFIG_STATUS <<\_ACEOF
22801 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22802 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22804 - | *:- | *:-:* ) # input from stdin
22806 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22807 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22808 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22809 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22810 * ) ac_file_in=$ac_file.in ;;
22813 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22814 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22815 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22816 X"$ac_file" : 'X\(//\)[^/]' \| \
22817 X"$ac_file" : 'X\(//\)$' \| \
22818 X"$ac_file" : 'X\(/\)' \| \
22819 . : '\(.\)' 2>/dev/null ||
22821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22822 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22823 /^X\(\/\/\)$/{ s//\1/; q; }
22824 /^X\(\/\).*/{ s//\1/; q; }
22826 { if $as_mkdir_p; then
22831 while test ! -d "$as_dir"; do
22832 as_dirs="$as_dir $as_dirs"
22833 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22834 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22835 X"$as_dir" : 'X\(//\)[^/]' \| \
22836 X"$as_dir" : 'X\(//\)$' \| \
22837 X"$as_dir" : 'X\(/\)' \| \
22838 . : '\(.\)' 2>/dev/null ||
22840 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22841 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22842 /^X\(\/\/\)$/{ s//\1/; q; }
22843 /^X\(\/\).*/{ s//\1/; q; }
22846 test ! -n "$as_dirs" || mkdir $as_dirs
22847 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22848 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22849 { (exit 1); exit 1; }; }; }
22853 if test "$ac_dir" != .; then
22854 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22855 # A "../" for each directory in $ac_dir_suffix.
22856 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22858 ac_dir_suffix= ac_top_builddir=
22862 .) # No --srcdir option. We are building in place.
22864 if test -z "$ac_top_builddir"; then
22867 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22869 [\\/]* | ?:[\\/]* ) # Absolute path.
22870 ac_srcdir=$srcdir$ac_dir_suffix;
22871 ac_top_srcdir=$srcdir ;;
22872 *) # Relative path.
22873 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22874 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22876 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
22878 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
22879 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
22880 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
22881 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
22885 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22886 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22889 if test x"$ac_file" != x-; then
22890 { echo "$as_me:$LINENO: creating $ac_file" >&5
22891 echo "$as_me: creating $ac_file" >&6;}
22894 # Let's still pretend it is `configure' which instantiates (i.e., don't
22895 # use $as_me), people would be surprised to read:
22896 # /* config.h. Generated by config.status. */
22897 if test x"$ac_file" = x-; then
22900 configure_input="$ac_file. "
22902 configure_input=$configure_input"Generated from `echo $ac_file_in |
22903 sed 's,.*/,,'` by configure."
22905 # First look for the input files in the build tree, otherwise in the
22907 ac_file_inputs=`IFS=:
22908 for f in $ac_file_in; do
22910 -) echo $tmp/stdin ;;
22912 # Absolute (can't be DOS-style, as IFS=:)
22913 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22914 echo "$as_me: error: cannot find input file: $f" >&2;}
22915 { (exit 1); exit 1; }; }
22918 if test -f "$f"; then
22921 elif test -f "$srcdir/$f"; then
22926 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22927 echo "$as_me: error: cannot find input file: $f" >&2;}
22928 { (exit 1); exit 1; }; }
22931 done` || { (exit 1); exit 1; }
22933 cat >>$CONFIG_STATUS <<_ACEOF
22937 cat >>$CONFIG_STATUS <<\_ACEOF
22939 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22940 s,@configure_input@,$configure_input,;t t
22941 s,@srcdir@,$ac_srcdir,;t t
22942 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22943 s,@top_srcdir@,$ac_top_srcdir,;t t
22944 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22945 s,@builddir@,$ac_builddir,;t t
22946 s,@abs_builddir@,$ac_abs_builddir,;t t
22947 s,@top_builddir@,$ac_top_builddir,;t t
22948 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22949 s,@INSTALL@,$ac_INSTALL,;t t
22950 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22952 if test x"$ac_file" != x-; then
22953 mv $tmp/out $ac_file
22961 cat >>$CONFIG_STATUS <<\_ACEOF
22964 # CONFIG_HEADER section.
22967 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22968 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22970 # ac_d sets the value in "#define NAME VALUE" lines.
22971 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22972 ac_dB='[ ].*$,\1#\2'
22975 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22976 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22977 ac_uB='$,\1#\2define\3'
22981 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22982 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22984 - | *:- | *:-:* ) # input from stdin
22986 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22987 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22988 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22989 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22990 * ) ac_file_in=$ac_file.in ;;
22993 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22994 echo "$as_me: creating $ac_file" >&6;}
22996 # First look for the input files in the build tree, otherwise in the
22998 ac_file_inputs=`IFS=:
22999 for f in $ac_file_in; do
23001 -) echo $tmp/stdin ;;
23003 # Absolute (can't be DOS-style, as IFS=:)
23004 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23005 echo "$as_me: error: cannot find input file: $f" >&2;}
23006 { (exit 1); exit 1; }; }
23009 if test -f "$f"; then
23012 elif test -f "$srcdir/$f"; then
23017 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23018 echo "$as_me: error: cannot find input file: $f" >&2;}
23019 { (exit 1); exit 1; }; }
23022 done` || { (exit 1); exit 1; }
23023 # Remove the trailing spaces.
23024 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23028 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23029 # `conftest.undefs', that substitutes the proper values into
23030 # config.h.in to produce config.h. The first handles `#define'
23031 # templates, and the second `#undef' templates.
23032 # And first: Protect against being on the right side of a sed subst in
23033 # config.status. Protect against being in an unquoted here document
23034 # in config.status.
23035 rm -f conftest.defines conftest.undefs
23036 # Using a here document instead of a string reduces the quoting nightmare.
23037 # Putting comments in sed scripts is not portable.
23039 # `end' is used to avoid that the second main sed command (meant for
23040 # 0-ary CPP macros) applies to n-ary macro definitions.
23041 # See the Autoconf documentation for `clear'.
23042 cat >confdef2sed.sed <<\_ACEOF
23047 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23049 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23052 # If some macros were called several times there might be several times
23053 # the same #defines, which is useless. Nevertheless, we may not want to
23054 # sort them, since we want the *last* AC-DEFINE to be honored.
23055 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23056 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23057 rm -f confdef2sed.sed
23059 # This sed command replaces #undef with comments. This is necessary, for
23060 # example, in the case of _POSIX_SOURCE, which is predefined and required
23061 # on some systems where configure will not decide to define it.
23062 cat >>conftest.undefs <<\_ACEOF
23063 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23066 # Break up conftest.defines because some shells have a limit on the size
23067 # of here documents, and old seds have small limits too (100 cmds).
23068 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23069 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23070 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23071 echo ' :' >>$CONFIG_STATUS
23072 rm -f conftest.tail
23073 while grep . conftest.defines >/dev/null
23075 # Write a limited-size here document to $tmp/defines.sed.
23076 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23077 # Speed up: don't consider the non `#define' lines.
23078 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23079 # Work around the forget-to-reset-the-flag bug.
23080 echo 't clr' >>$CONFIG_STATUS
23081 echo ': clr' >>$CONFIG_STATUS
23082 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23084 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23086 mv $tmp/out $tmp/in
23088 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23089 rm -f conftest.defines
23090 mv conftest.tail conftest.defines
23092 rm -f conftest.defines
23093 echo ' fi # grep' >>$CONFIG_STATUS
23094 echo >>$CONFIG_STATUS
23096 # Break up conftest.undefs because some shells have a limit on the size
23097 # of here documents, and old seds have small limits too (100 cmds).
23098 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23099 rm -f conftest.tail
23100 while grep . conftest.undefs >/dev/null
23102 # Write a limited-size here document to $tmp/undefs.sed.
23103 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23104 # Speed up: don't consider the non `#undef'
23105 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23106 # Work around the forget-to-reset-the-flag bug.
23107 echo 't clr' >>$CONFIG_STATUS
23108 echo ': clr' >>$CONFIG_STATUS
23109 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23111 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23113 mv $tmp/out $tmp/in
23115 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23116 rm -f conftest.undefs
23117 mv conftest.tail conftest.undefs
23119 rm -f conftest.undefs
23121 cat >>$CONFIG_STATUS <<\_ACEOF
23122 # Let's still pretend it is `configure' which instantiates (i.e., don't
23123 # use $as_me), people would be surprised to read:
23124 # /* config.h. Generated by config.status. */
23125 if test x"$ac_file" = x-; then
23126 echo "/* Generated by configure. */" >$tmp/config.h
23128 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23130 cat $tmp/in >>$tmp/config.h
23132 if test x"$ac_file" != x-; then
23133 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23134 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23135 echo "$as_me: $ac_file is unchanged" >&6;}
23137 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23138 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23139 X"$ac_file" : 'X\(//\)[^/]' \| \
23140 X"$ac_file" : 'X\(//\)$' \| \
23141 X"$ac_file" : 'X\(/\)' \| \
23142 . : '\(.\)' 2>/dev/null ||
23144 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23145 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23146 /^X\(\/\/\)$/{ s//\1/; q; }
23147 /^X\(\/\).*/{ s//\1/; q; }
23149 { if $as_mkdir_p; then
23154 while test ! -d "$as_dir"; do
23155 as_dirs="$as_dir $as_dirs"
23156 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23157 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23158 X"$as_dir" : 'X\(//\)[^/]' \| \
23159 X"$as_dir" : 'X\(//\)$' \| \
23160 X"$as_dir" : 'X\(/\)' \| \
23161 . : '\(.\)' 2>/dev/null ||
23163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23164 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23165 /^X\(\/\/\)$/{ s//\1/; q; }
23166 /^X\(\/\).*/{ s//\1/; q; }
23169 test ! -n "$as_dirs" || mkdir $as_dirs
23170 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23171 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23172 { (exit 1); exit 1; }; }; }
23175 mv $tmp/config.h $ac_file
23179 rm -f $tmp/config.h
23184 cat >>$CONFIG_STATUS <<\_ACEOF
23186 { (exit 0); exit 0; }
23188 chmod +x $CONFIG_STATUS
23189 ac_clean_files=$ac_clean_files_save
23192 # configure is writing to config.log, and then calls config.status.
23193 # config.status does its own redirection, appending to config.log.
23194 # Unfortunately, on DOS this fails, as config.log is still kept open
23195 # by configure, so config.status won't be able to write to it; its
23196 # output is simply discarded. So we exec the FD to /dev/null,
23197 # effectively closing config.log, so it can be properly (re)opened and
23198 # appended to by config.status. When coming back to configure, we
23199 # need to make the FD available again.
23200 if test "$no_create" != yes; then
23202 ac_config_status_args=
23203 test "$silent" = yes &&
23204 ac_config_status_args="$ac_config_status_args --quiet"
23206 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23208 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23209 # would make configure fail if this is the last instruction.
23210 $ac_cs_success || { (exit 1); exit 1; }