2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for LLVM 1.4.
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.
424 PACKAGE_TARNAME='-llvm-'
425 PACKAGE_VERSION='1.4'
426 PACKAGE_STRING='LLVM 1.4'
427 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
429 ac_subdirs_all="$ac_subdirs_all projects/sample"
430 ac_subdirs_all="$ac_subdirs_all projects/Stacker"
431 ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
432 ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
433 ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
434 ac_subdirs_all="$ac_subdirs_all projects/llvm-java"
435 ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
436 ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
437 ac_subdirs_all="$ac_subdirs_all ${i}"
438 # Factoring default headers for most tests.
439 ac_includes_default="\
442 # include <sys/types.h>
445 # include <sys/stat.h>
456 # if !STDC_HEADERS && HAVE_MEMORY_H
462 # include <strings.h>
465 # include <inttypes.h>
475 ac_unique_file=""Makefile.config.in""
476 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 subdirs 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 FLEX YACC BISON EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL DOT ETAGS ETAGSFLAGS PYTHON QMTEST HAVE_PTHREAD_MUTEX_LOCK INCLUDE_SYS_TYPES_H INCLUDE_INTTYPES_H INCLUDE_STDINT_H ENDIAN HAVE_STD_EXT_HASH_MAP HAVE_GNU_EXT_HASH_MAP HAVE_GLOBAL_HASH_MAP HAVE_STD_EXT_HASH_SET HAVE_GNU_EXT_HASH_SET HAVE_GLOBAL_HASH_SET HAVE_STD_ITERATOR HAVE_BI_ITERATOR HAVE_FWD_ITERATOR ALLOCA MMAP_FILE ENABLE_OPTIMIZED JIT LLVMCC1 LLVMCC1PLUS SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
479 # Initialize some variables set by options.
481 ac_init_version=false
482 # The variables have the same names as the options, with
483 # dashes changed to underlines.
491 program_transform_name=s,x,x,
499 # Installation directory options.
500 # These are left unexpanded so users can "make install exec_prefix=/foo"
501 # and all the variables that are supposed to be based on exec_prefix
502 # by default will actually change.
503 # Use braces instead of parens because sh, perl, etc. also accept them.
504 bindir='${exec_prefix}/bin'
505 sbindir='${exec_prefix}/sbin'
506 libexecdir='${exec_prefix}/libexec'
507 datadir='${prefix}/share'
508 sysconfdir='${prefix}/etc'
509 sharedstatedir='${prefix}/com'
510 localstatedir='${prefix}/var'
511 libdir='${exec_prefix}/lib'
512 includedir='${prefix}/include'
513 oldincludedir='/usr/include'
514 infodir='${prefix}/info'
515 mandir='${prefix}/man'
520 # If the previous option needs an argument, assign it.
521 if test -n "$ac_prev"; then
522 eval "$ac_prev=\$ac_option"
527 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
529 # Accept the important Cygnus configure options, so we can diagnose typos.
533 -bindir | --bindir | --bindi | --bind | --bin | --bi)
535 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
538 -build | --build | --buil | --bui | --bu)
539 ac_prev=build_alias ;;
540 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
541 build_alias=$ac_optarg ;;
543 -cache-file | --cache-file | --cache-fil | --cache-fi \
544 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
545 ac_prev=cache_file ;;
546 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
547 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
548 cache_file=$ac_optarg ;;
551 cache_file=config.cache ;;
553 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
555 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
557 datadir=$ac_optarg ;;
559 -disable-* | --disable-*)
560 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
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'`
566 eval "enable_$ac_feature=no" ;;
568 -enable-* | --enable-*)
569 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
570 # Reject names that are not valid shell variable names.
571 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
572 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
573 { (exit 1); exit 1; }; }
574 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
576 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
579 eval "enable_$ac_feature='$ac_optarg'" ;;
581 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
582 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
583 | --exec | --exe | --ex)
584 ac_prev=exec_prefix ;;
585 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
586 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
587 | --exec=* | --exe=* | --ex=*)
588 exec_prefix=$ac_optarg ;;
590 -gas | --gas | --ga | --g)
591 # Obsolete; use --with-gas.
594 -help | --help | --hel | --he | -h)
596 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
597 ac_init_help=recursive ;;
598 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
599 ac_init_help=short ;;
601 -host | --host | --hos | --ho)
602 ac_prev=host_alias ;;
603 -host=* | --host=* | --hos=* | --ho=*)
604 host_alias=$ac_optarg ;;
606 -includedir | --includedir | --includedi | --included | --include \
607 | --includ | --inclu | --incl | --inc)
608 ac_prev=includedir ;;
609 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
610 | --includ=* | --inclu=* | --incl=* | --inc=*)
611 includedir=$ac_optarg ;;
613 -infodir | --infodir | --infodi | --infod | --info | --inf)
615 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
616 infodir=$ac_optarg ;;
618 -libdir | --libdir | --libdi | --libd)
620 -libdir=* | --libdir=* | --libdi=* | --libd=*)
623 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
624 | --libexe | --libex | --libe)
625 ac_prev=libexecdir ;;
626 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
627 | --libexe=* | --libex=* | --libe=*)
628 libexecdir=$ac_optarg ;;
630 -localstatedir | --localstatedir | --localstatedi | --localstated \
631 | --localstate | --localstat | --localsta | --localst \
632 | --locals | --local | --loca | --loc | --lo)
633 ac_prev=localstatedir ;;
634 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
635 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
636 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
637 localstatedir=$ac_optarg ;;
639 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
641 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
645 # Obsolete; use --without-fp.
648 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
649 | --no-cr | --no-c | -n)
652 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
653 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
656 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
657 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
658 | --oldin | --oldi | --old | --ol | --o)
659 ac_prev=oldincludedir ;;
660 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
661 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
662 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
663 oldincludedir=$ac_optarg ;;
665 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
667 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
670 -program-prefix | --program-prefix | --program-prefi | --program-pref \
671 | --program-pre | --program-pr | --program-p)
672 ac_prev=program_prefix ;;
673 -program-prefix=* | --program-prefix=* | --program-prefi=* \
674 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
675 program_prefix=$ac_optarg ;;
677 -program-suffix | --program-suffix | --program-suffi | --program-suff \
678 | --program-suf | --program-su | --program-s)
679 ac_prev=program_suffix ;;
680 -program-suffix=* | --program-suffix=* | --program-suffi=* \
681 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
682 program_suffix=$ac_optarg ;;
684 -program-transform-name | --program-transform-name \
685 | --program-transform-nam | --program-transform-na \
686 | --program-transform-n | --program-transform- \
687 | --program-transform | --program-transfor \
688 | --program-transfo | --program-transf \
689 | --program-trans | --program-tran \
690 | --progr-tra | --program-tr | --program-t)
691 ac_prev=program_transform_name ;;
692 -program-transform-name=* | --program-transform-name=* \
693 | --program-transform-nam=* | --program-transform-na=* \
694 | --program-transform-n=* | --program-transform-=* \
695 | --program-transform=* | --program-transfor=* \
696 | --program-transfo=* | --program-transf=* \
697 | --program-trans=* | --program-tran=* \
698 | --progr-tra=* | --program-tr=* | --program-t=*)
699 program_transform_name=$ac_optarg ;;
701 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
702 | -silent | --silent | --silen | --sile | --sil)
705 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
707 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
709 sbindir=$ac_optarg ;;
711 -sharedstatedir | --sharedstatedir | --sharedstatedi \
712 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
713 | --sharedst | --shareds | --shared | --share | --shar \
715 ac_prev=sharedstatedir ;;
716 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
717 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
718 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
720 sharedstatedir=$ac_optarg ;;
722 -site | --site | --sit)
724 -site=* | --site=* | --sit=*)
727 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
729 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
732 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
733 | --syscon | --sysco | --sysc | --sys | --sy)
734 ac_prev=sysconfdir ;;
735 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
736 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
737 sysconfdir=$ac_optarg ;;
739 -target | --target | --targe | --targ | --tar | --ta | --t)
740 ac_prev=target_alias ;;
741 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
742 target_alias=$ac_optarg ;;
744 -v | -verbose | --verbose | --verbos | --verbo | --verb)
747 -version | --version | --versio | --versi | --vers | -V)
751 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
752 # Reject names that are not valid shell variable names.
753 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
754 { echo "$as_me: error: invalid package name: $ac_package" >&2
755 { (exit 1); exit 1; }; }
756 ac_package=`echo $ac_package| sed 's/-/_/g'`
758 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
761 eval "with_$ac_package='$ac_optarg'" ;;
763 -without-* | --without-*)
764 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
765 # Reject names that are not valid shell variable names.
766 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
767 { echo "$as_me: error: invalid package name: $ac_package" >&2
768 { (exit 1); exit 1; }; }
769 ac_package=`echo $ac_package | sed 's/-/_/g'`
770 eval "with_$ac_package=no" ;;
773 # Obsolete; use --with-x.
776 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
777 | --x-incl | --x-inc | --x-in | --x-i)
778 ac_prev=x_includes ;;
779 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
780 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
781 x_includes=$ac_optarg ;;
783 -x-libraries | --x-libraries | --x-librarie | --x-librari \
784 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
785 ac_prev=x_libraries ;;
786 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
787 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
788 x_libraries=$ac_optarg ;;
790 -*) { echo "$as_me: error: unrecognized option: $ac_option
791 Try \`$0 --help' for more information." >&2
792 { (exit 1); exit 1; }; }
796 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
797 # Reject names that are not valid shell variable names.
798 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
799 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
800 { (exit 1); exit 1; }; }
801 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
802 eval "$ac_envvar='$ac_optarg'"
806 # FIXME: should be removed in autoconf 3.0.
807 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
808 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
809 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
810 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
816 if test -n "$ac_prev"; then
817 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
818 { echo "$as_me: error: missing argument to $ac_option" >&2
819 { (exit 1); exit 1; }; }
822 # Be sure to have absolute paths.
823 for ac_var in exec_prefix prefix
825 eval ac_val=$`echo $ac_var`
827 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
828 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
829 { (exit 1); exit 1; }; };;
833 # Be sure to have absolute paths.
834 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
835 localstatedir libdir includedir oldincludedir infodir mandir
837 eval ac_val=$`echo $ac_var`
839 [\\/$]* | ?:[\\/]* ) ;;
840 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
841 { (exit 1); exit 1; }; };;
845 # There might be people who depend on the old broken behavior: `$host'
846 # used to hold the argument of --host etc.
847 # FIXME: To remove some day.
852 # FIXME: To remove some day.
853 if test "x$host_alias" != x; then
854 if test "x$build_alias" = x; then
855 cross_compiling=maybe
856 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
857 If a cross compiler is detected then cross compile mode will be used." >&2
858 elif test "x$build_alias" != "x$host_alias"; then
864 test -n "$host_alias" && ac_tool_prefix=$host_alias-
866 test "$silent" = yes && exec 6>/dev/null
869 # Find the source files, if location was not specified.
870 if test -z "$srcdir"; then
871 ac_srcdir_defaulted=yes
872 # Try the directory containing this script, then its parent.
873 ac_confdir=`(dirname "$0") 2>/dev/null ||
874 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
875 X"$0" : 'X\(//\)[^/]' \| \
876 X"$0" : 'X\(//\)$' \| \
877 X"$0" : 'X\(/\)' \| \
878 . : '\(.\)' 2>/dev/null ||
880 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
881 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
882 /^X\(\/\/\)$/{ s//\1/; q; }
883 /^X\(\/\).*/{ s//\1/; q; }
886 if test ! -r $srcdir/$ac_unique_file; then
890 ac_srcdir_defaulted=no
892 if test ! -r $srcdir/$ac_unique_file; then
893 if test "$ac_srcdir_defaulted" = yes; then
894 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
895 { (exit 1); exit 1; }; }
897 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
898 { (exit 1); exit 1; }; }
901 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
902 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
903 { (exit 1); exit 1; }; }
904 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
905 ac_env_build_alias_set=${build_alias+set}
906 ac_env_build_alias_value=$build_alias
907 ac_cv_env_build_alias_set=${build_alias+set}
908 ac_cv_env_build_alias_value=$build_alias
909 ac_env_host_alias_set=${host_alias+set}
910 ac_env_host_alias_value=$host_alias
911 ac_cv_env_host_alias_set=${host_alias+set}
912 ac_cv_env_host_alias_value=$host_alias
913 ac_env_target_alias_set=${target_alias+set}
914 ac_env_target_alias_value=$target_alias
915 ac_cv_env_target_alias_set=${target_alias+set}
916 ac_cv_env_target_alias_value=$target_alias
917 ac_env_CXX_set=${CXX+set}
918 ac_env_CXX_value=$CXX
919 ac_cv_env_CXX_set=${CXX+set}
920 ac_cv_env_CXX_value=$CXX
921 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
922 ac_env_CXXFLAGS_value=$CXXFLAGS
923 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
924 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
925 ac_env_LDFLAGS_set=${LDFLAGS+set}
926 ac_env_LDFLAGS_value=$LDFLAGS
927 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
928 ac_cv_env_LDFLAGS_value=$LDFLAGS
929 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
930 ac_env_CPPFLAGS_value=$CPPFLAGS
931 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
932 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
933 ac_env_CC_set=${CC+set}
935 ac_cv_env_CC_set=${CC+set}
936 ac_cv_env_CC_value=$CC
937 ac_env_CFLAGS_set=${CFLAGS+set}
938 ac_env_CFLAGS_value=$CFLAGS
939 ac_cv_env_CFLAGS_set=${CFLAGS+set}
940 ac_cv_env_CFLAGS_value=$CFLAGS
941 ac_env_CPP_set=${CPP+set}
942 ac_env_CPP_value=$CPP
943 ac_cv_env_CPP_set=${CPP+set}
944 ac_cv_env_CPP_value=$CPP
945 ac_env_CXXCPP_set=${CXXCPP+set}
946 ac_env_CXXCPP_value=$CXXCPP
947 ac_cv_env_CXXCPP_set=${CXXCPP+set}
948 ac_cv_env_CXXCPP_value=$CXXCPP
949 ac_env_F77_set=${F77+set}
950 ac_env_F77_value=$F77
951 ac_cv_env_F77_set=${F77+set}
952 ac_cv_env_F77_value=$F77
953 ac_env_FFLAGS_set=${FFLAGS+set}
954 ac_env_FFLAGS_value=$FFLAGS
955 ac_cv_env_FFLAGS_set=${FFLAGS+set}
956 ac_cv_env_FFLAGS_value=$FFLAGS
959 # Report the --help message.
961 if test "$ac_init_help" = "long"; then
962 # Omit some internal or obsolete options to make the list less imposing.
963 # This message is too long to be a string in the A/UX 3.1 sh.
965 \`configure' configures LLVM 1.4 to adapt to many kinds of systems.
967 Usage: $0 [OPTION]... [VAR=VALUE]...
969 To assign environment variables (e.g., CC, CFLAGS...), specify them as
970 VAR=VALUE. See below for descriptions of some of the useful variables.
972 Defaults for the options are specified in brackets.
975 -h, --help display this help and exit
976 --help=short display options specific to this package
977 --help=recursive display the short help of all the included packages
978 -V, --version display version information and exit
979 -q, --quiet, --silent do not print \`checking...' messages
980 --cache-file=FILE cache test results in FILE [disabled]
981 -C, --config-cache alias for \`--cache-file=config.cache'
982 -n, --no-create do not create output files
983 --srcdir=DIR find the sources in DIR [configure dir or \`..']
988 Installation directories:
989 --prefix=PREFIX install architecture-independent files in PREFIX
991 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
994 By default, \`make install' will install all the files in
995 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
996 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
997 for instance \`--prefix=\$HOME'.
999 For better control, use the options below.
1001 Fine tuning of the installation directories:
1002 --bindir=DIR user executables [EPREFIX/bin]
1003 --sbindir=DIR system admin executables [EPREFIX/sbin]
1004 --libexecdir=DIR program executables [EPREFIX/libexec]
1005 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1006 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1007 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1008 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1009 --libdir=DIR object code libraries [EPREFIX/lib]
1010 --includedir=DIR C header files [PREFIX/include]
1011 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1012 --infodir=DIR info documentation [PREFIX/info]
1013 --mandir=DIR man documentation [PREFIX/man]
1019 --build=BUILD configure for building on BUILD [guessed]
1020 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1021 --target=TARGET configure for building compilers for TARGET [HOST]
1025 if test -n "$ac_init_help"; then
1026 case $ac_init_help in
1027 short | recursive ) echo "Configuration of LLVM 1.4:";;
1032 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1033 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1034 --enable-shared[=PKGS]
1035 build shared libraries [default=yes]
1036 --enable-static[=PKGS]
1037 build static libraries [default=yes]
1038 --enable-fast-install[=PKGS]
1039 optimize for fast installation [default=yes]
1040 --disable-libtool-lock avoid locking (might break parallel builds)
1041 --enable-optimized Compile with optimizations enabled (default is NO)
1042 --enable-jit Enable Just In Time Compiling (default is YES)
1045 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1046 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1047 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1048 --with-pic try to use only PIC/non-PIC objects [default=use
1051 include additional configurations [automatic]
1052 --with-llvmgccdir Location of LLVM GCC front-end
1054 Some influential environment variables:
1055 CXX C++ compiler command
1056 CXXFLAGS C++ compiler flags
1057 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1058 nonstandard directory <lib dir>
1059 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1060 headers in a nonstandard directory <include dir>
1061 CC C compiler command
1062 CFLAGS C compiler flags
1064 CXXCPP C++ preprocessor
1065 F77 Fortran 77 compiler command
1066 FFLAGS Fortran 77 compiler flags
1068 Use these variables to override the choices made by `configure' or to help
1069 it to find libraries and programs with nonstandard names/locations.
1071 Report bugs to <llvmbugs@cs.uiuc.edu>.
1075 if test "$ac_init_help" = "recursive"; then
1076 # If there are subdirs, report their specific --help.
1078 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1079 test -d $ac_dir || continue
1082 if test "$ac_dir" != .; then
1083 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1084 # A "../" for each directory in $ac_dir_suffix.
1085 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1087 ac_dir_suffix= ac_top_builddir=
1091 .) # No --srcdir option. We are building in place.
1093 if test -z "$ac_top_builddir"; then
1096 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1098 [\\/]* | ?:[\\/]* ) # Absolute path.
1099 ac_srcdir=$srcdir$ac_dir_suffix;
1100 ac_top_srcdir=$srcdir ;;
1102 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1103 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1105 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1107 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1108 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1109 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1110 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1113 # Check for guested configure; otherwise get Cygnus style configure.
1114 if test -f $ac_srcdir/configure.gnu; then
1116 $SHELL $ac_srcdir/configure.gnu --help=recursive
1117 elif test -f $ac_srcdir/configure; then
1119 $SHELL $ac_srcdir/configure --help=recursive
1120 elif test -f $ac_srcdir/configure.ac ||
1121 test -f $ac_srcdir/configure.in; then
1123 $ac_configure --help
1125 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1131 test -n "$ac_init_help" && exit 0
1132 if $ac_init_version; then
1135 generated by GNU Autoconf 2.57
1137 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1138 Free Software Foundation, Inc.
1139 This configure script is free software; the Free Software Foundation
1140 gives unlimited permission to copy, distribute and modify it.
1146 This file contains any messages produced by compilers while
1147 running configure, to aid debugging if configure makes a mistake.
1149 It was created by LLVM $as_me 1.4, which was
1150 generated by GNU Autoconf 2.57. Invocation command line was
1161 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1163 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1164 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1165 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1167 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1170 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1171 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1172 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1174 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1175 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1176 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1184 test -z "$as_dir" && as_dir=.
1185 echo "PATH: $as_dir"
1200 # Keep a trace of the command line.
1201 # Strip out --no-create and --no-recursion so they do not pile up.
1202 # Strip out --silent because we don't want to record it for future runs.
1203 # Also quote any args containing shell meta-characters.
1204 # Make two passes to allow for proper duplicate-argument suppression.
1209 ac_must_keep_next=false
1215 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217 | -silent | --silent | --silen | --sile | --sil)
1219 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1223 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1225 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226 if test $ac_must_keep_next = true; then
1227 ac_must_keep_next=false # Got value, back to normal.
1230 *=* | --config-cache | -C | -disable-* | --disable-* \
1231 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233 | -with-* | --with-* | -without-* | --without-* | --x)
1234 case "$ac_configure_args0 " in
1235 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1238 -* ) ac_must_keep_next=true ;;
1241 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242 # Get rid of the leading space.
1248 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1251 # When interrupted or exit'd, cleanup temporary files, and complete
1252 # config.log. We remove comments because anyway the quotes in there
1253 # would cause problems or look ugly.
1254 # WARNING: Be sure not to use single quotes in there, as some shells,
1255 # such as our DU 5.0 friend, will then `close' the trap.
1256 trap 'exit_status=$?
1257 # Save into config.log some information that might help in debugging.
1262 ## ---------------- ##
1263 ## Cache variables. ##
1264 ## ---------------- ##
1267 # The following way of writing the cache mishandles newlines in values,
1270 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1273 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1278 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1285 ## ----------------- ##
1286 ## Output variables. ##
1287 ## ----------------- ##
1290 for ac_var in $ac_subst_vars
1292 eval ac_val=$`echo $ac_var`
1293 echo "$ac_var='"'"'$ac_val'"'"'"
1297 if test -n "$ac_subst_files"; then
1304 for ac_var in $ac_subst_files
1306 eval ac_val=$`echo $ac_var`
1307 echo "$ac_var='"'"'$ac_val'"'"'"
1312 if test -s confdefs.h; then
1319 sed "/^$/d" confdefs.h | sort
1322 test "$ac_signal" != 0 &&
1323 echo "$as_me: caught signal $ac_signal"
1324 echo "$as_me: exit $exit_status"
1326 rm -f core core.* *.core &&
1327 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1330 for ac_signal in 1 2 13 15; do
1331 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1335 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1336 rm -rf conftest* confdefs.h
1337 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1340 # Predefined preprocessor variables.
1342 cat >>confdefs.h <<_ACEOF
1343 #define PACKAGE_NAME "$PACKAGE_NAME"
1347 cat >>confdefs.h <<_ACEOF
1348 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1352 cat >>confdefs.h <<_ACEOF
1353 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1357 cat >>confdefs.h <<_ACEOF
1358 #define PACKAGE_STRING "$PACKAGE_STRING"
1362 cat >>confdefs.h <<_ACEOF
1363 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1367 # Let the site file select an alternate cache file if it wants to.
1368 # Prefer explicitly selected file to automatically selected ones.
1369 if test -z "$CONFIG_SITE"; then
1370 if test "x$prefix" != xNONE; then
1371 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1373 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1376 for ac_site_file in $CONFIG_SITE; do
1377 if test -r "$ac_site_file"; then
1378 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379 echo "$as_me: loading site script $ac_site_file" >&6;}
1380 sed 's/^/| /' "$ac_site_file" >&5
1385 if test -r "$cache_file"; then
1386 # Some versions of bash will fail to source /dev/null (special
1387 # files actually), so we avoid doing that.
1388 if test -f "$cache_file"; then
1389 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390 echo "$as_me: loading cache $cache_file" >&6;}
1392 [\\/]* | ?:[\\/]* ) . $cache_file;;
1393 *) . ./$cache_file;;
1397 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398 echo "$as_me: creating cache $cache_file" >&6;}
1402 # Check that the precious variables saved in the cache have kept the same
1404 ac_cache_corrupted=false
1405 for ac_var in `(set) 2>&1 |
1406 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1407 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408 eval ac_new_set=\$ac_env_${ac_var}_set
1409 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410 eval ac_new_val="\$ac_env_${ac_var}_value"
1411 case $ac_old_set,$ac_new_set in
1413 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415 ac_cache_corrupted=: ;;
1417 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419 ac_cache_corrupted=: ;;
1422 if test "x$ac_old_val" != "x$ac_new_val"; then
1423 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1424 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1425 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1426 echo "$as_me: former value: $ac_old_val" >&2;}
1427 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1428 echo "$as_me: current value: $ac_new_val" >&2;}
1429 ac_cache_corrupted=:
1432 # Pass precious variables to config.status.
1433 if test "$ac_new_set" = set; then
1435 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1436 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1437 *) ac_arg=$ac_var=$ac_new_val ;;
1439 case " $ac_configure_args " in
1440 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1441 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1445 if $ac_cache_corrupted; then
1446 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1447 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1448 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1449 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1450 { (exit 1); exit 1; }; }
1454 ac_cpp='$CPP $CPPFLAGS'
1455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1487 for ac_dir in autoconf $srcdir/autoconf; do
1488 if test -f $ac_dir/install-sh; then
1490 ac_install_sh="$ac_aux_dir/install-sh -c"
1492 elif test -f $ac_dir/install.sh; then
1494 ac_install_sh="$ac_aux_dir/install.sh -c"
1496 elif test -f $ac_dir/shtool; then
1498 ac_install_sh="$ac_aux_dir/shtool install -c"
1502 if test -z "$ac_aux_dir"; then
1503 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1504 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1505 { (exit 1); exit 1; }; }
1507 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1508 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1509 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1512 if test ${srcdir} != "."
1514 if test -f ${srcdir}/include/llvm/Config/config.h
1516 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1517 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1518 { (exit 1); exit 1; }; }
1522 for i in `ls ${srcdir}/projects`
1524 if test -d ${srcdir}/projects/${i} ; then
1529 subdirs="$subdirs projects/sample"
1533 subdirs="$subdirs projects/Stacker"
1537 subdirs="$subdirs projects/llvm-test"
1541 subdirs="$subdirs projects/llvm-reopt"
1545 subdirs="$subdirs projects/llvm-gcc"
1549 subdirs="$subdirs projects/llvm-java"
1553 subdirs="$subdirs projects/llvm-tv"
1557 subdirs="$subdirs projects/llvm-fefw"
1561 subdirs="$subdirs ${i}"
1567 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
1570 ac_config_files="$ac_config_files Makefile.config include/llvm/Support/DataTypes.h include/llvm/Support/ThreadSupport.h include/llvm/ADT/hash_map include/llvm/ADT/hash_set include/llvm/ADT/iterator"
1573 ac_config_commands="$ac_config_commands Makefile"
1576 ac_config_commands="$ac_config_commands Makefile.common"
1579 ac_config_commands="$ac_config_commands examples/Makefile"
1582 ac_config_commands="$ac_config_commands lib/Makefile"
1585 ac_config_commands="$ac_config_commands runtime/Makefile"
1588 ac_config_commands="$ac_config_commands test/Makefile"
1591 ac_config_commands="$ac_config_commands test/Makefile.tests"
1594 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1597 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1600 ac_config_commands="$ac_config_commands tools/Makefile"
1603 ac_config_commands="$ac_config_commands utils/Makefile"
1606 ac_config_commands="$ac_config_commands projects/Makefile"
1610 # Find a good install program. We prefer a C program (faster),
1611 # so one script is as good as another. But avoid the broken or
1612 # incompatible versions:
1613 # SysV /etc/install, /usr/sbin/install
1614 # SunOS /usr/etc/install
1615 # IRIX /sbin/install
1617 # AmigaOS /C/install, which installs bootblocks on floppy discs
1618 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1619 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1620 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1621 # ./install, which can be erroneously created by make from ./install.sh.
1622 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1623 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1624 if test -z "$INSTALL"; then
1625 if test "${ac_cv_path_install+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1632 test -z "$as_dir" && as_dir=.
1633 # Account for people who put trailing slashes in PATH elements.
1635 ./ | .// | /cC/* | \
1636 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1639 # OSF1 and SCO ODT 3.0 have their own names for install.
1640 # Don't use installbsd from OSF since it installs stuff as root
1642 for ac_prog in ginstall scoinst install; do
1643 for ac_exec_ext in '' $ac_executable_extensions; do
1644 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1645 if test $ac_prog = install &&
1646 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1647 # AIX install. It has an incompatible calling convention.
1649 elif test $ac_prog = install &&
1650 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1651 # program-specific install script used by HP pwplus--don't use.
1654 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1666 if test "${ac_cv_path_install+set}" = set; then
1667 INSTALL=$ac_cv_path_install
1669 # As a last resort, use the slow shell script. We don't cache a
1670 # path for INSTALL within a source directory, because that will
1671 # break other packages using the cache if that directory is
1672 # removed, or if the path is relative.
1673 INSTALL=$ac_install_sh
1676 echo "$as_me:$LINENO: result: $INSTALL" >&5
1677 echo "${ECHO_T}$INSTALL" >&6
1679 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1680 # It thinks the first close brace ends the variable substitution.
1681 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1683 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1685 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1688 # Make sure we can run config.sub.
1689 $ac_config_sub sun4 >/dev/null 2>&1 ||
1690 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1691 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1692 { (exit 1); exit 1; }; }
1694 echo "$as_me:$LINENO: checking build system type" >&5
1695 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1696 if test "${ac_cv_build+set}" = set; then
1697 echo $ECHO_N "(cached) $ECHO_C" >&6
1699 ac_cv_build_alias=$build_alias
1700 test -z "$ac_cv_build_alias" &&
1701 ac_cv_build_alias=`$ac_config_guess`
1702 test -z "$ac_cv_build_alias" &&
1703 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1704 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1705 { (exit 1); exit 1; }; }
1706 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1707 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1708 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1709 { (exit 1); exit 1; }; }
1712 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1713 echo "${ECHO_T}$ac_cv_build" >&6
1715 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1716 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1717 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1720 echo "$as_me:$LINENO: checking host system type" >&5
1721 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1722 if test "${ac_cv_host+set}" = set; then
1723 echo $ECHO_N "(cached) $ECHO_C" >&6
1725 ac_cv_host_alias=$host_alias
1726 test -z "$ac_cv_host_alias" &&
1727 ac_cv_host_alias=$ac_cv_build_alias
1728 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1729 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1730 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1731 { (exit 1); exit 1; }; }
1734 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1735 echo "${ECHO_T}$ac_cv_host" >&6
1737 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1738 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1739 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1742 echo "$as_me:$LINENO: checking target system type" >&5
1743 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1744 if test "${ac_cv_target+set}" = set; then
1745 echo $ECHO_N "(cached) $ECHO_C" >&6
1747 ac_cv_target_alias=$target_alias
1748 test "x$ac_cv_target_alias" = "x" &&
1749 ac_cv_target_alias=$ac_cv_host_alias
1750 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1751 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1752 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1753 { (exit 1); exit 1; }; }
1756 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1757 echo "${ECHO_T}$ac_cv_target" >&6
1758 target=$ac_cv_target
1759 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1760 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1761 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1764 # The aliases save the names the user supplied, while $host etc.
1765 # will get canonicalized.
1766 test -n "$target_alias" &&
1767 test "$program_prefix$program_suffix$program_transform_name" = \
1769 program_prefix=${target_alias}-
1772 echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1773 echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
1783 platform_type="Cygwin"
1788 platform_type="Darwin"
1793 platform_type="FreeBSD"
1798 platform_type="Interix"
1803 platform_type="Linux"
1804 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1806 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1813 platform_type="SunOS"
1814 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1816 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1823 platform_type="Win32"
1828 platform_type="Win32"
1833 platform_type="Unknown"
1837 if test "$platform_type" = "Unknown" ; then
1838 { { echo "$as_me:$LINENO: error: Platform is unknown, configure can't continue" >&5
1839 echo "$as_me: error: Platform is unknown, configure can't continue" >&2;}
1840 { (exit 1); exit 1; }; }
1843 ac_config_links="$ac_config_links lib/System/platform:lib/System/$platform_type"
1846 echo "$as_me:$LINENO: result: $platform_type" >&5
1847 echo "${ECHO_T}$platform_type" >&6
1849 echo "$as_me:$LINENO: checking target architecture" >&5
1850 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1852 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1880 echo "$as_me:$LINENO: result: $ARCH" >&5
1881 echo "${ECHO_T}$ARCH" >&6
1884 ac_cpp='$CXXCPP $CPPFLAGS'
1885 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1886 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1887 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1888 if test -n "$ac_tool_prefix"; then
1889 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1891 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1892 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1893 echo "$as_me:$LINENO: checking for $ac_word" >&5
1894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1895 if test "${ac_cv_prog_CXX+set}" = set; then
1896 echo $ECHO_N "(cached) $ECHO_C" >&6
1898 if test -n "$CXX"; then
1899 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1905 test -z "$as_dir" && as_dir=.
1906 for ac_exec_ext in '' $ac_executable_extensions; do
1907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1908 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1918 if test -n "$CXX"; then
1919 echo "$as_me:$LINENO: result: $CXX" >&5
1920 echo "${ECHO_T}$CXX" >&6
1922 echo "$as_me:$LINENO: result: no" >&5
1923 echo "${ECHO_T}no" >&6
1926 test -n "$CXX" && break
1929 if test -z "$CXX"; then
1931 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1933 # Extract the first word of "$ac_prog", so it can be a program name with args.
1934 set dummy $ac_prog; ac_word=$2
1935 echo "$as_me:$LINENO: checking for $ac_word" >&5
1936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1937 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1938 echo $ECHO_N "(cached) $ECHO_C" >&6
1940 if test -n "$ac_ct_CXX"; then
1941 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1947 test -z "$as_dir" && as_dir=.
1948 for ac_exec_ext in '' $ac_executable_extensions; do
1949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1950 ac_cv_prog_ac_ct_CXX="$ac_prog"
1951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1959 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1960 if test -n "$ac_ct_CXX"; then
1961 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1962 echo "${ECHO_T}$ac_ct_CXX" >&6
1964 echo "$as_me:$LINENO: result: no" >&5
1965 echo "${ECHO_T}no" >&6
1968 test -n "$ac_ct_CXX" && break
1970 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1976 # Provide some information about the compiler.
1977 echo "$as_me:$LINENO:" \
1978 "checking for C++ compiler version" >&5
1979 ac_compiler=`set X $ac_compile; echo $2`
1980 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1981 (eval $ac_compiler --version </dev/null >&5) 2>&5
1983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1984 (exit $ac_status); }
1985 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1986 (eval $ac_compiler -v </dev/null >&5) 2>&5
1988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1989 (exit $ac_status); }
1990 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1991 (eval $ac_compiler -V </dev/null >&5) 2>&5
1993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1994 (exit $ac_status); }
1996 cat >conftest.$ac_ext <<_ACEOF
1997 #line $LINENO "configure"
2000 cat confdefs.h >>conftest.$ac_ext
2001 cat >>conftest.$ac_ext <<_ACEOF
2002 /* end confdefs.h. */
2012 ac_clean_files_save=$ac_clean_files
2013 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2014 # Try to create an executable without -o first, disregard a.out.
2015 # It will help us diagnose broken compilers, and finding out an intuition
2017 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2018 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2019 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2020 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2021 (eval $ac_link_default) 2>&5
2023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024 (exit $ac_status); }; then
2025 # Find the output, starting from the most likely. This scheme is
2026 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2029 # Be careful to initialize this variable, since it used to be cached.
2030 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2032 # b.out is created by i960 compilers.
2033 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2035 test -f "$ac_file" || continue
2037 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2040 # This is the source file.
2043 # We found the default executable, but exeext='' is most
2047 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2048 # FIXME: I believe we export ac_cv_exeext for Libtool,
2049 # but it would be cool to find out if it's true. Does anybody
2050 # maintain Libtool? --akim.
2058 echo "$as_me: failed program was:" >&5
2059 sed 's/^/| /' conftest.$ac_ext >&5
2061 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2062 See \`config.log' for more details." >&5
2063 echo "$as_me: error: C++ compiler cannot create executables
2064 See \`config.log' for more details." >&2;}
2065 { (exit 77); exit 77; }; }
2068 ac_exeext=$ac_cv_exeext
2069 echo "$as_me:$LINENO: result: $ac_file" >&5
2070 echo "${ECHO_T}$ac_file" >&6
2072 # Check the compiler produces executables we can run. If not, either
2073 # the compiler is broken, or we cross compile.
2074 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2075 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2076 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2077 # If not cross compiling, check that we can run a simple program.
2078 if test "$cross_compiling" != yes; then
2079 if { ac_try='./$ac_file'
2080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084 (exit $ac_status); }; }; then
2087 if test "$cross_compiling" = maybe; then
2090 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2091 If you meant to cross compile, use \`--host'.
2092 See \`config.log' for more details." >&5
2093 echo "$as_me: error: cannot run C++ compiled programs.
2094 If you meant to cross compile, use \`--host'.
2095 See \`config.log' for more details." >&2;}
2096 { (exit 1); exit 1; }; }
2100 echo "$as_me:$LINENO: result: yes" >&5
2101 echo "${ECHO_T}yes" >&6
2103 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2104 ac_clean_files=$ac_clean_files_save
2105 # Check the compiler produces executables we can run. If not, either
2106 # the compiler is broken, or we cross compile.
2107 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2108 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2109 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2110 echo "${ECHO_T}$cross_compiling" >&6
2112 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2113 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2115 (eval $ac_link) 2>&5
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }; then
2119 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2120 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2121 # work properly (i.e., refer to `conftest.exe'), while it won't with
2123 for ac_file in conftest.exe conftest conftest.*; do
2124 test -f "$ac_file" || continue
2126 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2127 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2134 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2135 See \`config.log' for more details." >&5
2136 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2137 See \`config.log' for more details." >&2;}
2138 { (exit 1); exit 1; }; }
2141 rm -f conftest$ac_cv_exeext
2142 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2143 echo "${ECHO_T}$ac_cv_exeext" >&6
2145 rm -f conftest.$ac_ext
2146 EXEEXT=$ac_cv_exeext
2148 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2149 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2150 if test "${ac_cv_objext+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2153 cat >conftest.$ac_ext <<_ACEOF
2154 #line $LINENO "configure"
2157 cat confdefs.h >>conftest.$ac_ext
2158 cat >>conftest.$ac_ext <<_ACEOF
2159 /* end confdefs.h. */
2169 rm -f conftest.o conftest.obj
2170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2171 (eval $ac_compile) 2>&5
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }; then
2175 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2177 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2178 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2183 echo "$as_me: failed program was:" >&5
2184 sed 's/^/| /' conftest.$ac_ext >&5
2186 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2187 See \`config.log' for more details." >&5
2188 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2189 See \`config.log' for more details." >&2;}
2190 { (exit 1); exit 1; }; }
2193 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2195 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2196 echo "${ECHO_T}$ac_cv_objext" >&6
2197 OBJEXT=$ac_cv_objext
2199 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2200 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2201 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2202 echo $ECHO_N "(cached) $ECHO_C" >&6
2204 cat >conftest.$ac_ext <<_ACEOF
2205 #line $LINENO "configure"
2208 cat confdefs.h >>conftest.$ac_ext
2209 cat >>conftest.$ac_ext <<_ACEOF
2210 /* end confdefs.h. */
2223 rm -f conftest.$ac_objext
2224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225 (eval $ac_compile) 2>&5
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); } &&
2229 { ac_try='test -s conftest.$ac_objext'
2230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); }; }; then
2237 echo "$as_me: failed program was:" >&5
2238 sed 's/^/| /' conftest.$ac_ext >&5
2242 rm -f conftest.$ac_objext conftest.$ac_ext
2243 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2246 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2247 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2248 GXX=`test $ac_compiler_gnu = yes && echo yes`
2249 ac_test_CXXFLAGS=${CXXFLAGS+set}
2250 ac_save_CXXFLAGS=$CXXFLAGS
2252 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2253 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2254 if test "${ac_cv_prog_cxx_g+set}" = set; then
2255 echo $ECHO_N "(cached) $ECHO_C" >&6
2257 cat >conftest.$ac_ext <<_ACEOF
2258 #line $LINENO "configure"
2261 cat confdefs.h >>conftest.$ac_ext
2262 cat >>conftest.$ac_ext <<_ACEOF
2263 /* end confdefs.h. */
2273 rm -f conftest.$ac_objext
2274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2275 (eval $ac_compile) 2>&5
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); } &&
2279 { ac_try='test -s conftest.$ac_objext'
2280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); }; }; then
2285 ac_cv_prog_cxx_g=yes
2287 echo "$as_me: failed program was:" >&5
2288 sed 's/^/| /' conftest.$ac_ext >&5
2292 rm -f conftest.$ac_objext conftest.$ac_ext
2294 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2295 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2296 if test "$ac_test_CXXFLAGS" = set; then
2297 CXXFLAGS=$ac_save_CXXFLAGS
2298 elif test $ac_cv_prog_cxx_g = yes; then
2299 if test "$GXX" = yes; then
2305 if test "$GXX" = yes; then
2311 for ac_declaration in \
2313 '#include <stdlib.h>' \
2314 'extern "C" void std::exit (int) throw (); using std::exit;' \
2315 'extern "C" void std::exit (int); using std::exit;' \
2316 'extern "C" void exit (int) throw ();' \
2317 'extern "C" void exit (int);' \
2320 cat >conftest.$ac_ext <<_ACEOF
2321 #line $LINENO "configure"
2324 cat confdefs.h >>conftest.$ac_ext
2325 cat >>conftest.$ac_ext <<_ACEOF
2326 /* end confdefs.h. */
2337 rm -f conftest.$ac_objext
2338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2339 (eval $ac_compile) 2>&5
2341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342 (exit $ac_status); } &&
2343 { ac_try='test -s conftest.$ac_objext'
2344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 (exit $ac_status); }; }; then
2351 echo "$as_me: failed program was:" >&5
2352 sed 's/^/| /' conftest.$ac_ext >&5
2356 rm -f conftest.$ac_objext conftest.$ac_ext
2357 cat >conftest.$ac_ext <<_ACEOF
2358 #line $LINENO "configure"
2361 cat confdefs.h >>conftest.$ac_ext
2362 cat >>conftest.$ac_ext <<_ACEOF
2363 /* end confdefs.h. */
2373 rm -f conftest.$ac_objext
2374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2375 (eval $ac_compile) 2>&5
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); } &&
2379 { ac_try='test -s conftest.$ac_objext'
2380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); }; }; then
2387 echo "$as_me: failed program was:" >&5
2388 sed 's/^/| /' conftest.$ac_ext >&5
2391 rm -f conftest.$ac_objext conftest.$ac_ext
2394 if test -n "$ac_declaration"; then
2395 echo '#ifdef __cplusplus' >>confdefs.h
2396 echo $ac_declaration >>confdefs.h
2397 echo '#endif' >>confdefs.h
2401 ac_cpp='$CPP $CPPFLAGS'
2402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2407 ac_cpp='$CPP $CPPFLAGS'
2408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2411 if test -n "$ac_tool_prefix"; then
2414 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2415 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2416 echo "$as_me:$LINENO: checking for $ac_word" >&5
2417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2418 if test "${ac_cv_prog_CC+set}" = set; then
2419 echo $ECHO_N "(cached) $ECHO_C" >&6
2421 if test -n "$CC"; then
2422 ac_cv_prog_CC="$CC" # Let the user override the test.
2424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2428 test -z "$as_dir" && as_dir=.
2429 for ac_exec_ext in '' $ac_executable_extensions; do
2430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2431 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2441 if test -n "$CC"; then
2442 echo "$as_me:$LINENO: result: $CC" >&5
2443 echo "${ECHO_T}$CC" >&6
2445 echo "$as_me:$LINENO: result: no" >&5
2446 echo "${ECHO_T}no" >&6
2449 test -n "$CC" && break
2452 if test -z "$CC"; then
2456 # Extract the first word of "$ac_prog", so it can be a program name with args.
2457 set dummy $ac_prog; ac_word=$2
2458 echo "$as_me:$LINENO: checking for $ac_word" >&5
2459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2460 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2461 echo $ECHO_N "(cached) $ECHO_C" >&6
2463 if test -n "$ac_ct_CC"; then
2464 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 test -z "$as_dir" && as_dir=.
2471 for ac_exec_ext in '' $ac_executable_extensions; do
2472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2473 ac_cv_prog_ac_ct_CC="$ac_prog"
2474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2482 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2483 if test -n "$ac_ct_CC"; then
2484 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2485 echo "${ECHO_T}$ac_ct_CC" >&6
2487 echo "$as_me:$LINENO: result: no" >&5
2488 echo "${ECHO_T}no" >&6
2491 test -n "$ac_ct_CC" && break
2498 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2499 See \`config.log' for more details." >&5
2500 echo "$as_me: error: no acceptable C compiler found in \$PATH
2501 See \`config.log' for more details." >&2;}
2502 { (exit 1); exit 1; }; }
2504 # Provide some information about the compiler.
2505 echo "$as_me:$LINENO:" \
2506 "checking for C compiler version" >&5
2507 ac_compiler=`set X $ac_compile; echo $2`
2508 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2509 (eval $ac_compiler --version </dev/null >&5) 2>&5
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }
2513 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2514 (eval $ac_compiler -v </dev/null >&5) 2>&5
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); }
2518 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2519 (eval $ac_compiler -V </dev/null >&5) 2>&5
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); }
2524 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2525 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2526 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2527 echo $ECHO_N "(cached) $ECHO_C" >&6
2529 cat >conftest.$ac_ext <<_ACEOF
2530 #line $LINENO "configure"
2533 cat confdefs.h >>conftest.$ac_ext
2534 cat >>conftest.$ac_ext <<_ACEOF
2535 /* end confdefs.h. */
2548 rm -f conftest.$ac_objext
2549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2550 (eval $ac_compile) 2>&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); } &&
2554 { ac_try='test -s conftest.$ac_objext'
2555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }; }; then
2562 echo "$as_me: failed program was:" >&5
2563 sed 's/^/| /' conftest.$ac_ext >&5
2567 rm -f conftest.$ac_objext conftest.$ac_ext
2568 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2571 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2572 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2573 GCC=`test $ac_compiler_gnu = yes && echo yes`
2574 ac_test_CFLAGS=${CFLAGS+set}
2575 ac_save_CFLAGS=$CFLAGS
2577 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2578 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2579 if test "${ac_cv_prog_cc_g+set}" = set; then
2580 echo $ECHO_N "(cached) $ECHO_C" >&6
2582 cat >conftest.$ac_ext <<_ACEOF
2583 #line $LINENO "configure"
2586 cat confdefs.h >>conftest.$ac_ext
2587 cat >>conftest.$ac_ext <<_ACEOF
2588 /* end confdefs.h. */
2598 rm -f conftest.$ac_objext
2599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2600 (eval $ac_compile) 2>&5
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); } &&
2604 { ac_try='test -s conftest.$ac_objext'
2605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); }; }; then
2612 echo "$as_me: failed program was:" >&5
2613 sed 's/^/| /' conftest.$ac_ext >&5
2617 rm -f conftest.$ac_objext conftest.$ac_ext
2619 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2620 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2621 if test "$ac_test_CFLAGS" = set; then
2622 CFLAGS=$ac_save_CFLAGS
2623 elif test $ac_cv_prog_cc_g = yes; then
2624 if test "$GCC" = yes; then
2630 if test "$GCC" = yes; then
2636 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2637 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2638 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2639 echo $ECHO_N "(cached) $ECHO_C" >&6
2641 ac_cv_prog_cc_stdc=no
2643 cat >conftest.$ac_ext <<_ACEOF
2644 #line $LINENO "configure"
2647 cat confdefs.h >>conftest.$ac_ext
2648 cat >>conftest.$ac_ext <<_ACEOF
2649 /* end confdefs.h. */
2652 #include <sys/types.h>
2653 #include <sys/stat.h>
2654 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2655 struct buf { int x; };
2656 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2657 static char *e (p, i)
2663 static char *f (char * (*g) (char **, int), char **p, ...)
2668 s = g (p, va_arg (v,int));
2672 int test (int i, double x);
2673 struct s1 {int (*f) (int a);};
2674 struct s2 {int (*f) (double a);};
2675 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2681 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2686 # Don't try gcc -ansi; that turns off useful extensions and
2687 # breaks some systems' header files.
2688 # AIX -qlanglvl=ansi
2689 # Ultrix and OSF/1 -std1
2690 # HP-UX 10.20 and later -Ae
2691 # HP-UX older versions -Aa -D_HPUX_SOURCE
2692 # SVR4 -Xc -D__EXTENSIONS__
2693 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2695 CC="$ac_save_CC $ac_arg"
2696 rm -f conftest.$ac_objext
2697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2698 (eval $ac_compile) 2>&5
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); } &&
2702 { ac_try='test -s conftest.$ac_objext'
2703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); }; }; then
2708 ac_cv_prog_cc_stdc=$ac_arg
2711 echo "$as_me: failed program was:" >&5
2712 sed 's/^/| /' conftest.$ac_ext >&5
2715 rm -f conftest.$ac_objext
2717 rm -f conftest.$ac_ext conftest.$ac_objext
2722 case "x$ac_cv_prog_cc_stdc" in
2724 echo "$as_me:$LINENO: result: none needed" >&5
2725 echo "${ECHO_T}none needed" >&6 ;;
2727 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2728 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2729 CC="$CC $ac_cv_prog_cc_stdc" ;;
2732 # Some people use a C++ compiler to compile C. Since we use `exit',
2733 # in C++ we need to declare it. In case someone uses the same compiler
2734 # for both compiling C and C++ we need to have the C++ compiler decide
2735 # the declaration of exit, since it's the most demanding environment.
2736 cat >conftest.$ac_ext <<_ACEOF
2741 rm -f conftest.$ac_objext
2742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2743 (eval $ac_compile) 2>&5
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); } &&
2747 { ac_try='test -s conftest.$ac_objext'
2748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; }; then
2753 for ac_declaration in \
2755 '#include <stdlib.h>' \
2756 'extern "C" void std::exit (int) throw (); using std::exit;' \
2757 'extern "C" void std::exit (int); using std::exit;' \
2758 'extern "C" void exit (int) throw ();' \
2759 'extern "C" void exit (int);' \
2762 cat >conftest.$ac_ext <<_ACEOF
2763 #line $LINENO "configure"
2766 cat confdefs.h >>conftest.$ac_ext
2767 cat >>conftest.$ac_ext <<_ACEOF
2768 /* end confdefs.h. */
2779 rm -f conftest.$ac_objext
2780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2781 (eval $ac_compile) 2>&5
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); } &&
2785 { ac_try='test -s conftest.$ac_objext'
2786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); }; }; then
2793 echo "$as_me: failed program was:" >&5
2794 sed 's/^/| /' conftest.$ac_ext >&5
2798 rm -f conftest.$ac_objext conftest.$ac_ext
2799 cat >conftest.$ac_ext <<_ACEOF
2800 #line $LINENO "configure"
2803 cat confdefs.h >>conftest.$ac_ext
2804 cat >>conftest.$ac_ext <<_ACEOF
2805 /* end confdefs.h. */
2815 rm -f conftest.$ac_objext
2816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2817 (eval $ac_compile) 2>&5
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); } &&
2821 { ac_try='test -s conftest.$ac_objext'
2822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); }; }; then
2829 echo "$as_me: failed program was:" >&5
2830 sed 's/^/| /' conftest.$ac_ext >&5
2833 rm -f conftest.$ac_objext conftest.$ac_ext
2836 if test -n "$ac_declaration"; then
2837 echo '#ifdef __cplusplus' >>confdefs.h
2838 echo $ac_declaration >>confdefs.h
2839 echo '#endif' >>confdefs.h
2843 echo "$as_me: failed program was:" >&5
2844 sed 's/^/| /' conftest.$ac_ext >&5
2847 rm -f conftest.$ac_objext conftest.$ac_ext
2849 ac_cpp='$CPP $CPPFLAGS'
2850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2855 ac_cpp='$CPP $CPPFLAGS'
2856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2859 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2860 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2861 # On Suns, sometimes $CPP names a directory.
2862 if test -n "$CPP" && test -d "$CPP"; then
2865 if test -z "$CPP"; then
2866 if test "${ac_cv_prog_CPP+set}" = set; then
2867 echo $ECHO_N "(cached) $ECHO_C" >&6
2869 # Double quotes because CPP needs to be expanded
2870 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2873 for ac_c_preproc_warn_flag in '' yes
2875 # Use a header file that comes with gcc, so configuring glibc
2876 # with a fresh cross-compiler works.
2877 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2878 # <limits.h> exists even on freestanding compilers.
2879 # On the NeXT, cc -E runs the code through the compiler's parser,
2880 # not just through cpp. "Syntax error" is here to catch this case.
2881 cat >conftest.$ac_ext <<_ACEOF
2882 #line $LINENO "configure"
2885 cat confdefs.h >>conftest.$ac_ext
2886 cat >>conftest.$ac_ext <<_ACEOF
2887 /* end confdefs.h. */
2889 # include <limits.h>
2891 # include <assert.h>
2895 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2896 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2898 grep -v '^ *+' conftest.er1 >conftest.err
2900 cat conftest.err >&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); } >/dev/null; then
2903 if test -s conftest.err; then
2904 ac_cpp_err=$ac_c_preproc_warn_flag
2911 if test -z "$ac_cpp_err"; then
2914 echo "$as_me: failed program was:" >&5
2915 sed 's/^/| /' conftest.$ac_ext >&5
2917 # Broken: fails on valid input.
2920 rm -f conftest.err conftest.$ac_ext
2922 # OK, works on sane cases. Now check whether non-existent headers
2923 # can be detected and how.
2924 cat >conftest.$ac_ext <<_ACEOF
2925 #line $LINENO "configure"
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h. */
2931 #include <ac_nonexistent.h>
2933 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2934 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2936 grep -v '^ *+' conftest.er1 >conftest.err
2938 cat conftest.err >&5
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); } >/dev/null; then
2941 if test -s conftest.err; then
2942 ac_cpp_err=$ac_c_preproc_warn_flag
2949 if test -z "$ac_cpp_err"; then
2950 # Broken: success on invalid input.
2953 echo "$as_me: failed program was:" >&5
2954 sed 's/^/| /' conftest.$ac_ext >&5
2956 # Passes both tests.
2960 rm -f conftest.err conftest.$ac_ext
2963 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2964 rm -f conftest.err conftest.$ac_ext
2965 if $ac_preproc_ok; then
2977 echo "$as_me:$LINENO: result: $CPP" >&5
2978 echo "${ECHO_T}$CPP" >&6
2980 for ac_c_preproc_warn_flag in '' yes
2982 # Use a header file that comes with gcc, so configuring glibc
2983 # with a fresh cross-compiler works.
2984 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2985 # <limits.h> exists even on freestanding compilers.
2986 # On the NeXT, cc -E runs the code through the compiler's parser,
2987 # not just through cpp. "Syntax error" is here to catch this case.
2988 cat >conftest.$ac_ext <<_ACEOF
2989 #line $LINENO "configure"
2992 cat confdefs.h >>conftest.$ac_ext
2993 cat >>conftest.$ac_ext <<_ACEOF
2994 /* end confdefs.h. */
2996 # include <limits.h>
2998 # include <assert.h>
3002 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3003 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3005 grep -v '^ *+' conftest.er1 >conftest.err
3007 cat conftest.err >&5
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); } >/dev/null; then
3010 if test -s conftest.err; then
3011 ac_cpp_err=$ac_c_preproc_warn_flag
3018 if test -z "$ac_cpp_err"; then
3021 echo "$as_me: failed program was:" >&5
3022 sed 's/^/| /' conftest.$ac_ext >&5
3024 # Broken: fails on valid input.
3027 rm -f conftest.err conftest.$ac_ext
3029 # OK, works on sane cases. Now check whether non-existent headers
3030 # can be detected and how.
3031 cat >conftest.$ac_ext <<_ACEOF
3032 #line $LINENO "configure"
3035 cat confdefs.h >>conftest.$ac_ext
3036 cat >>conftest.$ac_ext <<_ACEOF
3037 /* end confdefs.h. */
3038 #include <ac_nonexistent.h>
3040 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3041 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3043 grep -v '^ *+' conftest.er1 >conftest.err
3045 cat conftest.err >&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); } >/dev/null; then
3048 if test -s conftest.err; then
3049 ac_cpp_err=$ac_c_preproc_warn_flag
3056 if test -z "$ac_cpp_err"; then
3057 # Broken: success on invalid input.
3060 echo "$as_me: failed program was:" >&5
3061 sed 's/^/| /' conftest.$ac_ext >&5
3063 # Passes both tests.
3067 rm -f conftest.err conftest.$ac_ext
3070 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3071 rm -f conftest.err conftest.$ac_ext
3072 if $ac_preproc_ok; then
3075 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3076 See \`config.log' for more details." >&5
3077 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3078 See \`config.log' for more details." >&2;}
3079 { (exit 1); exit 1; }; }
3083 ac_cpp='$CPP $CPPFLAGS'
3084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3089 if test "$GCC" != "yes"
3091 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3092 echo "$as_me: error: gcc required but not found" >&2;}
3093 { (exit 1); exit 1; }; }
3095 if test "$GXX" != "yes"
3097 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3098 echo "$as_me: error: g++ required but not found" >&2;}
3099 { (exit 1); exit 1; }; }
3102 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3103 if test "$gccmajor" -lt "3"
3105 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3106 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3107 { (exit 1); exit 1; }; }
3110 echo "$as_me:$LINENO: checking for GNU make" >&5
3111 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3112 if test "${_cv_gnu_make_command+set}" = set; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3115 _cv_gnu_make_command='' ;
3116 for a in "$MAKE" make gmake gnumake ; do
3117 if test -z "$a" ; then continue ; fi ;
3118 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3119 _cv_gnu_make_command=$a ;
3125 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3126 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3127 if test "x$_cv_gnu_make_command" != "x" ; then
3131 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3132 echo "${ECHO_T}\"Not found\"" >&6;
3136 if test -z "$_cv_gnu_make_command"
3138 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3139 echo "$as_me: error: GNU Make required but not found" >&2;}
3140 { (exit 1); exit 1; }; }
3144 echo "$as_me:$LINENO: checking " >&5
3145 echo $ECHO_N "checking ... $ECHO_C" >&6
3146 if test "${ac_cv_has_flex+set}" = set; then
3147 echo $ECHO_N "(cached) $ECHO_C" >&6
3149 for ac_prog in flex lex
3151 # Extract the first word of "$ac_prog", so it can be a program name with args.
3152 set dummy $ac_prog; ac_word=$2
3153 echo "$as_me:$LINENO: checking for $ac_word" >&5
3154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3155 if test "${ac_cv_prog_LEX+set}" = set; then
3156 echo $ECHO_N "(cached) $ECHO_C" >&6
3158 if test -n "$LEX"; then
3159 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165 test -z "$as_dir" && as_dir=.
3166 for ac_exec_ext in '' $ac_executable_extensions; do
3167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3168 ac_cv_prog_LEX="$ac_prog"
3169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3178 if test -n "$LEX"; then
3179 echo "$as_me:$LINENO: result: $LEX" >&5
3180 echo "${ECHO_T}$LEX" >&6
3182 echo "$as_me:$LINENO: result: no" >&5
3183 echo "${ECHO_T}no" >&6
3186 test -n "$LEX" && break
3188 test -n "$LEX" || LEX=":"
3190 if test -z "$LEXLIB"
3192 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3193 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3194 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3195 echo $ECHO_N "(cached) $ECHO_C" >&6
3197 ac_check_lib_save_LIBS=$LIBS
3199 cat >conftest.$ac_ext <<_ACEOF
3200 #line $LINENO "configure"
3203 cat confdefs.h >>conftest.$ac_ext
3204 cat >>conftest.$ac_ext <<_ACEOF
3205 /* end confdefs.h. */
3207 /* Override any gcc2 internal prototype to avoid an error. */
3211 /* We use char because int might match the return type of a gcc2
3212 builtin and then its argument prototype would still apply. */
3222 rm -f conftest.$ac_objext conftest$ac_exeext
3223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3224 (eval $ac_link) 2>&5
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); } &&
3228 { ac_try='test -s conftest$ac_exeext'
3229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); }; }; then
3234 ac_cv_lib_fl_yywrap=yes
3236 echo "$as_me: failed program was:" >&5
3237 sed 's/^/| /' conftest.$ac_ext >&5
3239 ac_cv_lib_fl_yywrap=no
3241 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3242 LIBS=$ac_check_lib_save_LIBS
3244 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3245 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3246 if test $ac_cv_lib_fl_yywrap = yes; then
3249 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3250 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3251 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3254 ac_check_lib_save_LIBS=$LIBS
3256 cat >conftest.$ac_ext <<_ACEOF
3257 #line $LINENO "configure"
3260 cat confdefs.h >>conftest.$ac_ext
3261 cat >>conftest.$ac_ext <<_ACEOF
3262 /* end confdefs.h. */
3264 /* Override any gcc2 internal prototype to avoid an error. */
3268 /* We use char because int might match the return type of a gcc2
3269 builtin and then its argument prototype would still apply. */
3279 rm -f conftest.$ac_objext conftest$ac_exeext
3280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3281 (eval $ac_link) 2>&5
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); } &&
3285 { ac_try='test -s conftest$ac_exeext'
3286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); }; }; then
3291 ac_cv_lib_l_yywrap=yes
3293 echo "$as_me: failed program was:" >&5
3294 sed 's/^/| /' conftest.$ac_ext >&5
3296 ac_cv_lib_l_yywrap=no
3298 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3299 LIBS=$ac_check_lib_save_LIBS
3301 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3302 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3303 if test $ac_cv_lib_l_yywrap = yes; then
3311 if test "x$LEX" != "x:"; then
3312 echo "$as_me:$LINENO: checking lex output file root" >&5
3313 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3314 if test "${ac_cv_prog_lex_root+set}" = set; then
3315 echo $ECHO_N "(cached) $ECHO_C" >&6
3317 # The minimal lex program is just a single line: %%. But some broken lexes
3318 # (Solaris, I think it was) want two %% lines, so accommodate them.
3319 cat >conftest.l <<_ACEOF
3323 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3324 (eval $LEX conftest.l) 2>&5
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); }
3328 if test -f lex.yy.c; then
3329 ac_cv_prog_lex_root=lex.yy
3330 elif test -f lexyy.c; then
3331 ac_cv_prog_lex_root=lexyy
3333 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3334 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3335 { (exit 1); exit 1; }; }
3338 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3339 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3341 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3343 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3344 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3345 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3346 echo $ECHO_N "(cached) $ECHO_C" >&6
3348 # POSIX says lex can declare yytext either as a pointer or an array; the
3349 # default is implementation-dependent. Figure out which it is, since
3350 # not all implementations provide the %pointer and %array declarations.
3351 ac_cv_prog_lex_yytext_pointer=no
3352 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3354 LIBS="$LIBS $LEXLIB"
3355 cat >conftest.$ac_ext <<_ACEOF
3356 `cat $LEX_OUTPUT_ROOT.c`
3358 rm -f conftest.$ac_objext conftest$ac_exeext
3359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3360 (eval $ac_link) 2>&5
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); } &&
3364 { ac_try='test -s conftest$ac_exeext'
3365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); }; }; then
3370 ac_cv_prog_lex_yytext_pointer=yes
3372 echo "$as_me: failed program was:" >&5
3373 sed 's/^/| /' conftest.$ac_ext >&5
3376 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3378 rm -f "${LEX_OUTPUT_ROOT}.c"
3381 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3382 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3383 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3385 cat >>confdefs.h <<\_ACEOF
3386 #define YYTEXT_POINTER 1
3394 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3395 echo "${ECHO_T}$ac_cv_has_flex" >&6
3396 if test "$LEX" != "flex"; then
3397 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3398 echo "$as_me: error: flex not found but required" >&2;}
3399 { (exit 1); exit 1; }; }
3405 echo "$as_me:$LINENO: checking " >&5
3406 echo $ECHO_N "checking ... $ECHO_C" >&6
3407 if test "${ac_cv_has_bison+set}" = set; then
3408 echo $ECHO_N "(cached) $ECHO_C" >&6
3410 for ac_prog in 'bison -y' byacc
3412 # Extract the first word of "$ac_prog", so it can be a program name with args.
3413 set dummy $ac_prog; ac_word=$2
3414 echo "$as_me:$LINENO: checking for $ac_word" >&5
3415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3416 if test "${ac_cv_prog_YACC+set}" = set; then
3417 echo $ECHO_N "(cached) $ECHO_C" >&6
3419 if test -n "$YACC"; then
3420 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3426 test -z "$as_dir" && as_dir=.
3427 for ac_exec_ext in '' $ac_executable_extensions; do
3428 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3429 ac_cv_prog_YACC="$ac_prog"
3430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3438 YACC=$ac_cv_prog_YACC
3439 if test -n "$YACC"; then
3440 echo "$as_me:$LINENO: result: $YACC" >&5
3441 echo "${ECHO_T}$YACC" >&6
3443 echo "$as_me:$LINENO: result: no" >&5
3444 echo "${ECHO_T}no" >&6
3447 test -n "$YACC" && break
3449 test -n "$YACC" || YACC="yacc"
3453 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3454 echo "${ECHO_T}$ac_cv_has_bison" >&6
3455 if test "$YACC" != "bison -y"; then
3456 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3457 echo "$as_me: error: bison not found but required" >&2;}
3458 { (exit 1); exit 1; }; }
3464 # Check whether --enable-shared or --disable-shared was given.
3465 if test "${enable_shared+set}" = set; then
3466 enableval="$enable_shared"
3467 p=${PACKAGE-default}
3469 yes) enable_shared=yes ;;
3470 no) enable_shared=no ;;
3473 # Look at the argument we got. We use all the common list separators.
3474 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3475 for pkg in $enableval; do
3477 if test "X$pkg" = "X$p"; then
3488 # Check whether --enable-static or --disable-static was given.
3489 if test "${enable_static+set}" = set; then
3490 enableval="$enable_static"
3491 p=${PACKAGE-default}
3493 yes) enable_static=yes ;;
3494 no) enable_static=no ;;
3497 # Look at the argument we got. We use all the common list separators.
3498 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3499 for pkg in $enableval; do
3501 if test "X$pkg" = "X$p"; then
3512 # Check whether --enable-fast-install or --disable-fast-install was given.
3513 if test "${enable_fast_install+set}" = set; then
3514 enableval="$enable_fast_install"
3515 p=${PACKAGE-default}
3517 yes) enable_fast_install=yes ;;
3518 no) enable_fast_install=no ;;
3520 enable_fast_install=no
3521 # Look at the argument we got. We use all the common list separators.
3522 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3523 for pkg in $enableval; do
3525 if test "X$pkg" = "X$p"; then
3526 enable_fast_install=yes
3533 enable_fast_install=yes
3536 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3537 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3538 if test "${lt_cv_path_SED+set}" = set; then
3539 echo $ECHO_N "(cached) $ECHO_C" >&6
3541 # Loop through the user's path and test for sed and gsed.
3542 # Then use that list of sed's as ones to test for truncation.
3543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547 test -z "$as_dir" && as_dir=.
3548 for lt_ac_prog in sed gsed; do
3549 for ac_exec_ext in '' $ac_executable_extensions; do
3550 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3551 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3558 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3559 # along with /bin/sed that truncates output.
3560 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3561 test ! -f $lt_ac_sed && break
3562 cat /dev/null > conftest.in
3564 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3565 # Check for GNU sed and select it if it is found.
3566 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3567 lt_cv_path_SED=$lt_ac_sed
3571 cat conftest.in conftest.in >conftest.tmp
3572 mv conftest.tmp conftest.in
3573 cp conftest.in conftest.nl
3575 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3576 cmp -s conftest.out conftest.nl || break
3577 # 10000 chars as input seems more than enough
3578 test $lt_ac_count -gt 10 && break
3579 lt_ac_count=`expr $lt_ac_count + 1`
3580 if test $lt_ac_count -gt $lt_ac_max; then
3581 lt_ac_max=$lt_ac_count
3582 lt_cv_path_SED=$lt_ac_sed
3590 echo "$as_me:$LINENO: result: $SED" >&5
3591 echo "${ECHO_T}$SED" >&6
3593 echo "$as_me:$LINENO: checking for egrep" >&5
3594 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3595 if test "${ac_cv_prog_egrep+set}" = set; then
3596 echo $ECHO_N "(cached) $ECHO_C" >&6
3598 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3599 then ac_cv_prog_egrep='grep -E'
3600 else ac_cv_prog_egrep='egrep'
3603 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3604 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3605 EGREP=$ac_cv_prog_egrep
3609 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3610 if test "${with_gnu_ld+set}" = set; then
3611 withval="$with_gnu_ld"
3612 test "$withval" = no || with_gnu_ld=yes
3617 if test "$GCC" = yes; then
3618 # Check if gcc -print-prog-name=ld gives a path.
3619 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3620 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3623 # gcc leaves a trailing carriage return which upsets mingw
3624 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3626 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3629 # Accept absolute paths.
3631 re_direlt='/[^/][^/]*/\.\./'
3632 # Canonicalize the path of ld
3633 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3634 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3635 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3637 test -z "$LD" && LD="$ac_prog"
3640 # If it fails, then pretend we aren't using GCC.
3644 # If it is relative, then search for the first ld in PATH.
3648 elif test "$with_gnu_ld" = yes; then
3649 echo "$as_me:$LINENO: checking for GNU ld" >&5
3650 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3652 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3653 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3655 if test "${lt_cv_path_LD+set}" = set; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3658 if test -z "$LD"; then
3659 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3660 for ac_dir in $PATH; do
3662 test -z "$ac_dir" && ac_dir=.
3663 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3664 lt_cv_path_LD="$ac_dir/$ac_prog"
3665 # Check to see if the program is GNU ld. I'd rather use --version,
3666 # but apparently some GNU ld's only accept -v.
3667 # Break only if it was the GNU/non-GNU ld that we prefer.
3668 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3669 *GNU* | *'with BFD'*)
3670 test "$with_gnu_ld" != no && break
3673 test "$with_gnu_ld" != yes && break
3680 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3685 if test -n "$LD"; then
3686 echo "$as_me:$LINENO: result: $LD" >&5
3687 echo "${ECHO_T}$LD" >&6
3689 echo "$as_me:$LINENO: result: no" >&5
3690 echo "${ECHO_T}no" >&6
3692 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3693 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3694 { (exit 1); exit 1; }; }
3695 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3696 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3697 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3698 echo $ECHO_N "(cached) $ECHO_C" >&6
3700 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3701 case `"$LD" -v 2>&1 </dev/null` in
3702 *GNU* | *'with BFD'*)
3703 lt_cv_prog_gnu_ld=yes
3706 lt_cv_prog_gnu_ld=no
3710 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3711 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3712 with_gnu_ld=$lt_cv_prog_gnu_ld
3715 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3716 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3717 if test "${lt_cv_ld_reload_flag+set}" = set; then
3718 echo $ECHO_N "(cached) $ECHO_C" >&6
3720 lt_cv_ld_reload_flag='-r'
3722 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3723 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3724 reload_flag=$lt_cv_ld_reload_flag
3725 case $reload_flag in
3727 *) reload_flag=" $reload_flag" ;;
3729 reload_cmds='$CC -nostdlib -Xlinker$reload_flag $archargs -o $output$reload_objs'
3731 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3732 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3733 if test "${lt_cv_path_NM+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3736 if test -n "$NM"; then
3737 # Let the user override the test.
3740 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3741 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3743 test -z "$ac_dir" && ac_dir=.
3744 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3745 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3746 # Check to see if the nm accepts a BSD-compat flag.
3747 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3748 # nm: unknown option "B" ignored
3749 # Tru64's nm complains that /dev/null is an invalid object file
3750 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3751 */dev/null* | *'Invalid file or object type'*)
3752 lt_cv_path_NM="$tmp_nm -B"
3756 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3758 lt_cv_path_NM="$tmp_nm -p"
3762 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3763 continue # so that we can try to find one that supports BSD flags
3770 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3773 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3774 echo "${ECHO_T}$lt_cv_path_NM" >&6
3777 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3778 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3780 if test "$LN_S" = "ln -s"; then
3781 echo "$as_me:$LINENO: result: yes" >&5
3782 echo "${ECHO_T}yes" >&6
3784 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3785 echo "${ECHO_T}no, using $LN_S" >&6
3788 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3789 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3790 if test "${lt_cv_deplibs_check_method+set}" = set; then
3791 echo $ECHO_N "(cached) $ECHO_C" >&6
3793 lt_cv_file_magic_cmd='$MAGIC_CMD'
3794 lt_cv_file_magic_test_file=
3795 lt_cv_deplibs_check_method='unknown'
3796 # Need to set the preceding variable on all platforms that support
3797 # interlibrary dependencies.
3798 # 'none' -- dependencies not supported.
3799 # `unknown' -- same as none, but documents that we really don't know.
3800 # 'pass_all' -- all dependencies passed with no checks.
3801 # 'test_compile' -- check by making test program.
3802 # 'file_magic [[regex]]' -- check by looking for files in library path
3803 # which responds to the $file_magic_cmd with a given extended regex.
3804 # If you have `file' or equivalent on your system and you're not sure
3805 # whether `pass_all' will *always* work, you probably want this one.
3809 lt_cv_deplibs_check_method=pass_all
3813 lt_cv_deplibs_check_method=pass_all
3817 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3818 lt_cv_file_magic_cmd='/usr/bin/file -L'
3819 lt_cv_file_magic_test_file=/shlib/libc.so
3822 cygwin* | mingw* | pw32*)
3823 # win32_libid is a shell function defined in ltmain.sh
3824 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3825 lt_cv_file_magic_cmd='win32_libid'
3828 darwin* | rhapsody*)
3829 # this will be overwritten by pass_all, but leave it in just in case
3830 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3831 lt_cv_file_magic_cmd='/usr/bin/file -L'
3833 rhapsody* | darwin1.[012])
3834 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3837 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3840 lt_cv_deplibs_check_method=pass_all
3844 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3847 # Not sure whether the presence of OpenBSD here was a mistake.
3848 # Let's accept both of them until this is cleared up.
3849 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3850 lt_cv_file_magic_cmd=/usr/bin/file
3851 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3855 lt_cv_deplibs_check_method=pass_all
3860 lt_cv_deplibs_check_method=pass_all
3863 hpux10.20* | hpux11*)
3864 lt_cv_file_magic_cmd=/usr/bin/file
3867 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3868 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3871 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]'
3872 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3875 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3876 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3881 irix5* | irix6* | nonstopux*)
3883 irix5* | nonstopux*)
3884 # this will be overridden with pass_all, but let us keep it just in case
3885 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3889 *-32|*"-32 ") libmagic=32-bit;;
3890 *-n32|*"-n32 ") libmagic=N32;;
3891 *-64|*"-64 ") libmagic=64-bit;;
3892 *) libmagic=never-match;;
3894 # this will be overridden with pass_all, but let us keep it just in case
3895 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3898 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3899 lt_cv_deplibs_check_method=pass_all
3902 # This must be Linux ELF.
3905 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
3906 lt_cv_deplibs_check_method=pass_all ;;
3908 # glibc up to 2.1.1 does not perform some relocations on ARM
3909 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3911 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3915 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3916 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3918 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3923 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3924 lt_cv_file_magic_cmd=/usr/bin/file
3925 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3929 lt_cv_deplibs_check_method=unknown
3933 lt_cv_file_magic_cmd=/usr/bin/file
3934 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3935 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3936 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3938 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3942 osf3* | osf4* | osf5*)
3943 # this will be overridden with pass_all, but let us keep it just in case
3944 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3945 lt_cv_file_magic_test_file=/shlib/libc.so
3946 lt_cv_deplibs_check_method=pass_all
3950 lt_cv_deplibs_check_method=pass_all
3954 lt_cv_deplibs_check_method=pass_all
3955 lt_cv_file_magic_test_file=/lib/libc.so
3958 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3959 case $host_vendor in
3961 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]'
3962 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3965 lt_cv_deplibs_check_method=pass_all
3968 lt_cv_file_magic_cmd='/bin/file'
3969 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3972 lt_cv_file_magic_cmd='/bin/file'
3973 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3974 lt_cv_file_magic_test_file=/lib/libc.so
3977 lt_cv_deplibs_check_method=pass_all
3982 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3983 lt_cv_deplibs_check_method=pass_all
3988 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3989 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3990 file_magic_cmd=$lt_cv_file_magic_cmd
3991 deplibs_check_method=$lt_cv_deplibs_check_method
3992 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3997 # If no C compiler was specified, use CC.
4000 # Allow CC to be a program name with arguments.
4003 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4004 if test "${enable_libtool_lock+set}" = set; then
4005 enableval="$enable_libtool_lock"
4008 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4010 # Some flags need to be propagated to the compiler or linker for good
4014 # Find out which ABI we are using.
4015 echo 'int i;' > conftest.$ac_ext
4016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4017 (eval $ac_compile) 2>&5
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); }; then
4021 case `/usr/bin/file conftest.$ac_objext` in
4033 # Find out which ABI we are using.
4034 echo '#line 4034 "configure"' > conftest.$ac_ext
4035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4036 (eval $ac_compile) 2>&5
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); }; then
4040 if test "$lt_cv_prog_gnu_ld" = yes; then
4041 case `/usr/bin/file conftest.$ac_objext` in
4043 LD="${LD-ld} -melf32bsmip"
4046 LD="${LD-ld} -melf32bmipn32"
4049 LD="${LD-ld} -melf64bmip"
4053 case `/usr/bin/file conftest.$ac_objext` in
4069 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4070 # Find out which ABI we are using.
4071 echo 'int i;' > conftest.$ac_ext
4072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4073 (eval $ac_compile) 2>&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); }; then
4077 case "`/usr/bin/file conftest.o`" in
4081 LD="${LD-ld} -m elf_i386"
4084 LD="${LD-ld} -m elf32ppclinux"
4087 LD="${LD-ld} -m elf_s390"
4090 LD="${LD-ld} -m elf32_sparc"
4097 LD="${LD-ld} -m elf_x86_64"
4099 ppc*-*linux*|powerpc*-*linux*)
4100 LD="${LD-ld} -m elf64ppc"
4103 LD="${LD-ld} -m elf64_s390"
4106 LD="${LD-ld} -m elf64_sparc"
4116 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4117 SAVE_CFLAGS="$CFLAGS"
4118 CFLAGS="$CFLAGS -belf"
4119 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4120 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4121 if test "${lt_cv_cc_needs_belf+set}" = set; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
4125 ac_cpp='$CPP $CPPFLAGS'
4126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4130 cat >conftest.$ac_ext <<_ACEOF
4131 #line $LINENO "configure"
4134 cat confdefs.h >>conftest.$ac_ext
4135 cat >>conftest.$ac_ext <<_ACEOF
4136 /* end confdefs.h. */
4146 rm -f conftest.$ac_objext conftest$ac_exeext
4147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4148 (eval $ac_link) 2>&5
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); } &&
4152 { ac_try='test -s conftest$ac_exeext'
4153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); }; }; then
4158 lt_cv_cc_needs_belf=yes
4160 echo "$as_me: failed program was:" >&5
4161 sed 's/^/| /' conftest.$ac_ext >&5
4163 lt_cv_cc_needs_belf=no
4165 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4167 ac_cpp='$CPP $CPPFLAGS'
4168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4173 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4174 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4175 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4176 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4177 CFLAGS="$SAVE_CFLAGS"
4183 need_locks="$enable_libtool_lock"
4187 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4188 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4189 if test "${ac_cv_header_stdc+set}" = set; then
4190 echo $ECHO_N "(cached) $ECHO_C" >&6
4192 cat >conftest.$ac_ext <<_ACEOF
4193 #line $LINENO "configure"
4196 cat confdefs.h >>conftest.$ac_ext
4197 cat >>conftest.$ac_ext <<_ACEOF
4198 /* end confdefs.h. */
4212 rm -f conftest.$ac_objext
4213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4214 (eval $ac_compile) 2>&5
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); } &&
4218 { ac_try='test -s conftest.$ac_objext'
4219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); }; }; then
4224 ac_cv_header_stdc=yes
4226 echo "$as_me: failed program was:" >&5
4227 sed 's/^/| /' conftest.$ac_ext >&5
4229 ac_cv_header_stdc=no
4231 rm -f conftest.$ac_objext conftest.$ac_ext
4233 if test $ac_cv_header_stdc = yes; then
4234 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4235 cat >conftest.$ac_ext <<_ACEOF
4236 #line $LINENO "configure"
4239 cat confdefs.h >>conftest.$ac_ext
4240 cat >>conftest.$ac_ext <<_ACEOF
4241 /* end confdefs.h. */
4245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4246 $EGREP "memchr" >/dev/null 2>&1; then
4249 ac_cv_header_stdc=no
4255 if test $ac_cv_header_stdc = yes; then
4256 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4257 cat >conftest.$ac_ext <<_ACEOF
4258 #line $LINENO "configure"
4261 cat confdefs.h >>conftest.$ac_ext
4262 cat >>conftest.$ac_ext <<_ACEOF
4263 /* end confdefs.h. */
4267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4268 $EGREP "free" >/dev/null 2>&1; then
4271 ac_cv_header_stdc=no
4277 if test $ac_cv_header_stdc = yes; then
4278 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4279 if test "$cross_compiling" = yes; then
4282 cat >conftest.$ac_ext <<_ACEOF
4283 #line $LINENO "configure"
4286 cat confdefs.h >>conftest.$ac_ext
4287 cat >>conftest.$ac_ext <<_ACEOF
4288 /* end confdefs.h. */
4290 #if ((' ' & 0x0FF) == 0x020)
4291 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4292 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4294 # define ISLOWER(c) \
4295 (('a' <= (c) && (c) <= 'i') \
4296 || ('j' <= (c) && (c) <= 'r') \
4297 || ('s' <= (c) && (c) <= 'z'))
4298 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4301 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4306 for (i = 0; i < 256; i++)
4307 if (XOR (islower (i), ISLOWER (i))
4308 || toupper (i) != TOUPPER (i))
4313 rm -f conftest$ac_exeext
4314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4315 (eval $ac_link) 2>&5
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; }; then
4326 echo "$as_me: program exited with status $ac_status" >&5
4327 echo "$as_me: failed program was:" >&5
4328 sed 's/^/| /' conftest.$ac_ext >&5
4331 ac_cv_header_stdc=no
4333 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4337 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4338 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4339 if test $ac_cv_header_stdc = yes; then
4341 cat >>confdefs.h <<\_ACEOF
4342 #define STDC_HEADERS 1
4347 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4357 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4358 inttypes.h stdint.h unistd.h
4360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4361 echo "$as_me:$LINENO: checking for $ac_header" >&5
4362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4366 cat >conftest.$ac_ext <<_ACEOF
4367 #line $LINENO "configure"
4370 cat confdefs.h >>conftest.$ac_ext
4371 cat >>conftest.$ac_ext <<_ACEOF
4372 /* end confdefs.h. */
4373 $ac_includes_default
4375 #include <$ac_header>
4377 rm -f conftest.$ac_objext
4378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4379 (eval $ac_compile) 2>&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); } &&
4383 { ac_try='test -s conftest.$ac_objext'
4384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); }; }; then
4389 eval "$as_ac_Header=yes"
4391 echo "$as_me: failed program was:" >&5
4392 sed 's/^/| /' conftest.$ac_ext >&5
4394 eval "$as_ac_Header=no"
4396 rm -f conftest.$ac_objext conftest.$ac_ext
4398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4399 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4400 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4401 cat >>confdefs.h <<_ACEOF
4402 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4411 for ac_header in dlfcn.h
4413 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4415 echo "$as_me:$LINENO: checking for $ac_header" >&5
4416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4418 echo $ECHO_N "(cached) $ECHO_C" >&6
4420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4421 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4423 # Is the header compilable?
4424 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4425 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4426 cat >conftest.$ac_ext <<_ACEOF
4427 #line $LINENO "configure"
4430 cat confdefs.h >>conftest.$ac_ext
4431 cat >>conftest.$ac_ext <<_ACEOF
4432 /* end confdefs.h. */
4433 $ac_includes_default
4434 #include <$ac_header>
4436 rm -f conftest.$ac_objext
4437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4438 (eval $ac_compile) 2>&5
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); } &&
4442 { ac_try='test -s conftest.$ac_objext'
4443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); }; }; then
4448 ac_header_compiler=yes
4450 echo "$as_me: failed program was:" >&5
4451 sed 's/^/| /' conftest.$ac_ext >&5
4453 ac_header_compiler=no
4455 rm -f conftest.$ac_objext conftest.$ac_ext
4456 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4457 echo "${ECHO_T}$ac_header_compiler" >&6
4459 # Is the header present?
4460 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4461 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4462 cat >conftest.$ac_ext <<_ACEOF
4463 #line $LINENO "configure"
4466 cat confdefs.h >>conftest.$ac_ext
4467 cat >>conftest.$ac_ext <<_ACEOF
4468 /* end confdefs.h. */
4469 #include <$ac_header>
4471 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4472 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4474 grep -v '^ *+' conftest.er1 >conftest.err
4476 cat conftest.err >&5
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); } >/dev/null; then
4479 if test -s conftest.err; then
4480 ac_cpp_err=$ac_c_preproc_warn_flag
4487 if test -z "$ac_cpp_err"; then
4488 ac_header_preproc=yes
4490 echo "$as_me: failed program was:" >&5
4491 sed 's/^/| /' conftest.$ac_ext >&5
4493 ac_header_preproc=no
4495 rm -f conftest.err conftest.$ac_ext
4496 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4497 echo "${ECHO_T}$ac_header_preproc" >&6
4499 # So? What about this header?
4500 case $ac_header_compiler:$ac_header_preproc in
4502 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4503 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4505 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4508 ## ------------------------------------ ##
4509 ## Report this to bug-autoconf@gnu.org. ##
4510 ## ------------------------------------ ##
4513 sed "s/^/$as_me: WARNING: /" >&2
4516 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4518 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4519 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4521 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4524 ## ------------------------------------ ##
4525 ## Report this to bug-autoconf@gnu.org. ##
4526 ## ------------------------------------ ##
4529 sed "s/^/$as_me: WARNING: /" >&2
4532 echo "$as_me:$LINENO: checking for $ac_header" >&5
4533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4535 echo $ECHO_N "(cached) $ECHO_C" >&6
4537 eval "$as_ac_Header=$ac_header_preproc"
4539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4540 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4543 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4544 cat >>confdefs.h <<_ACEOF
4545 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4553 ac_cpp='$CXXCPP $CPPFLAGS'
4554 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4555 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4556 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4557 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4558 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4559 if test -z "$CXXCPP"; then
4560 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4561 echo $ECHO_N "(cached) $ECHO_C" >&6
4563 # Double quotes because CXXCPP needs to be expanded
4564 for CXXCPP in "$CXX -E" "/lib/cpp"
4567 for ac_cxx_preproc_warn_flag in '' yes
4569 # Use a header file that comes with gcc, so configuring glibc
4570 # with a fresh cross-compiler works.
4571 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4572 # <limits.h> exists even on freestanding compilers.
4573 # On the NeXT, cc -E runs the code through the compiler's parser,
4574 # not just through cpp. "Syntax error" is here to catch this case.
4575 cat >conftest.$ac_ext <<_ACEOF
4576 #line $LINENO "configure"
4579 cat confdefs.h >>conftest.$ac_ext
4580 cat >>conftest.$ac_ext <<_ACEOF
4581 /* end confdefs.h. */
4583 # include <limits.h>
4585 # include <assert.h>
4589 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4590 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4592 grep -v '^ *+' conftest.er1 >conftest.err
4594 cat conftest.err >&5
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); } >/dev/null; then
4597 if test -s conftest.err; then
4598 ac_cpp_err=$ac_cxx_preproc_warn_flag
4605 if test -z "$ac_cpp_err"; then
4608 echo "$as_me: failed program was:" >&5
4609 sed 's/^/| /' conftest.$ac_ext >&5
4611 # Broken: fails on valid input.
4614 rm -f conftest.err conftest.$ac_ext
4616 # OK, works on sane cases. Now check whether non-existent headers
4617 # can be detected and how.
4618 cat >conftest.$ac_ext <<_ACEOF
4619 #line $LINENO "configure"
4622 cat confdefs.h >>conftest.$ac_ext
4623 cat >>conftest.$ac_ext <<_ACEOF
4624 /* end confdefs.h. */
4625 #include <ac_nonexistent.h>
4627 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4628 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4630 grep -v '^ *+' conftest.er1 >conftest.err
4632 cat conftest.err >&5
4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); } >/dev/null; then
4635 if test -s conftest.err; then
4636 ac_cpp_err=$ac_cxx_preproc_warn_flag
4643 if test -z "$ac_cpp_err"; then
4644 # Broken: success on invalid input.
4647 echo "$as_me: failed program was:" >&5
4648 sed 's/^/| /' conftest.$ac_ext >&5
4650 # Passes both tests.
4654 rm -f conftest.err conftest.$ac_ext
4657 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4658 rm -f conftest.err conftest.$ac_ext
4659 if $ac_preproc_ok; then
4664 ac_cv_prog_CXXCPP=$CXXCPP
4667 CXXCPP=$ac_cv_prog_CXXCPP
4669 ac_cv_prog_CXXCPP=$CXXCPP
4671 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4672 echo "${ECHO_T}$CXXCPP" >&6
4674 for ac_cxx_preproc_warn_flag in '' yes
4676 # Use a header file that comes with gcc, so configuring glibc
4677 # with a fresh cross-compiler works.
4678 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4679 # <limits.h> exists even on freestanding compilers.
4680 # On the NeXT, cc -E runs the code through the compiler's parser,
4681 # not just through cpp. "Syntax error" is here to catch this case.
4682 cat >conftest.$ac_ext <<_ACEOF
4683 #line $LINENO "configure"
4686 cat confdefs.h >>conftest.$ac_ext
4687 cat >>conftest.$ac_ext <<_ACEOF
4688 /* end confdefs.h. */
4690 # include <limits.h>
4692 # include <assert.h>
4696 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4697 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4699 grep -v '^ *+' conftest.er1 >conftest.err
4701 cat conftest.err >&5
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); } >/dev/null; then
4704 if test -s conftest.err; then
4705 ac_cpp_err=$ac_cxx_preproc_warn_flag
4712 if test -z "$ac_cpp_err"; then
4715 echo "$as_me: failed program was:" >&5
4716 sed 's/^/| /' conftest.$ac_ext >&5
4718 # Broken: fails on valid input.
4721 rm -f conftest.err conftest.$ac_ext
4723 # OK, works on sane cases. Now check whether non-existent headers
4724 # can be detected and how.
4725 cat >conftest.$ac_ext <<_ACEOF
4726 #line $LINENO "configure"
4729 cat confdefs.h >>conftest.$ac_ext
4730 cat >>conftest.$ac_ext <<_ACEOF
4731 /* end confdefs.h. */
4732 #include <ac_nonexistent.h>
4734 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4735 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4737 grep -v '^ *+' conftest.er1 >conftest.err
4739 cat conftest.err >&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); } >/dev/null; then
4742 if test -s conftest.err; then
4743 ac_cpp_err=$ac_cxx_preproc_warn_flag
4750 if test -z "$ac_cpp_err"; then
4751 # Broken: success on invalid input.
4754 echo "$as_me: failed program was:" >&5
4755 sed 's/^/| /' conftest.$ac_ext >&5
4757 # Passes both tests.
4761 rm -f conftest.err conftest.$ac_ext
4764 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4765 rm -f conftest.err conftest.$ac_ext
4766 if $ac_preproc_ok; then
4769 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4770 See \`config.log' for more details." >&5
4771 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4772 See \`config.log' for more details." >&2;}
4773 { (exit 1); exit 1; }; }
4777 ac_cpp='$CXXCPP $CPPFLAGS'
4778 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4779 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4780 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4784 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4785 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4786 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4787 if test -n "$ac_tool_prefix"; then
4788 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4790 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4791 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4792 echo "$as_me:$LINENO: checking for $ac_word" >&5
4793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4794 if test "${ac_cv_prog_F77+set}" = set; then
4795 echo $ECHO_N "(cached) $ECHO_C" >&6
4797 if test -n "$F77"; then
4798 ac_cv_prog_F77="$F77" # Let the user override the test.
4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4804 test -z "$as_dir" && as_dir=.
4805 for ac_exec_ext in '' $ac_executable_extensions; do
4806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4807 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4817 if test -n "$F77"; then
4818 echo "$as_me:$LINENO: result: $F77" >&5
4819 echo "${ECHO_T}$F77" >&6
4821 echo "$as_me:$LINENO: result: no" >&5
4822 echo "${ECHO_T}no" >&6
4825 test -n "$F77" && break
4828 if test -z "$F77"; then
4830 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4832 # Extract the first word of "$ac_prog", so it can be a program name with args.
4833 set dummy $ac_prog; ac_word=$2
4834 echo "$as_me:$LINENO: checking for $ac_word" >&5
4835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4836 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4837 echo $ECHO_N "(cached) $ECHO_C" >&6
4839 if test -n "$ac_ct_F77"; then
4840 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846 test -z "$as_dir" && as_dir=.
4847 for ac_exec_ext in '' $ac_executable_extensions; do
4848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4849 ac_cv_prog_ac_ct_F77="$ac_prog"
4850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4858 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4859 if test -n "$ac_ct_F77"; then
4860 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4861 echo "${ECHO_T}$ac_ct_F77" >&6
4863 echo "$as_me:$LINENO: result: no" >&5
4864 echo "${ECHO_T}no" >&6
4867 test -n "$ac_ct_F77" && break
4874 # Provide some information about the compiler.
4875 echo "$as_me:4875:" \
4876 "checking for Fortran 77 compiler version" >&5
4877 ac_compiler=`set X $ac_compile; echo $2`
4878 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4879 (eval $ac_compiler --version </dev/null >&5) 2>&5
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); }
4883 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4884 (eval $ac_compiler -v </dev/null >&5) 2>&5
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); }
4888 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4889 (eval $ac_compiler -V </dev/null >&5) 2>&5
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); }
4894 # If we don't use `.F' as extension, the preprocessor is not run on the
4898 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4899 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4900 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4901 echo $ECHO_N "(cached) $ECHO_C" >&6
4903 cat >conftest.$ac_ext <<_ACEOF
4911 rm -f conftest.$ac_objext
4912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4913 (eval $ac_compile) 2>&5
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); } &&
4917 { ac_try='test -s conftest.$ac_objext'
4918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); }; }; then
4925 echo "$as_me: failed program was:" >&5
4926 sed 's/^/| /' conftest.$ac_ext >&5
4930 rm -f conftest.$ac_objext conftest.$ac_ext
4931 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4934 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4935 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4937 G77=`test $ac_compiler_gnu = yes && echo yes`
4938 ac_test_FFLAGS=${FFLAGS+set}
4939 ac_save_FFLAGS=$FFLAGS
4941 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4942 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4943 if test "${ac_cv_prog_f77_g+set}" = set; then
4944 echo $ECHO_N "(cached) $ECHO_C" >&6
4947 cat >conftest.$ac_ext <<_ACEOF
4952 rm -f conftest.$ac_objext
4953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4954 (eval $ac_compile) 2>&5
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); } &&
4958 { ac_try='test -s conftest.$ac_objext'
4959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 (exit $ac_status); }; }; then
4964 ac_cv_prog_f77_g=yes
4966 echo "$as_me: failed program was:" >&5
4967 sed 's/^/| /' conftest.$ac_ext >&5
4971 rm -f conftest.$ac_objext conftest.$ac_ext
4974 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4975 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4976 if test "$ac_test_FFLAGS" = set; then
4977 FFLAGS=$ac_save_FFLAGS
4978 elif test $ac_cv_prog_f77_g = yes; then
4979 if test "$G77" = yes; then
4985 if test "$G77" = yes; then
4992 ac_cpp='$CPP $CPPFLAGS'
4993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4999 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5001 # find the maximum length of command line arguments
5002 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5003 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5004 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5012 # On DJGPP, this test can blow up pretty badly due to problems in libc
5013 # (any single argument exceeding 2000 bytes causes a buffer overrun
5014 # during glob expansion). Even if it were fixed, the result of this
5015 # check would be larger than it should be.
5016 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5020 # Under GNU Hurd, this test is not required because there is
5021 # no limit to the length of command line arguments.
5022 # Libtool will interpret -1 as no limit whatsoever
5023 lt_cv_sys_max_cmd_len=-1;
5027 # On Win9x/ME, this test blows up -- it succeeds, but takes
5028 # about 5 minutes as the teststring grows exponentially.
5029 # Worse, since 9x/ME are not pre-emptively multitasking,
5030 # you end up with a "frozen" computer, even though with patience
5031 # the test eventually succeeds (with a max line length of 256k).
5032 # Instead, let's just punt: use the minimum linelength reported by
5033 # all of the supported platforms: 8192 (on NT/2K/XP).
5034 lt_cv_sys_max_cmd_len=8192;
5038 # If test is not a shell built-in, we'll probably end up computing a
5039 # maximum length that is only half of the actual maximum length, but
5041 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5042 = "XX$testring") >/dev/null 2>&1 &&
5043 new_result=`expr "X$testring" : ".*" 2>&1` &&
5044 lt_cv_sys_max_cmd_len=$new_result &&
5045 test $i != 17 # 1/2 MB should be enough
5048 testring=$testring$testring
5051 # Add a significant safety factor because C++ compilers can tack on massive
5052 # amounts of additional arguments before passing them to the linker.
5053 # It appears as though 1/2 is a usable value.
5054 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5060 if test -n $lt_cv_sys_max_cmd_len ; then
5061 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5062 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5064 echo "$as_me:$LINENO: result: none" >&5
5065 echo "${ECHO_T}none" >&6
5071 # Check for command to grab the raw symbol name followed by C symbol from nm.
5072 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5073 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5074 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5075 echo $ECHO_N "(cached) $ECHO_C" >&6
5078 # These are sane defaults that work on at least a few old systems.
5079 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5081 # Character class describing NM global symbol codes.
5082 symcode='[BCDEGRST]'
5084 # Regexp to match symbols that can be accessed directly from C.
5085 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5087 # Transform the above into a raw symbol and a C symbol.
5088 symxfrm='\1 \2\3 \3'
5090 # Transform an extracted symbol line into a proper C declaration
5091 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5093 # Transform an extracted symbol line into symbol name and symbol address
5094 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'"
5096 # Define system-specific variables.
5101 cygwin* | mingw* | pw32*)
5102 symcode='[ABCDGISTW]'
5104 hpux*) # Its linker distinguishes data from code symbols
5105 if test "$host_cpu" = ia64; then
5106 symcode='[ABCDEGRST]'
5108 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5109 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'"
5112 symcode='[BCDEGRST]'
5115 symcode='[BCDEGQRST]'
5125 # Handle CRLF in mingw tool chain
5129 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5133 # If we're using GNU nm, then use its standard symbol codes.
5134 case `$NM -V 2>&1` in
5135 *GNU* | *'with BFD'*)
5136 symcode='[ABCDGISTW]' ;;
5139 # Try without a prefix undercore, then with it.
5140 for ac_symprfx in "" "_"; do
5142 # Write the raw and C identifiers.
5143 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5145 # Check to see that the pipe works correctly.
5149 cat > conftest.$ac_ext <<EOF
5154 void nm_test_func(){}
5158 int main(){nm_test_var='a';nm_test_func();return(0);}
5161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5162 (eval $ac_compile) 2>&5
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); }; then
5166 # Now try to grab the symbols.
5168 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5169 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); } && test -s "$nlist"; then
5173 # Try sorting and uniquifying the output.
5174 if sort "$nlist" | uniq > "$nlist"T; then
5175 mv -f "$nlist"T "$nlist"
5180 # Make sure that we snagged all the symbols we need.
5181 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5182 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5183 cat <<EOF > conftest.$ac_ext
5189 # Now generate the symbol file.
5190 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5192 cat <<EOF >> conftest.$ac_ext
5193 #if defined (__STDC__) && __STDC__
5194 # define lt_ptr_t void *
5196 # define lt_ptr_t char *
5200 /* The mapping between symbol names and symbols. */
5205 lt_preloaded_symbols[] =
5208 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5209 cat <<\EOF >> conftest.$ac_ext
5217 # Now try linking the two files.
5218 mv conftest.$ac_objext conftstm.$ac_objext
5219 lt_save_LIBS="$LIBS"
5220 lt_save_CFLAGS="$CFLAGS"
5221 LIBS="conftstm.$ac_objext"
5222 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5224 (eval $ac_link) 2>&5
5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5230 LIBS="$lt_save_LIBS"
5231 CFLAGS="$lt_save_CFLAGS"
5233 echo "cannot find nm_test_func in $nlist" >&5
5236 echo "cannot find nm_test_var in $nlist" >&5
5239 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5242 echo "$progname: failed program was:" >&5
5243 cat conftest.$ac_ext >&5
5245 rm -f conftest* conftst*
5247 # Do not use the global_symbol_pipe unless it works.
5248 if test "$pipe_works" = yes; then
5251 lt_cv_sys_global_symbol_pipe=
5257 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5258 lt_cv_sys_global_symbol_to_cdecl=
5260 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5261 echo "$as_me:$LINENO: result: failed" >&5
5262 echo "${ECHO_T}failed" >&6
5264 echo "$as_me:$LINENO: result: ok" >&5
5265 echo "${ECHO_T}ok" >&6
5268 echo "$as_me:$LINENO: checking for objdir" >&5
5269 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5270 if test "${lt_cv_objdir+set}" = set; then
5271 echo $ECHO_N "(cached) $ECHO_C" >&6
5273 rm -f .libs 2>/dev/null
5274 mkdir .libs 2>/dev/null
5275 if test -d .libs; then
5278 # MS-DOS does not allow filenames that begin with a dot.
5281 rmdir .libs 2>/dev/null
5283 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5284 echo "${ECHO_T}$lt_cv_objdir" >&6
5285 objdir=$lt_cv_objdir
5293 # AIX sometimes has problems with the GCC collect2 program. For some
5294 # reason, if we set the COLLECT_NAMES environment variable, the problems
5295 # vanish in a puff of smoke.
5296 if test "X${COLLECT_NAMES+set}" != Xset; then
5298 export COLLECT_NAMES
5303 # Sed substitution that helps us do robust quoting. It backslashifies
5304 # metacharacters that are still active within double-quoted strings.
5305 Xsed='sed -e s/^X//'
5306 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5308 # Same as above, but do not quote variable references.
5309 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5311 # Sed substitution to delay expansion of an escaped shell variable in a
5312 # double_quote_subst'ed string.
5313 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5315 # Sed substitution to undo escaping of the cmd sep variable
5316 unescape_variable_subst='s/\\\(${_S_}\)/\1/g'
5318 # Sed substitution to avoid accidental globbing in evaled expressions
5319 no_glob_subst='s/\*/\\\*/g'
5325 default_ofile=libtool
5326 can_build_shared=yes
5328 # All known linkers require a `.a' archive for static linking (except M$VC,
5329 # which needs '.lib').
5331 ltmain="$ac_aux_dir/ltmain.sh"
5332 ofile="$default_ofile"
5333 with_gnu_ld="$lt_cv_prog_gnu_ld"
5335 if test -n "$ac_tool_prefix"; then
5336 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5337 set dummy ${ac_tool_prefix}ar; ac_word=$2
5338 echo "$as_me:$LINENO: checking for $ac_word" >&5
5339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5340 if test "${ac_cv_prog_AR+set}" = set; then
5341 echo $ECHO_N "(cached) $ECHO_C" >&6
5343 if test -n "$AR"; then
5344 ac_cv_prog_AR="$AR" # Let the user override the test.
5346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350 test -z "$as_dir" && as_dir=.
5351 for ac_exec_ext in '' $ac_executable_extensions; do
5352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5353 ac_cv_prog_AR="${ac_tool_prefix}ar"
5354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5363 if test -n "$AR"; then
5364 echo "$as_me:$LINENO: result: $AR" >&5
5365 echo "${ECHO_T}$AR" >&6
5367 echo "$as_me:$LINENO: result: no" >&5
5368 echo "${ECHO_T}no" >&6
5372 if test -z "$ac_cv_prog_AR"; then
5374 # Extract the first word of "ar", so it can be a program name with args.
5375 set dummy ar; ac_word=$2
5376 echo "$as_me:$LINENO: checking for $ac_word" >&5
5377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5378 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5379 echo $ECHO_N "(cached) $ECHO_C" >&6
5381 if test -n "$ac_ct_AR"; then
5382 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388 test -z "$as_dir" && as_dir=.
5389 for ac_exec_ext in '' $ac_executable_extensions; do
5390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5391 ac_cv_prog_ac_ct_AR="ar"
5392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5398 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5401 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5402 if test -n "$ac_ct_AR"; then
5403 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5404 echo "${ECHO_T}$ac_ct_AR" >&6
5406 echo "$as_me:$LINENO: result: no" >&5
5407 echo "${ECHO_T}no" >&6
5415 if test -n "$ac_tool_prefix"; then
5416 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5417 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5418 echo "$as_me:$LINENO: checking for $ac_word" >&5
5419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5420 if test "${ac_cv_prog_RANLIB+set}" = set; then
5421 echo $ECHO_N "(cached) $ECHO_C" >&6
5423 if test -n "$RANLIB"; then
5424 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430 test -z "$as_dir" && as_dir=.
5431 for ac_exec_ext in '' $ac_executable_extensions; do
5432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5433 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5442 RANLIB=$ac_cv_prog_RANLIB
5443 if test -n "$RANLIB"; then
5444 echo "$as_me:$LINENO: result: $RANLIB" >&5
5445 echo "${ECHO_T}$RANLIB" >&6
5447 echo "$as_me:$LINENO: result: no" >&5
5448 echo "${ECHO_T}no" >&6
5452 if test -z "$ac_cv_prog_RANLIB"; then
5453 ac_ct_RANLIB=$RANLIB
5454 # Extract the first word of "ranlib", so it can be a program name with args.
5455 set dummy ranlib; ac_word=$2
5456 echo "$as_me:$LINENO: checking for $ac_word" >&5
5457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5458 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5459 echo $ECHO_N "(cached) $ECHO_C" >&6
5461 if test -n "$ac_ct_RANLIB"; then
5462 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468 test -z "$as_dir" && as_dir=.
5469 for ac_exec_ext in '' $ac_executable_extensions; do
5470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5471 ac_cv_prog_ac_ct_RANLIB="ranlib"
5472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5478 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5481 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5482 if test -n "$ac_ct_RANLIB"; then
5483 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5484 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5486 echo "$as_me:$LINENO: result: no" >&5
5487 echo "${ECHO_T}no" >&6
5490 RANLIB=$ac_ct_RANLIB
5492 RANLIB="$ac_cv_prog_RANLIB"
5495 if test -n "$ac_tool_prefix"; then
5496 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5497 set dummy ${ac_tool_prefix}strip; ac_word=$2
5498 echo "$as_me:$LINENO: checking for $ac_word" >&5
5499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5500 if test "${ac_cv_prog_STRIP+set}" = set; then
5501 echo $ECHO_N "(cached) $ECHO_C" >&6
5503 if test -n "$STRIP"; then
5504 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5510 test -z "$as_dir" && as_dir=.
5511 for ac_exec_ext in '' $ac_executable_extensions; do
5512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5513 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5522 STRIP=$ac_cv_prog_STRIP
5523 if test -n "$STRIP"; then
5524 echo "$as_me:$LINENO: result: $STRIP" >&5
5525 echo "${ECHO_T}$STRIP" >&6
5527 echo "$as_me:$LINENO: result: no" >&5
5528 echo "${ECHO_T}no" >&6
5532 if test -z "$ac_cv_prog_STRIP"; then
5534 # Extract the first word of "strip", so it can be a program name with args.
5535 set dummy strip; ac_word=$2
5536 echo "$as_me:$LINENO: checking for $ac_word" >&5
5537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5538 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5539 echo $ECHO_N "(cached) $ECHO_C" >&6
5541 if test -n "$ac_ct_STRIP"; then
5542 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548 test -z "$as_dir" && as_dir=.
5549 for ac_exec_ext in '' $ac_executable_extensions; do
5550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5551 ac_cv_prog_ac_ct_STRIP="strip"
5552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5558 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5561 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5562 if test -n "$ac_ct_STRIP"; then
5563 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5564 echo "${ECHO_T}$ac_ct_STRIP" >&6
5566 echo "$as_me:$LINENO: result: no" >&5
5567 echo "${ECHO_T}no" >&6
5572 STRIP="$ac_cv_prog_STRIP"
5577 old_CFLAGS="$CFLAGS"
5579 # Set sane defaults for various variables
5580 test -z "$AR" && AR=ar
5581 test -z "$AR_FLAGS" && AR_FLAGS=cru
5582 test -z "$AS" && AS=as
5583 test -z "$CC" && CC=cc
5584 test -z "$LTCC" && LTCC=$CC
5585 test -z "$DLLTOOL" && DLLTOOL=dlltool
5586 test -z "$LD" && LD=ld
5587 test -z "$LN_S" && LN_S="ln -s"
5588 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5589 test -z "$NM" && NM=nm
5590 test -z "$SED" && SED=sed
5591 test -z "$OBJDUMP" && OBJDUMP=objdump
5592 test -z "$RANLIB" && RANLIB=:
5593 test -z "$STRIP" && STRIP=:
5594 test -z "$ac_objext" && ac_objext=o
5596 # Determine commands to create old-style static archives.
5597 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5598 old_postinstall_cmds='chmod 644 $oldlib'
5599 old_postuninstall_cmds=
5601 if test -n "$RANLIB"; then
5604 old_postinstall_cmds="\$RANLIB -t \$oldlib\${_S_}$old_postinstall_cmds"
5607 old_postinstall_cmds="\$RANLIB \$oldlib\${_S_}$old_postinstall_cmds"
5610 old_archive_cmds="$old_archive_cmds\${_S_}\$RANLIB \$oldlib"
5613 # Only perform the check for file, if the check method requires it
5614 case $deplibs_check_method in
5616 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5617 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5618 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5619 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5620 echo $ECHO_N "(cached) $ECHO_C" >&6
5624 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5627 lt_save_MAGIC_CMD="$MAGIC_CMD"
5628 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5629 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5630 for ac_dir in $ac_dummy; do
5632 test -z "$ac_dir" && ac_dir=.
5633 if test -f $ac_dir/${ac_tool_prefix}file; then
5634 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5635 if test -n "$file_magic_test_file"; then
5636 case $deplibs_check_method in
5638 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5639 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5640 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5641 $EGREP "$file_magic_regex" > /dev/null; then
5646 *** Warning: the command libtool uses to detect shared libraries,
5647 *** $file_magic_cmd, produces output that libtool cannot recognize.
5648 *** The result is that libtool may fail to recognize shared libraries
5649 *** as such. This will affect the creation of libtool libraries that
5650 *** depend on shared libraries, but programs linked with such libtool
5651 *** libraries will work regardless of this problem. Nevertheless, you
5652 *** may want to report the problem to your system manager and/or to
5653 *** bug-libtool@gnu.org
5663 MAGIC_CMD="$lt_save_MAGIC_CMD"
5668 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5669 if test -n "$MAGIC_CMD"; then
5670 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5671 echo "${ECHO_T}$MAGIC_CMD" >&6
5673 echo "$as_me:$LINENO: result: no" >&5
5674 echo "${ECHO_T}no" >&6
5677 if test -z "$lt_cv_path_MAGIC_CMD"; then
5678 if test -n "$ac_tool_prefix"; then
5679 echo "$as_me:$LINENO: checking for file" >&5
5680 echo $ECHO_N "checking for file... $ECHO_C" >&6
5681 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5682 echo $ECHO_N "(cached) $ECHO_C" >&6
5686 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5689 lt_save_MAGIC_CMD="$MAGIC_CMD"
5690 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5691 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5692 for ac_dir in $ac_dummy; do
5694 test -z "$ac_dir" && ac_dir=.
5695 if test -f $ac_dir/file; then
5696 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5697 if test -n "$file_magic_test_file"; then
5698 case $deplibs_check_method in
5700 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5701 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5702 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5703 $EGREP "$file_magic_regex" > /dev/null; then
5708 *** Warning: the command libtool uses to detect shared libraries,
5709 *** $file_magic_cmd, produces output that libtool cannot recognize.
5710 *** The result is that libtool may fail to recognize shared libraries
5711 *** as such. This will affect the creation of libtool libraries that
5712 *** depend on shared libraries, but programs linked with such libtool
5713 *** libraries will work regardless of this problem. Nevertheless, you
5714 *** may want to report the problem to your system manager and/or to
5715 *** bug-libtool@gnu.org
5725 MAGIC_CMD="$lt_save_MAGIC_CMD"
5730 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5731 if test -n "$MAGIC_CMD"; then
5732 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5733 echo "${ECHO_T}$MAGIC_CMD" >&6
5735 echo "$as_me:$LINENO: result: no" >&5
5736 echo "${ECHO_T}no" >&6
5751 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5752 if test "${enable_libtool_lock+set}" = set; then
5753 enableval="$enable_libtool_lock"
5756 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5759 # Check whether --with-pic or --without-pic was given.
5760 if test "${with_pic+set}" = set; then
5766 test -z "$pic_mode" && pic_mode=default
5768 # Use C for the default configuration in the libtool script
5772 ac_cpp='$CPP $CPPFLAGS'
5773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5778 # Source file extension for C test sources.
5781 # Object file extension for compiled C test sources.
5785 # Code to be used in simple compile tests
5786 lt_simple_compile_test_code="int some_variable = 0;\n"
5788 # Code to be used in simple link tests
5789 lt_simple_link_test_code='int main(){return(0);}\n'
5792 # If no C compiler was specified, use CC.
5795 # Allow CC to be a program name with arguments.
5800 # Check for any special shared library compilation flags.
5803 if test "$GCC" = no; then
5806 lt_prog_cc_shlib='-belf'
5810 if test -n "$lt_prog_cc_shlib"; then
5811 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5812 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5813 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5815 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5816 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5817 lt_cv_prog_cc_can_build_shared=no
5823 # Check to make sure the static flag actually works.
5825 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5826 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5827 if test "${lt_prog_compiler_static_works+set}" = set; then
5828 echo $ECHO_N "(cached) $ECHO_C" >&6
5830 lt_prog_compiler_static_works=no
5831 save_LDFLAGS="$LDFLAGS"
5832 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5833 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5834 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5835 # The compiler can only warn and ignore the option if not recognized
5836 # So say no if there are warnings
5837 if test -s conftest.err; then
5838 # Append any errors to the config.log.
5839 cat conftest.err 1>&5
5841 lt_prog_compiler_static_works=yes
5845 LDFLAGS="$save_LDFLAGS"
5848 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5849 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5851 if test x"$lt_prog_compiler_static_works" = xyes; then
5854 lt_prog_compiler_static=
5860 lt_prog_compiler_no_builtin_flag=
5862 if test "$GCC" = yes; then
5863 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5865 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5866 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5867 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5868 echo $ECHO_N "(cached) $ECHO_C" >&6
5870 lt_cv_prog_compiler_rtti_exceptions=no
5871 ac_outfile=conftest.$ac_objext
5872 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5873 lt_compiler_flag="-fno-rtti -fno-exceptions"
5874 # Insert the option either (1) after the last *FLAGS variable, or
5875 # (2) before a word containing "conftest.", or (3) at the end.
5876 # Note that $ac_compile itself does not contain backslashes and begins
5877 # with a dollar sign (not a hyphen), so the echo should work correctly.
5878 # The option is referenced via a variable to avoid confusing sed.
5879 lt_compile=`echo "$ac_compile" | $SED \
5880 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5881 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5882 -e 's:$: $lt_compiler_flag:'`
5883 (eval echo "\"\$as_me:5883: $lt_compile\"" >&5)
5884 (eval "$lt_compile" 2>conftest.err)
5886 cat conftest.err >&5
5887 echo "$as_me:5887: \$? = $ac_status" >&5
5888 if (exit $ac_status) && test -s "$ac_outfile"; then
5889 # The compiler can only warn and ignore the option if not recognized
5890 # So say no if there are warnings
5891 if test ! -s conftest.err; then
5892 lt_cv_prog_compiler_rtti_exceptions=yes
5898 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5899 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5901 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5902 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5909 lt_prog_compiler_wl=
5910 lt_prog_compiler_pic=
5911 lt_prog_compiler_static=
5913 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5914 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5916 if test "$GCC" = yes; then
5917 lt_prog_compiler_wl='-Wl,'
5918 lt_prog_compiler_static='-static'
5922 # All AIX code is PIC.
5923 if test "$host_cpu" = ia64; then
5924 # AIX 5 now supports IA64 processor
5925 lt_prog_compiler_static='-Bstatic'
5930 # FIXME: we need at least 68020 code to build shared libraries, but
5931 # adding the `-m68020' flag to GCC prevents building anything better,
5933 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5936 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5937 # PIC is the default for these OSes.
5940 mingw* | pw32* | os2*)
5941 # This hack is so that the source file can tell whether it is being
5942 # built for inclusion in a dll (and should export symbols for example).
5943 lt_prog_compiler_pic='-DDLL_EXPORT'
5946 darwin* | rhapsody*)
5947 # PIC is the default on this platform
5948 # Common symbols not allowed in MH_DYLIB files
5949 lt_prog_compiler_pic='-fno-common'
5953 # Just because we use GCC doesn't mean we suddenly get shared libraries
5954 # on systems that don't support them.
5955 lt_prog_compiler_can_build_shared=no
5960 if test -d /usr/nec; then
5961 lt_prog_compiler_pic=-Kconform_pic
5966 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5973 lt_prog_compiler_pic='-fPIC'
5979 lt_prog_compiler_pic='-fPIC'
5983 # PORTME Check for flag to pass linker flags through the system compiler.
5986 lt_prog_compiler_wl='-Wl,'
5987 if test "$host_cpu" = ia64; then
5988 # AIX 5 now supports IA64 processor
5989 lt_prog_compiler_static='-Bstatic'
5991 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5995 mingw* | pw32* | os2*)
5996 # This hack is so that the source file can tell whether it is being
5997 # built for inclusion in a dll (and should export symbols for example).
5998 lt_prog_compiler_pic='-DDLL_EXPORT'
6001 hpux9* | hpux10* | hpux11*)
6002 lt_prog_compiler_wl='-Wl,'
6003 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6010 lt_prog_compiler_pic='+Z'
6013 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6014 lt_prog_compiler_static='${wl}-a ${wl}archive'
6017 irix5* | irix6* | nonstopux*)
6018 lt_prog_compiler_wl='-Wl,'
6019 # PIC (with -KPIC) is the default.
6020 lt_prog_compiler_static='-non_shared'
6024 lt_prog_compiler_pic='-KPIC'
6025 lt_prog_compiler_static='-Bstatic'
6031 lt_prog_compiler_wl='-Wl,'
6032 lt_prog_compiler_pic='-KPIC'
6033 lt_prog_compiler_static='-static'
6036 lt_prog_compiler_wl='-Wl,'
6037 # All Alpha code is PIC.
6038 lt_prog_compiler_static='-non_shared'
6043 osf3* | osf4* | osf5*)
6044 lt_prog_compiler_wl='-Wl,'
6045 # All OSF/1 code is PIC.
6046 lt_prog_compiler_static='-non_shared'
6050 lt_prog_compiler_pic='-Kpic'
6051 lt_prog_compiler_static='-dn'
6055 lt_prog_compiler_wl='-Wl,'
6056 lt_prog_compiler_pic='-KPIC'
6057 lt_prog_compiler_static='-Bstatic'
6061 lt_prog_compiler_wl='-Qoption ld '
6062 lt_prog_compiler_pic='-PIC'
6063 lt_prog_compiler_static='-Bstatic'
6066 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6067 lt_prog_compiler_wl='-Wl,'
6068 lt_prog_compiler_pic='-KPIC'
6069 lt_prog_compiler_static='-Bstatic'
6073 if test -d /usr/nec ;then
6074 lt_prog_compiler_pic='-Kconform_pic'
6075 lt_prog_compiler_static='-Bstatic'
6080 lt_prog_compiler_pic='-pic'
6081 lt_prog_compiler_static='-Bstatic'
6085 lt_prog_compiler_can_build_shared=no
6090 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6091 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6094 # Check to make sure the PIC flag actually works.
6096 if test -n "$lt_prog_compiler_pic"; then
6097 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6098 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6099 if test "${lt_prog_compiler_pic_works+set}" = set; then
6100 echo $ECHO_N "(cached) $ECHO_C" >&6
6102 lt_prog_compiler_pic_works=no
6103 ac_outfile=conftest.$ac_objext
6104 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6105 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6106 # Insert the option either (1) after the last *FLAGS variable, or
6107 # (2) before a word containing "conftest.", or (3) at the end.
6108 # Note that $ac_compile itself does not contain backslashes and begins
6109 # with a dollar sign (not a hyphen), so the echo should work correctly.
6110 # The option is referenced via a variable to avoid confusing sed.
6111 lt_compile=`echo "$ac_compile" | $SED \
6112 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6113 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6114 -e 's:$: $lt_compiler_flag:'`
6115 (eval echo "\"\$as_me:6115: $lt_compile\"" >&5)
6116 (eval "$lt_compile" 2>conftest.err)
6118 cat conftest.err >&5
6119 echo "$as_me:6119: \$? = $ac_status" >&5
6120 if (exit $ac_status) && test -s "$ac_outfile"; then
6121 # The compiler can only warn and ignore the option if not recognized
6122 # So say no if there are warnings
6123 if test ! -s conftest.err; then
6124 lt_prog_compiler_pic_works=yes
6130 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6131 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6133 if test x"$lt_prog_compiler_pic_works" = xyes; then
6134 case $lt_prog_compiler_pic in
6136 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6139 lt_prog_compiler_pic=
6140 lt_prog_compiler_can_build_shared=no
6145 # For platforms which do not support PIC, -DPIC is meaningless:
6147 lt_prog_compiler_pic=
6150 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6154 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6155 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6156 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
6159 lt_cv_prog_compiler_c_o=no
6160 $rm -r conftest 2>/dev/null
6164 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6166 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6167 # that will create temporary files in the current directory regardless of
6168 # the output directory. Thus, making CWD read-only will cause this test
6169 # to fail, enabling locking or at least warning the user not to do parallel
6173 lt_compiler_flag="-o out/conftest2.$ac_objext"
6174 # Insert the option either (1) after the last *FLAGS variable, or
6175 # (2) before a word containing "conftest.", or (3) at the end.
6176 # Note that $ac_compile itself does not contain backslashes and begins
6177 # with a dollar sign (not a hyphen), so the echo should work correctly.
6178 lt_compile=`echo "$ac_compile" | $SED \
6179 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6180 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6181 -e 's:$: $lt_compiler_flag:'`
6182 (eval echo "\"\$as_me:6182: $lt_compile\"" >&5)
6183 (eval "$lt_compile" 2>out/conftest.err)
6185 cat out/conftest.err >&5
6186 echo "$as_me:6186: \$? = $ac_status" >&5
6187 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6189 # The compiler can only warn and ignore the option if not recognized
6190 # So say no if there are warnings
6191 if test ! -s out/conftest.err; then
6192 lt_cv_prog_compiler_c_o=yes
6203 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6204 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6207 hard_links="nottested"
6208 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6209 # do not overwrite the value of need_locks provided by the user
6210 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6211 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6214 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6216 ln conftest.a conftest.b 2>&5 || hard_links=no
6217 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6218 echo "$as_me:$LINENO: result: $hard_links" >&5
6219 echo "${ECHO_T}$hard_links" >&6
6220 if test "$hard_links" = no; then
6221 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6222 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6229 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6230 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6233 allow_undefined_flag=
6234 enable_shared_with_static_runtimes=no
6236 archive_expsym_cmds=
6237 old_archive_From_new_cmds=
6238 old_archive_from_expsyms_cmds=
6239 export_dynamic_flag_spec=
6240 whole_archive_flag_spec=
6241 thread_safe_flag_spec=
6242 hardcode_libdir_flag_spec=
6243 hardcode_libdir_flag_spec_ld=
6244 hardcode_libdir_separator=
6247 hardcode_shlibpath_var=unsupported
6248 link_all_deplibs=unknown
6249 hardcode_automatic=no
6252 always_export_symbols=no
6253 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6254 # include_expsyms should be a list of space-separated symbols to be *always*
6255 # included in the symbol list
6257 # exclude_expsyms can be an extended regexp of symbols to exclude
6258 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6259 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6260 # as well as any symbol that contains `d'.
6261 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6262 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6263 # platforms (ab)use it in PIC code, but their linkers get confused if
6264 # the symbol is explicitly referenced. Since portable code cannot
6265 # rely on this symbol name, it's probably fine to never include it in
6266 # preloaded symbol tables.
6267 extract_expsyms_cmds=
6270 cygwin* | mingw* | pw32*)
6271 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6272 # When not using gcc, we currently assume that we are using
6273 # Microsoft Visual C++.
6274 if test "$GCC" != yes; then
6284 if test "$with_gnu_ld" = yes; then
6285 # If archive_cmds runs LD, not CC, wlarc should be empty
6288 # See if GNU ld supports shared libraries.
6290 aix3* | aix4* | aix5*)
6291 # On AIX/PPC, the GNU linker is very broken
6292 if test "$host_cpu" != ia64; then
6296 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6297 *** to be unable to reliably create shared libraries on AIX.
6298 *** Therefore, libtool is disabling shared libraries support. If you
6299 *** really care for shared libraries, you may want to modify your PATH
6300 *** so that a non-GNU linker is found, and then restart.
6307 archive_cmds='$rm $output_objdir/a2ixlibrary.data${_S_}$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data${_S_}$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data${_S_}$AR $AR_FLAGS $lib $libobjs${_S_}$RANLIB $lib${_S_}(cd $output_objdir && a2ixlibrary -32)'
6308 hardcode_libdir_flag_spec='-L$libdir'
6309 hardcode_minus_L=yes
6311 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6312 # that the semantics of dynamic libraries on AmigaOS, at least up
6313 # to version 4, is to share data among multiple programs linked
6314 # with the same dynamic library. Since this doesn't match the
6315 # behavior of shared libraries on other platforms, we can't use
6321 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6322 allow_undefined_flag=unsupported
6323 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6324 # support --undefined. This deserves some investigation. FIXME
6325 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6331 cygwin* | mingw* | pw32*)
6332 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6333 # as there is no search path for DLLs.
6334 hardcode_libdir_flag_spec='-L$libdir'
6335 allow_undefined_flag=unsupported
6336 always_export_symbols=no
6337 enable_shared_with_static_runtimes=yes
6338 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6340 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6341 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6342 # If the export-symbols file already is a .def file (1st line
6343 # is EXPORTS), use it as is; otherwise, prepend...
6344 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6345 cp $export_symbols $output_objdir/$soname.def;
6347 echo EXPORTS > $output_objdir/$soname.def;
6348 cat $export_symbols >> $output_objdir/$soname.def;
6350 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6357 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6358 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6361 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6362 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6367 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6371 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6372 *** create shared libraries on Solaris systems. Therefore, libtool
6373 *** is disabling shared libraries support. We urge you to upgrade GNU
6374 *** binutils to release 2.9.1 or newer. Another option is to modify
6375 *** your PATH or compiler configuration so that the native linker is
6376 *** used, and then restart.
6379 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6380 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6381 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6388 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6391 hardcode_shlibpath_var=no
6395 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6396 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6397 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6404 if test "$ld_shlibs" = yes; then
6405 runpath_var=LD_RUN_PATH
6406 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6407 export_dynamic_flag_spec='${wl}--export-dynamic'
6408 # ancient GNU ld didn't support --whole-archive et. al.
6409 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6410 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6412 whole_archive_flag_spec=
6416 # PORTME fill in a description of your system's linker (not GNU ld)
6419 allow_undefined_flag=unsupported
6420 always_export_symbols=yes
6421 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE${_S_}$AR $AR_FLAGS $lib $output_objdir/$soname'
6422 # Note: this linker hardcodes the directories in LIBPATH if there
6423 # are no directories specified by -L.
6424 hardcode_minus_L=yes
6425 if test "$GCC" = yes && test -z "$link_static_flag"; then
6426 # Neither direct hardcoding nor static linking is supported with a
6428 hardcode_direct=unsupported
6433 if test "$host_cpu" = ia64; then
6434 # On IA64, the linker does run time linking by default, so we don't
6435 # have to do anything special.
6436 aix_use_runtimelinking=no
6437 exp_sym_flag='-Bexport'
6440 # If we're using GNU nm, then we don't want the "-C" option.
6441 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6442 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6443 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'
6445 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'
6447 aix_use_runtimelinking=no
6449 # Test if we are trying to use run time linking or normal
6450 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6451 # need to do runtime linking.
6452 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6453 for ld_flag in $LDFLAGS; do
6454 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6455 aix_use_runtimelinking=yes
6461 exp_sym_flag='-bexport'
6462 no_entry_flag='-bnoentry'
6465 # When large executables or shared objects are built, AIX ld can
6466 # have problems creating the table of contents. If linking a library
6467 # or program results in "error TOC overflow" add -mminimal-toc to
6468 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6469 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6473 hardcode_libdir_separator=':'
6474 link_all_deplibs=yes
6476 if test "$GCC" = yes; then
6477 case $host_os in aix4.012|aix4.012.*)
6478 # We only want to do this on AIX 4.2 and lower, the check
6479 # below for broken collect2 doesn't work under 4.3+
6480 collect2name=`${CC} -print-prog-name=collect2`
6481 if test -f "$collect2name" && \
6482 strings "$collect2name" | grep resolve_lib_name >/dev/null
6484 # We have reworked collect2
6487 # We have old collect2
6488 hardcode_direct=unsupported
6489 # It fails to find uninstalled libraries when the uninstalled
6490 # path is not listed in the libpath. Setting hardcode_minus_L
6491 # to unsupported forces relinking
6492 hardcode_minus_L=yes
6493 hardcode_libdir_flag_spec='-L$libdir'
6494 hardcode_libdir_separator=
6497 shared_flag='-shared'
6500 if test "$host_cpu" = ia64; then
6501 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6502 # chokes on -Wl,-G. The following line is correct:
6505 if test "$aix_use_runtimelinking" = yes; then
6506 shared_flag='${wl}-G'
6508 shared_flag='${wl}-bM:SRE'
6513 # It seems that -bexpall does not export symbols beginning with
6514 # underscore (_), so it is better to generate a list of symbols to export.
6515 always_export_symbols=yes
6516 if test "$aix_use_runtimelinking" = yes; then
6517 # Warning - without using the other runtime loading flags (-brtl),
6518 # -berok will link without error, but may produce a broken library.
6519 allow_undefined_flag='-berok'
6520 # Determine the default libpath from the value encoded in an empty executable.
6521 cat >conftest.$ac_ext <<_ACEOF
6522 #line $LINENO "configure"
6525 cat confdefs.h >>conftest.$ac_ext
6526 cat >>conftest.$ac_ext <<_ACEOF
6527 /* end confdefs.h. */
6537 rm -f conftest.$ac_objext conftest$ac_exeext
6538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6539 (eval $ac_link) 2>&5
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); } &&
6543 { ac_try='test -s conftest$ac_exeext'
6544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); }; }; then
6550 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6552 # Check for a 64-bit object if we didn't find anything.
6553 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; }
6556 echo "$as_me: failed program was:" >&5
6557 sed 's/^/| /' conftest.$ac_ext >&5
6560 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6561 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6563 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6564 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"
6566 if test "$host_cpu" = ia64; then
6567 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6568 allow_undefined_flag="-z nodefs"
6569 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"
6571 # Determine the default libpath from the value encoded in an empty executable.
6572 cat >conftest.$ac_ext <<_ACEOF
6573 #line $LINENO "configure"
6576 cat confdefs.h >>conftest.$ac_ext
6577 cat >>conftest.$ac_ext <<_ACEOF
6578 /* end confdefs.h. */
6588 rm -f conftest.$ac_objext conftest$ac_exeext
6589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6590 (eval $ac_link) 2>&5
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); } &&
6594 { ac_try='test -s conftest$ac_exeext'
6595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); }; }; then
6601 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6603 # Check for a 64-bit object if we didn't find anything.
6604 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; }
6607 echo "$as_me: failed program was:" >&5
6608 sed 's/^/| /' conftest.$ac_ext >&5
6611 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6612 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6614 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6615 # Warning - without using the other run time loading flags,
6616 # -berok will link without error, but may produce a broken library.
6617 no_undefined_flag=' ${wl}-bernotok'
6618 allow_undefined_flag=' ${wl}-berok'
6619 # -bexpall does not export symbols beginning with underscore (_)
6620 always_export_symbols=yes
6621 # Exported symbols can be pulled into shared objects from archives
6622 whole_archive_flag_spec=' '
6623 archive_cmds_need_lc=yes
6624 # This is similar to how AIX traditionally builds it's shared libraries.
6625 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}\${_S_}$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6631 archive_cmds='$rm $output_objdir/a2ixlibrary.data${_S_}$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data${_S_}$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data${_S_}$AR $AR_FLAGS $lib $libobjs${_S_}$RANLIB $lib${_S_}(cd $output_objdir && a2ixlibrary -32)'
6632 hardcode_libdir_flag_spec='-L$libdir'
6633 hardcode_minus_L=yes
6634 # see comment about different semantics on the GNU ld section
6639 export_dynamic_flag_spec=-rdynamic
6642 cygwin* | mingw* | pw32*)
6643 # When not using gcc, we currently assume that we are using
6644 # Microsoft Visual C++.
6645 # hardcode_libdir_flag_spec is actually meaningless, as there is
6646 # no search path for DLLs.
6647 hardcode_libdir_flag_spec=' '
6648 allow_undefined_flag=unsupported
6649 # Tell ltmain to make .lib files, not .a files.
6651 # Tell ltmain to make .dll files, not .so files.
6653 # FIXME: Setting linknames here is a bad hack.
6654 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll${_S_}linknames='
6655 # The linker will automatically build a .lib file if we build a DLL.
6656 old_archive_From_new_cmds='true'
6657 # FIXME: Should let the user specify the lib program.
6658 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6659 fix_srcfile_path='`cygpath -w "$srcfile"`'
6660 enable_shared_with_static_runtimes=yes
6663 darwin* | rhapsody*)
6664 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6665 archive_cmds_need_lc=no
6667 rhapsody* | darwin1.[012])
6668 allow_undefined_flag='-undefined suppress'
6670 darwin1.* | darwin[2-6].*) # Darwin 1.3 on, but less than 7.0
6671 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6674 case "${MACOSX_DEPLOYMENT_TARGET-10.1}" in
6676 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6679 if test -z ${LD_TWOLEVEL_NAMESPACE}; then
6680 allow_undefined_flag='-flat_namespace -undefined suppress'
6682 allow_undefined_flag='-undefined dynamic_lookup'
6688 # FIXME: Relying on posixy $() will cause problems for
6689 # cross-compilation, but unfortunately the echo tests do not
6690 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6691 # `"' quotes if we put them in here... so don't!
6692 lt_int_apple_cc_single_mod=no
6693 output_verbose_link_cmd='echo'
6694 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6695 lt_int_apple_cc_single_mod=yes
6697 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6698 archive_cmds='$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6700 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6702 module_cmds='$CC -bundle $archargs ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6703 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6704 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6705 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6707 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6709 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -bundle $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6711 hardcode_automatic=yes
6712 hardcode_shlibpath_var=unsupported
6713 whole_archive_flag_spec='-all_load $convenience'
6714 link_all_deplibs=yes
6719 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6720 hardcode_libdir_flag_spec='-L$libdir'
6721 hardcode_shlibpath_var=no
6728 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6729 # support. Future versions do this automatically, but an explicit c++rt0.o
6730 # does not break anything, and helps significantly (at the cost of a little
6733 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6734 hardcode_libdir_flag_spec='-R$libdir'
6736 hardcode_shlibpath_var=no
6739 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6741 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6743 hardcode_minus_L=yes
6744 hardcode_shlibpath_var=no
6747 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6749 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6750 hardcode_libdir_flag_spec='-R$libdir'
6752 hardcode_shlibpath_var=no
6756 if test "$GCC" = yes; then
6757 archive_cmds='$rm $output_objdir/$soname${_S_}$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6759 archive_cmds='$rm $output_objdir/$soname${_S_}$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6761 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6762 hardcode_libdir_separator=:
6765 # hardcode_minus_L: Not really in the search PATH,
6766 # but as the default location of the library.
6767 hardcode_minus_L=yes
6768 export_dynamic_flag_spec='${wl}-E'
6772 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6775 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6778 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6784 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6787 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6791 if test "$with_gnu_ld" = no; then
6794 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6795 hardcode_libdir_flag_spec_ld='+b $libdir'
6796 hardcode_libdir_separator=:
6798 hardcode_shlibpath_var=no
6801 hardcode_libdir_flag_spec='-L$libdir'
6803 hardcode_shlibpath_var=no
6805 # hardcode_minus_L: Not really in the search PATH,
6806 # but as the default location of the library.
6807 hardcode_minus_L=yes
6810 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6811 hardcode_libdir_separator=:
6813 export_dynamic_flag_spec='${wl}-E'
6815 # hardcode_minus_L: Not really in the search PATH,
6816 # but as the default location of the library.
6817 hardcode_minus_L=yes
6823 irix5* | irix6* | nonstopux*)
6824 if test "$GCC" = yes; then
6825 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'
6827 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'
6828 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6830 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6831 hardcode_libdir_separator=:
6832 link_all_deplibs=yes
6836 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6837 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6839 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6841 hardcode_libdir_flag_spec='-R$libdir'
6843 hardcode_shlibpath_var=no
6847 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6849 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6850 hardcode_libdir_separator=:
6851 hardcode_shlibpath_var=no
6856 hardcode_shlibpath_var=no
6857 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6858 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6859 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6860 export_dynamic_flag_spec='${wl}-E'
6863 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6864 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6865 hardcode_libdir_flag_spec='-R$libdir'
6868 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6869 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6876 hardcode_libdir_flag_spec='-L$libdir'
6877 hardcode_minus_L=yes
6878 allow_undefined_flag=unsupported
6879 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def${_S_}$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def${_S_}$echo DATA >> $output_objdir/$libname.def${_S_}$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def${_S_}$echo EXPORTS >> $output_objdir/$libname.def${_S_}emxexp $libobjs >> $output_objdir/$libname.def${_S_}$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
6880 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6884 if test "$GCC" = yes; then
6885 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6886 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'
6888 allow_undefined_flag=' -expect_unresolved \*'
6889 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'
6891 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6892 hardcode_libdir_separator=:
6895 osf4* | osf5*) # as osf3* with the addition of -msym flag
6896 if test "$GCC" = yes; then
6897 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6898 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'
6899 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6901 allow_undefined_flag=' -expect_unresolved \*'
6902 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'
6903 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp${_S_}
6904 $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${_S_}$rm $lib.exp'
6906 # Both c and cxx compiler support -rpath directly
6907 hardcode_libdir_flag_spec='-rpath $libdir'
6909 hardcode_libdir_separator=:
6913 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6914 hardcode_shlibpath_var=no
6915 export_dynamic_flag_spec='${wl}-Bexport'
6916 runpath_var=LD_RUN_PATH
6917 hardcode_runpath_var=yes
6921 no_undefined_flag=' -z text'
6922 if test "$GCC" = yes; then
6923 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6924 archive_expsym_cmds='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
6925 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags${_S_}$rm $lib.exp'
6927 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6928 archive_expsym_cmds='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
6929 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags${_S_}$rm $lib.exp'
6931 hardcode_libdir_flag_spec='-R$libdir'
6932 hardcode_shlibpath_var=no
6934 solaris2.[0-5] | solaris2.[0-5].*) ;;
6935 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6936 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6938 link_all_deplibs=yes
6942 if test "x$host_vendor" = xsequent; then
6943 # Use $CC to link under sequent, because it throws in some extra .o
6944 # files that make .init and .fini sections work.
6945 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6947 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6949 hardcode_libdir_flag_spec='-L$libdir'
6951 hardcode_minus_L=yes
6952 hardcode_shlibpath_var=no
6956 case $host_vendor in
6958 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6959 hardcode_direct=yes # is this really true???
6962 ## LD is ld it makes a PLAMLIB
6963 ## CC just makes a GrossModule.
6964 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6965 reload_cmds='$CC -r -o $output$reload_objs'
6969 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6970 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6973 runpath_var='LD_RUN_PATH'
6974 hardcode_shlibpath_var=no
6978 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6979 hardcode_shlibpath_var=no
6980 export_dynamic_flag_spec='-Bexport'
6984 if test -d /usr/nec; then
6985 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6986 hardcode_shlibpath_var=no
6987 runpath_var=LD_RUN_PATH
6988 hardcode_runpath_var=yes
6994 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6997 hardcode_shlibpath_var=no
6998 hardcode_runpath_var=yes
6999 runpath_var=LD_RUN_PATH
7002 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7003 no_undefined_flag='${wl}-z ${wl}text'
7004 if test "$GCC" = yes; then
7005 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7007 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7009 runpath_var='LD_RUN_PATH'
7010 hardcode_shlibpath_var=no
7014 no_undefined_flag=' -z text'
7015 # $CC -shared without GNU ld will not create a library from C++
7016 # object files and a static libstdc++, better avoid it by now
7017 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7018 archive_expsym_cmds='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
7019 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags${_S_}$rm $lib.exp'
7020 hardcode_libdir_flag_spec=
7021 hardcode_shlibpath_var=no
7022 runpath_var='LD_RUN_PATH'
7026 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7027 hardcode_libdir_flag_spec='-L$libdir'
7028 hardcode_shlibpath_var=no
7037 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7038 echo "${ECHO_T}$ld_shlibs" >&6
7039 test "$ld_shlibs" = no && can_build_shared=no
7041 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7042 if test "$GCC" = yes; then
7043 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7047 # Do we need to explicitly link libc?
7049 case "x$archive_cmds_need_lc" in
7051 # Assume -lc should be added
7052 archive_cmds_need_lc=yes
7054 if test "$enable_shared" = yes && test "$GCC" = yes; then
7055 case $archive_cmds in
7057 # FIXME: we may have to deal with multi-command sequences.
7060 # Test whether the compiler implicitly links with -lc since on some
7061 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7062 # to ld, don't add -lc before -lgcc.
7063 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7064 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7066 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7069 (eval $ac_compile) 2>&5
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); } 2>conftest.err; then
7075 libobjs=conftest.$ac_objext
7077 wl=$lt_prog_compiler_wl
7083 lt_save_allow_undefined_flag=$allow_undefined_flag
7084 allow_undefined_flag=
7085 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7086 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); }
7091 archive_cmds_need_lc=no
7093 archive_cmds_need_lc=yes
7095 allow_undefined_flag=$lt_save_allow_undefined_flag
7097 cat conftest.err 1>&5
7100 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7101 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7108 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7109 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7111 if test -n "$hardcode_libdir_flag_spec" || \
7112 test -n "$runpath_var " || \
7113 test "X$hardcode_automatic"="Xyes" ; then
7115 # We can hardcode non-existant directories.
7116 if test "$hardcode_direct" != no &&
7117 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7118 # have to relink, otherwise we might link with an installed library
7119 # when we should be linking with a yet-to-be-installed one
7120 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7121 test "$hardcode_minus_L" != no; then
7122 # Linking always hardcodes the temporary library directory.
7123 hardcode_action=relink
7125 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7126 hardcode_action=immediate
7129 # We cannot hardcode anything, or else we can only hardcode existing
7131 hardcode_action=unsupported
7133 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7134 echo "${ECHO_T}$hardcode_action" >&6
7136 if test "$hardcode_action" = relink; then
7137 # Fast installation is not supported
7138 enable_fast_install=no
7139 elif test "$shlibpath_overrides_runpath" = yes ||
7140 test "$enable_shared" = no; then
7141 # Fast installation is not necessary
7142 enable_fast_install=needless
7147 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7148 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7149 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7150 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7151 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7152 echo "$as_me:$LINENO: result: yes" >&5
7153 echo "${ECHO_T}yes" >&6
7155 # FIXME - insert some real tests, host_os isn't really good enough
7158 if test -n "$STRIP" ; then
7159 striplib="$STRIP -x"
7160 echo "$as_me:$LINENO: result: yes" >&5
7161 echo "${ECHO_T}yes" >&6
7163 echo "$as_me:$LINENO: result: no" >&5
7164 echo "${ECHO_T}no" >&6
7168 echo "$as_me:$LINENO: result: no" >&5
7169 echo "${ECHO_T}no" >&6
7174 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7175 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7177 libname_spec='lib$name'
7185 shlibpath_overrides_runpath=unknown
7187 dynamic_linker="$host_os ld.so"
7188 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7189 if test "$GCC" = yes; then
7190 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7191 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7192 # if the path contains ";" then we assume it to be the separator
7193 # otherwise default to the standard path separator (i.e. ":") - it is
7194 # assumed that no part of a normal pathname contains ";" but that should
7195 # okay in the real world where ";" in dirpaths is itself problematic.
7196 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7198 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7201 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7203 need_lib_prefix=unknown
7204 hardcode_into_libs=no
7206 # when you set need_version to no, make sure it does not cause -set_version
7207 # flags to be left without arguments
7208 need_version=unknown
7213 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7214 shlibpath_var=LIBPATH
7216 # AIX 3 has no versioning support, so we append a major version to the name.
7217 soname_spec='${libname}${release}${shared_ext}$major'
7224 hardcode_into_libs=yes
7225 if test "$host_cpu" = ia64; then
7226 # AIX 5 supports IA64
7227 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7228 shlibpath_var=LD_LIBRARY_PATH
7230 # With GCC up to 2.95.x, collect2 would create an import file
7231 # for dependence libraries. The import file would start with
7232 # the line `#! .'. This would cause the generated library to
7233 # depend on `.', always an invalid library. This was fixed in
7234 # development snapshots of GCC prior to 3.0.
7236 aix4 | aix4.[01] | aix4.[01].*)
7237 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7239 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7246 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7247 # soname into executable. Probably we can add versioning support to
7248 # collect2, so additional links can be useful in future.
7249 if test "$aix_use_runtimelinking" = yes; then
7250 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7251 # instead of lib<name>.a to let people know that these are not
7252 # typical AIX shared libraries.
7253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7255 # We preserve .a as extension for shared libraries through AIX4.2
7256 # and later when we are not doing run time linking.
7257 library_names_spec='${libname}${release}.a $libname.a'
7258 soname_spec='${libname}${release}${shared_ext}$major'
7260 shlibpath_var=LIBPATH
7265 library_names_spec='$libname.ixlibrary $libname.a'
7266 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7267 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'
7271 library_names_spec='${libname}${shared_ext}'
7272 dynamic_linker="$host_os ld.so"
7273 shlibpath_var=LIBRARY_PATH
7279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7280 soname_spec='${libname}${release}${shared_ext}$major'
7281 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7282 shlibpath_var=LD_LIBRARY_PATH
7283 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7284 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7285 # the default ld.so.conf also contains /usr/contrib/lib and
7286 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7287 # libtool to hard-code these into programs
7290 cygwin* | mingw* | pw32*)
7291 version_type=windows
7296 case $GCC,$host_os in
7297 yes,cygwin* | yes,mingw* | yes,pw32*)
7298 library_names_spec='$libname.dll.a'
7299 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7300 postinstall_cmds='base_file=`basename \${file}`${_S_}
7301 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`${_S_}
7302 dldir=$destdir/`dirname \$dlpath`${_S_}
7303 test -d \$dldir || mkdir -p \$dldir${_S_}
7304 $install_prog $dir/$dlname \$dldir/$dlname'
7305 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`${_S_}
7306 dlpath=$dir/\$dldll${_S_}
7308 shlibpath_overrides_runpath=yes
7312 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7313 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7314 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7317 # MinGW DLLs use traditional 'lib' prefix
7318 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7319 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7320 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7321 # It is most probably a Windows format PATH printed by
7322 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7323 # path with ; separators, and with drive letters. We can handle the
7324 # drive letters (cygwin fileutils understands them), so leave them,
7325 # especially as we might pass files found there to a mingw objdump,
7326 # which wouldn't understand a cygwinified path. Ahh.
7327 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7329 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7333 # pw32 DLLs use 'pw' prefix rather than 'lib'
7334 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7340 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7343 dynamic_linker='Win32 ld.exe'
7344 # FIXME: first we should search . and the directory the executable is in
7348 darwin* | rhapsody*)
7349 dynamic_linker="$host_os dyld"
7353 # FIXME: Relying on posixy $() will cause problems for
7354 # cross-compilation, but unfortunately the echo tests do not
7355 # yet detect zsh echo's removal of \ escapes.
7356 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
7357 soname_spec='${libname}${release}${major}$shared_ext'
7358 shlibpath_overrides_runpath=yes
7359 shlibpath_var=DYLD_LIBRARY_PATH
7360 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7361 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7362 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7363 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"`
7365 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7373 soname_spec='${libname}${release}${shared_ext}$major'
7374 shlibpath_var=LD_LIBRARY_PATH
7382 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7383 version_type=freebsd-$objformat
7384 case $version_type in
7386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7391 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7395 shlibpath_var=LD_LIBRARY_PATH
7398 shlibpath_overrides_runpath=yes
7400 freebsd3.01* | freebsdelf3.01*)
7401 shlibpath_overrides_runpath=yes
7402 hardcode_into_libs=yes
7405 shlibpath_overrides_runpath=no
7406 hardcode_into_libs=yes
7415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7416 soname_spec='${libname}${release}${shared_ext}$major'
7417 shlibpath_var=LD_LIBRARY_PATH
7418 hardcode_into_libs=yes
7421 hpux9* | hpux10* | hpux11*)
7422 # Give a soname corresponding to the major version so that dld.sl refuses to
7423 # link against other versions.
7430 hardcode_into_libs=yes
7431 dynamic_linker="$host_os dld.so"
7432 shlibpath_var=LD_LIBRARY_PATH
7433 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7435 soname_spec='${libname}${release}${shared_ext}$major'
7436 if test "X$HPUX_IA64_MODE" = X32; then
7437 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7439 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7441 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7445 hardcode_into_libs=yes
7446 dynamic_linker="$host_os dld.sl"
7447 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7448 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7450 soname_spec='${libname}${release}${shared_ext}$major'
7451 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7452 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7456 dynamic_linker="$host_os dld.sl"
7457 shlibpath_var=SHLIB_PATH
7458 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7460 soname_spec='${libname}${release}${shared_ext}$major'
7463 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7464 postinstall_cmds='chmod 555 $lib'
7467 irix5* | irix6* | nonstopux*)
7469 nonstopux*) version_type=nonstopux ;;
7471 if test "$lt_cv_prog_gnu_ld" = yes; then
7479 soname_spec='${libname}${release}${shared_ext}$major'
7480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7482 irix5* | nonstopux*)
7486 case $LD in # libtool.m4 will add one of these switches to LD
7487 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7488 libsuff= shlibsuff= libmagic=32-bit;;
7489 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7490 libsuff=32 shlibsuff=N32 libmagic=N32;;
7491 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7492 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7493 *) libsuff= shlibsuff= libmagic=never-match;;
7497 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7498 shlibpath_overrides_runpath=no
7499 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7500 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7501 hardcode_into_libs=yes
7504 # No shared lib support for Linux oldld, aout, or coff.
7505 linux*oldld* | linux*aout* | linux*coff*)
7509 # This must be Linux ELF.
7514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7515 soname_spec='${libname}${release}${shared_ext}$major'
7516 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7517 shlibpath_var=LD_LIBRARY_PATH
7518 shlibpath_overrides_runpath=no
7519 # This implies no fast_install, which is unacceptable.
7520 # Some rework will be needed to allow for fast_install
7521 # before this can be enabled.
7522 hardcode_into_libs=yes
7524 # We used to test for /lib/ld.so.1 and disable shared libraries on
7525 # powerpc, because MkLinux only supported shared libraries with the
7526 # GNU dynamic linker. Since this was broken with cross compilers,
7527 # most powerpc-linux boxes support dynamic linking these days and
7528 # people can always --disable-shared, the test was removed, and we
7529 # assume the GNU/Linux dynamic linker is in use.
7530 dynamic_linker='GNU/Linux ld.so'
7537 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7539 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7540 dynamic_linker='NetBSD (a.out) ld.so'
7542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7543 soname_spec='${libname}${release}${shared_ext}$major'
7544 dynamic_linker='NetBSD ld.elf_so'
7546 shlibpath_var=LD_LIBRARY_PATH
7547 shlibpath_overrides_runpath=yes
7548 hardcode_into_libs=yes
7553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7554 shlibpath_var=LD_LIBRARY_PATH
7555 shlibpath_overrides_runpath=yes
7562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7563 soname_spec='${libname}${release}${shared_ext}$major'
7564 shlibpath_var=LD_LIBRARY_PATH
7565 shlibpath_overrides_runpath=yes
7572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7573 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7574 shlibpath_var=LD_LIBRARY_PATH
7575 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7577 openbsd2.[89] | openbsd2.[89].*)
7578 shlibpath_overrides_runpath=no
7581 shlibpath_overrides_runpath=yes
7585 shlibpath_overrides_runpath=yes
7590 libname_spec='$name'
7593 library_names_spec='$libname${shared_ext} $libname.a'
7594 dynamic_linker='OS/2 ld.exe'
7595 shlibpath_var=LIBPATH
7598 osf3* | osf4* | osf5*)
7602 soname_spec='${libname}${release}${shared_ext}$major'
7603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7604 shlibpath_var=LD_LIBRARY_PATH
7605 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7606 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7611 soname_spec='${libname}${release}${shared_ext}$major'
7612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7613 shlibpath_var=LD_LIBRARY_PATH
7620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7621 soname_spec='${libname}${release}${shared_ext}$major'
7622 shlibpath_var=LD_LIBRARY_PATH
7623 shlibpath_overrides_runpath=yes
7624 hardcode_into_libs=yes
7625 # ldd complains unless libraries are executable
7626 postinstall_cmds='chmod +x $lib'
7631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7632 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7633 shlibpath_var=LD_LIBRARY_PATH
7634 shlibpath_overrides_runpath=yes
7635 if test "$with_gnu_ld" = yes; then
7641 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7644 soname_spec='${libname}${release}${shared_ext}$major'
7645 shlibpath_var=LD_LIBRARY_PATH
7646 case $host_vendor in
7648 shlibpath_overrides_runpath=no
7650 export_dynamic_flag_spec='${wl}-Blargedynsym'
7651 runpath_var=LD_RUN_PATH
7659 shlibpath_overrides_runpath=no
7660 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7666 if test -d /usr/nec ;then
7668 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7669 soname_spec='$libname${shared_ext}.$major'
7670 shlibpath_var=LD_LIBRARY_PATH
7676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7677 soname_spec='${libname}${release}${shared_ext}$major'
7678 shlibpath_var=LD_LIBRARY_PATH
7685 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7686 echo "${ECHO_T}$dynamic_linker" >&6
7687 test "$dynamic_linker" = no && can_build_shared=no
7689 if test "x$enable_dlopen" != xyes; then
7690 enable_dlopen=unknown
7691 enable_dlopen_self=unknown
7692 enable_dlopen_self_static=unknown
7699 lt_cv_dlopen="load_add_on"
7701 lt_cv_dlopen_self=yes
7705 lt_cv_dlopen="LoadLibrary"
7710 lt_cv_dlopen="dlopen"
7715 # if libdl is installed we need to link against it
7716 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7717 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7718 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7719 echo $ECHO_N "(cached) $ECHO_C" >&6
7721 ac_check_lib_save_LIBS=$LIBS
7723 cat >conftest.$ac_ext <<_ACEOF
7724 #line $LINENO "configure"
7727 cat confdefs.h >>conftest.$ac_ext
7728 cat >>conftest.$ac_ext <<_ACEOF
7729 /* end confdefs.h. */
7731 /* Override any gcc2 internal prototype to avoid an error. */
7735 /* We use char because int might match the return type of a gcc2
7736 builtin and then its argument prototype would still apply. */
7746 rm -f conftest.$ac_objext conftest$ac_exeext
7747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7748 (eval $ac_link) 2>&5
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); } &&
7752 { ac_try='test -s conftest$ac_exeext'
7753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757 (exit $ac_status); }; }; then
7758 ac_cv_lib_dl_dlopen=yes
7760 echo "$as_me: failed program was:" >&5
7761 sed 's/^/| /' conftest.$ac_ext >&5
7763 ac_cv_lib_dl_dlopen=no
7765 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7766 LIBS=$ac_check_lib_save_LIBS
7768 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7769 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7770 if test $ac_cv_lib_dl_dlopen = yes; then
7771 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7776 lt_cv_dlopen_self=yes
7783 echo "$as_me:$LINENO: checking for shl_load" >&5
7784 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7785 if test "${ac_cv_func_shl_load+set}" = set; then
7786 echo $ECHO_N "(cached) $ECHO_C" >&6
7788 cat >conftest.$ac_ext <<_ACEOF
7789 #line $LINENO "configure"
7792 cat confdefs.h >>conftest.$ac_ext
7793 cat >>conftest.$ac_ext <<_ACEOF
7794 /* end confdefs.h. */
7795 /* System header to define __stub macros and hopefully few prototypes,
7796 which can conflict with char shl_load (); below.
7797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7798 <limits.h> exists even on freestanding compilers. */
7800 # include <limits.h>
7802 # include <assert.h>
7804 /* Override any gcc2 internal prototype to avoid an error. */
7809 /* We use char because int might match the return type of a gcc2
7810 builtin and then its argument prototype would still apply. */
7812 /* The GNU C library defines this for functions which it implements
7813 to always fail with ENOSYS. Some functions are actually named
7814 something starting with __ and the normal name is an alias. */
7815 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7818 char (*f) () = shl_load;
7827 return f != shl_load;
7832 rm -f conftest.$ac_objext conftest$ac_exeext
7833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7834 (eval $ac_link) 2>&5
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); } &&
7838 { ac_try='test -s conftest$ac_exeext'
7839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); }; }; then
7844 ac_cv_func_shl_load=yes
7846 echo "$as_me: failed program was:" >&5
7847 sed 's/^/| /' conftest.$ac_ext >&5
7849 ac_cv_func_shl_load=no
7851 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7853 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7854 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7855 if test $ac_cv_func_shl_load = yes; then
7856 lt_cv_dlopen="shl_load"
7858 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7859 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7860 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7861 echo $ECHO_N "(cached) $ECHO_C" >&6
7863 ac_check_lib_save_LIBS=$LIBS
7865 cat >conftest.$ac_ext <<_ACEOF
7866 #line $LINENO "configure"
7869 cat confdefs.h >>conftest.$ac_ext
7870 cat >>conftest.$ac_ext <<_ACEOF
7871 /* end confdefs.h. */
7873 /* Override any gcc2 internal prototype to avoid an error. */
7877 /* We use char because int might match the return type of a gcc2
7878 builtin and then its argument prototype would still apply. */
7888 rm -f conftest.$ac_objext conftest$ac_exeext
7889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7890 (eval $ac_link) 2>&5
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); } &&
7894 { ac_try='test -s conftest$ac_exeext'
7895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899 (exit $ac_status); }; }; then
7900 ac_cv_lib_dld_shl_load=yes
7902 echo "$as_me: failed program was:" >&5
7903 sed 's/^/| /' conftest.$ac_ext >&5
7905 ac_cv_lib_dld_shl_load=no
7907 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7908 LIBS=$ac_check_lib_save_LIBS
7910 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7911 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7912 if test $ac_cv_lib_dld_shl_load = yes; then
7913 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7915 echo "$as_me:$LINENO: checking for dlopen" >&5
7916 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7917 if test "${ac_cv_func_dlopen+set}" = set; then
7918 echo $ECHO_N "(cached) $ECHO_C" >&6
7920 cat >conftest.$ac_ext <<_ACEOF
7921 #line $LINENO "configure"
7924 cat confdefs.h >>conftest.$ac_ext
7925 cat >>conftest.$ac_ext <<_ACEOF
7926 /* end confdefs.h. */
7927 /* System header to define __stub macros and hopefully few prototypes,
7928 which can conflict with char dlopen (); below.
7929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7930 <limits.h> exists even on freestanding compilers. */
7932 # include <limits.h>
7934 # include <assert.h>
7936 /* Override any gcc2 internal prototype to avoid an error. */
7941 /* We use char because int might match the return type of a gcc2
7942 builtin and then its argument prototype would still apply. */
7944 /* The GNU C library defines this for functions which it implements
7945 to always fail with ENOSYS. Some functions are actually named
7946 something starting with __ and the normal name is an alias. */
7947 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7950 char (*f) () = dlopen;
7964 rm -f conftest.$ac_objext conftest$ac_exeext
7965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7966 (eval $ac_link) 2>&5
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); } &&
7970 { ac_try='test -s conftest$ac_exeext'
7971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); }; }; then
7976 ac_cv_func_dlopen=yes
7978 echo "$as_me: failed program was:" >&5
7979 sed 's/^/| /' conftest.$ac_ext >&5
7981 ac_cv_func_dlopen=no
7983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7985 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7986 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7987 if test $ac_cv_func_dlopen = yes; then
7988 lt_cv_dlopen="dlopen"
7990 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7991 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7992 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7993 echo $ECHO_N "(cached) $ECHO_C" >&6
7995 ac_check_lib_save_LIBS=$LIBS
7997 cat >conftest.$ac_ext <<_ACEOF
7998 #line $LINENO "configure"
8001 cat confdefs.h >>conftest.$ac_ext
8002 cat >>conftest.$ac_ext <<_ACEOF
8003 /* end confdefs.h. */
8005 /* Override any gcc2 internal prototype to avoid an error. */
8009 /* We use char because int might match the return type of a gcc2
8010 builtin and then its argument prototype would still apply. */
8020 rm -f conftest.$ac_objext conftest$ac_exeext
8021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8022 (eval $ac_link) 2>&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); } &&
8026 { ac_try='test -s conftest$ac_exeext'
8027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031 (exit $ac_status); }; }; then
8032 ac_cv_lib_dl_dlopen=yes
8034 echo "$as_me: failed program was:" >&5
8035 sed 's/^/| /' conftest.$ac_ext >&5
8037 ac_cv_lib_dl_dlopen=no
8039 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8040 LIBS=$ac_check_lib_save_LIBS
8042 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8043 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8044 if test $ac_cv_lib_dl_dlopen = yes; then
8045 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8047 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8048 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8049 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8050 echo $ECHO_N "(cached) $ECHO_C" >&6
8052 ac_check_lib_save_LIBS=$LIBS
8054 cat >conftest.$ac_ext <<_ACEOF
8055 #line $LINENO "configure"
8058 cat confdefs.h >>conftest.$ac_ext
8059 cat >>conftest.$ac_ext <<_ACEOF
8060 /* end confdefs.h. */
8062 /* Override any gcc2 internal prototype to avoid an error. */
8066 /* We use char because int might match the return type of a gcc2
8067 builtin and then its argument prototype would still apply. */
8077 rm -f conftest.$ac_objext conftest$ac_exeext
8078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8079 (eval $ac_link) 2>&5
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); } &&
8083 { ac_try='test -s conftest$ac_exeext'
8084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); }; }; then
8089 ac_cv_lib_svld_dlopen=yes
8091 echo "$as_me: failed program was:" >&5
8092 sed 's/^/| /' conftest.$ac_ext >&5
8094 ac_cv_lib_svld_dlopen=no
8096 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8097 LIBS=$ac_check_lib_save_LIBS
8099 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8100 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8101 if test $ac_cv_lib_svld_dlopen = yes; then
8102 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8104 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8105 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8106 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8107 echo $ECHO_N "(cached) $ECHO_C" >&6
8109 ac_check_lib_save_LIBS=$LIBS
8111 cat >conftest.$ac_ext <<_ACEOF
8112 #line $LINENO "configure"
8115 cat confdefs.h >>conftest.$ac_ext
8116 cat >>conftest.$ac_ext <<_ACEOF
8117 /* end confdefs.h. */
8119 /* Override any gcc2 internal prototype to avoid an error. */
8123 /* We use char because int might match the return type of a gcc2
8124 builtin and then its argument prototype would still apply. */
8134 rm -f conftest.$ac_objext conftest$ac_exeext
8135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8136 (eval $ac_link) 2>&5
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); } &&
8140 { ac_try='test -s conftest$ac_exeext'
8141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); }; }; then
8146 ac_cv_lib_dld_dld_link=yes
8148 echo "$as_me: failed program was:" >&5
8149 sed 's/^/| /' conftest.$ac_ext >&5
8151 ac_cv_lib_dld_dld_link=no
8153 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8154 LIBS=$ac_check_lib_save_LIBS
8156 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8157 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8158 if test $ac_cv_lib_dld_dld_link = yes; then
8159 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8180 if test "x$lt_cv_dlopen" != xno; then
8186 case $lt_cv_dlopen in
8188 save_CPPFLAGS="$CPPFLAGS"
8189 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8191 save_LDFLAGS="$LDFLAGS"
8192 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8195 LIBS="$lt_cv_dlopen_libs $LIBS"
8197 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8198 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8199 if test "${lt_cv_dlopen_self+set}" = set; then
8200 echo $ECHO_N "(cached) $ECHO_C" >&6
8202 if test "$cross_compiling" = yes; then :
8203 lt_cv_dlopen_self=cross
8205 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8206 lt_status=$lt_dlunknown
8207 cat > conftest.$ac_ext <<EOF
8208 #line 8208 "configure"
8209 #include "confdefs.h"
8218 # define LT_DLGLOBAL RTLD_GLOBAL
8221 # define LT_DLGLOBAL DL_GLOBAL
8223 # define LT_DLGLOBAL 0
8227 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8228 find out it does not work in some platform. */
8229 #ifndef LT_DLLAZY_OR_NOW
8231 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8234 # define LT_DLLAZY_OR_NOW DL_LAZY
8237 # define LT_DLLAZY_OR_NOW RTLD_NOW
8240 # define LT_DLLAZY_OR_NOW DL_NOW
8242 # define LT_DLLAZY_OR_NOW 0
8250 extern "C" void exit (int);
8253 void fnord() { int i=42;}
8256 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8257 int status = $lt_dlunknown;
8261 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8262 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8263 /* dlclose (self); */
8269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8270 (eval $ac_link) 2>&5
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8274 (./conftest; exit; ) 2>/dev/null
8277 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8278 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8279 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8282 # compilation failed
8283 lt_cv_dlopen_self=no
8290 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8291 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8293 if test "x$lt_cv_dlopen_self" = xyes; then
8294 LDFLAGS="$LDFLAGS $link_static_flag"
8295 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8296 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8297 if test "${lt_cv_dlopen_self_static+set}" = set; then
8298 echo $ECHO_N "(cached) $ECHO_C" >&6
8300 if test "$cross_compiling" = yes; then :
8301 lt_cv_dlopen_self_static=cross
8303 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8304 lt_status=$lt_dlunknown
8305 cat > conftest.$ac_ext <<EOF
8306 #line 8306 "configure"
8307 #include "confdefs.h"
8316 # define LT_DLGLOBAL RTLD_GLOBAL
8319 # define LT_DLGLOBAL DL_GLOBAL
8321 # define LT_DLGLOBAL 0
8325 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8326 find out it does not work in some platform. */
8327 #ifndef LT_DLLAZY_OR_NOW
8329 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8332 # define LT_DLLAZY_OR_NOW DL_LAZY
8335 # define LT_DLLAZY_OR_NOW RTLD_NOW
8338 # define LT_DLLAZY_OR_NOW DL_NOW
8340 # define LT_DLLAZY_OR_NOW 0
8348 extern "C" void exit (int);
8351 void fnord() { int i=42;}
8354 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8355 int status = $lt_dlunknown;
8359 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8360 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8361 /* dlclose (self); */
8367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8368 (eval $ac_link) 2>&5
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8372 (./conftest; exit; ) 2>/dev/null
8375 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8376 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8377 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8380 # compilation failed
8381 lt_cv_dlopen_self_static=no
8388 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8389 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8392 CPPFLAGS="$save_CPPFLAGS"
8393 LDFLAGS="$save_LDFLAGS"
8398 case $lt_cv_dlopen_self in
8399 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8400 *) enable_dlopen_self=unknown ;;
8403 case $lt_cv_dlopen_self_static in
8404 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8405 *) enable_dlopen_self_static=unknown ;;
8410 # Report which librarie types wil actually be built
8411 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8412 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8413 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8414 echo "${ECHO_T}$can_build_shared" >&6
8416 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8417 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8418 test "$can_build_shared" = "no" && enable_shared=no
8420 # On AIX, shared libraries and static libraries use the same namespace, and
8421 # are all built from PIC.
8424 test "$enable_shared" = yes && enable_static=no
8425 if test -n "$RANLIB"; then
8426 archive_cmds="$archive_cmds\${_S_}\$RANLIB \$lib"
8427 postinstall_cmds='$RANLIB $lib'
8432 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8433 test "$enable_shared" = yes && enable_static=no
8436 darwin* | rhapsody*)
8437 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8438 archive_cmds_need_lc=no
8440 rhapsody* | darwin1.[012])
8441 allow_undefined_flag='-undefined suppress'
8443 darwin1.* | darwin[2-6].*) # Darwin 1.3 on, but less than 7.0
8444 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8447 case "${MACOSX_DEPLOYMENT_TARGET-10.1}" in
8449 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8452 if test -z ${LD_TWOLEVEL_NAMESPACE}; then
8453 allow_undefined_flag='-flat_namespace -undefined suppress'
8455 allow_undefined_flag='-undefined dynamic_lookup'
8461 # FIXME: Relying on posixy $() will cause problems for
8462 # cross-compilation, but unfortunately the echo tests do not
8463 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8464 # `"' quotes if we put them in here... so don't!
8465 output_verbose_link_cmd='echo'
8466 archive_cmds='$CC -dynamiclib $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8467 module_cmds='$CC -bundle $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8468 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8469 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8470 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -bundle $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8472 hardcode_automatic=yes
8473 hardcode_shlibpath_var=unsupported
8474 whole_archive_flag_spec='-all_load $convenience'
8475 link_all_deplibs=yes
8479 echo "$as_me:$LINENO: result: $enable_shared" >&5
8480 echo "${ECHO_T}$enable_shared" >&6
8482 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8483 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8484 # Make sure either enable_shared or enable_static is yes.
8485 test "$enable_shared" = yes || enable_static=yes
8486 echo "$as_me:$LINENO: result: $enable_static" >&5
8487 echo "${ECHO_T}$enable_static" >&6
8489 # The else clause should only fire when bootstrapping the
8490 # libtool distribution, otherwise you forgot to ship ltmain.sh
8491 # with your package, and you will get complaints that there are
8492 # no rules to generate ltmain.sh.
8493 if test -f "$ltmain"; then
8494 # See if we are running on zsh, and set the options which allow our commands through
8495 # without removal of \ escapes.
8496 if test -n "${ZSH_VERSION+set}" ; then
8497 setopt NO_GLOB_SUBST
8499 # Now quote all the things that may contain metacharacters while being
8500 # careful not to overquote the AC_SUBSTed values. We take copies of the
8501 # variables and quote the copies for generation of the libtool script.
8502 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8503 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8504 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8505 deplibs_check_method reload_flag reload_cmds need_locks \
8506 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8507 lt_cv_sys_global_symbol_to_c_name_address \
8508 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8509 old_postinstall_cmds old_postuninstall_cmds \
8513 lt_prog_compiler_wl \
8514 lt_prog_compiler_pic \
8515 lt_prog_compiler_static \
8516 lt_prog_compiler_no_builtin_flag \
8517 export_dynamic_flag_spec \
8518 thread_safe_flag_spec \
8519 whole_archive_flag_spec \
8520 enable_shared_with_static_runtimes \
8522 old_archive_from_new_cmds \
8527 compiler_lib_search_path \
8529 archive_expsym_cmds \
8531 postuninstall_cmds \
8532 old_archive_from_expsyms_cmds \
8533 allow_undefined_flag \
8535 export_symbols_cmds \
8536 hardcode_libdir_flag_spec \
8537 hardcode_libdir_flag_spec_ld \
8538 hardcode_libdir_separator \
8539 hardcode_automatic \
8541 module_expsym_cmds \
8542 lt_cv_prog_compiler_c_o \
8547 old_archive_cmds | \
8548 old_archive_from_new_cmds | \
8550 archive_expsym_cmds | \
8552 module_expsym_cmds | \
8553 old_archive_from_expsyms_cmds | \
8554 export_symbols_cmds | \
8555 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8556 postinstall_cmds | postuninstall_cmds | \
8557 old_postinstall_cmds | old_postuninstall_cmds | \
8558 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8559 # Double-quote double-evaled strings.
8560 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\" -e \"\$unescape_variable_subst\"\`\\\""
8563 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8569 *'\$0 --fallback-echo"')
8570 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8575 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8577 { echo "$as_me:$LINENO: creating $ofile" >&5
8578 echo "$as_me: creating $ofile" >&6;}
8580 cat <<__EOF__ >> "$cfgfile"
8583 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8584 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8585 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8587 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8588 # Free Software Foundation, Inc.
8590 # This file is part of GNU Libtool:
8591 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8593 # This program is free software; you can redistribute it and/or modify
8594 # it under the terms of the GNU General Public License as published by
8595 # the Free Software Foundation; either version 2 of the License, or
8596 # (at your option) any later version.
8598 # This program is distributed in the hope that it will be useful, but
8599 # WITHOUT ANY WARRANTY; without even the implied warranty of
8600 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8601 # General Public License for more details.
8603 # You should have received a copy of the GNU General Public License
8604 # along with this program; if not, write to the Free Software
8605 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8607 # As a special exception to the GNU General Public License, if you
8608 # distribute this file as part of a program that contains a
8609 # configuration script generated by Autoconf, you may include it under
8610 # the same distribution terms that you use for the rest of that program.
8612 # A sed program that does not truncate output.
8615 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8616 Xsed="$SED -e s/^X//"
8618 # The HP-UX ksh and POSIX shell print the target directory to stdout
8620 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8622 # The names of the tagged configurations supported by this script.
8625 # ### BEGIN LIBTOOL CONFIG
8627 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8629 # Set the command separator (default: ~)
8630 _S_=\${LIBTOOL_CMD_SEP-\~}
8632 # Shell to use when invoking shell scripts.
8635 # Whether or not to build shared libraries.
8636 build_libtool_libs=$enable_shared
8638 # Whether or not to build static libraries.
8639 build_old_libs=$enable_static
8641 # Whether or not to add -lc for building shared libraries.
8642 build_libtool_need_lc=$archive_cmds_need_lc
8644 # Whether or not to disallow shared libs when runtime libs are static
8645 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8647 # Whether or not to optimize for fast installation.
8648 fast_install=$enable_fast_install
8651 host_alias=$host_alias
8654 # An echo program that does not interpret backslashes.
8659 AR_FLAGS=$lt_AR_FLAGS
8664 # A language-specific compiler.
8667 # Is the compiler the GNU C compiler?
8673 # The linker used to build libraries.
8676 # Whether we need hard or soft links.
8679 # A BSD-compatible nm program.
8682 # A symbol stripping program
8685 # Used to examine libraries when file_magic_cmd begins "file"
8686 MAGIC_CMD=$MAGIC_CMD
8688 # Used on cygwin: DLL creation program.
8691 # Used on cygwin: object dumper.
8694 # Used on cygwin: assembler.
8697 # The name of the directory that contains temporary libtool files.
8700 # How to create reloadable object files.
8701 reload_flag=$lt_reload_flag
8702 reload_cmds=$lt_reload_cmds
8704 # How to pass a linker flag through the compiler.
8705 wl=$lt_lt_prog_compiler_wl
8707 # Object file suffix (normally "o").
8710 # Old archive suffix (normally "a").
8713 # Shared library suffix (normally ".so").
8716 # Executable file suffix (normally "").
8719 # Additional compiler flags for building library objects.
8720 pic_flag=$lt_lt_prog_compiler_pic
8723 # What is the maximum length of a command?
8724 max_cmd_len=$lt_cv_sys_max_cmd_len
8726 # Does compiler simultaneously support -c and -o options?
8727 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8729 # Must we lock files when doing compilation ?
8730 need_locks=$lt_need_locks
8732 # Do we need the lib prefix for modules?
8733 need_lib_prefix=$need_lib_prefix
8735 # Do we need a version for libraries?
8736 need_version=$need_version
8738 # Whether dlopen is supported.
8739 dlopen_support=$enable_dlopen
8741 # Whether dlopen of programs is supported.
8742 dlopen_self=$enable_dlopen_self
8744 # Whether dlopen of statically linked programs is supported.
8745 dlopen_self_static=$enable_dlopen_self_static
8747 # Compiler flag to prevent dynamic linking.
8748 link_static_flag=$lt_lt_prog_compiler_static
8750 # Compiler flag to turn off builtin functions.
8751 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8753 # Compiler flag to allow reflexive dlopens.
8754 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8756 # Compiler flag to generate shared objects directly from archives.
8757 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8759 # Compiler flag to generate thread-safe objects.
8760 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8762 # Library versioning type.
8763 version_type=$version_type
8765 # Format of library name prefix.
8766 libname_spec=$lt_libname_spec
8768 # List of archive names. First name is the real one, the rest are links.
8769 # The last name is the one that the linker finds with -lNAME.
8770 library_names_spec=$lt_library_names_spec
8772 # The coded name of the library, if different from the real name.
8773 soname_spec=$lt_soname_spec
8775 # Commands used to build and install an old-style archive.
8777 old_archive_cmds=$lt_old_archive_cmds
8778 old_postinstall_cmds=$lt_old_postinstall_cmds
8779 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8781 # Create an old-style archive from a shared archive.
8782 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8784 # Create a temporary old-style archive to link instead of a shared archive.
8785 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8787 # Commands used to build and install a shared archive.
8788 archive_cmds=$lt_archive_cmds
8789 archive_expsym_cmds=$lt_archive_expsym_cmds
8790 postinstall_cmds=$lt_postinstall_cmds
8791 postuninstall_cmds=$lt_postuninstall_cmds
8793 # Commands used to build a loadable module (assumed same as above if empty)
8794 module_cmds=$lt_module_cmds
8795 module_expsym_cmds=$lt_module_expsym_cmds
8797 # Commands to strip libraries.
8798 old_striplib=$lt_old_striplib
8799 striplib=$lt_striplib
8801 # Dependencies to place before the objects being linked to create a
8803 predep_objects=$lt_predep_objects
8805 # Dependencies to place after the objects being linked to create a
8807 postdep_objects=$lt_postdep_objects
8809 # Dependencies to place before the objects being linked to create a
8813 # Dependencies to place after the objects being linked to create a
8815 postdeps=$lt_postdeps
8817 # The library search path used internally by the compiler when linking
8819 compiler_lib_search_path=$lt_compiler_lib_search_path
8821 # Method to check whether dependent libraries are shared objects.
8822 deplibs_check_method=$lt_deplibs_check_method
8824 # Command to use when deplibs_check_method == file_magic.
8825 file_magic_cmd=$lt_file_magic_cmd
8827 # Flag that allows shared libraries with undefined symbols to be built.
8828 allow_undefined_flag=$lt_allow_undefined_flag
8830 # Flag that forces no undefined symbols.
8831 no_undefined_flag=$lt_no_undefined_flag
8833 # Commands used to finish a libtool library installation in a directory.
8834 finish_cmds=$lt_finish_cmds
8836 # Same as above, but a single script fragment to be evaled but not shown.
8837 finish_eval=$lt_finish_eval
8839 # Take the output of nm and produce a listing of raw symbols and C names.
8840 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8842 # Transform the output of nm in a proper C declaration
8843 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8845 # Transform the output of nm in a C name address pair
8846 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8848 # This is the shared library runtime path variable.
8849 runpath_var=$runpath_var
8851 # This is the shared library path variable.
8852 shlibpath_var=$shlibpath_var
8854 # Is shlibpath searched before the hard-coded library search path?
8855 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8857 # How to hardcode a shared library path into an executable.
8858 hardcode_action=$hardcode_action
8860 # Whether we should hardcode library paths into libraries.
8861 hardcode_into_libs=$hardcode_into_libs
8863 # Flag to hardcode \$libdir into a binary during linking.
8864 # This must work even if \$libdir does not exist.
8865 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8867 # If ld is used when linking, flag to hardcode \$libdir into
8868 # a binary during linking. This must work even if \$libdir does
8870 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8872 # Whether we need a single -rpath flag with a separated argument.
8873 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8875 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8877 hardcode_direct=$hardcode_direct
8879 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8881 hardcode_minus_L=$hardcode_minus_L
8883 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8884 # the resulting binary.
8885 hardcode_shlibpath_var=$hardcode_shlibpath_var
8887 # Set to yes if building a shared library automatically hardcodes DIR into the library
8888 # and all subsequent libraries and executables linked against it.
8889 hardcode_automatic=$hardcode_automatic
8891 # Variables whose values should be saved in libtool wrapper scripts and
8892 # restored at relink time.
8893 variables_saved_for_relink="$variables_saved_for_relink"
8895 # Whether libtool must link a program against all its dependency libraries.
8896 link_all_deplibs=$link_all_deplibs
8898 # Compile-time system search path for libraries
8899 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8901 # Run-time system search path for libraries
8902 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8904 # Fix the shell variable \$srcfile for the compiler.
8905 fix_srcfile_path="$fix_srcfile_path"
8907 # Set to yes if exported symbols are required.
8908 always_export_symbols=$always_export_symbols
8910 # The commands to list exported symbols.
8911 export_symbols_cmds=$lt_export_symbols_cmds
8913 # The commands to extract the exported symbol list from a shared archive.
8914 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8916 # Symbols that should not be listed in the preloaded symbols.
8917 exclude_expsyms=$lt_exclude_expsyms
8919 # Symbols that must always be exported.
8920 include_expsyms=$lt_include_expsyms
8922 # ### END LIBTOOL CONFIG
8929 cat <<\EOF >> "$cfgfile"
8931 # AIX sometimes has problems with the GCC collect2 program. For some
8932 # reason, if we set the COLLECT_NAMES environment variable, the problems
8933 # vanish in a puff of smoke.
8934 if test "X${COLLECT_NAMES+set}" != Xset; then
8936 export COLLECT_NAMES
8942 # We use sed instead of cat because bash on DJGPP gets confused if
8943 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8944 # text mode, it properly converts lines to CR/LF. This bash problem
8945 # is reportedly fixed, but why not run on old versions too?
8946 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8948 mv -f "$cfgfile" "$ofile" || \
8949 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8953 # If there is no Makefile yet, we rely on a make rule to execute
8954 # `config.status --recheck' to rerun these tests and create the
8955 # libtool script then.
8956 test -f Makefile && make "$ltmain"
8961 ac_cpp='$CPP $CPPFLAGS'
8962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8969 # Check whether --with-tags or --without-tags was given.
8970 if test "${with_tags+set}" = set; then
8971 withval="$with_tags"
8975 if test -f "$ltmain" && test -n "$tagnames"; then
8976 if test ! -f "${ofile}"; then
8977 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8978 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8981 if test -z "$LTCC"; then
8982 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8983 if test -z "$LTCC"; then
8984 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8985 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8987 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8988 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8992 # Extract list of available tagged configurations in $ofile.
8993 # Note that this assumes the entire list is on one line.
8994 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8996 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8997 for tagname in $tagnames; do
8999 # Check whether tagname contains only valid characters
9000 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9002 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9003 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9004 { (exit 1); exit 1; }; }
9008 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9010 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9011 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9012 { (exit 1); exit 1; }; }
9015 # Update the list of available tags.
9016 if test -n "$tagname"; then
9017 echo appending configuration tag \"$tagname\" to $ofile
9021 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9023 ac_cpp='$CXXCPP $CPPFLAGS'
9024 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9025 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9026 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9031 archive_cmds_need_lc_CXX=no
9032 allow_undefined_flag_CXX=
9033 always_export_symbols_CXX=no
9034 archive_expsym_cmds_CXX=
9035 export_dynamic_flag_spec_CXX=
9036 hardcode_direct_CXX=no
9037 hardcode_libdir_flag_spec_CXX=
9038 hardcode_libdir_flag_spec_ld_CXX=
9039 hardcode_libdir_separator_CXX=
9040 hardcode_minus_L_CXX=no
9041 hardcode_automatic_CXX=no
9043 module_expsym_cmds_CXX=
9044 link_all_deplibs_CXX=unknown
9045 old_archive_cmds_CXX=$old_archive_cmds
9046 no_undefined_flag_CXX=
9047 whole_archive_flag_spec_CXX=
9048 enable_shared_with_static_runtimes_CXX=no
9050 # Dependencies to place before and after the object being linked:
9052 postdep_objects_CXX=
9055 compiler_lib_search_path_CXX=
9057 # Source file extension for C++ test sources.
9060 # Object file extension for compiled C++ test sources.
9064 # Code to be used in simple compile tests
9065 lt_simple_compile_test_code="int some_variable = 0;\n"
9067 # Code to be used in simple link tests
9068 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9070 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9072 # If no C compiler was specified, use CC.
9075 # Allow CC to be a program name with arguments.
9079 # Allow CC to be a program name with arguments.
9084 lt_save_with_gnu_ld=$with_gnu_ld
9085 lt_save_path_LD=$lt_cv_path_LD
9086 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9087 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9089 unset lt_cv_prog_gnu_ld
9091 if test -n "${lt_cv_path_LDCXX+set}"; then
9092 lt_cv_path_LD=$lt_cv_path_LDCXX
9096 test -z "${LDCXX+set}" || LD=$LDCXX
9100 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9102 # We don't want -fno-exception wen compiling C++ code, so set the
9103 # no_builtin_flag separately
9104 if test "$GXX" = yes; then
9105 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9107 lt_prog_compiler_no_builtin_flag_CXX=
9110 if test "$GXX" = yes; then
9111 # Set up default GNU C++ configuration
9114 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9115 if test "${with_gnu_ld+set}" = set; then
9116 withval="$with_gnu_ld"
9117 test "$withval" = no || with_gnu_ld=yes
9122 if test "$GCC" = yes; then
9123 # Check if gcc -print-prog-name=ld gives a path.
9124 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9125 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9128 # gcc leaves a trailing carriage return which upsets mingw
9129 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9131 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9134 # Accept absolute paths.
9136 re_direlt='/[^/][^/]*/\.\./'
9137 # Canonicalize the path of ld
9138 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9139 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9140 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9142 test -z "$LD" && LD="$ac_prog"
9145 # If it fails, then pretend we aren't using GCC.
9149 # If it is relative, then search for the first ld in PATH.
9153 elif test "$with_gnu_ld" = yes; then
9154 echo "$as_me:$LINENO: checking for GNU ld" >&5
9155 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9157 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9158 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9160 if test "${lt_cv_path_LD+set}" = set; then
9161 echo $ECHO_N "(cached) $ECHO_C" >&6
9163 if test -z "$LD"; then
9164 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9165 for ac_dir in $PATH; do
9167 test -z "$ac_dir" && ac_dir=.
9168 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9169 lt_cv_path_LD="$ac_dir/$ac_prog"
9170 # Check to see if the program is GNU ld. I'd rather use --version,
9171 # but apparently some GNU ld's only accept -v.
9172 # Break only if it was the GNU/non-GNU ld that we prefer.
9173 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9174 *GNU* | *'with BFD'*)
9175 test "$with_gnu_ld" != no && break
9178 test "$with_gnu_ld" != yes && break
9185 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9190 if test -n "$LD"; then
9191 echo "$as_me:$LINENO: result: $LD" >&5
9192 echo "${ECHO_T}$LD" >&6
9194 echo "$as_me:$LINENO: result: no" >&5
9195 echo "${ECHO_T}no" >&6
9197 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9198 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9199 { (exit 1); exit 1; }; }
9200 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9201 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9202 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9203 echo $ECHO_N "(cached) $ECHO_C" >&6
9205 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9206 case `"$LD" -v 2>&1 </dev/null` in
9207 *GNU* | *'with BFD'*)
9208 lt_cv_prog_gnu_ld=yes
9211 lt_cv_prog_gnu_ld=no
9215 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9216 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9217 with_gnu_ld=$lt_cv_prog_gnu_ld
9221 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9222 # archiving commands below assume that GNU ld is being used.
9223 if test "$with_gnu_ld" = yes; then
9224 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9225 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'
9227 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9228 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9230 # If archive_cmds runs LD, not CC, wlarc should be empty
9231 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9232 # investigate it a little bit more. (MM)
9235 # ancient GNU ld didn't support --whole-archive et. al.
9236 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9237 grep 'no-whole-archive' > /dev/null; then
9238 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9240 whole_archive_flag_spec_CXX=
9246 # A generic and very simple default shared library creation
9247 # command for GNU C++ for the case where it uses the native
9248 # linker, instead of GNU ld. If possible, this setting should
9249 # overridden to take advantage of the native linker features on
9250 # the platform it is being used on.
9251 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9254 # Commands to make compiler produce verbose output that lists
9255 # what "hidden" libraries, object files and flags are used when
9256 # linking a shared library.
9257 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9265 # PORTME: fill in a description of your system's C++ link characteristics
9266 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9267 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9271 # FIXME: insert proper C++ library support
9275 if test "$host_cpu" = ia64; then
9276 # On IA64, the linker does run time linking by default, so we don't
9277 # have to do anything special.
9278 aix_use_runtimelinking=no
9279 exp_sym_flag='-Bexport'
9282 aix_use_runtimelinking=no
9284 # Test if we are trying to use run time linking or normal
9285 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9286 # need to do runtime linking.
9287 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9288 for ld_flag in $LDFLAGS; do
9291 aix_use_runtimelinking=yes
9298 exp_sym_flag='-bexport'
9299 no_entry_flag='-bnoentry'
9302 # When large executables or shared objects are built, AIX ld can
9303 # have problems creating the table of contents. If linking a library
9304 # or program results in "error TOC overflow" add -mminimal-toc to
9305 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9306 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9309 hardcode_direct_CXX=yes
9310 hardcode_libdir_separator_CXX=':'
9311 link_all_deplibs_CXX=yes
9313 if test "$GXX" = yes; then
9314 case $host_os in aix4.012|aix4.012.*)
9315 # We only want to do this on AIX 4.2 and lower, the check
9316 # below for broken collect2 doesn't work under 4.3+
9317 collect2name=`${CC} -print-prog-name=collect2`
9318 if test -f "$collect2name" && \
9319 strings "$collect2name" | grep resolve_lib_name >/dev/null
9321 # We have reworked collect2
9322 hardcode_direct_CXX=yes
9324 # We have old collect2
9325 hardcode_direct_CXX=unsupported
9326 # It fails to find uninstalled libraries when the uninstalled
9327 # path is not listed in the libpath. Setting hardcode_minus_L
9328 # to unsupported forces relinking
9329 hardcode_minus_L_CXX=yes
9330 hardcode_libdir_flag_spec_CXX='-L$libdir'
9331 hardcode_libdir_separator_CXX=
9334 shared_flag='-shared'
9337 if test "$host_cpu" = ia64; then
9338 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9339 # chokes on -Wl,-G. The following line is correct:
9342 if test "$aix_use_runtimelinking" = yes; then
9343 shared_flag='${wl}-G'
9345 shared_flag='${wl}-bM:SRE'
9350 # It seems that -bexpall does not export symbols beginning with
9351 # underscore (_), so it is better to generate a list of symbols to export.
9352 always_export_symbols_CXX=yes
9353 if test "$aix_use_runtimelinking" = yes; then
9354 # Warning - without using the other runtime loading flags (-brtl),
9355 # -berok will link without error, but may produce a broken library.
9356 allow_undefined_flag_CXX='-berok'
9357 # Determine the default libpath from the value encoded in an empty executable.
9358 cat >conftest.$ac_ext <<_ACEOF
9359 #line $LINENO "configure"
9362 cat confdefs.h >>conftest.$ac_ext
9363 cat >>conftest.$ac_ext <<_ACEOF
9364 /* end confdefs.h. */
9374 rm -f conftest.$ac_objext conftest$ac_exeext
9375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9376 (eval $ac_link) 2>&5
9378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379 (exit $ac_status); } &&
9380 { ac_try='test -s conftest$ac_exeext'
9381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9385 (exit $ac_status); }; }; then
9387 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9389 # Check for a 64-bit object if we didn't find anything.
9390 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; }
9393 echo "$as_me: failed program was:" >&5
9394 sed 's/^/| /' conftest.$ac_ext >&5
9397 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9398 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9400 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9402 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"
9404 if test "$host_cpu" = ia64; then
9405 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9406 allow_undefined_flag_CXX="-z nodefs"
9407 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"
9409 # Determine the default libpath from the value encoded in an empty executable.
9410 cat >conftest.$ac_ext <<_ACEOF
9411 #line $LINENO "configure"
9414 cat confdefs.h >>conftest.$ac_ext
9415 cat >>conftest.$ac_ext <<_ACEOF
9416 /* end confdefs.h. */
9426 rm -f conftest.$ac_objext conftest$ac_exeext
9427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9428 (eval $ac_link) 2>&5
9430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431 (exit $ac_status); } &&
9432 { ac_try='test -s conftest$ac_exeext'
9433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 (exit $ac_status); }; }; then
9439 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9441 # Check for a 64-bit object if we didn't find anything.
9442 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; }
9445 echo "$as_me: failed program was:" >&5
9446 sed 's/^/| /' conftest.$ac_ext >&5
9449 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9450 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9452 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9453 # Warning - without using the other run time loading flags,
9454 # -berok will link without error, but may produce a broken library.
9455 no_undefined_flag_CXX=' ${wl}-bernotok'
9456 allow_undefined_flag_CXX=' ${wl}-berok'
9457 # -bexpall does not export symbols beginning with underscore (_)
9458 always_export_symbols_CXX=yes
9459 # Exported symbols can be pulled into shared objects from archives
9460 whole_archive_flag_spec_CXX=' '
9461 archive_cmds_need_lc_CXX=yes
9462 # This is similar to how AIX traditionally builds it's shared libraries.
9463 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}\${_S_}$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9468 case $cc_basename in
9470 # FIXME: insert proper C++ library support
9476 cygwin* | mingw* | pw32*)
9477 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9478 # as there is no search path for DLLs.
9479 hardcode_libdir_flag_spec_CXX='-L$libdir'
9480 allow_undefined_flag_CXX=unsupported
9481 always_export_symbols_CXX=no
9482 enable_shared_with_static_runtimes_CXX=yes
9484 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9485 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'
9486 # If the export-symbols file already is a .def file (1st line
9487 # is EXPORTS), use it as is; otherwise, prepend...
9488 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9489 cp $export_symbols $output_objdir/$soname.def;
9491 echo EXPORTS > $output_objdir/$soname.def;
9492 cat $export_symbols >> $output_objdir/$soname.def;
9494 $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'
9500 darwin* | rhapsody*)
9501 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9502 archive_cmds_need_lc_CXX=no
9504 rhapsody* | darwin1.[012])
9505 allow_undefined_flag_CXX='-undefined suppress'
9507 darwin1.* | darwin[2-6].*) # Darwin 1.3 on, but less than 7.0
9508 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9511 case "${MACOSX_DEPLOYMENT_TARGET-10.1}" in
9513 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9516 if test -z ${LD_TWOLEVEL_NAMESPACE}; then
9517 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9519 allow_undefined_flag_CXX='-undefined dynamic_lookup'
9525 lt_int_apple_cc_single_mod=no
9526 output_verbose_link_cmd='echo'
9527 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9528 lt_int_apple_cc_single_mod=yes
9530 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9531 archive_cmds_CXX='$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9533 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9535 module_cmds_CXX='$CC -bundle $archargs ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9537 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9538 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9539 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9541 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9543 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -bundle $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9544 hardcode_direct_CXX=no
9545 hardcode_automatic_CXX=yes
9546 hardcode_shlibpath_var_CXX=unsupported
9547 whole_archive_flag_spec_CXX='-all_load $convenience'
9548 link_all_deplibs_CXX=yes
9553 case $cc_basename in
9555 # FIXME: insert proper C++ library support
9559 # Green Hills C++ Compiler
9560 # FIXME: insert proper C++ library support
9564 # FIXME: insert proper C++ library support
9570 # C++ shared libraries reported to be fairly broken before switch to ELF
9574 archive_cmds_need_lc_CXX=no
9577 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9584 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9585 hardcode_libdir_separator_CXX=:
9586 export_dynamic_flag_spec_CXX='${wl}-E'
9587 hardcode_direct_CXX=yes
9588 hardcode_minus_L_CXX=yes # Not in the search PATH,
9589 # but as the default
9590 # location of the library.
9592 case $cc_basename in
9594 # FIXME: insert proper C++ library support
9598 archive_cmds_CXX='$rm $output_objdir/$soname${_S_}$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9599 # Commands to make compiler produce verbose output that lists
9600 # what "hidden" libraries, object files and flags are used when
9601 # linking a shared library.
9603 # There doesn't appear to be a way to prevent this compiler from
9604 # explicitly linking system object files so we need to strip them
9605 # from the output so that they don't get included in the library
9607 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'
9610 if test "$GXX" = yes; then
9611 archive_cmds_CXX='$rm $output_objdir/$soname${_S_}$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9613 # FIXME: insert proper C++ library support
9620 if test $with_gnu_ld = no; then
9623 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9624 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9625 hardcode_libdir_separator_CXX=:
9628 hardcode_libdir_flag_spec_CXX='-L$libdir'
9631 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9632 hardcode_libdir_separator_CXX=:
9633 export_dynamic_flag_spec_CXX='${wl}-E'
9639 hardcode_direct_CXX=no
9640 hardcode_shlibpath_var_CXX=no
9643 hardcode_direct_CXX=no
9644 hardcode_shlibpath_var_CXX=no
9645 hardcode_minus_L_CXX=yes # Not in the search PATH,
9646 # but as the default
9647 # location of the library.
9650 hardcode_direct_CXX=yes
9651 hardcode_minus_L_CXX=yes # Not in the search PATH,
9652 # but as the default
9653 # location of the library.
9657 case $cc_basename in
9659 # FIXME: insert proper C++ library support
9665 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9668 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9671 # Commands to make compiler produce verbose output that lists
9672 # what "hidden" libraries, object files and flags are used when
9673 # linking a shared library.
9675 # There doesn't appear to be a way to prevent this compiler from
9676 # explicitly linking system object files so we need to strip them
9677 # from the output so that they don't get included in the library
9679 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'
9682 if test "$GXX" = yes; then
9683 if test $with_gnu_ld = no; then
9686 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9689 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'
9694 # FIXME: insert proper C++ library support
9701 case $cc_basename in
9704 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'
9706 # Archives containing C++ object files must be created using
9707 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9708 # necessary to make sure instantiated templates are included
9710 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9713 if test "$GXX" = yes; then
9714 if test "$with_gnu_ld" = no; then
9715 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'
9717 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'
9720 link_all_deplibs_CXX=yes
9723 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9724 hardcode_libdir_separator_CXX=:
9727 case $cc_basename in
9729 # Kuck and Associates, Inc. (KAI) C++ Compiler
9731 # KCC will only create a shared library if the output file
9732 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9733 # to its proper name (with version) after linking.
9734 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'
9735 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'
9736 # Commands to make compiler produce verbose output that lists
9737 # what "hidden" libraries, object files and flags are used when
9738 # linking a shared library.
9740 # There doesn't appear to be a way to prevent this compiler from
9741 # explicitly linking system object files so we need to strip them
9742 # from the output so that they don't get included in the library
9744 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'
9746 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9747 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9749 # Archives containing C++ object files must be created using
9750 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9751 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9756 archive_cmds_need_lc_CXX=no
9757 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9758 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'
9759 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9760 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9761 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9765 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9766 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'
9768 runpath_var=LD_RUN_PATH
9769 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9770 hardcode_libdir_separator_CXX=:
9772 # Commands to make compiler produce verbose output that lists
9773 # what "hidden" libraries, object files and flags are used when
9774 # linking a shared library.
9776 # There doesn't appear to be a way to prevent this compiler from
9777 # explicitly linking system object files so we need to strip them
9778 # from the output so that they don't get included in the library
9780 output_verbose_link_cmd='templist=`$CC -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'
9785 # FIXME: insert proper C++ library support
9789 # FIXME: insert proper C++ library support
9793 case $cc_basename in
9795 # FIXME: insert proper C++ library support
9799 # FIXME: insert proper C++ library support
9805 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9806 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9808 hardcode_libdir_flag_spec_CXX='-R$libdir'
9809 hardcode_direct_CXX=yes
9810 hardcode_shlibpath_var_CXX=no
9812 # Workaround some broken pre-1.5 toolchains
9813 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9816 case $cc_basename in
9818 # Kuck and Associates, Inc. (KAI) C++ Compiler
9820 # KCC will only create a shared library if the output file
9821 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9822 # to its proper name (with version) after linking.
9823 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'
9825 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9826 hardcode_libdir_separator_CXX=:
9828 # Archives containing C++ object files must be created using
9829 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9830 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9834 # Rational C++ 2.4.1
9835 # FIXME: insert proper C++ library support
9839 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9840 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'
9842 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9843 hardcode_libdir_separator_CXX=:
9845 # Commands to make compiler produce verbose output that lists
9846 # what "hidden" libraries, object files and flags are used when
9847 # linking a shared library.
9849 # There doesn't appear to be a way to prevent this compiler from
9850 # explicitly linking system object files so we need to strip them
9851 # from the output so that they don't get included in the library
9853 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'
9856 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9857 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9858 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'
9860 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9861 hardcode_libdir_separator_CXX=:
9863 # Commands to make compiler produce verbose output that lists
9864 # what "hidden" libraries, object files and flags are used when
9865 # linking a shared library.
9866 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9869 # FIXME: insert proper C++ library support
9876 case $cc_basename in
9878 # Kuck and Associates, Inc. (KAI) C++ Compiler
9880 # KCC will only create a shared library if the output file
9881 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9882 # to its proper name (with version) after linking.
9883 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'
9885 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9886 hardcode_libdir_separator_CXX=:
9888 # Archives containing C++ object files must be created using
9889 # the KAI C++ compiler.
9890 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9893 # Rational C++ 2.4.1
9894 # FIXME: insert proper C++ library support
9898 allow_undefined_flag_CXX=' -expect_unresolved \*'
9899 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'
9900 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done${_S_}
9901 echo "-hidden">> $lib.exp${_S_}
9902 $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${_S_}
9905 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9906 hardcode_libdir_separator_CXX=:
9908 # Commands to make compiler produce verbose output that lists
9909 # what "hidden" libraries, object files and flags are used when
9910 # linking a shared library.
9912 # There doesn't appear to be a way to prevent this compiler from
9913 # explicitly linking system object files so we need to strip them
9914 # from the output so that they don't get included in the library
9916 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'
9919 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9920 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9921 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'
9923 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9924 hardcode_libdir_separator_CXX=:
9926 # Commands to make compiler produce verbose output that lists
9927 # what "hidden" libraries, object files and flags are used when
9928 # linking a shared library.
9929 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9932 # FIXME: insert proper C++ library support
9939 # FIXME: insert proper C++ library support
9943 archive_cmds_need_lc_CXX=no
9944 case $cc_basename in
9946 # FIXME: insert proper C++ library support
9950 # FIXME: insert proper C++ library support
9956 case $cc_basename in
9959 # FIXME: insert proper C++ library support
9964 # FIXME: insert proper C++ library support
9968 # FIXME: insert proper C++ library support
9974 case $cc_basename in
9976 # Sun C++ 4.2, 5.x and Centerline C++
9977 no_undefined_flag_CXX=' -zdefs'
9978 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9979 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
9980 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags${_S_}$rm $lib.exp'
9982 hardcode_libdir_flag_spec_CXX='-R$libdir'
9983 hardcode_shlibpath_var_CXX=no
9985 solaris2.0-5 | solaris2.0-5.*) ;;
9987 # The C++ compiler is used as linker so we must use $wl
9988 # flag to pass the commands to the underlying system
9990 # Supported since Solaris 2.6 (maybe 2.5.1?)
9991 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9994 link_all_deplibs_CXX=yes
9996 # Commands to make compiler produce verbose output that lists
9997 # what "hidden" libraries, object files and flags are used when
9998 # linking a shared library.
10000 # There doesn't appear to be a way to prevent this compiler from
10001 # explicitly linking system object files so we need to strip them
10002 # from the output so that they don't get included in the library
10004 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'
10006 # Archives containing C++ object files must be created using
10007 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10008 # necessary to make sure instantiated templates are included
10010 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10013 # Green Hills C++ Compiler
10014 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10016 # The C++ compiler must be used to create the archive.
10017 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10020 # GNU C++ compiler with Solaris linker
10021 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10022 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10023 if $CC --version | grep -v '^2\.7' > /dev/null; then
10024 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10025 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
10026 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags${_S_}$rm $lib.exp'
10028 # Commands to make compiler produce verbose output that lists
10029 # what "hidden" libraries, object files and flags are used when
10030 # linking a shared library.
10031 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10033 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10035 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10036 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
10037 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags${_S_}$rm $lib.exp'
10039 # Commands to make compiler produce verbose output that lists
10040 # what "hidden" libraries, object files and flags are used when
10041 # linking a shared library.
10042 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10045 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10050 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10051 archive_cmds_need_lc_CXX=no
10054 case $cc_basename in
10056 # NonStop-UX NCC 3.20
10057 # FIXME: insert proper C++ library support
10061 # FIXME: insert proper C++ library support
10067 # FIXME: insert proper C++ library support
10071 # FIXME: insert proper C++ library support
10075 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10076 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10077 test "$ld_shlibs_CXX" = no && can_build_shared=no
10083 cat > conftest.$ac_ext <<EOF
10087 Foo (void) { a = 0; }
10093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10094 (eval $ac_compile) 2>&5
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); }; then
10098 # Parse the compiler output and extract the necessary
10099 # objects, libraries and library flags.
10101 # Sentinel used to keep track of whether or not we are before
10102 # the conftest object file.
10103 pre_test_object_deps_done=no
10105 # The `*' in the case matches for architectures that use `case' in
10106 # $output_verbose_cmd can trigger glob expansion during the loop
10107 # eval without this substitution.
10108 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10110 for p in `eval $output_verbose_link_cmd`; do
10114 # Some compilers place space between "-{L,R}" and the path.
10115 # Remove the space.
10116 if test $p = "-L" \
10117 || test $p = "-R"; then
10124 if test "$pre_test_object_deps_done" = no; then
10127 # Internal compiler library paths should come after those
10128 # provided the user. The postdeps already come after the
10129 # user supplied libs so there is no need to process them.
10130 if test -z "$compiler_lib_search_path_CXX"; then
10131 compiler_lib_search_path_CXX="${prev}${p}"
10133 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10136 # The "-l" case would never come before the object being
10137 # linked, so don't bother handling this case.
10140 if test -z "$postdeps_CXX"; then
10141 postdeps_CXX="${prev}${p}"
10143 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10149 # This assumes that the test object file only shows up
10150 # once in the compiler output.
10151 if test "$p" = "conftest.$objext"; then
10152 pre_test_object_deps_done=yes
10156 if test "$pre_test_object_deps_done" = no; then
10157 if test -z "$predep_objects_CXX"; then
10158 predep_objects_CXX="$p"
10160 predep_objects_CXX="$predep_objects_CXX $p"
10163 if test -z "$postdep_objects_CXX"; then
10164 postdep_objects_CXX="$p"
10166 postdep_objects_CXX="$postdep_objects_CXX $p"
10171 *) ;; # Ignore the rest.
10179 echo "libtool.m4: error: problem compiling CXX test program"
10182 $rm -f confest.$objext
10184 case " $postdeps_CXX " in
10185 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10188 lt_prog_compiler_wl_CXX=
10189 lt_prog_compiler_pic_CXX=
10190 lt_prog_compiler_static_CXX=
10192 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10193 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10195 # C++ specific cases for pic, static, wl, etc.
10196 if test "$GXX" = yes; then
10197 lt_prog_compiler_wl_CXX='-Wl,'
10198 lt_prog_compiler_static_CXX='-static'
10202 # All AIX code is PIC.
10203 if test "$host_cpu" = ia64; then
10204 # AIX 5 now supports IA64 processor
10205 lt_prog_compiler_static_CXX='-Bstatic'
10209 # FIXME: we need at least 68020 code to build shared libraries, but
10210 # adding the `-m68020' flag to GCC prevents building anything better,
10212 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10214 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10215 # PIC is the default for these OSes.
10217 mingw* | os2* | pw32*)
10218 # This hack is so that the source file can tell whether it is being
10219 # built for inclusion in a dll (and should export symbols for example).
10220 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10222 darwin* | rhapsody*)
10223 # PIC is the default on this platform
10224 # Common symbols not allowed in MH_DYLIB files
10225 lt_prog_compiler_pic_CXX='-fno-common'
10228 # DJGPP does not support shared libraries at all
10229 lt_prog_compiler_pic_CXX=
10232 if test -d /usr/nec; then
10233 lt_prog_compiler_pic_CXX=-Kconform_pic
10237 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10238 # not for PA HP-UX.
10239 case "$host_cpu" in
10243 lt_prog_compiler_pic_CXX='-fPIC'
10248 lt_prog_compiler_pic_CXX='-fPIC'
10254 # All AIX code is PIC.
10255 if test "$host_cpu" = ia64; then
10256 # AIX 5 now supports IA64 processor
10257 lt_prog_compiler_static_CXX='-Bstatic'
10259 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10263 case $cc_basename in
10265 # Green Hills C++ Compiler
10266 # _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"
10271 case $cc_basename in
10273 lt_prog_compiler_pic_CXX='-KPIC'
10276 # Green Hills C++ Compiler
10277 lt_prog_compiler_pic_CXX='-pic'
10284 # FreeBSD uses GNU C++
10286 hpux9* | hpux10* | hpux11*)
10287 case $cc_basename in
10289 lt_prog_compiler_wl_CXX='-Wl,'
10290 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10291 if test "$host_cpu" != ia64; then
10292 lt_prog_compiler_pic_CXX='+Z'
10296 lt_prog_compiler_wl_CXX='-Wl,'
10297 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10298 case "$host_cpu" in
10303 lt_prog_compiler_pic_CXX='+Z'
10311 irix5* | irix6* | nonstopux*)
10312 case $cc_basename in
10314 lt_prog_compiler_wl_CXX='-Wl,'
10315 lt_prog_compiler_static_CXX='-non_shared'
10316 # CC pic flag -KPIC is the default.
10323 case $cc_basename in
10326 lt_prog_compiler_wl_CXX='--backend -Wl,'
10327 lt_prog_compiler_pic_CXX='-fPIC'
10331 lt_prog_compiler_wl_CXX='-Wl,'
10332 lt_prog_compiler_pic_CXX='-KPIC'
10333 lt_prog_compiler_static_CXX='-static'
10337 # Make sure the PIC flag is empty. It appears that all Alpha
10338 # Linux and Compaq Tru64 Unix objects are PIC.
10339 lt_prog_compiler_pic_CXX=
10340 lt_prog_compiler_static_CXX='-non_shared'
10351 case $cc_basename in
10353 lt_prog_compiler_pic_CXX='-W c,exportall'
10361 osf3* | osf4* | osf5*)
10362 case $cc_basename in
10364 lt_prog_compiler_wl_CXX='--backend -Wl,'
10367 # Rational C++ 2.4.1
10368 lt_prog_compiler_pic_CXX='-pic'
10371 # Digital/Compaq C++
10372 lt_prog_compiler_wl_CXX='-Wl,'
10373 # Make sure the PIC flag is empty. It appears that all Alpha
10374 # Linux and Compaq Tru64 Unix objects are PIC.
10375 lt_prog_compiler_pic_CXX=
10376 lt_prog_compiler_static_CXX='-non_shared'
10385 case $cc_basename in
10387 lt_prog_compiler_pic_CXX='-fPIC'
10394 case $cc_basename in
10396 # Sun C++ 4.2, 5.x and Centerline C++
10397 lt_prog_compiler_pic_CXX='-KPIC'
10398 lt_prog_compiler_static_CXX='-Bstatic'
10399 lt_prog_compiler_wl_CXX='-Qoption ld '
10402 # Green Hills C++ Compiler
10403 lt_prog_compiler_pic_CXX='-PIC'
10410 case $cc_basename in
10413 lt_prog_compiler_pic_CXX='-pic'
10414 lt_prog_compiler_static_CXX='-Bstatic'
10418 lt_prog_compiler_pic_CXX='-pic'
10425 case $cc_basename in
10427 # NonStop-UX NCC 3.20
10428 lt_prog_compiler_pic_CXX='-KPIC'
10439 lt_prog_compiler_can_build_shared_CXX=no
10444 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10445 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10448 # Check to make sure the PIC flag actually works.
10450 if test -n "$lt_prog_compiler_pic_CXX"; then
10451 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10452 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10453 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10454 echo $ECHO_N "(cached) $ECHO_C" >&6
10456 lt_prog_compiler_pic_works_CXX=no
10457 ac_outfile=conftest.$ac_objext
10458 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10459 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10460 # Insert the option either (1) after the last *FLAGS variable, or
10461 # (2) before a word containing "conftest.", or (3) at the end.
10462 # Note that $ac_compile itself does not contain backslashes and begins
10463 # with a dollar sign (not a hyphen), so the echo should work correctly.
10464 # The option is referenced via a variable to avoid confusing sed.
10465 lt_compile=`echo "$ac_compile" | $SED \
10466 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10467 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10468 -e 's:$: $lt_compiler_flag:'`
10469 (eval echo "\"\$as_me:10469: $lt_compile\"" >&5)
10470 (eval "$lt_compile" 2>conftest.err)
10472 cat conftest.err >&5
10473 echo "$as_me:10473: \$? = $ac_status" >&5
10474 if (exit $ac_status) && test -s "$ac_outfile"; then
10475 # The compiler can only warn and ignore the option if not recognized
10476 # So say no if there are warnings
10477 if test ! -s conftest.err; then
10478 lt_prog_compiler_pic_works_CXX=yes
10484 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10485 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10487 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10488 case $lt_prog_compiler_pic_CXX in
10490 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10493 lt_prog_compiler_pic_CXX=
10494 lt_prog_compiler_can_build_shared_CXX=no
10499 # For platforms which do not support PIC, -DPIC is meaningless:
10501 lt_prog_compiler_pic_CXX=
10504 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10508 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10509 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10510 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10511 echo $ECHO_N "(cached) $ECHO_C" >&6
10513 lt_cv_prog_compiler_c_o_CXX=no
10514 $rm -r conftest 2>/dev/null
10518 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10520 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10521 # that will create temporary files in the current directory regardless of
10522 # the output directory. Thus, making CWD read-only will cause this test
10523 # to fail, enabling locking or at least warning the user not to do parallel
10527 lt_compiler_flag="-o out/conftest2.$ac_objext"
10528 # Insert the option either (1) after the last *FLAGS variable, or
10529 # (2) before a word containing "conftest.", or (3) at the end.
10530 # Note that $ac_compile itself does not contain backslashes and begins
10531 # with a dollar sign (not a hyphen), so the echo should work correctly.
10532 lt_compile=`echo "$ac_compile" | $SED \
10533 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10534 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10535 -e 's:$: $lt_compiler_flag:'`
10536 (eval echo "\"\$as_me:10536: $lt_compile\"" >&5)
10537 (eval "$lt_compile" 2>out/conftest.err)
10539 cat out/conftest.err >&5
10540 echo "$as_me:10540: \$? = $ac_status" >&5
10541 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10543 # The compiler can only warn and ignore the option if not recognized
10544 # So say no if there are warnings
10545 if test ! -s out/conftest.err; then
10546 lt_cv_prog_compiler_c_o_CXX=yes
10550 $rm conftest* out/*
10557 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10558 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10561 hard_links="nottested"
10562 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10563 # do not overwrite the value of need_locks provided by the user
10564 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10565 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10568 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10570 ln conftest.a conftest.b 2>&5 || hard_links=no
10571 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10572 echo "$as_me:$LINENO: result: $hard_links" >&5
10573 echo "${ECHO_T}$hard_links" >&6
10574 if test "$hard_links" = no; then
10575 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10576 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10583 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10584 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10586 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10589 # If we're using GNU nm, then we don't want the "-C" option.
10590 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10591 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10592 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'
10594 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'
10598 export_symbols_cmds_CXX="$ltdll_cmds"
10601 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10604 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10608 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10609 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10610 test "$ld_shlibs_CXX" = no && can_build_shared=no
10612 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10613 if test "$GCC" = yes; then
10614 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10618 # Do we need to explicitly link libc?
10620 case "x$archive_cmds_need_lc_CXX" in
10622 # Assume -lc should be added
10623 archive_cmds_need_lc_CXX=yes
10625 if test "$enable_shared" = yes && test "$GCC" = yes; then
10626 case $archive_cmds_CXX in
10628 # FIXME: we may have to deal with multi-command sequences.
10631 # Test whether the compiler implicitly links with -lc since on some
10632 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10633 # to ld, don't add -lc before -lgcc.
10634 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10635 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10637 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10640 (eval $ac_compile) 2>&5
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); } 2>conftest.err; then
10646 libobjs=conftest.$ac_objext
10648 wl=$lt_prog_compiler_wl_CXX
10654 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10655 allow_undefined_flag_CXX=
10656 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10657 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); }
10662 archive_cmds_need_lc_CXX=no
10664 archive_cmds_need_lc_CXX=yes
10666 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10668 cat conftest.err 1>&5
10671 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10672 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10679 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10680 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10681 hardcode_action_CXX=
10682 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10683 test -n "$runpath_var CXX" || \
10684 test "X$hardcode_automatic_CXX"="Xyes" ; then
10686 # We can hardcode non-existant directories.
10687 if test "$hardcode_direct_CXX" != no &&
10688 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10689 # have to relink, otherwise we might link with an installed library
10690 # when we should be linking with a yet-to-be-installed one
10691 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10692 test "$hardcode_minus_L_CXX" != no; then
10693 # Linking always hardcodes the temporary library directory.
10694 hardcode_action_CXX=relink
10696 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10697 hardcode_action_CXX=immediate
10700 # We cannot hardcode anything, or else we can only hardcode existing
10702 hardcode_action_CXX=unsupported
10704 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10705 echo "${ECHO_T}$hardcode_action_CXX" >&6
10707 if test "$hardcode_action_CXX" = relink; then
10708 # Fast installation is not supported
10709 enable_fast_install=no
10710 elif test "$shlibpath_overrides_runpath" = yes ||
10711 test "$enable_shared" = no; then
10712 # Fast installation is not necessary
10713 enable_fast_install=needless
10718 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10719 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10720 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10721 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10722 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10723 echo "$as_me:$LINENO: result: yes" >&5
10724 echo "${ECHO_T}yes" >&6
10726 # FIXME - insert some real tests, host_os isn't really good enough
10729 if test -n "$STRIP" ; then
10730 striplib="$STRIP -x"
10731 echo "$as_me:$LINENO: result: yes" >&5
10732 echo "${ECHO_T}yes" >&6
10734 echo "$as_me:$LINENO: result: no" >&5
10735 echo "${ECHO_T}no" >&6
10739 echo "$as_me:$LINENO: result: no" >&5
10740 echo "${ECHO_T}no" >&6
10745 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10746 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10747 library_names_spec=
10748 libname_spec='lib$name'
10752 postuninstall_cmds=
10756 shlibpath_overrides_runpath=unknown
10758 dynamic_linker="$host_os ld.so"
10759 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10760 if test "$GCC" = yes; then
10761 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10762 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10763 # if the path contains ";" then we assume it to be the separator
10764 # otherwise default to the standard path separator (i.e. ":") - it is
10765 # assumed that no part of a normal pathname contains ";" but that should
10766 # okay in the real world where ";" in dirpaths is itself problematic.
10767 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10769 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10772 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10774 need_lib_prefix=unknown
10775 hardcode_into_libs=no
10777 # when you set need_version to no, make sure it does not cause -set_version
10778 # flags to be left without arguments
10779 need_version=unknown
10784 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10785 shlibpath_var=LIBPATH
10787 # AIX 3 has no versioning support, so we append a major version to the name.
10788 soname_spec='${libname}${release}${shared_ext}$major'
10795 hardcode_into_libs=yes
10796 if test "$host_cpu" = ia64; then
10797 # AIX 5 supports IA64
10798 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10799 shlibpath_var=LD_LIBRARY_PATH
10801 # With GCC up to 2.95.x, collect2 would create an import file
10802 # for dependence libraries. The import file would start with
10803 # the line `#! .'. This would cause the generated library to
10804 # depend on `.', always an invalid library. This was fixed in
10805 # development snapshots of GCC prior to 3.0.
10807 aix4 | aix4.[01] | aix4.[01].*)
10808 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10810 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10813 can_build_shared=no
10817 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10818 # soname into executable. Probably we can add versioning support to
10819 # collect2, so additional links can be useful in future.
10820 if test "$aix_use_runtimelinking" = yes; then
10821 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10822 # instead of lib<name>.a to let people know that these are not
10823 # typical AIX shared libraries.
10824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10826 # We preserve .a as extension for shared libraries through AIX4.2
10827 # and later when we are not doing run time linking.
10828 library_names_spec='${libname}${release}.a $libname.a'
10829 soname_spec='${libname}${release}${shared_ext}$major'
10831 shlibpath_var=LIBPATH
10836 library_names_spec='$libname.ixlibrary $libname.a'
10837 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10838 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'
10842 library_names_spec='${libname}${shared_ext}'
10843 dynamic_linker="$host_os ld.so"
10844 shlibpath_var=LIBRARY_PATH
10850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10851 soname_spec='${libname}${release}${shared_ext}$major'
10852 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10853 shlibpath_var=LD_LIBRARY_PATH
10854 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10855 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10856 # the default ld.so.conf also contains /usr/contrib/lib and
10857 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10858 # libtool to hard-code these into programs
10861 cygwin* | mingw* | pw32*)
10862 version_type=windows
10867 case $GCC,$host_os in
10868 yes,cygwin* | yes,mingw* | yes,pw32*)
10869 library_names_spec='$libname.dll.a'
10870 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10871 postinstall_cmds='base_file=`basename \${file}`${_S_}
10872 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`${_S_}
10873 dldir=$destdir/`dirname \$dlpath`${_S_}
10874 test -d \$dldir || mkdir -p \$dldir${_S_}
10875 $install_prog $dir/$dlname \$dldir/$dlname'
10876 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`${_S_}
10877 dlpath=$dir/\$dldll${_S_}
10879 shlibpath_overrides_runpath=yes
10883 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10884 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10885 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10888 # MinGW DLLs use traditional 'lib' prefix
10889 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10890 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10891 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10892 # It is most probably a Windows format PATH printed by
10893 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10894 # path with ; separators, and with drive letters. We can handle the
10895 # drive letters (cygwin fileutils understands them), so leave them,
10896 # especially as we might pass files found there to a mingw objdump,
10897 # which wouldn't understand a cygwinified path. Ahh.
10898 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10900 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10904 # pw32 DLLs use 'pw' prefix rather than 'lib'
10905 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10911 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10914 dynamic_linker='Win32 ld.exe'
10915 # FIXME: first we should search . and the directory the executable is in
10919 darwin* | rhapsody*)
10920 dynamic_linker="$host_os dyld"
10921 version_type=darwin
10924 # FIXME: Relying on posixy $() will cause problems for
10925 # cross-compilation, but unfortunately the echo tests do not
10926 # yet detect zsh echo's removal of \ escapes.
10927 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
10928 soname_spec='${libname}${release}${major}$shared_ext'
10929 shlibpath_overrides_runpath=yes
10930 shlibpath_var=DYLD_LIBRARY_PATH
10931 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10932 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10933 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10934 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"`
10936 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10944 soname_spec='${libname}${release}${shared_ext}$major'
10945 shlibpath_var=LD_LIBRARY_PATH
10953 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10954 version_type=freebsd-$objformat
10955 case $version_type in
10957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10962 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10966 shlibpath_var=LD_LIBRARY_PATH
10969 shlibpath_overrides_runpath=yes
10971 freebsd3.01* | freebsdelf3.01*)
10972 shlibpath_overrides_runpath=yes
10973 hardcode_into_libs=yes
10976 shlibpath_overrides_runpath=no
10977 hardcode_into_libs=yes
10986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10987 soname_spec='${libname}${release}${shared_ext}$major'
10988 shlibpath_var=LD_LIBRARY_PATH
10989 hardcode_into_libs=yes
10992 hpux9* | hpux10* | hpux11*)
10993 # Give a soname corresponding to the major version so that dld.sl refuses to
10994 # link against other versions.
10998 case "$host_cpu" in
11001 hardcode_into_libs=yes
11002 dynamic_linker="$host_os dld.so"
11003 shlibpath_var=LD_LIBRARY_PATH
11004 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11006 soname_spec='${libname}${release}${shared_ext}$major'
11007 if test "X$HPUX_IA64_MODE" = X32; then
11008 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11010 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11012 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11016 hardcode_into_libs=yes
11017 dynamic_linker="$host_os dld.sl"
11018 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11019 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11021 soname_spec='${libname}${release}${shared_ext}$major'
11022 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11023 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11027 dynamic_linker="$host_os dld.sl"
11028 shlibpath_var=SHLIB_PATH
11029 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11031 soname_spec='${libname}${release}${shared_ext}$major'
11034 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11035 postinstall_cmds='chmod 555 $lib'
11038 irix5* | irix6* | nonstopux*)
11040 nonstopux*) version_type=nonstopux ;;
11042 if test "$lt_cv_prog_gnu_ld" = yes; then
11050 soname_spec='${libname}${release}${shared_ext}$major'
11051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11053 irix5* | nonstopux*)
11054 libsuff= shlibsuff=
11057 case $LD in # libtool.m4 will add one of these switches to LD
11058 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11059 libsuff= shlibsuff= libmagic=32-bit;;
11060 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11061 libsuff=32 shlibsuff=N32 libmagic=N32;;
11062 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11063 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11064 *) libsuff= shlibsuff= libmagic=never-match;;
11068 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11069 shlibpath_overrides_runpath=no
11070 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11071 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11072 hardcode_into_libs=yes
11075 # No shared lib support for Linux oldld, aout, or coff.
11076 linux*oldld* | linux*aout* | linux*coff*)
11080 # This must be Linux ELF.
11085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11086 soname_spec='${libname}${release}${shared_ext}$major'
11087 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11088 shlibpath_var=LD_LIBRARY_PATH
11089 shlibpath_overrides_runpath=no
11090 # This implies no fast_install, which is unacceptable.
11091 # Some rework will be needed to allow for fast_install
11092 # before this can be enabled.
11093 hardcode_into_libs=yes
11095 # We used to test for /lib/ld.so.1 and disable shared libraries on
11096 # powerpc, because MkLinux only supported shared libraries with the
11097 # GNU dynamic linker. Since this was broken with cross compilers,
11098 # most powerpc-linux boxes support dynamic linking these days and
11099 # people can always --disable-shared, the test was removed, and we
11100 # assume the GNU/Linux dynamic linker is in use.
11101 dynamic_linker='GNU/Linux ld.so'
11108 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11110 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11111 dynamic_linker='NetBSD (a.out) ld.so'
11113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11114 soname_spec='${libname}${release}${shared_ext}$major'
11115 dynamic_linker='NetBSD ld.elf_so'
11117 shlibpath_var=LD_LIBRARY_PATH
11118 shlibpath_overrides_runpath=yes
11119 hardcode_into_libs=yes
11124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11125 shlibpath_var=LD_LIBRARY_PATH
11126 shlibpath_overrides_runpath=yes
11133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11134 soname_spec='${libname}${release}${shared_ext}$major'
11135 shlibpath_var=LD_LIBRARY_PATH
11136 shlibpath_overrides_runpath=yes
11143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11144 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11145 shlibpath_var=LD_LIBRARY_PATH
11146 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11148 openbsd2.[89] | openbsd2.[89].*)
11149 shlibpath_overrides_runpath=no
11152 shlibpath_overrides_runpath=yes
11156 shlibpath_overrides_runpath=yes
11161 libname_spec='$name'
11164 library_names_spec='$libname${shared_ext} $libname.a'
11165 dynamic_linker='OS/2 ld.exe'
11166 shlibpath_var=LIBPATH
11169 osf3* | osf4* | osf5*)
11173 soname_spec='${libname}${release}${shared_ext}$major'
11174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11175 shlibpath_var=LD_LIBRARY_PATH
11176 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11177 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11182 soname_spec='${libname}${release}${shared_ext}$major'
11183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11184 shlibpath_var=LD_LIBRARY_PATH
11191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11192 soname_spec='${libname}${release}${shared_ext}$major'
11193 shlibpath_var=LD_LIBRARY_PATH
11194 shlibpath_overrides_runpath=yes
11195 hardcode_into_libs=yes
11196 # ldd complains unless libraries are executable
11197 postinstall_cmds='chmod +x $lib'
11202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11203 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11204 shlibpath_var=LD_LIBRARY_PATH
11205 shlibpath_overrides_runpath=yes
11206 if test "$with_gnu_ld" = yes; then
11212 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11215 soname_spec='${libname}${release}${shared_ext}$major'
11216 shlibpath_var=LD_LIBRARY_PATH
11217 case $host_vendor in
11219 shlibpath_overrides_runpath=no
11221 export_dynamic_flag_spec='${wl}-Blargedynsym'
11222 runpath_var=LD_RUN_PATH
11230 shlibpath_overrides_runpath=no
11231 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11237 if test -d /usr/nec ;then
11239 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11240 soname_spec='$libname${shared_ext}.$major'
11241 shlibpath_var=LD_LIBRARY_PATH
11247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11248 soname_spec='${libname}${release}${shared_ext}$major'
11249 shlibpath_var=LD_LIBRARY_PATH
11256 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11257 echo "${ECHO_T}$dynamic_linker" >&6
11258 test "$dynamic_linker" = no && can_build_shared=no
11260 if test "x$enable_dlopen" != xyes; then
11261 enable_dlopen=unknown
11262 enable_dlopen_self=unknown
11263 enable_dlopen_self_static=unknown
11270 lt_cv_dlopen="load_add_on"
11272 lt_cv_dlopen_self=yes
11276 lt_cv_dlopen="LoadLibrary"
11281 lt_cv_dlopen="dlopen"
11286 # if libdl is installed we need to link against it
11287 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11288 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11289 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11290 echo $ECHO_N "(cached) $ECHO_C" >&6
11292 ac_check_lib_save_LIBS=$LIBS
11294 cat >conftest.$ac_ext <<_ACEOF
11295 #line $LINENO "configure"
11298 cat confdefs.h >>conftest.$ac_ext
11299 cat >>conftest.$ac_ext <<_ACEOF
11300 /* end confdefs.h. */
11302 /* Override any gcc2 internal prototype to avoid an error. */
11306 /* We use char because int might match the return type of a gcc2
11307 builtin and then its argument prototype would still apply. */
11317 rm -f conftest.$ac_objext conftest$ac_exeext
11318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11319 (eval $ac_link) 2>&5
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); } &&
11323 { ac_try='test -s conftest$ac_exeext'
11324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11325 (eval $ac_try) 2>&5
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); }; }; then
11329 ac_cv_lib_dl_dlopen=yes
11331 echo "$as_me: failed program was:" >&5
11332 sed 's/^/| /' conftest.$ac_ext >&5
11334 ac_cv_lib_dl_dlopen=no
11336 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11337 LIBS=$ac_check_lib_save_LIBS
11339 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11340 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11341 if test $ac_cv_lib_dl_dlopen = yes; then
11342 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11345 lt_cv_dlopen="dyld"
11347 lt_cv_dlopen_self=yes
11354 echo "$as_me:$LINENO: checking for shl_load" >&5
11355 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11356 if test "${ac_cv_func_shl_load+set}" = set; then
11357 echo $ECHO_N "(cached) $ECHO_C" >&6
11359 cat >conftest.$ac_ext <<_ACEOF
11360 #line $LINENO "configure"
11363 cat confdefs.h >>conftest.$ac_ext
11364 cat >>conftest.$ac_ext <<_ACEOF
11365 /* end confdefs.h. */
11366 /* System header to define __stub macros and hopefully few prototypes,
11367 which can conflict with char shl_load (); below.
11368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11369 <limits.h> exists even on freestanding compilers. */
11371 # include <limits.h>
11373 # include <assert.h>
11375 /* Override any gcc2 internal prototype to avoid an error. */
11380 /* We use char because int might match the return type of a gcc2
11381 builtin and then its argument prototype would still apply. */
11383 /* The GNU C library defines this for functions which it implements
11384 to always fail with ENOSYS. Some functions are actually named
11385 something starting with __ and the normal name is an alias. */
11386 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11389 char (*f) () = shl_load;
11398 return f != shl_load;
11403 rm -f conftest.$ac_objext conftest$ac_exeext
11404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11405 (eval $ac_link) 2>&5
11407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); } &&
11409 { ac_try='test -s conftest$ac_exeext'
11410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11411 (eval $ac_try) 2>&5
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); }; }; then
11415 ac_cv_func_shl_load=yes
11417 echo "$as_me: failed program was:" >&5
11418 sed 's/^/| /' conftest.$ac_ext >&5
11420 ac_cv_func_shl_load=no
11422 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11424 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11425 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11426 if test $ac_cv_func_shl_load = yes; then
11427 lt_cv_dlopen="shl_load"
11429 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11430 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11431 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11432 echo $ECHO_N "(cached) $ECHO_C" >&6
11434 ac_check_lib_save_LIBS=$LIBS
11436 cat >conftest.$ac_ext <<_ACEOF
11437 #line $LINENO "configure"
11440 cat confdefs.h >>conftest.$ac_ext
11441 cat >>conftest.$ac_ext <<_ACEOF
11442 /* end confdefs.h. */
11444 /* Override any gcc2 internal prototype to avoid an error. */
11448 /* We use char because int might match the return type of a gcc2
11449 builtin and then its argument prototype would still apply. */
11459 rm -f conftest.$ac_objext conftest$ac_exeext
11460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11461 (eval $ac_link) 2>&5
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); } &&
11465 { ac_try='test -s conftest$ac_exeext'
11466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11467 (eval $ac_try) 2>&5
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); }; }; then
11471 ac_cv_lib_dld_shl_load=yes
11473 echo "$as_me: failed program was:" >&5
11474 sed 's/^/| /' conftest.$ac_ext >&5
11476 ac_cv_lib_dld_shl_load=no
11478 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11479 LIBS=$ac_check_lib_save_LIBS
11481 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11482 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11483 if test $ac_cv_lib_dld_shl_load = yes; then
11484 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11486 echo "$as_me:$LINENO: checking for dlopen" >&5
11487 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11488 if test "${ac_cv_func_dlopen+set}" = set; then
11489 echo $ECHO_N "(cached) $ECHO_C" >&6
11491 cat >conftest.$ac_ext <<_ACEOF
11492 #line $LINENO "configure"
11495 cat confdefs.h >>conftest.$ac_ext
11496 cat >>conftest.$ac_ext <<_ACEOF
11497 /* end confdefs.h. */
11498 /* System header to define __stub macros and hopefully few prototypes,
11499 which can conflict with char dlopen (); below.
11500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11501 <limits.h> exists even on freestanding compilers. */
11503 # include <limits.h>
11505 # include <assert.h>
11507 /* Override any gcc2 internal prototype to avoid an error. */
11512 /* We use char because int might match the return type of a gcc2
11513 builtin and then its argument prototype would still apply. */
11515 /* The GNU C library defines this for functions which it implements
11516 to always fail with ENOSYS. Some functions are actually named
11517 something starting with __ and the normal name is an alias. */
11518 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11521 char (*f) () = dlopen;
11530 return f != dlopen;
11535 rm -f conftest.$ac_objext conftest$ac_exeext
11536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11537 (eval $ac_link) 2>&5
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); } &&
11541 { ac_try='test -s conftest$ac_exeext'
11542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11543 (eval $ac_try) 2>&5
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); }; }; then
11547 ac_cv_func_dlopen=yes
11549 echo "$as_me: failed program was:" >&5
11550 sed 's/^/| /' conftest.$ac_ext >&5
11552 ac_cv_func_dlopen=no
11554 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11556 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11557 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11558 if test $ac_cv_func_dlopen = yes; then
11559 lt_cv_dlopen="dlopen"
11561 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11562 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11563 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11564 echo $ECHO_N "(cached) $ECHO_C" >&6
11566 ac_check_lib_save_LIBS=$LIBS
11568 cat >conftest.$ac_ext <<_ACEOF
11569 #line $LINENO "configure"
11572 cat confdefs.h >>conftest.$ac_ext
11573 cat >>conftest.$ac_ext <<_ACEOF
11574 /* end confdefs.h. */
11576 /* Override any gcc2 internal prototype to avoid an error. */
11580 /* We use char because int might match the return type of a gcc2
11581 builtin and then its argument prototype would still apply. */
11591 rm -f conftest.$ac_objext conftest$ac_exeext
11592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11593 (eval $ac_link) 2>&5
11595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596 (exit $ac_status); } &&
11597 { ac_try='test -s conftest$ac_exeext'
11598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11599 (eval $ac_try) 2>&5
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); }; }; then
11603 ac_cv_lib_dl_dlopen=yes
11605 echo "$as_me: failed program was:" >&5
11606 sed 's/^/| /' conftest.$ac_ext >&5
11608 ac_cv_lib_dl_dlopen=no
11610 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11611 LIBS=$ac_check_lib_save_LIBS
11613 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11614 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11615 if test $ac_cv_lib_dl_dlopen = yes; then
11616 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11618 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11619 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11620 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11621 echo $ECHO_N "(cached) $ECHO_C" >&6
11623 ac_check_lib_save_LIBS=$LIBS
11624 LIBS="-lsvld $LIBS"
11625 cat >conftest.$ac_ext <<_ACEOF
11626 #line $LINENO "configure"
11629 cat confdefs.h >>conftest.$ac_ext
11630 cat >>conftest.$ac_ext <<_ACEOF
11631 /* end confdefs.h. */
11633 /* Override any gcc2 internal prototype to avoid an error. */
11637 /* We use char because int might match the return type of a gcc2
11638 builtin and then its argument prototype would still apply. */
11648 rm -f conftest.$ac_objext conftest$ac_exeext
11649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11650 (eval $ac_link) 2>&5
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); } &&
11654 { ac_try='test -s conftest$ac_exeext'
11655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11656 (eval $ac_try) 2>&5
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); }; }; then
11660 ac_cv_lib_svld_dlopen=yes
11662 echo "$as_me: failed program was:" >&5
11663 sed 's/^/| /' conftest.$ac_ext >&5
11665 ac_cv_lib_svld_dlopen=no
11667 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11668 LIBS=$ac_check_lib_save_LIBS
11670 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11671 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11672 if test $ac_cv_lib_svld_dlopen = yes; then
11673 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11675 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11676 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11677 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11678 echo $ECHO_N "(cached) $ECHO_C" >&6
11680 ac_check_lib_save_LIBS=$LIBS
11682 cat >conftest.$ac_ext <<_ACEOF
11683 #line $LINENO "configure"
11686 cat confdefs.h >>conftest.$ac_ext
11687 cat >>conftest.$ac_ext <<_ACEOF
11688 /* end confdefs.h. */
11690 /* Override any gcc2 internal prototype to avoid an error. */
11694 /* We use char because int might match the return type of a gcc2
11695 builtin and then its argument prototype would still apply. */
11705 rm -f conftest.$ac_objext conftest$ac_exeext
11706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11707 (eval $ac_link) 2>&5
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); } &&
11711 { ac_try='test -s conftest$ac_exeext'
11712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11713 (eval $ac_try) 2>&5
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); }; }; then
11717 ac_cv_lib_dld_dld_link=yes
11719 echo "$as_me: failed program was:" >&5
11720 sed 's/^/| /' conftest.$ac_ext >&5
11722 ac_cv_lib_dld_dld_link=no
11724 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11725 LIBS=$ac_check_lib_save_LIBS
11727 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11728 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11729 if test $ac_cv_lib_dld_dld_link = yes; then
11730 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11751 if test "x$lt_cv_dlopen" != xno; then
11757 case $lt_cv_dlopen in
11759 save_CPPFLAGS="$CPPFLAGS"
11760 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11762 save_LDFLAGS="$LDFLAGS"
11763 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11766 LIBS="$lt_cv_dlopen_libs $LIBS"
11768 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11769 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11770 if test "${lt_cv_dlopen_self+set}" = set; then
11771 echo $ECHO_N "(cached) $ECHO_C" >&6
11773 if test "$cross_compiling" = yes; then :
11774 lt_cv_dlopen_self=cross
11776 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11777 lt_status=$lt_dlunknown
11778 cat > conftest.$ac_ext <<EOF
11779 #line 11779 "configure"
11780 #include "confdefs.h"
11789 # define LT_DLGLOBAL RTLD_GLOBAL
11792 # define LT_DLGLOBAL DL_GLOBAL
11794 # define LT_DLGLOBAL 0
11798 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11799 find out it does not work in some platform. */
11800 #ifndef LT_DLLAZY_OR_NOW
11802 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11805 # define LT_DLLAZY_OR_NOW DL_LAZY
11808 # define LT_DLLAZY_OR_NOW RTLD_NOW
11811 # define LT_DLLAZY_OR_NOW DL_NOW
11813 # define LT_DLLAZY_OR_NOW 0
11821 extern "C" void exit (int);
11824 void fnord() { int i=42;}
11827 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11828 int status = $lt_dlunknown;
11832 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11833 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11834 /* dlclose (self); */
11840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11841 (eval $ac_link) 2>&5
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11845 (./conftest; exit; ) 2>/dev/null
11847 case x$lt_status in
11848 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11849 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11850 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11853 # compilation failed
11854 lt_cv_dlopen_self=no
11861 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11862 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11864 if test "x$lt_cv_dlopen_self" = xyes; then
11865 LDFLAGS="$LDFLAGS $link_static_flag"
11866 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11867 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11868 if test "${lt_cv_dlopen_self_static+set}" = set; then
11869 echo $ECHO_N "(cached) $ECHO_C" >&6
11871 if test "$cross_compiling" = yes; then :
11872 lt_cv_dlopen_self_static=cross
11874 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11875 lt_status=$lt_dlunknown
11876 cat > conftest.$ac_ext <<EOF
11877 #line 11877 "configure"
11878 #include "confdefs.h"
11887 # define LT_DLGLOBAL RTLD_GLOBAL
11890 # define LT_DLGLOBAL DL_GLOBAL
11892 # define LT_DLGLOBAL 0
11896 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11897 find out it does not work in some platform. */
11898 #ifndef LT_DLLAZY_OR_NOW
11900 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11903 # define LT_DLLAZY_OR_NOW DL_LAZY
11906 # define LT_DLLAZY_OR_NOW RTLD_NOW
11909 # define LT_DLLAZY_OR_NOW DL_NOW
11911 # define LT_DLLAZY_OR_NOW 0
11919 extern "C" void exit (int);
11922 void fnord() { int i=42;}
11925 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11926 int status = $lt_dlunknown;
11930 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11931 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11932 /* dlclose (self); */
11938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11939 (eval $ac_link) 2>&5
11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11943 (./conftest; exit; ) 2>/dev/null
11945 case x$lt_status in
11946 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11947 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11948 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11951 # compilation failed
11952 lt_cv_dlopen_self_static=no
11959 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11960 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11963 CPPFLAGS="$save_CPPFLAGS"
11964 LDFLAGS="$save_LDFLAGS"
11969 case $lt_cv_dlopen_self in
11970 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11971 *) enable_dlopen_self=unknown ;;
11974 case $lt_cv_dlopen_self_static in
11975 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11976 *) enable_dlopen_self_static=unknown ;;
11981 # The else clause should only fire when bootstrapping the
11982 # libtool distribution, otherwise you forgot to ship ltmain.sh
11983 # with your package, and you will get complaints that there are
11984 # no rules to generate ltmain.sh.
11985 if test -f "$ltmain"; then
11986 # See if we are running on zsh, and set the options which allow our commands through
11987 # without removal of \ escapes.
11988 if test -n "${ZSH_VERSION+set}" ; then
11989 setopt NO_GLOB_SUBST
11991 # Now quote all the things that may contain metacharacters while being
11992 # careful not to overquote the AC_SUBSTed values. We take copies of the
11993 # variables and quote the copies for generation of the libtool script.
11994 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11995 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11996 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11997 deplibs_check_method reload_flag reload_cmds need_locks \
11998 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11999 lt_cv_sys_global_symbol_to_c_name_address \
12000 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12001 old_postinstall_cmds old_postuninstall_cmds \
12005 lt_prog_compiler_wl_CXX \
12006 lt_prog_compiler_pic_CXX \
12007 lt_prog_compiler_static_CXX \
12008 lt_prog_compiler_no_builtin_flag_CXX \
12009 export_dynamic_flag_spec_CXX \
12010 thread_safe_flag_spec_CXX \
12011 whole_archive_flag_spec_CXX \
12012 enable_shared_with_static_runtimes_CXX \
12013 old_archive_cmds_CXX \
12014 old_archive_from_new_cmds_CXX \
12015 predep_objects_CXX \
12016 postdep_objects_CXX \
12019 compiler_lib_search_path_CXX \
12021 archive_expsym_cmds_CXX \
12022 postinstall_cmds_CXX \
12023 postuninstall_cmds_CXX \
12024 old_archive_from_expsyms_cmds_CXX \
12025 allow_undefined_flag_CXX \
12026 no_undefined_flag_CXX \
12027 export_symbols_cmds_CXX \
12028 hardcode_libdir_flag_spec_CXX \
12029 hardcode_libdir_flag_spec_ld_CXX \
12030 hardcode_libdir_separator_CXX \
12031 hardcode_automatic_CXX \
12033 module_expsym_cmds_CXX \
12034 lt_cv_prog_compiler_c_o_CXX \
12035 exclude_expsyms_CXX \
12036 include_expsyms_CXX; do
12039 old_archive_cmds_CXX | \
12040 old_archive_from_new_cmds_CXX | \
12041 archive_cmds_CXX | \
12042 archive_expsym_cmds_CXX | \
12043 module_cmds_CXX | \
12044 module_expsym_cmds_CXX | \
12045 old_archive_from_expsyms_cmds_CXX | \
12046 export_symbols_cmds_CXX | \
12047 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12048 postinstall_cmds | postuninstall_cmds | \
12049 old_postinstall_cmds | old_postuninstall_cmds | \
12050 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12051 # Double-quote double-evaled strings.
12052 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\" -e \"\$unescape_variable_subst\"\`\\\""
12055 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12061 *'\$0 --fallback-echo"')
12062 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12068 cat <<__EOF__ >> "$cfgfile"
12069 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12071 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12073 # Set the command separator (default: ~)
12074 _S_=\${LIBTOOL_CMD_SEP-\~}
12076 # Shell to use when invoking shell scripts.
12079 # Whether or not to build shared libraries.
12080 build_libtool_libs=$enable_shared
12082 # Whether or not to build static libraries.
12083 build_old_libs=$enable_static
12085 # Whether or not to add -lc for building shared libraries.
12086 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12088 # Whether or not to disallow shared libs when runtime libs are static
12089 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12091 # Whether or not to optimize for fast installation.
12092 fast_install=$enable_fast_install
12095 host_alias=$host_alias
12098 # An echo program that does not interpret backslashes.
12103 AR_FLAGS=$lt_AR_FLAGS
12108 # A language-specific compiler.
12109 CC=$lt_compiler_CXX
12111 # Is the compiler the GNU C compiler?
12117 # The linker used to build libraries.
12120 # Whether we need hard or soft links.
12123 # A BSD-compatible nm program.
12126 # A symbol stripping program
12129 # Used to examine libraries when file_magic_cmd begins "file"
12130 MAGIC_CMD=$MAGIC_CMD
12132 # Used on cygwin: DLL creation program.
12135 # Used on cygwin: object dumper.
12138 # Used on cygwin: assembler.
12141 # The name of the directory that contains temporary libtool files.
12144 # How to create reloadable object files.
12145 reload_flag=$lt_reload_flag
12146 reload_cmds=$lt_reload_cmds
12148 # How to pass a linker flag through the compiler.
12149 wl=$lt_lt_prog_compiler_wl_CXX
12151 # Object file suffix (normally "o").
12152 objext="$ac_objext"
12154 # Old archive suffix (normally "a").
12157 # Shared library suffix (normally ".so").
12160 # Executable file suffix (normally "").
12163 # Additional compiler flags for building library objects.
12164 pic_flag=$lt_lt_prog_compiler_pic_CXX
12167 # What is the maximum length of a command?
12168 max_cmd_len=$lt_cv_sys_max_cmd_len
12170 # Does compiler simultaneously support -c and -o options?
12171 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12173 # Must we lock files when doing compilation ?
12174 need_locks=$lt_need_locks
12176 # Do we need the lib prefix for modules?
12177 need_lib_prefix=$need_lib_prefix
12179 # Do we need a version for libraries?
12180 need_version=$need_version
12182 # Whether dlopen is supported.
12183 dlopen_support=$enable_dlopen
12185 # Whether dlopen of programs is supported.
12186 dlopen_self=$enable_dlopen_self
12188 # Whether dlopen of statically linked programs is supported.
12189 dlopen_self_static=$enable_dlopen_self_static
12191 # Compiler flag to prevent dynamic linking.
12192 link_static_flag=$lt_lt_prog_compiler_static_CXX
12194 # Compiler flag to turn off builtin functions.
12195 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12197 # Compiler flag to allow reflexive dlopens.
12198 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12200 # Compiler flag to generate shared objects directly from archives.
12201 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12203 # Compiler flag to generate thread-safe objects.
12204 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12206 # Library versioning type.
12207 version_type=$version_type
12209 # Format of library name prefix.
12210 libname_spec=$lt_libname_spec
12212 # List of archive names. First name is the real one, the rest are links.
12213 # The last name is the one that the linker finds with -lNAME.
12214 library_names_spec=$lt_library_names_spec
12216 # The coded name of the library, if different from the real name.
12217 soname_spec=$lt_soname_spec
12219 # Commands used to build and install an old-style archive.
12221 old_archive_cmds=$lt_old_archive_cmds_CXX
12222 old_postinstall_cmds=$lt_old_postinstall_cmds
12223 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12225 # Create an old-style archive from a shared archive.
12226 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12228 # Create a temporary old-style archive to link instead of a shared archive.
12229 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12231 # Commands used to build and install a shared archive.
12232 archive_cmds=$lt_archive_cmds_CXX
12233 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12234 postinstall_cmds=$lt_postinstall_cmds
12235 postuninstall_cmds=$lt_postuninstall_cmds
12237 # Commands used to build a loadable module (assumed same as above if empty)
12238 module_cmds=$lt_module_cmds_CXX
12239 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12241 # Commands to strip libraries.
12242 old_striplib=$lt_old_striplib
12243 striplib=$lt_striplib
12245 # Dependencies to place before the objects being linked to create a
12247 predep_objects=$lt_predep_objects_CXX
12249 # Dependencies to place after the objects being linked to create a
12251 postdep_objects=$lt_postdep_objects_CXX
12253 # Dependencies to place before the objects being linked to create a
12255 predeps=$lt_predeps_CXX
12257 # Dependencies to place after the objects being linked to create a
12259 postdeps=$lt_postdeps_CXX
12261 # The library search path used internally by the compiler when linking
12262 # a shared library.
12263 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12265 # Method to check whether dependent libraries are shared objects.
12266 deplibs_check_method=$lt_deplibs_check_method
12268 # Command to use when deplibs_check_method == file_magic.
12269 file_magic_cmd=$lt_file_magic_cmd
12271 # Flag that allows shared libraries with undefined symbols to be built.
12272 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12274 # Flag that forces no undefined symbols.
12275 no_undefined_flag=$lt_no_undefined_flag_CXX
12277 # Commands used to finish a libtool library installation in a directory.
12278 finish_cmds=$lt_finish_cmds
12280 # Same as above, but a single script fragment to be evaled but not shown.
12281 finish_eval=$lt_finish_eval
12283 # Take the output of nm and produce a listing of raw symbols and C names.
12284 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12286 # Transform the output of nm in a proper C declaration
12287 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12289 # Transform the output of nm in a C name address pair
12290 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12292 # This is the shared library runtime path variable.
12293 runpath_var=$runpath_var
12295 # This is the shared library path variable.
12296 shlibpath_var=$shlibpath_var
12298 # Is shlibpath searched before the hard-coded library search path?
12299 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12301 # How to hardcode a shared library path into an executable.
12302 hardcode_action=$hardcode_action_CXX
12304 # Whether we should hardcode library paths into libraries.
12305 hardcode_into_libs=$hardcode_into_libs
12307 # Flag to hardcode \$libdir into a binary during linking.
12308 # This must work even if \$libdir does not exist.
12309 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12311 # If ld is used when linking, flag to hardcode \$libdir into
12312 # a binary during linking. This must work even if \$libdir does
12314 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12316 # Whether we need a single -rpath flag with a separated argument.
12317 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12319 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12320 # resulting binary.
12321 hardcode_direct=$hardcode_direct_CXX
12323 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12324 # resulting binary.
12325 hardcode_minus_L=$hardcode_minus_L_CXX
12327 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12328 # the resulting binary.
12329 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12331 # Set to yes if building a shared library automatically hardcodes DIR into the library
12332 # and all subsequent libraries and executables linked against it.
12333 hardcode_automatic=$hardcode_automatic_CXX
12335 # Variables whose values should be saved in libtool wrapper scripts and
12336 # restored at relink time.
12337 variables_saved_for_relink="$variables_saved_for_relink"
12339 # Whether libtool must link a program against all its dependency libraries.
12340 link_all_deplibs=$link_all_deplibs_CXX
12342 # Compile-time system search path for libraries
12343 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12345 # Run-time system search path for libraries
12346 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12348 # Fix the shell variable \$srcfile for the compiler.
12349 fix_srcfile_path="$fix_srcfile_path_CXX"
12351 # Set to yes if exported symbols are required.
12352 always_export_symbols=$always_export_symbols_CXX
12354 # The commands to list exported symbols.
12355 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12357 # The commands to extract the exported symbol list from a shared archive.
12358 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12360 # Symbols that should not be listed in the preloaded symbols.
12361 exclude_expsyms=$lt_exclude_expsyms_CXX
12363 # Symbols that must always be exported.
12364 include_expsyms=$lt_include_expsyms_CXX
12366 # ### END LIBTOOL TAG CONFIG: $tagname
12372 # If there is no Makefile yet, we rely on a make rule to execute
12373 # `config.status --recheck' to rerun these tests and create the
12374 # libtool script then.
12375 test -f Makefile && make "$ltmain"
12380 ac_cpp='$CPP $CPPFLAGS'
12381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12389 with_gnu_ldcxx=$with_gnu_ld
12390 with_gnu_ld=$lt_save_with_gnu_ld
12391 lt_cv_path_LDCXX=$lt_cv_path_LD
12392 lt_cv_path_LD=$lt_save_path_LD
12393 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12394 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12402 if test -n "$F77" && test "X$F77" != "Xno"; then
12405 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12406 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12407 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12410 archive_cmds_need_lc_F77=no
12411 allow_undefined_flag_F77=
12412 always_export_symbols_F77=no
12413 archive_expsym_cmds_F77=
12414 export_dynamic_flag_spec_F77=
12415 hardcode_direct_F77=no
12416 hardcode_libdir_flag_spec_F77=
12417 hardcode_libdir_flag_spec_ld_F77=
12418 hardcode_libdir_separator_F77=
12419 hardcode_minus_L_F77=no
12420 hardcode_automatic_F77=no
12422 module_expsym_cmds_F77=
12423 link_all_deplibs_F77=unknown
12424 old_archive_cmds_F77=$old_archive_cmds
12425 no_undefined_flag_F77=
12426 whole_archive_flag_spec_F77=
12427 enable_shared_with_static_runtimes_F77=no
12429 # Source file extension for f77 test sources.
12432 # Object file extension for compiled f77 test sources.
12436 # Code to be used in simple compile tests
12437 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12439 # Code to be used in simple link tests
12440 lt_simple_link_test_code=" program t\n end\n"
12442 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12444 # If no C compiler was specified, use CC.
12447 # Allow CC to be a program name with arguments.
12451 # Allow CC to be a program name with arguments.
12456 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12458 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12459 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12460 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12461 echo "${ECHO_T}$can_build_shared" >&6
12463 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12464 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12465 test "$can_build_shared" = "no" && enable_shared=no
12467 # On AIX, shared libraries and static libraries use the same namespace, and
12468 # are all built from PIC.
12471 test "$enable_shared" = yes && enable_static=no
12472 if test -n "$RANLIB"; then
12473 archive_cmds="$archive_cmds\${_S_}\$RANLIB \$lib"
12474 postinstall_cmds='$RANLIB $lib'
12478 test "$enable_shared" = yes && enable_static=no
12481 echo "$as_me:$LINENO: result: $enable_shared" >&5
12482 echo "${ECHO_T}$enable_shared" >&6
12484 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12485 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12486 # Make sure either enable_shared or enable_static is yes.
12487 test "$enable_shared" = yes || enable_static=yes
12488 echo "$as_me:$LINENO: result: $enable_static" >&5
12489 echo "${ECHO_T}$enable_static" >&6
12491 test "$ld_shlibs_F77" = no && can_build_shared=no
12496 lt_prog_compiler_wl_F77=
12497 lt_prog_compiler_pic_F77=
12498 lt_prog_compiler_static_F77=
12500 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12501 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12503 if test "$GCC" = yes; then
12504 lt_prog_compiler_wl_F77='-Wl,'
12505 lt_prog_compiler_static_F77='-static'
12509 # All AIX code is PIC.
12510 if test "$host_cpu" = ia64; then
12511 # AIX 5 now supports IA64 processor
12512 lt_prog_compiler_static_F77='-Bstatic'
12517 # FIXME: we need at least 68020 code to build shared libraries, but
12518 # adding the `-m68020' flag to GCC prevents building anything better,
12520 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12523 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12524 # PIC is the default for these OSes.
12527 mingw* | pw32* | os2*)
12528 # This hack is so that the source file can tell whether it is being
12529 # built for inclusion in a dll (and should export symbols for example).
12530 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12533 darwin* | rhapsody*)
12534 # PIC is the default on this platform
12535 # Common symbols not allowed in MH_DYLIB files
12536 lt_prog_compiler_pic_F77='-fno-common'
12540 # Just because we use GCC doesn't mean we suddenly get shared libraries
12541 # on systems that don't support them.
12542 lt_prog_compiler_can_build_shared_F77=no
12547 if test -d /usr/nec; then
12548 lt_prog_compiler_pic_F77=-Kconform_pic
12553 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12554 # not for PA HP-UX.
12555 case "$host_cpu" in
12560 lt_prog_compiler_pic_F77='-fPIC'
12566 lt_prog_compiler_pic_F77='-fPIC'
12570 # PORTME Check for flag to pass linker flags through the system compiler.
12573 lt_prog_compiler_wl_F77='-Wl,'
12574 if test "$host_cpu" = ia64; then
12575 # AIX 5 now supports IA64 processor
12576 lt_prog_compiler_static_F77='-Bstatic'
12578 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12582 mingw* | pw32* | os2*)
12583 # This hack is so that the source file can tell whether it is being
12584 # built for inclusion in a dll (and should export symbols for example).
12585 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12588 hpux9* | hpux10* | hpux11*)
12589 lt_prog_compiler_wl_F77='-Wl,'
12590 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12591 # not for PA HP-UX.
12592 case "$host_cpu" in
12597 lt_prog_compiler_pic_F77='+Z'
12600 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12601 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12604 irix5* | irix6* | nonstopux*)
12605 lt_prog_compiler_wl_F77='-Wl,'
12606 # PIC (with -KPIC) is the default.
12607 lt_prog_compiler_static_F77='-non_shared'
12611 lt_prog_compiler_pic_F77='-KPIC'
12612 lt_prog_compiler_static_F77='-Bstatic'
12618 lt_prog_compiler_wl_F77='-Wl,'
12619 lt_prog_compiler_pic_F77='-KPIC'
12620 lt_prog_compiler_static_F77='-static'
12623 lt_prog_compiler_wl_F77='-Wl,'
12624 # All Alpha code is PIC.
12625 lt_prog_compiler_static_F77='-non_shared'
12630 osf3* | osf4* | osf5*)
12631 lt_prog_compiler_wl_F77='-Wl,'
12632 # All OSF/1 code is PIC.
12633 lt_prog_compiler_static_F77='-non_shared'
12637 lt_prog_compiler_pic_F77='-Kpic'
12638 lt_prog_compiler_static_F77='-dn'
12642 lt_prog_compiler_wl_F77='-Wl,'
12643 lt_prog_compiler_pic_F77='-KPIC'
12644 lt_prog_compiler_static_F77='-Bstatic'
12648 lt_prog_compiler_wl_F77='-Qoption ld '
12649 lt_prog_compiler_pic_F77='-PIC'
12650 lt_prog_compiler_static_F77='-Bstatic'
12653 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12654 lt_prog_compiler_wl_F77='-Wl,'
12655 lt_prog_compiler_pic_F77='-KPIC'
12656 lt_prog_compiler_static_F77='-Bstatic'
12660 if test -d /usr/nec ;then
12661 lt_prog_compiler_pic_F77='-Kconform_pic'
12662 lt_prog_compiler_static_F77='-Bstatic'
12667 lt_prog_compiler_pic_F77='-pic'
12668 lt_prog_compiler_static_F77='-Bstatic'
12672 lt_prog_compiler_can_build_shared_F77=no
12677 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12678 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12681 # Check to make sure the PIC flag actually works.
12683 if test -n "$lt_prog_compiler_pic_F77"; then
12684 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12685 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12686 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12687 echo $ECHO_N "(cached) $ECHO_C" >&6
12689 lt_prog_compiler_pic_works_F77=no
12690 ac_outfile=conftest.$ac_objext
12691 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12692 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12693 # Insert the option either (1) after the last *FLAGS variable, or
12694 # (2) before a word containing "conftest.", or (3) at the end.
12695 # Note that $ac_compile itself does not contain backslashes and begins
12696 # with a dollar sign (not a hyphen), so the echo should work correctly.
12697 # The option is referenced via a variable to avoid confusing sed.
12698 lt_compile=`echo "$ac_compile" | $SED \
12699 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12700 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12701 -e 's:$: $lt_compiler_flag:'`
12702 (eval echo "\"\$as_me:12702: $lt_compile\"" >&5)
12703 (eval "$lt_compile" 2>conftest.err)
12705 cat conftest.err >&5
12706 echo "$as_me:12706: \$? = $ac_status" >&5
12707 if (exit $ac_status) && test -s "$ac_outfile"; then
12708 # The compiler can only warn and ignore the option if not recognized
12709 # So say no if there are warnings
12710 if test ! -s conftest.err; then
12711 lt_prog_compiler_pic_works_F77=yes
12717 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12718 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12720 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12721 case $lt_prog_compiler_pic_F77 in
12723 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12726 lt_prog_compiler_pic_F77=
12727 lt_prog_compiler_can_build_shared_F77=no
12732 # For platforms which do not support PIC, -DPIC is meaningless:
12734 lt_prog_compiler_pic_F77=
12737 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12741 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12742 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12743 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12744 echo $ECHO_N "(cached) $ECHO_C" >&6
12746 lt_cv_prog_compiler_c_o_F77=no
12747 $rm -r conftest 2>/dev/null
12751 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12753 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12754 # that will create temporary files in the current directory regardless of
12755 # the output directory. Thus, making CWD read-only will cause this test
12756 # to fail, enabling locking or at least warning the user not to do parallel
12760 lt_compiler_flag="-o out/conftest2.$ac_objext"
12761 # Insert the option either (1) after the last *FLAGS variable, or
12762 # (2) before a word containing "conftest.", or (3) at the end.
12763 # Note that $ac_compile itself does not contain backslashes and begins
12764 # with a dollar sign (not a hyphen), so the echo should work correctly.
12765 lt_compile=`echo "$ac_compile" | $SED \
12766 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12767 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12768 -e 's:$: $lt_compiler_flag:'`
12769 (eval echo "\"\$as_me:12769: $lt_compile\"" >&5)
12770 (eval "$lt_compile" 2>out/conftest.err)
12772 cat out/conftest.err >&5
12773 echo "$as_me:12773: \$? = $ac_status" >&5
12774 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12776 # The compiler can only warn and ignore the option if not recognized
12777 # So say no if there are warnings
12778 if test ! -s out/conftest.err; then
12779 lt_cv_prog_compiler_c_o_F77=yes
12783 $rm conftest* out/*
12790 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12791 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12794 hard_links="nottested"
12795 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12796 # do not overwrite the value of need_locks provided by the user
12797 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12798 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12801 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12803 ln conftest.a conftest.b 2>&5 || hard_links=no
12804 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12805 echo "$as_me:$LINENO: result: $hard_links" >&5
12806 echo "${ECHO_T}$hard_links" >&6
12807 if test "$hard_links" = no; then
12808 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12809 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12816 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12817 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12820 allow_undefined_flag_F77=
12821 enable_shared_with_static_runtimes_F77=no
12823 archive_expsym_cmds_F77=
12824 old_archive_From_new_cmds_F77=
12825 old_archive_from_expsyms_cmds_F77=
12826 export_dynamic_flag_spec_F77=
12827 whole_archive_flag_spec_F77=
12828 thread_safe_flag_spec_F77=
12829 hardcode_libdir_flag_spec_F77=
12830 hardcode_libdir_flag_spec_ld_F77=
12831 hardcode_libdir_separator_F77=
12832 hardcode_direct_F77=no
12833 hardcode_minus_L_F77=no
12834 hardcode_shlibpath_var_F77=unsupported
12835 link_all_deplibs_F77=unknown
12836 hardcode_automatic_F77=no
12838 module_expsym_cmds_F77=
12839 always_export_symbols_F77=no
12840 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12841 # include_expsyms should be a list of space-separated symbols to be *always*
12842 # included in the symbol list
12843 include_expsyms_F77=
12844 # exclude_expsyms can be an extended regexp of symbols to exclude
12845 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12846 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12847 # as well as any symbol that contains `d'.
12848 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12849 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12850 # platforms (ab)use it in PIC code, but their linkers get confused if
12851 # the symbol is explicitly referenced. Since portable code cannot
12852 # rely on this symbol name, it's probably fine to never include it in
12853 # preloaded symbol tables.
12854 extract_expsyms_cmds=
12857 cygwin* | mingw* | pw32*)
12858 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12859 # When not using gcc, we currently assume that we are using
12860 # Microsoft Visual C++.
12861 if test "$GCC" != yes; then
12871 if test "$with_gnu_ld" = yes; then
12872 # If archive_cmds runs LD, not CC, wlarc should be empty
12875 # See if GNU ld supports shared libraries.
12877 aix3* | aix4* | aix5*)
12878 # On AIX/PPC, the GNU linker is very broken
12879 if test "$host_cpu" != ia64; then
12883 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12884 *** to be unable to reliably create shared libraries on AIX.
12885 *** Therefore, libtool is disabling shared libraries support. If you
12886 *** really care for shared libraries, you may want to modify your PATH
12887 *** so that a non-GNU linker is found, and then restart.
12894 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data${_S_}$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data${_S_}$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data${_S_}$AR $AR_FLAGS $lib $libobjs${_S_}$RANLIB $lib${_S_}(cd $output_objdir && a2ixlibrary -32)'
12895 hardcode_libdir_flag_spec_F77='-L$libdir'
12896 hardcode_minus_L_F77=yes
12898 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12899 # that the semantics of dynamic libraries on AmigaOS, at least up
12900 # to version 4, is to share data among multiple programs linked
12901 # with the same dynamic library. Since this doesn't match the
12902 # behavior of shared libraries on other platforms, we can't use
12908 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12909 allow_undefined_flag_F77=unsupported
12910 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12911 # support --undefined. This deserves some investigation. FIXME
12912 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12918 cygwin* | mingw* | pw32*)
12919 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12920 # as there is no search path for DLLs.
12921 hardcode_libdir_flag_spec_F77='-L$libdir'
12922 allow_undefined_flag_F77=unsupported
12923 always_export_symbols_F77=no
12924 enable_shared_with_static_runtimes_F77=yes
12925 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12927 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12928 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12929 # If the export-symbols file already is a .def file (1st line
12930 # is EXPORTS), use it as is; otherwise, prepend...
12931 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12932 cp $export_symbols $output_objdir/$soname.def;
12934 echo EXPORTS > $output_objdir/$soname.def;
12935 cat $export_symbols >> $output_objdir/$soname.def;
12937 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12944 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12945 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12948 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12949 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12954 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12958 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12959 *** create shared libraries on Solaris systems. Therefore, libtool
12960 *** is disabling shared libraries support. We urge you to upgrade GNU
12961 *** binutils to release 2.9.1 or newer. Another option is to modify
12962 *** your PATH or compiler configuration so that the native linker is
12963 *** used, and then restart.
12966 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12967 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12968 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12975 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12977 hardcode_direct_F77=yes
12978 hardcode_shlibpath_var_F77=no
12982 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12983 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12984 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12991 if test "$ld_shlibs_F77" = yes; then
12992 runpath_var=LD_RUN_PATH
12993 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12994 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12995 # ancient GNU ld didn't support --whole-archive et. al.
12996 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12997 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12999 whole_archive_flag_spec_F77=
13003 # PORTME fill in a description of your system's linker (not GNU ld)
13006 allow_undefined_flag_F77=unsupported
13007 always_export_symbols_F77=yes
13008 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE${_S_}$AR $AR_FLAGS $lib $output_objdir/$soname'
13009 # Note: this linker hardcodes the directories in LIBPATH if there
13010 # are no directories specified by -L.
13011 hardcode_minus_L_F77=yes
13012 if test "$GCC" = yes && test -z "$link_static_flag"; then
13013 # Neither direct hardcoding nor static linking is supported with a
13015 hardcode_direct_F77=unsupported
13020 if test "$host_cpu" = ia64; then
13021 # On IA64, the linker does run time linking by default, so we don't
13022 # have to do anything special.
13023 aix_use_runtimelinking=no
13024 exp_sym_flag='-Bexport'
13027 # If we're using GNU nm, then we don't want the "-C" option.
13028 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13029 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13030 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'
13032 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'
13034 aix_use_runtimelinking=no
13036 # Test if we are trying to use run time linking or normal
13037 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13038 # need to do runtime linking.
13039 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13040 for ld_flag in $LDFLAGS; do
13041 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13042 aix_use_runtimelinking=yes
13048 exp_sym_flag='-bexport'
13049 no_entry_flag='-bnoentry'
13052 # When large executables or shared objects are built, AIX ld can
13053 # have problems creating the table of contents. If linking a library
13054 # or program results in "error TOC overflow" add -mminimal-toc to
13055 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13056 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13058 archive_cmds_F77=''
13059 hardcode_direct_F77=yes
13060 hardcode_libdir_separator_F77=':'
13061 link_all_deplibs_F77=yes
13063 if test "$GCC" = yes; then
13064 case $host_os in aix4.012|aix4.012.*)
13065 # We only want to do this on AIX 4.2 and lower, the check
13066 # below for broken collect2 doesn't work under 4.3+
13067 collect2name=`${CC} -print-prog-name=collect2`
13068 if test -f "$collect2name" && \
13069 strings "$collect2name" | grep resolve_lib_name >/dev/null
13071 # We have reworked collect2
13072 hardcode_direct_F77=yes
13074 # We have old collect2
13075 hardcode_direct_F77=unsupported
13076 # It fails to find uninstalled libraries when the uninstalled
13077 # path is not listed in the libpath. Setting hardcode_minus_L
13078 # to unsupported forces relinking
13079 hardcode_minus_L_F77=yes
13080 hardcode_libdir_flag_spec_F77='-L$libdir'
13081 hardcode_libdir_separator_F77=
13084 shared_flag='-shared'
13087 if test "$host_cpu" = ia64; then
13088 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13089 # chokes on -Wl,-G. The following line is correct:
13092 if test "$aix_use_runtimelinking" = yes; then
13093 shared_flag='${wl}-G'
13095 shared_flag='${wl}-bM:SRE'
13100 # It seems that -bexpall does not export symbols beginning with
13101 # underscore (_), so it is better to generate a list of symbols to export.
13102 always_export_symbols_F77=yes
13103 if test "$aix_use_runtimelinking" = yes; then
13104 # Warning - without using the other runtime loading flags (-brtl),
13105 # -berok will link without error, but may produce a broken library.
13106 allow_undefined_flag_F77='-berok'
13107 # Determine the default libpath from the value encoded in an empty executable.
13108 cat >conftest.$ac_ext <<_ACEOF
13113 rm -f conftest.$ac_objext conftest$ac_exeext
13114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13115 (eval $ac_link) 2>&5
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); } &&
13119 { ac_try='test -s conftest$ac_exeext'
13120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13121 (eval $ac_try) 2>&5
13123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124 (exit $ac_status); }; }; then
13126 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13128 # Check for a 64-bit object if we didn't find anything.
13129 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; }
13132 echo "$as_me: failed program was:" >&5
13133 sed 's/^/| /' conftest.$ac_ext >&5
13136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13137 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13139 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13140 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"
13142 if test "$host_cpu" = ia64; then
13143 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13144 allow_undefined_flag_F77="-z nodefs"
13145 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"
13147 # Determine the default libpath from the value encoded in an empty executable.
13148 cat >conftest.$ac_ext <<_ACEOF
13153 rm -f conftest.$ac_objext conftest$ac_exeext
13154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13155 (eval $ac_link) 2>&5
13157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158 (exit $ac_status); } &&
13159 { ac_try='test -s conftest$ac_exeext'
13160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13161 (eval $ac_try) 2>&5
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); }; }; then
13166 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13168 # Check for a 64-bit object if we didn't find anything.
13169 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; }
13172 echo "$as_me: failed program was:" >&5
13173 sed 's/^/| /' conftest.$ac_ext >&5
13176 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13177 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13179 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13180 # Warning - without using the other run time loading flags,
13181 # -berok will link without error, but may produce a broken library.
13182 no_undefined_flag_F77=' ${wl}-bernotok'
13183 allow_undefined_flag_F77=' ${wl}-berok'
13184 # -bexpall does not export symbols beginning with underscore (_)
13185 always_export_symbols_F77=yes
13186 # Exported symbols can be pulled into shared objects from archives
13187 whole_archive_flag_spec_F77=' '
13188 archive_cmds_need_lc_F77=yes
13189 # This is similar to how AIX traditionally builds it's shared libraries.
13190 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}\${_S_}$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13196 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data${_S_}$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data${_S_}$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data${_S_}$AR $AR_FLAGS $lib $libobjs${_S_}$RANLIB $lib${_S_}(cd $output_objdir && a2ixlibrary -32)'
13197 hardcode_libdir_flag_spec_F77='-L$libdir'
13198 hardcode_minus_L_F77=yes
13199 # see comment about different semantics on the GNU ld section
13204 export_dynamic_flag_spec_F77=-rdynamic
13207 cygwin* | mingw* | pw32*)
13208 # When not using gcc, we currently assume that we are using
13209 # Microsoft Visual C++.
13210 # hardcode_libdir_flag_spec is actually meaningless, as there is
13211 # no search path for DLLs.
13212 hardcode_libdir_flag_spec_F77=' '
13213 allow_undefined_flag_F77=unsupported
13214 # Tell ltmain to make .lib files, not .a files.
13216 # Tell ltmain to make .dll files, not .so files.
13218 # FIXME: Setting linknames here is a bad hack.
13219 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll${_S_}linknames='
13220 # The linker will automatically build a .lib file if we build a DLL.
13221 old_archive_From_new_cmds_F77='true'
13222 # FIXME: Should let the user specify the lib program.
13223 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13224 fix_srcfile_path='`cygpath -w "$srcfile"`'
13225 enable_shared_with_static_runtimes_F77=yes
13228 darwin* | rhapsody*)
13229 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13230 archive_cmds_need_lc_F77=no
13232 rhapsody* | darwin1.[012])
13233 allow_undefined_flag_F77='-undefined suppress'
13235 darwin1.* | darwin[2-6].*) # Darwin 1.3 on, but less than 7.0
13236 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13239 case "${MACOSX_DEPLOYMENT_TARGET-10.1}" in
13241 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13244 if test -z ${LD_TWOLEVEL_NAMESPACE}; then
13245 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13247 allow_undefined_flag_F77='-undefined dynamic_lookup'
13253 # FIXME: Relying on posixy $() will cause problems for
13254 # cross-compilation, but unfortunately the echo tests do not
13255 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13256 # `"' quotes if we put them in here... so don't!
13257 lt_int_apple_cc_single_mod=no
13258 output_verbose_link_cmd='echo'
13259 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13260 lt_int_apple_cc_single_mod=yes
13262 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13263 archive_cmds_F77='$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13265 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13267 module_cmds_F77='$CC -bundle $archargs ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13268 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13269 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13270 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13272 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13274 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -bundle $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13275 hardcode_direct_F77=no
13276 hardcode_automatic_F77=yes
13277 hardcode_shlibpath_var_F77=unsupported
13278 whole_archive_flag_spec_F77='-all_load $convenience'
13279 link_all_deplibs_F77=yes
13284 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13285 hardcode_libdir_flag_spec_F77='-L$libdir'
13286 hardcode_shlibpath_var_F77=no
13293 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13294 # support. Future versions do this automatically, but an explicit c++rt0.o
13295 # does not break anything, and helps significantly (at the cost of a little
13298 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13299 hardcode_libdir_flag_spec_F77='-R$libdir'
13300 hardcode_direct_F77=yes
13301 hardcode_shlibpath_var_F77=no
13304 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13306 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13307 hardcode_direct_F77=yes
13308 hardcode_minus_L_F77=yes
13309 hardcode_shlibpath_var_F77=no
13312 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13314 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13315 hardcode_libdir_flag_spec_F77='-R$libdir'
13316 hardcode_direct_F77=yes
13317 hardcode_shlibpath_var_F77=no
13321 if test "$GCC" = yes; then
13322 archive_cmds_F77='$rm $output_objdir/$soname${_S_}$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13324 archive_cmds_F77='$rm $output_objdir/$soname${_S_}$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13326 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13327 hardcode_libdir_separator_F77=:
13328 hardcode_direct_F77=yes
13330 # hardcode_minus_L: Not really in the search PATH,
13331 # but as the default location of the library.
13332 hardcode_minus_L_F77=yes
13333 export_dynamic_flag_spec_F77='${wl}-E'
13337 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13338 case "$host_cpu" in
13340 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13343 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13347 case "$host_cpu" in
13349 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13352 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13356 if test "$with_gnu_ld" = no; then
13357 case "$host_cpu" in
13359 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13360 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13361 hardcode_libdir_separator_F77=:
13362 hardcode_direct_F77=no
13363 hardcode_shlibpath_var_F77=no
13366 hardcode_libdir_flag_spec_F77='-L$libdir'
13367 hardcode_direct_F77=no
13368 hardcode_shlibpath_var_F77=no
13370 # hardcode_minus_L: Not really in the search PATH,
13371 # but as the default location of the library.
13372 hardcode_minus_L_F77=yes
13375 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13376 hardcode_libdir_separator_F77=:
13377 hardcode_direct_F77=yes
13378 export_dynamic_flag_spec_F77='${wl}-E'
13380 # hardcode_minus_L: Not really in the search PATH,
13381 # but as the default location of the library.
13382 hardcode_minus_L_F77=yes
13388 irix5* | irix6* | nonstopux*)
13389 if test "$GCC" = yes; then
13390 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'
13392 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'
13393 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13395 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13396 hardcode_libdir_separator_F77=:
13397 link_all_deplibs_F77=yes
13401 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13402 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13404 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13406 hardcode_libdir_flag_spec_F77='-R$libdir'
13407 hardcode_direct_F77=yes
13408 hardcode_shlibpath_var_F77=no
13412 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13413 hardcode_direct_F77=yes
13414 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13415 hardcode_libdir_separator_F77=:
13416 hardcode_shlibpath_var_F77=no
13420 hardcode_direct_F77=yes
13421 hardcode_shlibpath_var_F77=no
13422 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13423 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13424 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13425 export_dynamic_flag_spec_F77='${wl}-E'
13428 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13429 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13430 hardcode_libdir_flag_spec_F77='-R$libdir'
13433 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13434 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13441 hardcode_libdir_flag_spec_F77='-L$libdir'
13442 hardcode_minus_L_F77=yes
13443 allow_undefined_flag_F77=unsupported
13444 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def${_S_}$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def${_S_}$echo DATA >> $output_objdir/$libname.def${_S_}$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def${_S_}$echo EXPORTS >> $output_objdir/$libname.def${_S_}emxexp $libobjs >> $output_objdir/$libname.def${_S_}$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
13445 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13449 if test "$GCC" = yes; then
13450 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13451 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'
13453 allow_undefined_flag_F77=' -expect_unresolved \*'
13454 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'
13456 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13457 hardcode_libdir_separator_F77=:
13460 osf4* | osf5*) # as osf3* with the addition of -msym flag
13461 if test "$GCC" = yes; then
13462 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13463 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'
13464 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13466 allow_undefined_flag_F77=' -expect_unresolved \*'
13467 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'
13468 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${_S_}
13469 $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${_S_}$rm $lib.exp'
13471 # Both c and cxx compiler support -rpath directly
13472 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13474 hardcode_libdir_separator_F77=:
13478 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13479 hardcode_shlibpath_var_F77=no
13480 export_dynamic_flag_spec_F77='${wl}-Bexport'
13481 runpath_var=LD_RUN_PATH
13482 hardcode_runpath_var=yes
13486 no_undefined_flag_F77=' -z text'
13487 if test "$GCC" = yes; then
13488 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13489 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
13490 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags${_S_}$rm $lib.exp'
13492 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13493 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
13494 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags${_S_}$rm $lib.exp'
13496 hardcode_libdir_flag_spec_F77='-R$libdir'
13497 hardcode_shlibpath_var_F77=no
13499 solaris2.[0-5] | solaris2.[0-5].*) ;;
13500 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13501 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13503 link_all_deplibs_F77=yes
13507 if test "x$host_vendor" = xsequent; then
13508 # Use $CC to link under sequent, because it throws in some extra .o
13509 # files that make .init and .fini sections work.
13510 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13512 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13514 hardcode_libdir_flag_spec_F77='-L$libdir'
13515 hardcode_direct_F77=yes
13516 hardcode_minus_L_F77=yes
13517 hardcode_shlibpath_var_F77=no
13521 case $host_vendor in
13523 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13524 hardcode_direct_F77=yes # is this really true???
13527 ## LD is ld it makes a PLAMLIB
13528 ## CC just makes a GrossModule.
13529 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13530 reload_cmds_F77='$CC -r -o $output$reload_objs'
13531 hardcode_direct_F77=no
13534 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13535 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13538 runpath_var='LD_RUN_PATH'
13539 hardcode_shlibpath_var_F77=no
13543 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13544 hardcode_shlibpath_var_F77=no
13545 export_dynamic_flag_spec_F77='-Bexport'
13549 if test -d /usr/nec; then
13550 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13551 hardcode_shlibpath_var_F77=no
13552 runpath_var=LD_RUN_PATH
13553 hardcode_runpath_var=yes
13559 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13560 hardcode_direct_F77=yes
13561 hardcode_minus_L_F77=no
13562 hardcode_shlibpath_var_F77=no
13563 hardcode_runpath_var=yes
13564 runpath_var=LD_RUN_PATH
13567 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13568 no_undefined_flag_F77='${wl}-z ${wl}text'
13569 if test "$GCC" = yes; then
13570 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13572 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13574 runpath_var='LD_RUN_PATH'
13575 hardcode_shlibpath_var_F77=no
13579 no_undefined_flag_F77=' -z text'
13580 # $CC -shared without GNU ld will not create a library from C++
13581 # object files and a static libstdc++, better avoid it by now
13582 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13583 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
13584 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags${_S_}$rm $lib.exp'
13585 hardcode_libdir_flag_spec_F77=
13586 hardcode_shlibpath_var_F77=no
13587 runpath_var='LD_RUN_PATH'
13591 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13592 hardcode_libdir_flag_spec_F77='-L$libdir'
13593 hardcode_shlibpath_var_F77=no
13602 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13603 echo "${ECHO_T}$ld_shlibs_F77" >&6
13604 test "$ld_shlibs_F77" = no && can_build_shared=no
13606 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13607 if test "$GCC" = yes; then
13608 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13612 # Do we need to explicitly link libc?
13614 case "x$archive_cmds_need_lc_F77" in
13616 # Assume -lc should be added
13617 archive_cmds_need_lc_F77=yes
13619 if test "$enable_shared" = yes && test "$GCC" = yes; then
13620 case $archive_cmds_F77 in
13622 # FIXME: we may have to deal with multi-command sequences.
13625 # Test whether the compiler implicitly links with -lc since on some
13626 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13627 # to ld, don't add -lc before -lgcc.
13628 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13629 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13631 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13634 (eval $ac_compile) 2>&5
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); } 2>conftest.err; then
13640 libobjs=conftest.$ac_objext
13642 wl=$lt_prog_compiler_wl_F77
13648 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13649 allow_undefined_flag_F77=
13650 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13651 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); }
13656 archive_cmds_need_lc_F77=no
13658 archive_cmds_need_lc_F77=yes
13660 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13662 cat conftest.err 1>&5
13665 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13666 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13673 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13674 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13675 hardcode_action_F77=
13676 if test -n "$hardcode_libdir_flag_spec_F77" || \
13677 test -n "$runpath_var F77" || \
13678 test "X$hardcode_automatic_F77"="Xyes" ; then
13680 # We can hardcode non-existant directories.
13681 if test "$hardcode_direct_F77" != no &&
13682 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13683 # have to relink, otherwise we might link with an installed library
13684 # when we should be linking with a yet-to-be-installed one
13685 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13686 test "$hardcode_minus_L_F77" != no; then
13687 # Linking always hardcodes the temporary library directory.
13688 hardcode_action_F77=relink
13690 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13691 hardcode_action_F77=immediate
13694 # We cannot hardcode anything, or else we can only hardcode existing
13696 hardcode_action_F77=unsupported
13698 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13699 echo "${ECHO_T}$hardcode_action_F77" >&6
13701 if test "$hardcode_action_F77" = relink; then
13702 # Fast installation is not supported
13703 enable_fast_install=no
13704 elif test "$shlibpath_overrides_runpath" = yes ||
13705 test "$enable_shared" = no; then
13706 # Fast installation is not necessary
13707 enable_fast_install=needless
13712 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13713 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13714 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13715 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13716 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13717 echo "$as_me:$LINENO: result: yes" >&5
13718 echo "${ECHO_T}yes" >&6
13720 # FIXME - insert some real tests, host_os isn't really good enough
13723 if test -n "$STRIP" ; then
13724 striplib="$STRIP -x"
13725 echo "$as_me:$LINENO: result: yes" >&5
13726 echo "${ECHO_T}yes" >&6
13728 echo "$as_me:$LINENO: result: no" >&5
13729 echo "${ECHO_T}no" >&6
13733 echo "$as_me:$LINENO: result: no" >&5
13734 echo "${ECHO_T}no" >&6
13739 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13740 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13741 library_names_spec=
13742 libname_spec='lib$name'
13746 postuninstall_cmds=
13750 shlibpath_overrides_runpath=unknown
13752 dynamic_linker="$host_os ld.so"
13753 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13754 if test "$GCC" = yes; then
13755 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13756 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13757 # if the path contains ";" then we assume it to be the separator
13758 # otherwise default to the standard path separator (i.e. ":") - it is
13759 # assumed that no part of a normal pathname contains ";" but that should
13760 # okay in the real world where ";" in dirpaths is itself problematic.
13761 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13763 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13766 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13768 need_lib_prefix=unknown
13769 hardcode_into_libs=no
13771 # when you set need_version to no, make sure it does not cause -set_version
13772 # flags to be left without arguments
13773 need_version=unknown
13778 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13779 shlibpath_var=LIBPATH
13781 # AIX 3 has no versioning support, so we append a major version to the name.
13782 soname_spec='${libname}${release}${shared_ext}$major'
13789 hardcode_into_libs=yes
13790 if test "$host_cpu" = ia64; then
13791 # AIX 5 supports IA64
13792 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13793 shlibpath_var=LD_LIBRARY_PATH
13795 # With GCC up to 2.95.x, collect2 would create an import file
13796 # for dependence libraries. The import file would start with
13797 # the line `#! .'. This would cause the generated library to
13798 # depend on `.', always an invalid library. This was fixed in
13799 # development snapshots of GCC prior to 3.0.
13801 aix4 | aix4.[01] | aix4.[01].*)
13802 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13804 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13807 can_build_shared=no
13811 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13812 # soname into executable. Probably we can add versioning support to
13813 # collect2, so additional links can be useful in future.
13814 if test "$aix_use_runtimelinking" = yes; then
13815 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13816 # instead of lib<name>.a to let people know that these are not
13817 # typical AIX shared libraries.
13818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13820 # We preserve .a as extension for shared libraries through AIX4.2
13821 # and later when we are not doing run time linking.
13822 library_names_spec='${libname}${release}.a $libname.a'
13823 soname_spec='${libname}${release}${shared_ext}$major'
13825 shlibpath_var=LIBPATH
13830 library_names_spec='$libname.ixlibrary $libname.a'
13831 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13832 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'
13836 library_names_spec='${libname}${shared_ext}'
13837 dynamic_linker="$host_os ld.so"
13838 shlibpath_var=LIBRARY_PATH
13844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13845 soname_spec='${libname}${release}${shared_ext}$major'
13846 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13847 shlibpath_var=LD_LIBRARY_PATH
13848 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13849 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13850 # the default ld.so.conf also contains /usr/contrib/lib and
13851 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13852 # libtool to hard-code these into programs
13855 cygwin* | mingw* | pw32*)
13856 version_type=windows
13861 case $GCC,$host_os in
13862 yes,cygwin* | yes,mingw* | yes,pw32*)
13863 library_names_spec='$libname.dll.a'
13864 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13865 postinstall_cmds='base_file=`basename \${file}`${_S_}
13866 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`${_S_}
13867 dldir=$destdir/`dirname \$dlpath`${_S_}
13868 test -d \$dldir || mkdir -p \$dldir${_S_}
13869 $install_prog $dir/$dlname \$dldir/$dlname'
13870 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`${_S_}
13871 dlpath=$dir/\$dldll${_S_}
13873 shlibpath_overrides_runpath=yes
13877 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13878 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13879 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13882 # MinGW DLLs use traditional 'lib' prefix
13883 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13884 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13885 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13886 # It is most probably a Windows format PATH printed by
13887 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13888 # path with ; separators, and with drive letters. We can handle the
13889 # drive letters (cygwin fileutils understands them), so leave them,
13890 # especially as we might pass files found there to a mingw objdump,
13891 # which wouldn't understand a cygwinified path. Ahh.
13892 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13894 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13898 # pw32 DLLs use 'pw' prefix rather than 'lib'
13899 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13905 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13908 dynamic_linker='Win32 ld.exe'
13909 # FIXME: first we should search . and the directory the executable is in
13913 darwin* | rhapsody*)
13914 dynamic_linker="$host_os dyld"
13915 version_type=darwin
13918 # FIXME: Relying on posixy $() will cause problems for
13919 # cross-compilation, but unfortunately the echo tests do not
13920 # yet detect zsh echo's removal of \ escapes.
13921 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
13922 soname_spec='${libname}${release}${major}$shared_ext'
13923 shlibpath_overrides_runpath=yes
13924 shlibpath_var=DYLD_LIBRARY_PATH
13925 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13926 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13927 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13928 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"`
13930 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13938 soname_spec='${libname}${release}${shared_ext}$major'
13939 shlibpath_var=LD_LIBRARY_PATH
13947 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13948 version_type=freebsd-$objformat
13949 case $version_type in
13951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13956 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13960 shlibpath_var=LD_LIBRARY_PATH
13963 shlibpath_overrides_runpath=yes
13965 freebsd3.01* | freebsdelf3.01*)
13966 shlibpath_overrides_runpath=yes
13967 hardcode_into_libs=yes
13970 shlibpath_overrides_runpath=no
13971 hardcode_into_libs=yes
13980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13981 soname_spec='${libname}${release}${shared_ext}$major'
13982 shlibpath_var=LD_LIBRARY_PATH
13983 hardcode_into_libs=yes
13986 hpux9* | hpux10* | hpux11*)
13987 # Give a soname corresponding to the major version so that dld.sl refuses to
13988 # link against other versions.
13992 case "$host_cpu" in
13995 hardcode_into_libs=yes
13996 dynamic_linker="$host_os dld.so"
13997 shlibpath_var=LD_LIBRARY_PATH
13998 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14000 soname_spec='${libname}${release}${shared_ext}$major'
14001 if test "X$HPUX_IA64_MODE" = X32; then
14002 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14004 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14006 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14010 hardcode_into_libs=yes
14011 dynamic_linker="$host_os dld.sl"
14012 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14013 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14015 soname_spec='${libname}${release}${shared_ext}$major'
14016 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14017 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14021 dynamic_linker="$host_os dld.sl"
14022 shlibpath_var=SHLIB_PATH
14023 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14025 soname_spec='${libname}${release}${shared_ext}$major'
14028 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14029 postinstall_cmds='chmod 555 $lib'
14032 irix5* | irix6* | nonstopux*)
14034 nonstopux*) version_type=nonstopux ;;
14036 if test "$lt_cv_prog_gnu_ld" = yes; then
14044 soname_spec='${libname}${release}${shared_ext}$major'
14045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14047 irix5* | nonstopux*)
14048 libsuff= shlibsuff=
14051 case $LD in # libtool.m4 will add one of these switches to LD
14052 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14053 libsuff= shlibsuff= libmagic=32-bit;;
14054 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14055 libsuff=32 shlibsuff=N32 libmagic=N32;;
14056 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14057 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14058 *) libsuff= shlibsuff= libmagic=never-match;;
14062 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14063 shlibpath_overrides_runpath=no
14064 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14065 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14066 hardcode_into_libs=yes
14069 # No shared lib support for Linux oldld, aout, or coff.
14070 linux*oldld* | linux*aout* | linux*coff*)
14074 # This must be Linux ELF.
14079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14080 soname_spec='${libname}${release}${shared_ext}$major'
14081 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14082 shlibpath_var=LD_LIBRARY_PATH
14083 shlibpath_overrides_runpath=no
14084 # This implies no fast_install, which is unacceptable.
14085 # Some rework will be needed to allow for fast_install
14086 # before this can be enabled.
14087 hardcode_into_libs=yes
14089 # We used to test for /lib/ld.so.1 and disable shared libraries on
14090 # powerpc, because MkLinux only supported shared libraries with the
14091 # GNU dynamic linker. Since this was broken with cross compilers,
14092 # most powerpc-linux boxes support dynamic linking these days and
14093 # people can always --disable-shared, the test was removed, and we
14094 # assume the GNU/Linux dynamic linker is in use.
14095 dynamic_linker='GNU/Linux ld.so'
14102 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14104 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14105 dynamic_linker='NetBSD (a.out) ld.so'
14107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14108 soname_spec='${libname}${release}${shared_ext}$major'
14109 dynamic_linker='NetBSD ld.elf_so'
14111 shlibpath_var=LD_LIBRARY_PATH
14112 shlibpath_overrides_runpath=yes
14113 hardcode_into_libs=yes
14118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14119 shlibpath_var=LD_LIBRARY_PATH
14120 shlibpath_overrides_runpath=yes
14127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14128 soname_spec='${libname}${release}${shared_ext}$major'
14129 shlibpath_var=LD_LIBRARY_PATH
14130 shlibpath_overrides_runpath=yes
14137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14138 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14139 shlibpath_var=LD_LIBRARY_PATH
14140 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14142 openbsd2.[89] | openbsd2.[89].*)
14143 shlibpath_overrides_runpath=no
14146 shlibpath_overrides_runpath=yes
14150 shlibpath_overrides_runpath=yes
14155 libname_spec='$name'
14158 library_names_spec='$libname${shared_ext} $libname.a'
14159 dynamic_linker='OS/2 ld.exe'
14160 shlibpath_var=LIBPATH
14163 osf3* | osf4* | osf5*)
14167 soname_spec='${libname}${release}${shared_ext}$major'
14168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14169 shlibpath_var=LD_LIBRARY_PATH
14170 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14171 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14176 soname_spec='${libname}${release}${shared_ext}$major'
14177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14178 shlibpath_var=LD_LIBRARY_PATH
14185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14186 soname_spec='${libname}${release}${shared_ext}$major'
14187 shlibpath_var=LD_LIBRARY_PATH
14188 shlibpath_overrides_runpath=yes
14189 hardcode_into_libs=yes
14190 # ldd complains unless libraries are executable
14191 postinstall_cmds='chmod +x $lib'
14196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14197 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14198 shlibpath_var=LD_LIBRARY_PATH
14199 shlibpath_overrides_runpath=yes
14200 if test "$with_gnu_ld" = yes; then
14206 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14209 soname_spec='${libname}${release}${shared_ext}$major'
14210 shlibpath_var=LD_LIBRARY_PATH
14211 case $host_vendor in
14213 shlibpath_overrides_runpath=no
14215 export_dynamic_flag_spec='${wl}-Blargedynsym'
14216 runpath_var=LD_RUN_PATH
14224 shlibpath_overrides_runpath=no
14225 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14231 if test -d /usr/nec ;then
14233 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14234 soname_spec='$libname${shared_ext}.$major'
14235 shlibpath_var=LD_LIBRARY_PATH
14241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14242 soname_spec='${libname}${release}${shared_ext}$major'
14243 shlibpath_var=LD_LIBRARY_PATH
14250 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14251 echo "${ECHO_T}$dynamic_linker" >&6
14252 test "$dynamic_linker" = no && can_build_shared=no
14255 # The else clause should only fire when bootstrapping the
14256 # libtool distribution, otherwise you forgot to ship ltmain.sh
14257 # with your package, and you will get complaints that there are
14258 # no rules to generate ltmain.sh.
14259 if test -f "$ltmain"; then
14260 # See if we are running on zsh, and set the options which allow our commands through
14261 # without removal of \ escapes.
14262 if test -n "${ZSH_VERSION+set}" ; then
14263 setopt NO_GLOB_SUBST
14265 # Now quote all the things that may contain metacharacters while being
14266 # careful not to overquote the AC_SUBSTed values. We take copies of the
14267 # variables and quote the copies for generation of the libtool script.
14268 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14269 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14270 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14271 deplibs_check_method reload_flag reload_cmds need_locks \
14272 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14273 lt_cv_sys_global_symbol_to_c_name_address \
14274 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14275 old_postinstall_cmds old_postuninstall_cmds \
14279 lt_prog_compiler_wl_F77 \
14280 lt_prog_compiler_pic_F77 \
14281 lt_prog_compiler_static_F77 \
14282 lt_prog_compiler_no_builtin_flag_F77 \
14283 export_dynamic_flag_spec_F77 \
14284 thread_safe_flag_spec_F77 \
14285 whole_archive_flag_spec_F77 \
14286 enable_shared_with_static_runtimes_F77 \
14287 old_archive_cmds_F77 \
14288 old_archive_from_new_cmds_F77 \
14289 predep_objects_F77 \
14290 postdep_objects_F77 \
14293 compiler_lib_search_path_F77 \
14295 archive_expsym_cmds_F77 \
14296 postinstall_cmds_F77 \
14297 postuninstall_cmds_F77 \
14298 old_archive_from_expsyms_cmds_F77 \
14299 allow_undefined_flag_F77 \
14300 no_undefined_flag_F77 \
14301 export_symbols_cmds_F77 \
14302 hardcode_libdir_flag_spec_F77 \
14303 hardcode_libdir_flag_spec_ld_F77 \
14304 hardcode_libdir_separator_F77 \
14305 hardcode_automatic_F77 \
14307 module_expsym_cmds_F77 \
14308 lt_cv_prog_compiler_c_o_F77 \
14309 exclude_expsyms_F77 \
14310 include_expsyms_F77; do
14313 old_archive_cmds_F77 | \
14314 old_archive_from_new_cmds_F77 | \
14315 archive_cmds_F77 | \
14316 archive_expsym_cmds_F77 | \
14317 module_cmds_F77 | \
14318 module_expsym_cmds_F77 | \
14319 old_archive_from_expsyms_cmds_F77 | \
14320 export_symbols_cmds_F77 | \
14321 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14322 postinstall_cmds | postuninstall_cmds | \
14323 old_postinstall_cmds | old_postuninstall_cmds | \
14324 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14325 # Double-quote double-evaled strings.
14326 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\" -e \"\$unescape_variable_subst\"\`\\\""
14329 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14335 *'\$0 --fallback-echo"')
14336 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14342 cat <<__EOF__ >> "$cfgfile"
14343 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14345 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14347 # Set the command separator (default: ~)
14348 _S_=\${LIBTOOL_CMD_SEP-\~}
14350 # Shell to use when invoking shell scripts.
14353 # Whether or not to build shared libraries.
14354 build_libtool_libs=$enable_shared
14356 # Whether or not to build static libraries.
14357 build_old_libs=$enable_static
14359 # Whether or not to add -lc for building shared libraries.
14360 build_libtool_need_lc=$archive_cmds_need_lc_F77
14362 # Whether or not to disallow shared libs when runtime libs are static
14363 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14365 # Whether or not to optimize for fast installation.
14366 fast_install=$enable_fast_install
14369 host_alias=$host_alias
14372 # An echo program that does not interpret backslashes.
14377 AR_FLAGS=$lt_AR_FLAGS
14382 # A language-specific compiler.
14383 CC=$lt_compiler_F77
14385 # Is the compiler the GNU C compiler?
14391 # The linker used to build libraries.
14394 # Whether we need hard or soft links.
14397 # A BSD-compatible nm program.
14400 # A symbol stripping program
14403 # Used to examine libraries when file_magic_cmd begins "file"
14404 MAGIC_CMD=$MAGIC_CMD
14406 # Used on cygwin: DLL creation program.
14409 # Used on cygwin: object dumper.
14412 # Used on cygwin: assembler.
14415 # The name of the directory that contains temporary libtool files.
14418 # How to create reloadable object files.
14419 reload_flag=$lt_reload_flag
14420 reload_cmds=$lt_reload_cmds
14422 # How to pass a linker flag through the compiler.
14423 wl=$lt_lt_prog_compiler_wl_F77
14425 # Object file suffix (normally "o").
14426 objext="$ac_objext"
14428 # Old archive suffix (normally "a").
14431 # Shared library suffix (normally ".so").
14434 # Executable file suffix (normally "").
14437 # Additional compiler flags for building library objects.
14438 pic_flag=$lt_lt_prog_compiler_pic_F77
14441 # What is the maximum length of a command?
14442 max_cmd_len=$lt_cv_sys_max_cmd_len
14444 # Does compiler simultaneously support -c and -o options?
14445 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14447 # Must we lock files when doing compilation ?
14448 need_locks=$lt_need_locks
14450 # Do we need the lib prefix for modules?
14451 need_lib_prefix=$need_lib_prefix
14453 # Do we need a version for libraries?
14454 need_version=$need_version
14456 # Whether dlopen is supported.
14457 dlopen_support=$enable_dlopen
14459 # Whether dlopen of programs is supported.
14460 dlopen_self=$enable_dlopen_self
14462 # Whether dlopen of statically linked programs is supported.
14463 dlopen_self_static=$enable_dlopen_self_static
14465 # Compiler flag to prevent dynamic linking.
14466 link_static_flag=$lt_lt_prog_compiler_static_F77
14468 # Compiler flag to turn off builtin functions.
14469 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14471 # Compiler flag to allow reflexive dlopens.
14472 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14474 # Compiler flag to generate shared objects directly from archives.
14475 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14477 # Compiler flag to generate thread-safe objects.
14478 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14480 # Library versioning type.
14481 version_type=$version_type
14483 # Format of library name prefix.
14484 libname_spec=$lt_libname_spec
14486 # List of archive names. First name is the real one, the rest are links.
14487 # The last name is the one that the linker finds with -lNAME.
14488 library_names_spec=$lt_library_names_spec
14490 # The coded name of the library, if different from the real name.
14491 soname_spec=$lt_soname_spec
14493 # Commands used to build and install an old-style archive.
14495 old_archive_cmds=$lt_old_archive_cmds_F77
14496 old_postinstall_cmds=$lt_old_postinstall_cmds
14497 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14499 # Create an old-style archive from a shared archive.
14500 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14502 # Create a temporary old-style archive to link instead of a shared archive.
14503 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14505 # Commands used to build and install a shared archive.
14506 archive_cmds=$lt_archive_cmds_F77
14507 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14508 postinstall_cmds=$lt_postinstall_cmds
14509 postuninstall_cmds=$lt_postuninstall_cmds
14511 # Commands used to build a loadable module (assumed same as above if empty)
14512 module_cmds=$lt_module_cmds_F77
14513 module_expsym_cmds=$lt_module_expsym_cmds_F77
14515 # Commands to strip libraries.
14516 old_striplib=$lt_old_striplib
14517 striplib=$lt_striplib
14519 # Dependencies to place before the objects being linked to create a
14521 predep_objects=$lt_predep_objects_F77
14523 # Dependencies to place after the objects being linked to create a
14525 postdep_objects=$lt_postdep_objects_F77
14527 # Dependencies to place before the objects being linked to create a
14529 predeps=$lt_predeps_F77
14531 # Dependencies to place after the objects being linked to create a
14533 postdeps=$lt_postdeps_F77
14535 # The library search path used internally by the compiler when linking
14536 # a shared library.
14537 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14539 # Method to check whether dependent libraries are shared objects.
14540 deplibs_check_method=$lt_deplibs_check_method
14542 # Command to use when deplibs_check_method == file_magic.
14543 file_magic_cmd=$lt_file_magic_cmd
14545 # Flag that allows shared libraries with undefined symbols to be built.
14546 allow_undefined_flag=$lt_allow_undefined_flag_F77
14548 # Flag that forces no undefined symbols.
14549 no_undefined_flag=$lt_no_undefined_flag_F77
14551 # Commands used to finish a libtool library installation in a directory.
14552 finish_cmds=$lt_finish_cmds
14554 # Same as above, but a single script fragment to be evaled but not shown.
14555 finish_eval=$lt_finish_eval
14557 # Take the output of nm and produce a listing of raw symbols and C names.
14558 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14560 # Transform the output of nm in a proper C declaration
14561 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14563 # Transform the output of nm in a C name address pair
14564 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14566 # This is the shared library runtime path variable.
14567 runpath_var=$runpath_var
14569 # This is the shared library path variable.
14570 shlibpath_var=$shlibpath_var
14572 # Is shlibpath searched before the hard-coded library search path?
14573 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14575 # How to hardcode a shared library path into an executable.
14576 hardcode_action=$hardcode_action_F77
14578 # Whether we should hardcode library paths into libraries.
14579 hardcode_into_libs=$hardcode_into_libs
14581 # Flag to hardcode \$libdir into a binary during linking.
14582 # This must work even if \$libdir does not exist.
14583 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14585 # If ld is used when linking, flag to hardcode \$libdir into
14586 # a binary during linking. This must work even if \$libdir does
14588 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14590 # Whether we need a single -rpath flag with a separated argument.
14591 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14593 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14594 # resulting binary.
14595 hardcode_direct=$hardcode_direct_F77
14597 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14598 # resulting binary.
14599 hardcode_minus_L=$hardcode_minus_L_F77
14601 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14602 # the resulting binary.
14603 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14605 # Set to yes if building a shared library automatically hardcodes DIR into the library
14606 # and all subsequent libraries and executables linked against it.
14607 hardcode_automatic=$hardcode_automatic_F77
14609 # Variables whose values should be saved in libtool wrapper scripts and
14610 # restored at relink time.
14611 variables_saved_for_relink="$variables_saved_for_relink"
14613 # Whether libtool must link a program against all its dependency libraries.
14614 link_all_deplibs=$link_all_deplibs_F77
14616 # Compile-time system search path for libraries
14617 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14619 # Run-time system search path for libraries
14620 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14622 # Fix the shell variable \$srcfile for the compiler.
14623 fix_srcfile_path="$fix_srcfile_path_F77"
14625 # Set to yes if exported symbols are required.
14626 always_export_symbols=$always_export_symbols_F77
14628 # The commands to list exported symbols.
14629 export_symbols_cmds=$lt_export_symbols_cmds_F77
14631 # The commands to extract the exported symbol list from a shared archive.
14632 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14634 # Symbols that should not be listed in the preloaded symbols.
14635 exclude_expsyms=$lt_exclude_expsyms_F77
14637 # Symbols that must always be exported.
14638 include_expsyms=$lt_include_expsyms_F77
14640 # ### END LIBTOOL TAG CONFIG: $tagname
14646 # If there is no Makefile yet, we rely on a make rule to execute
14647 # `config.status --recheck' to rerun these tests and create the
14648 # libtool script then.
14649 test -f Makefile && make "$ltmain"
14654 ac_cpp='$CPP $CPPFLAGS'
14655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14667 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14671 # Source file extension for Java test sources.
14674 # Object file extension for compiled Java test sources.
14678 # Code to be used in simple compile tests
14679 lt_simple_compile_test_code="class foo {}\n"
14681 # Code to be used in simple link tests
14682 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14684 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14686 # If no C compiler was specified, use CC.
14689 # Allow CC to be a program name with arguments.
14693 # Allow CC to be a program name with arguments.
14699 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14700 archive_cmds_need_lc_GCJ=no
14703 lt_prog_compiler_no_builtin_flag_GCJ=
14705 if test "$GCC" = yes; then
14706 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14708 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14709 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14710 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14711 echo $ECHO_N "(cached) $ECHO_C" >&6
14713 lt_cv_prog_compiler_rtti_exceptions=no
14714 ac_outfile=conftest.$ac_objext
14715 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14716 lt_compiler_flag="-fno-rtti -fno-exceptions"
14717 # Insert the option either (1) after the last *FLAGS variable, or
14718 # (2) before a word containing "conftest.", or (3) at the end.
14719 # Note that $ac_compile itself does not contain backslashes and begins
14720 # with a dollar sign (not a hyphen), so the echo should work correctly.
14721 # The option is referenced via a variable to avoid confusing sed.
14722 lt_compile=`echo "$ac_compile" | $SED \
14723 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14724 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14725 -e 's:$: $lt_compiler_flag:'`
14726 (eval echo "\"\$as_me:14726: $lt_compile\"" >&5)
14727 (eval "$lt_compile" 2>conftest.err)
14729 cat conftest.err >&5
14730 echo "$as_me:14730: \$? = $ac_status" >&5
14731 if (exit $ac_status) && test -s "$ac_outfile"; then
14732 # The compiler can only warn and ignore the option if not recognized
14733 # So say no if there are warnings
14734 if test ! -s conftest.err; then
14735 lt_cv_prog_compiler_rtti_exceptions=yes
14741 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14742 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14744 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14745 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14752 lt_prog_compiler_wl_GCJ=
14753 lt_prog_compiler_pic_GCJ=
14754 lt_prog_compiler_static_GCJ=
14756 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14757 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14759 if test "$GCC" = yes; then
14760 lt_prog_compiler_wl_GCJ='-Wl,'
14761 lt_prog_compiler_static_GCJ='-static'
14765 # All AIX code is PIC.
14766 if test "$host_cpu" = ia64; then
14767 # AIX 5 now supports IA64 processor
14768 lt_prog_compiler_static_GCJ='-Bstatic'
14773 # FIXME: we need at least 68020 code to build shared libraries, but
14774 # adding the `-m68020' flag to GCC prevents building anything better,
14776 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14779 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14780 # PIC is the default for these OSes.
14783 mingw* | pw32* | os2*)
14784 # This hack is so that the source file can tell whether it is being
14785 # built for inclusion in a dll (and should export symbols for example).
14786 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14789 darwin* | rhapsody*)
14790 # PIC is the default on this platform
14791 # Common symbols not allowed in MH_DYLIB files
14792 lt_prog_compiler_pic_GCJ='-fno-common'
14796 # Just because we use GCC doesn't mean we suddenly get shared libraries
14797 # on systems that don't support them.
14798 lt_prog_compiler_can_build_shared_GCJ=no
14803 if test -d /usr/nec; then
14804 lt_prog_compiler_pic_GCJ=-Kconform_pic
14809 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14810 # not for PA HP-UX.
14811 case "$host_cpu" in
14816 lt_prog_compiler_pic_GCJ='-fPIC'
14822 lt_prog_compiler_pic_GCJ='-fPIC'
14826 # PORTME Check for flag to pass linker flags through the system compiler.
14829 lt_prog_compiler_wl_GCJ='-Wl,'
14830 if test "$host_cpu" = ia64; then
14831 # AIX 5 now supports IA64 processor
14832 lt_prog_compiler_static_GCJ='-Bstatic'
14834 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14838 mingw* | pw32* | os2*)
14839 # This hack is so that the source file can tell whether it is being
14840 # built for inclusion in a dll (and should export symbols for example).
14841 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14844 hpux9* | hpux10* | hpux11*)
14845 lt_prog_compiler_wl_GCJ='-Wl,'
14846 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14847 # not for PA HP-UX.
14848 case "$host_cpu" in
14853 lt_prog_compiler_pic_GCJ='+Z'
14856 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14857 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14860 irix5* | irix6* | nonstopux*)
14861 lt_prog_compiler_wl_GCJ='-Wl,'
14862 # PIC (with -KPIC) is the default.
14863 lt_prog_compiler_static_GCJ='-non_shared'
14867 lt_prog_compiler_pic_GCJ='-KPIC'
14868 lt_prog_compiler_static_GCJ='-Bstatic'
14874 lt_prog_compiler_wl_GCJ='-Wl,'
14875 lt_prog_compiler_pic_GCJ='-KPIC'
14876 lt_prog_compiler_static_GCJ='-static'
14879 lt_prog_compiler_wl_GCJ='-Wl,'
14880 # All Alpha code is PIC.
14881 lt_prog_compiler_static_GCJ='-non_shared'
14886 osf3* | osf4* | osf5*)
14887 lt_prog_compiler_wl_GCJ='-Wl,'
14888 # All OSF/1 code is PIC.
14889 lt_prog_compiler_static_GCJ='-non_shared'
14893 lt_prog_compiler_pic_GCJ='-Kpic'
14894 lt_prog_compiler_static_GCJ='-dn'
14898 lt_prog_compiler_wl_GCJ='-Wl,'
14899 lt_prog_compiler_pic_GCJ='-KPIC'
14900 lt_prog_compiler_static_GCJ='-Bstatic'
14904 lt_prog_compiler_wl_GCJ='-Qoption ld '
14905 lt_prog_compiler_pic_GCJ='-PIC'
14906 lt_prog_compiler_static_GCJ='-Bstatic'
14909 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14910 lt_prog_compiler_wl_GCJ='-Wl,'
14911 lt_prog_compiler_pic_GCJ='-KPIC'
14912 lt_prog_compiler_static_GCJ='-Bstatic'
14916 if test -d /usr/nec ;then
14917 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14918 lt_prog_compiler_static_GCJ='-Bstatic'
14923 lt_prog_compiler_pic_GCJ='-pic'
14924 lt_prog_compiler_static_GCJ='-Bstatic'
14928 lt_prog_compiler_can_build_shared_GCJ=no
14933 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14934 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14937 # Check to make sure the PIC flag actually works.
14939 if test -n "$lt_prog_compiler_pic_GCJ"; then
14940 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14941 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14942 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14943 echo $ECHO_N "(cached) $ECHO_C" >&6
14945 lt_prog_compiler_pic_works_GCJ=no
14946 ac_outfile=conftest.$ac_objext
14947 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14948 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14949 # Insert the option either (1) after the last *FLAGS variable, or
14950 # (2) before a word containing "conftest.", or (3) at the end.
14951 # Note that $ac_compile itself does not contain backslashes and begins
14952 # with a dollar sign (not a hyphen), so the echo should work correctly.
14953 # The option is referenced via a variable to avoid confusing sed.
14954 lt_compile=`echo "$ac_compile" | $SED \
14955 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14956 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14957 -e 's:$: $lt_compiler_flag:'`
14958 (eval echo "\"\$as_me:14958: $lt_compile\"" >&5)
14959 (eval "$lt_compile" 2>conftest.err)
14961 cat conftest.err >&5
14962 echo "$as_me:14962: \$? = $ac_status" >&5
14963 if (exit $ac_status) && test -s "$ac_outfile"; then
14964 # The compiler can only warn and ignore the option if not recognized
14965 # So say no if there are warnings
14966 if test ! -s conftest.err; then
14967 lt_prog_compiler_pic_works_GCJ=yes
14973 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14974 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14976 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14977 case $lt_prog_compiler_pic_GCJ in
14979 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14982 lt_prog_compiler_pic_GCJ=
14983 lt_prog_compiler_can_build_shared_GCJ=no
14988 # For platforms which do not support PIC, -DPIC is meaningless:
14990 lt_prog_compiler_pic_GCJ=
14993 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14997 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14998 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14999 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15000 echo $ECHO_N "(cached) $ECHO_C" >&6
15002 lt_cv_prog_compiler_c_o_GCJ=no
15003 $rm -r conftest 2>/dev/null
15007 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15009 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15010 # that will create temporary files in the current directory regardless of
15011 # the output directory. Thus, making CWD read-only will cause this test
15012 # to fail, enabling locking or at least warning the user not to do parallel
15016 lt_compiler_flag="-o out/conftest2.$ac_objext"
15017 # Insert the option either (1) after the last *FLAGS variable, or
15018 # (2) before a word containing "conftest.", or (3) at the end.
15019 # Note that $ac_compile itself does not contain backslashes and begins
15020 # with a dollar sign (not a hyphen), so the echo should work correctly.
15021 lt_compile=`echo "$ac_compile" | $SED \
15022 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15023 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15024 -e 's:$: $lt_compiler_flag:'`
15025 (eval echo "\"\$as_me:15025: $lt_compile\"" >&5)
15026 (eval "$lt_compile" 2>out/conftest.err)
15028 cat out/conftest.err >&5
15029 echo "$as_me:15029: \$? = $ac_status" >&5
15030 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15032 # The compiler can only warn and ignore the option if not recognized
15033 # So say no if there are warnings
15034 if test ! -s out/conftest.err; then
15035 lt_cv_prog_compiler_c_o_GCJ=yes
15039 $rm conftest* out/*
15046 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15047 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15050 hard_links="nottested"
15051 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15052 # do not overwrite the value of need_locks provided by the user
15053 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15054 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15057 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15059 ln conftest.a conftest.b 2>&5 || hard_links=no
15060 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15061 echo "$as_me:$LINENO: result: $hard_links" >&5
15062 echo "${ECHO_T}$hard_links" >&6
15063 if test "$hard_links" = no; then
15064 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15065 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15072 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15073 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15076 allow_undefined_flag_GCJ=
15077 enable_shared_with_static_runtimes_GCJ=no
15079 archive_expsym_cmds_GCJ=
15080 old_archive_From_new_cmds_GCJ=
15081 old_archive_from_expsyms_cmds_GCJ=
15082 export_dynamic_flag_spec_GCJ=
15083 whole_archive_flag_spec_GCJ=
15084 thread_safe_flag_spec_GCJ=
15085 hardcode_libdir_flag_spec_GCJ=
15086 hardcode_libdir_flag_spec_ld_GCJ=
15087 hardcode_libdir_separator_GCJ=
15088 hardcode_direct_GCJ=no
15089 hardcode_minus_L_GCJ=no
15090 hardcode_shlibpath_var_GCJ=unsupported
15091 link_all_deplibs_GCJ=unknown
15092 hardcode_automatic_GCJ=no
15094 module_expsym_cmds_GCJ=
15095 always_export_symbols_GCJ=no
15096 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15097 # include_expsyms should be a list of space-separated symbols to be *always*
15098 # included in the symbol list
15099 include_expsyms_GCJ=
15100 # exclude_expsyms can be an extended regexp of symbols to exclude
15101 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15102 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15103 # as well as any symbol that contains `d'.
15104 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15105 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15106 # platforms (ab)use it in PIC code, but their linkers get confused if
15107 # the symbol is explicitly referenced. Since portable code cannot
15108 # rely on this symbol name, it's probably fine to never include it in
15109 # preloaded symbol tables.
15110 extract_expsyms_cmds=
15113 cygwin* | mingw* | pw32*)
15114 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15115 # When not using gcc, we currently assume that we are using
15116 # Microsoft Visual C++.
15117 if test "$GCC" != yes; then
15127 if test "$with_gnu_ld" = yes; then
15128 # If archive_cmds runs LD, not CC, wlarc should be empty
15131 # See if GNU ld supports shared libraries.
15133 aix3* | aix4* | aix5*)
15134 # On AIX/PPC, the GNU linker is very broken
15135 if test "$host_cpu" != ia64; then
15139 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15140 *** to be unable to reliably create shared libraries on AIX.
15141 *** Therefore, libtool is disabling shared libraries support. If you
15142 *** really care for shared libraries, you may want to modify your PATH
15143 *** so that a non-GNU linker is found, and then restart.
15150 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data${_S_}$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data${_S_}$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data${_S_}$AR $AR_FLAGS $lib $libobjs${_S_}$RANLIB $lib${_S_}(cd $output_objdir && a2ixlibrary -32)'
15151 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15152 hardcode_minus_L_GCJ=yes
15154 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15155 # that the semantics of dynamic libraries on AmigaOS, at least up
15156 # to version 4, is to share data among multiple programs linked
15157 # with the same dynamic library. Since this doesn't match the
15158 # behavior of shared libraries on other platforms, we can't use
15164 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15165 allow_undefined_flag_GCJ=unsupported
15166 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15167 # support --undefined. This deserves some investigation. FIXME
15168 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15174 cygwin* | mingw* | pw32*)
15175 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15176 # as there is no search path for DLLs.
15177 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15178 allow_undefined_flag_GCJ=unsupported
15179 always_export_symbols_GCJ=no
15180 enable_shared_with_static_runtimes_GCJ=yes
15181 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15183 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15184 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15185 # If the export-symbols file already is a .def file (1st line
15186 # is EXPORTS), use it as is; otherwise, prepend...
15187 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15188 cp $export_symbols $output_objdir/$soname.def;
15190 echo EXPORTS > $output_objdir/$soname.def;
15191 cat $export_symbols >> $output_objdir/$soname.def;
15193 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15200 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15201 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15204 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15205 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15210 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15214 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15215 *** create shared libraries on Solaris systems. Therefore, libtool
15216 *** is disabling shared libraries support. We urge you to upgrade GNU
15217 *** binutils to release 2.9.1 or newer. Another option is to modify
15218 *** your PATH or compiler configuration so that the native linker is
15219 *** used, and then restart.
15222 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15223 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15224 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15231 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15233 hardcode_direct_GCJ=yes
15234 hardcode_shlibpath_var_GCJ=no
15238 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15239 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15240 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15247 if test "$ld_shlibs_GCJ" = yes; then
15248 runpath_var=LD_RUN_PATH
15249 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15250 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15251 # ancient GNU ld didn't support --whole-archive et. al.
15252 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15253 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15255 whole_archive_flag_spec_GCJ=
15259 # PORTME fill in a description of your system's linker (not GNU ld)
15262 allow_undefined_flag_GCJ=unsupported
15263 always_export_symbols_GCJ=yes
15264 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE${_S_}$AR $AR_FLAGS $lib $output_objdir/$soname'
15265 # Note: this linker hardcodes the directories in LIBPATH if there
15266 # are no directories specified by -L.
15267 hardcode_minus_L_GCJ=yes
15268 if test "$GCC" = yes && test -z "$link_static_flag"; then
15269 # Neither direct hardcoding nor static linking is supported with a
15271 hardcode_direct_GCJ=unsupported
15276 if test "$host_cpu" = ia64; then
15277 # On IA64, the linker does run time linking by default, so we don't
15278 # have to do anything special.
15279 aix_use_runtimelinking=no
15280 exp_sym_flag='-Bexport'
15283 # If we're using GNU nm, then we don't want the "-C" option.
15284 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15285 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15286 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'
15288 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'
15290 aix_use_runtimelinking=no
15292 # Test if we are trying to use run time linking or normal
15293 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15294 # need to do runtime linking.
15295 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15296 for ld_flag in $LDFLAGS; do
15297 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15298 aix_use_runtimelinking=yes
15304 exp_sym_flag='-bexport'
15305 no_entry_flag='-bnoentry'
15308 # When large executables or shared objects are built, AIX ld can
15309 # have problems creating the table of contents. If linking a library
15310 # or program results in "error TOC overflow" add -mminimal-toc to
15311 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15312 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15314 archive_cmds_GCJ=''
15315 hardcode_direct_GCJ=yes
15316 hardcode_libdir_separator_GCJ=':'
15317 link_all_deplibs_GCJ=yes
15319 if test "$GCC" = yes; then
15320 case $host_os in aix4.012|aix4.012.*)
15321 # We only want to do this on AIX 4.2 and lower, the check
15322 # below for broken collect2 doesn't work under 4.3+
15323 collect2name=`${CC} -print-prog-name=collect2`
15324 if test -f "$collect2name" && \
15325 strings "$collect2name" | grep resolve_lib_name >/dev/null
15327 # We have reworked collect2
15328 hardcode_direct_GCJ=yes
15330 # We have old collect2
15331 hardcode_direct_GCJ=unsupported
15332 # It fails to find uninstalled libraries when the uninstalled
15333 # path is not listed in the libpath. Setting hardcode_minus_L
15334 # to unsupported forces relinking
15335 hardcode_minus_L_GCJ=yes
15336 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15337 hardcode_libdir_separator_GCJ=
15340 shared_flag='-shared'
15343 if test "$host_cpu" = ia64; then
15344 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15345 # chokes on -Wl,-G. The following line is correct:
15348 if test "$aix_use_runtimelinking" = yes; then
15349 shared_flag='${wl}-G'
15351 shared_flag='${wl}-bM:SRE'
15356 # It seems that -bexpall does not export symbols beginning with
15357 # underscore (_), so it is better to generate a list of symbols to export.
15358 always_export_symbols_GCJ=yes
15359 if test "$aix_use_runtimelinking" = yes; then
15360 # Warning - without using the other runtime loading flags (-brtl),
15361 # -berok will link without error, but may produce a broken library.
15362 allow_undefined_flag_GCJ='-berok'
15363 # Determine the default libpath from the value encoded in an empty executable.
15364 cat >conftest.$ac_ext <<_ACEOF
15365 #line $LINENO "configure"
15368 cat confdefs.h >>conftest.$ac_ext
15369 cat >>conftest.$ac_ext <<_ACEOF
15370 /* end confdefs.h. */
15380 rm -f conftest.$ac_objext conftest$ac_exeext
15381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15382 (eval $ac_link) 2>&5
15384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385 (exit $ac_status); } &&
15386 { ac_try='test -s conftest$ac_exeext'
15387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15388 (eval $ac_try) 2>&5
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); }; }; then
15393 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15395 # Check for a 64-bit object if we didn't find anything.
15396 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; }
15399 echo "$as_me: failed program was:" >&5
15400 sed 's/^/| /' conftest.$ac_ext >&5
15403 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15404 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15406 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15407 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"
15409 if test "$host_cpu" = ia64; then
15410 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15411 allow_undefined_flag_GCJ="-z nodefs"
15412 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"
15414 # Determine the default libpath from the value encoded in an empty executable.
15415 cat >conftest.$ac_ext <<_ACEOF
15416 #line $LINENO "configure"
15419 cat confdefs.h >>conftest.$ac_ext
15420 cat >>conftest.$ac_ext <<_ACEOF
15421 /* end confdefs.h. */
15431 rm -f conftest.$ac_objext conftest$ac_exeext
15432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15433 (eval $ac_link) 2>&5
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); } &&
15437 { ac_try='test -s conftest$ac_exeext'
15438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15439 (eval $ac_try) 2>&5
15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); }; }; then
15444 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15446 # Check for a 64-bit object if we didn't find anything.
15447 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; }
15450 echo "$as_me: failed program was:" >&5
15451 sed 's/^/| /' conftest.$ac_ext >&5
15454 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15455 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15457 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15458 # Warning - without using the other run time loading flags,
15459 # -berok will link without error, but may produce a broken library.
15460 no_undefined_flag_GCJ=' ${wl}-bernotok'
15461 allow_undefined_flag_GCJ=' ${wl}-berok'
15462 # -bexpall does not export symbols beginning with underscore (_)
15463 always_export_symbols_GCJ=yes
15464 # Exported symbols can be pulled into shared objects from archives
15465 whole_archive_flag_spec_GCJ=' '
15466 archive_cmds_need_lc_GCJ=yes
15467 # This is similar to how AIX traditionally builds it's shared libraries.
15468 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}\${_S_}$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15474 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data${_S_}$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data${_S_}$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data${_S_}$AR $AR_FLAGS $lib $libobjs${_S_}$RANLIB $lib${_S_}(cd $output_objdir && a2ixlibrary -32)'
15475 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15476 hardcode_minus_L_GCJ=yes
15477 # see comment about different semantics on the GNU ld section
15482 export_dynamic_flag_spec_GCJ=-rdynamic
15485 cygwin* | mingw* | pw32*)
15486 # When not using gcc, we currently assume that we are using
15487 # Microsoft Visual C++.
15488 # hardcode_libdir_flag_spec is actually meaningless, as there is
15489 # no search path for DLLs.
15490 hardcode_libdir_flag_spec_GCJ=' '
15491 allow_undefined_flag_GCJ=unsupported
15492 # Tell ltmain to make .lib files, not .a files.
15494 # Tell ltmain to make .dll files, not .so files.
15496 # FIXME: Setting linknames here is a bad hack.
15497 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll${_S_}linknames='
15498 # The linker will automatically build a .lib file if we build a DLL.
15499 old_archive_From_new_cmds_GCJ='true'
15500 # FIXME: Should let the user specify the lib program.
15501 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15502 fix_srcfile_path='`cygpath -w "$srcfile"`'
15503 enable_shared_with_static_runtimes_GCJ=yes
15506 darwin* | rhapsody*)
15507 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15508 archive_cmds_need_lc_GCJ=no
15510 rhapsody* | darwin1.[012])
15511 allow_undefined_flag_GCJ='-undefined suppress'
15513 darwin1.* | darwin[2-6].*) # Darwin 1.3 on, but less than 7.0
15514 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15517 case "${MACOSX_DEPLOYMENT_TARGET-10.1}" in
15519 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15522 if test -z ${LD_TWOLEVEL_NAMESPACE}; then
15523 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15525 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
15531 # FIXME: Relying on posixy $() will cause problems for
15532 # cross-compilation, but unfortunately the echo tests do not
15533 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15534 # `"' quotes if we put them in here... so don't!
15535 lt_int_apple_cc_single_mod=no
15536 output_verbose_link_cmd='echo'
15537 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15538 lt_int_apple_cc_single_mod=yes
15540 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15541 archive_cmds_GCJ='$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15543 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15545 module_cmds_GCJ='$CC -bundle $archargs ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15546 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15547 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15548 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15550 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15552 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -bundle $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15553 hardcode_direct_GCJ=no
15554 hardcode_automatic_GCJ=yes
15555 hardcode_shlibpath_var_GCJ=unsupported
15556 whole_archive_flag_spec_GCJ='-all_load $convenience'
15557 link_all_deplibs_GCJ=yes
15562 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15563 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15564 hardcode_shlibpath_var_GCJ=no
15571 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15572 # support. Future versions do this automatically, but an explicit c++rt0.o
15573 # does not break anything, and helps significantly (at the cost of a little
15576 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15577 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15578 hardcode_direct_GCJ=yes
15579 hardcode_shlibpath_var_GCJ=no
15582 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15584 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15585 hardcode_direct_GCJ=yes
15586 hardcode_minus_L_GCJ=yes
15587 hardcode_shlibpath_var_GCJ=no
15590 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15592 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15593 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15594 hardcode_direct_GCJ=yes
15595 hardcode_shlibpath_var_GCJ=no
15599 if test "$GCC" = yes; then
15600 archive_cmds_GCJ='$rm $output_objdir/$soname${_S_}$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15602 archive_cmds_GCJ='$rm $output_objdir/$soname${_S_}$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15604 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15605 hardcode_libdir_separator_GCJ=:
15606 hardcode_direct_GCJ=yes
15608 # hardcode_minus_L: Not really in the search PATH,
15609 # but as the default location of the library.
15610 hardcode_minus_L_GCJ=yes
15611 export_dynamic_flag_spec_GCJ='${wl}-E'
15615 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15616 case "$host_cpu" in
15618 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15621 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15625 case "$host_cpu" in
15627 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15630 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15634 if test "$with_gnu_ld" = no; then
15635 case "$host_cpu" in
15637 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15638 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15639 hardcode_libdir_separator_GCJ=:
15640 hardcode_direct_GCJ=no
15641 hardcode_shlibpath_var_GCJ=no
15644 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15645 hardcode_direct_GCJ=no
15646 hardcode_shlibpath_var_GCJ=no
15648 # hardcode_minus_L: Not really in the search PATH,
15649 # but as the default location of the library.
15650 hardcode_minus_L_GCJ=yes
15653 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15654 hardcode_libdir_separator_GCJ=:
15655 hardcode_direct_GCJ=yes
15656 export_dynamic_flag_spec_GCJ='${wl}-E'
15658 # hardcode_minus_L: Not really in the search PATH,
15659 # but as the default location of the library.
15660 hardcode_minus_L_GCJ=yes
15666 irix5* | irix6* | nonstopux*)
15667 if test "$GCC" = yes; then
15668 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'
15670 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'
15671 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15673 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15674 hardcode_libdir_separator_GCJ=:
15675 link_all_deplibs_GCJ=yes
15679 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15680 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15682 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15684 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15685 hardcode_direct_GCJ=yes
15686 hardcode_shlibpath_var_GCJ=no
15690 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15691 hardcode_direct_GCJ=yes
15692 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15693 hardcode_libdir_separator_GCJ=:
15694 hardcode_shlibpath_var_GCJ=no
15698 hardcode_direct_GCJ=yes
15699 hardcode_shlibpath_var_GCJ=no
15700 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15701 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15702 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15703 export_dynamic_flag_spec_GCJ='${wl}-E'
15706 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15707 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15708 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15711 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15712 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15719 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15720 hardcode_minus_L_GCJ=yes
15721 allow_undefined_flag_GCJ=unsupported
15722 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def${_S_}$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def${_S_}$echo DATA >> $output_objdir/$libname.def${_S_}$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def${_S_}$echo EXPORTS >> $output_objdir/$libname.def${_S_}emxexp $libobjs >> $output_objdir/$libname.def${_S_}$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15723 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15727 if test "$GCC" = yes; then
15728 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15729 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'
15731 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15732 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'
15734 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15735 hardcode_libdir_separator_GCJ=:
15738 osf4* | osf5*) # as osf3* with the addition of -msym flag
15739 if test "$GCC" = yes; then
15740 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15741 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'
15742 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15744 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15745 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'
15746 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${_S_}
15747 $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${_S_}$rm $lib.exp'
15749 # Both c and cxx compiler support -rpath directly
15750 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15752 hardcode_libdir_separator_GCJ=:
15756 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15757 hardcode_shlibpath_var_GCJ=no
15758 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15759 runpath_var=LD_RUN_PATH
15760 hardcode_runpath_var=yes
15764 no_undefined_flag_GCJ=' -z text'
15765 if test "$GCC" = yes; then
15766 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15767 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
15768 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags${_S_}$rm $lib.exp'
15770 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15771 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
15772 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags${_S_}$rm $lib.exp'
15774 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15775 hardcode_shlibpath_var_GCJ=no
15777 solaris2.[0-5] | solaris2.[0-5].*) ;;
15778 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15779 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15781 link_all_deplibs_GCJ=yes
15785 if test "x$host_vendor" = xsequent; then
15786 # Use $CC to link under sequent, because it throws in some extra .o
15787 # files that make .init and .fini sections work.
15788 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15790 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15792 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15793 hardcode_direct_GCJ=yes
15794 hardcode_minus_L_GCJ=yes
15795 hardcode_shlibpath_var_GCJ=no
15799 case $host_vendor in
15801 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15802 hardcode_direct_GCJ=yes # is this really true???
15805 ## LD is ld it makes a PLAMLIB
15806 ## CC just makes a GrossModule.
15807 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15808 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15809 hardcode_direct_GCJ=no
15812 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15813 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15816 runpath_var='LD_RUN_PATH'
15817 hardcode_shlibpath_var_GCJ=no
15821 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15822 hardcode_shlibpath_var_GCJ=no
15823 export_dynamic_flag_spec_GCJ='-Bexport'
15827 if test -d /usr/nec; then
15828 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15829 hardcode_shlibpath_var_GCJ=no
15830 runpath_var=LD_RUN_PATH
15831 hardcode_runpath_var=yes
15837 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15838 hardcode_direct_GCJ=yes
15839 hardcode_minus_L_GCJ=no
15840 hardcode_shlibpath_var_GCJ=no
15841 hardcode_runpath_var=yes
15842 runpath_var=LD_RUN_PATH
15845 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15846 no_undefined_flag_GCJ='${wl}-z ${wl}text'
15847 if test "$GCC" = yes; then
15848 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15850 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15852 runpath_var='LD_RUN_PATH'
15853 hardcode_shlibpath_var_GCJ=no
15857 no_undefined_flag_GCJ=' -z text'
15858 # $CC -shared without GNU ld will not create a library from C++
15859 # object files and a static libstdc++, better avoid it by now
15860 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15861 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
15862 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags${_S_}$rm $lib.exp'
15863 hardcode_libdir_flag_spec_GCJ=
15864 hardcode_shlibpath_var_GCJ=no
15865 runpath_var='LD_RUN_PATH'
15869 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15870 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15871 hardcode_shlibpath_var_GCJ=no
15880 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15881 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15882 test "$ld_shlibs_GCJ" = no && can_build_shared=no
15884 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15885 if test "$GCC" = yes; then
15886 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15890 # Do we need to explicitly link libc?
15892 case "x$archive_cmds_need_lc_GCJ" in
15894 # Assume -lc should be added
15895 archive_cmds_need_lc_GCJ=yes
15897 if test "$enable_shared" = yes && test "$GCC" = yes; then
15898 case $archive_cmds_GCJ in
15900 # FIXME: we may have to deal with multi-command sequences.
15903 # Test whether the compiler implicitly links with -lc since on some
15904 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15905 # to ld, don't add -lc before -lgcc.
15906 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15907 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15909 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15912 (eval $ac_compile) 2>&5
15914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915 (exit $ac_status); } 2>conftest.err; then
15918 libobjs=conftest.$ac_objext
15920 wl=$lt_prog_compiler_wl_GCJ
15926 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15927 allow_undefined_flag_GCJ=
15928 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15929 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); }
15934 archive_cmds_need_lc_GCJ=no
15936 archive_cmds_need_lc_GCJ=yes
15938 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15940 cat conftest.err 1>&5
15943 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15944 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15951 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15952 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15953 hardcode_action_GCJ=
15954 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15955 test -n "$runpath_var GCJ" || \
15956 test "X$hardcode_automatic_GCJ"="Xyes" ; then
15958 # We can hardcode non-existant directories.
15959 if test "$hardcode_direct_GCJ" != no &&
15960 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15961 # have to relink, otherwise we might link with an installed library
15962 # when we should be linking with a yet-to-be-installed one
15963 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15964 test "$hardcode_minus_L_GCJ" != no; then
15965 # Linking always hardcodes the temporary library directory.
15966 hardcode_action_GCJ=relink
15968 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15969 hardcode_action_GCJ=immediate
15972 # We cannot hardcode anything, or else we can only hardcode existing
15974 hardcode_action_GCJ=unsupported
15976 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15977 echo "${ECHO_T}$hardcode_action_GCJ" >&6
15979 if test "$hardcode_action_GCJ" = relink; then
15980 # Fast installation is not supported
15981 enable_fast_install=no
15982 elif test "$shlibpath_overrides_runpath" = yes ||
15983 test "$enable_shared" = no; then
15984 # Fast installation is not necessary
15985 enable_fast_install=needless
15990 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15991 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15992 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15993 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15994 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15995 echo "$as_me:$LINENO: result: yes" >&5
15996 echo "${ECHO_T}yes" >&6
15998 # FIXME - insert some real tests, host_os isn't really good enough
16001 if test -n "$STRIP" ; then
16002 striplib="$STRIP -x"
16003 echo "$as_me:$LINENO: result: yes" >&5
16004 echo "${ECHO_T}yes" >&6
16006 echo "$as_me:$LINENO: result: no" >&5
16007 echo "${ECHO_T}no" >&6
16011 echo "$as_me:$LINENO: result: no" >&5
16012 echo "${ECHO_T}no" >&6
16017 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16018 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16019 library_names_spec=
16020 libname_spec='lib$name'
16024 postuninstall_cmds=
16028 shlibpath_overrides_runpath=unknown
16030 dynamic_linker="$host_os ld.so"
16031 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16032 if test "$GCC" = yes; then
16033 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16034 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16035 # if the path contains ";" then we assume it to be the separator
16036 # otherwise default to the standard path separator (i.e. ":") - it is
16037 # assumed that no part of a normal pathname contains ";" but that should
16038 # okay in the real world where ";" in dirpaths is itself problematic.
16039 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16041 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16044 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16046 need_lib_prefix=unknown
16047 hardcode_into_libs=no
16049 # when you set need_version to no, make sure it does not cause -set_version
16050 # flags to be left without arguments
16051 need_version=unknown
16056 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16057 shlibpath_var=LIBPATH
16059 # AIX 3 has no versioning support, so we append a major version to the name.
16060 soname_spec='${libname}${release}${shared_ext}$major'
16067 hardcode_into_libs=yes
16068 if test "$host_cpu" = ia64; then
16069 # AIX 5 supports IA64
16070 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16071 shlibpath_var=LD_LIBRARY_PATH
16073 # With GCC up to 2.95.x, collect2 would create an import file
16074 # for dependence libraries. The import file would start with
16075 # the line `#! .'. This would cause the generated library to
16076 # depend on `.', always an invalid library. This was fixed in
16077 # development snapshots of GCC prior to 3.0.
16079 aix4 | aix4.[01] | aix4.[01].*)
16080 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16082 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16085 can_build_shared=no
16089 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16090 # soname into executable. Probably we can add versioning support to
16091 # collect2, so additional links can be useful in future.
16092 if test "$aix_use_runtimelinking" = yes; then
16093 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16094 # instead of lib<name>.a to let people know that these are not
16095 # typical AIX shared libraries.
16096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16098 # We preserve .a as extension for shared libraries through AIX4.2
16099 # and later when we are not doing run time linking.
16100 library_names_spec='${libname}${release}.a $libname.a'
16101 soname_spec='${libname}${release}${shared_ext}$major'
16103 shlibpath_var=LIBPATH
16108 library_names_spec='$libname.ixlibrary $libname.a'
16109 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16110 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'
16114 library_names_spec='${libname}${shared_ext}'
16115 dynamic_linker="$host_os ld.so"
16116 shlibpath_var=LIBRARY_PATH
16122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16123 soname_spec='${libname}${release}${shared_ext}$major'
16124 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16125 shlibpath_var=LD_LIBRARY_PATH
16126 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16127 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16128 # the default ld.so.conf also contains /usr/contrib/lib and
16129 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16130 # libtool to hard-code these into programs
16133 cygwin* | mingw* | pw32*)
16134 version_type=windows
16139 case $GCC,$host_os in
16140 yes,cygwin* | yes,mingw* | yes,pw32*)
16141 library_names_spec='$libname.dll.a'
16142 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16143 postinstall_cmds='base_file=`basename \${file}`${_S_}
16144 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`${_S_}
16145 dldir=$destdir/`dirname \$dlpath`${_S_}
16146 test -d \$dldir || mkdir -p \$dldir${_S_}
16147 $install_prog $dir/$dlname \$dldir/$dlname'
16148 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`${_S_}
16149 dlpath=$dir/\$dldll${_S_}
16151 shlibpath_overrides_runpath=yes
16155 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16156 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16157 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16160 # MinGW DLLs use traditional 'lib' prefix
16161 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16162 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16163 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16164 # It is most probably a Windows format PATH printed by
16165 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16166 # path with ; separators, and with drive letters. We can handle the
16167 # drive letters (cygwin fileutils understands them), so leave them,
16168 # especially as we might pass files found there to a mingw objdump,
16169 # which wouldn't understand a cygwinified path. Ahh.
16170 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16172 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16176 # pw32 DLLs use 'pw' prefix rather than 'lib'
16177 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16183 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16186 dynamic_linker='Win32 ld.exe'
16187 # FIXME: first we should search . and the directory the executable is in
16191 darwin* | rhapsody*)
16192 dynamic_linker="$host_os dyld"
16193 version_type=darwin
16196 # FIXME: Relying on posixy $() will cause problems for
16197 # cross-compilation, but unfortunately the echo tests do not
16198 # yet detect zsh echo's removal of \ escapes.
16199 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
16200 soname_spec='${libname}${release}${major}$shared_ext'
16201 shlibpath_overrides_runpath=yes
16202 shlibpath_var=DYLD_LIBRARY_PATH
16203 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16204 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16205 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16206 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"`
16208 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16216 soname_spec='${libname}${release}${shared_ext}$major'
16217 shlibpath_var=LD_LIBRARY_PATH
16225 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16226 version_type=freebsd-$objformat
16227 case $version_type in
16229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16234 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16238 shlibpath_var=LD_LIBRARY_PATH
16241 shlibpath_overrides_runpath=yes
16243 freebsd3.01* | freebsdelf3.01*)
16244 shlibpath_overrides_runpath=yes
16245 hardcode_into_libs=yes
16248 shlibpath_overrides_runpath=no
16249 hardcode_into_libs=yes
16258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16259 soname_spec='${libname}${release}${shared_ext}$major'
16260 shlibpath_var=LD_LIBRARY_PATH
16261 hardcode_into_libs=yes
16264 hpux9* | hpux10* | hpux11*)
16265 # Give a soname corresponding to the major version so that dld.sl refuses to
16266 # link against other versions.
16270 case "$host_cpu" in
16273 hardcode_into_libs=yes
16274 dynamic_linker="$host_os dld.so"
16275 shlibpath_var=LD_LIBRARY_PATH
16276 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16278 soname_spec='${libname}${release}${shared_ext}$major'
16279 if test "X$HPUX_IA64_MODE" = X32; then
16280 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16282 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16284 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16288 hardcode_into_libs=yes
16289 dynamic_linker="$host_os dld.sl"
16290 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16291 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16293 soname_spec='${libname}${release}${shared_ext}$major'
16294 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16295 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16299 dynamic_linker="$host_os dld.sl"
16300 shlibpath_var=SHLIB_PATH
16301 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16303 soname_spec='${libname}${release}${shared_ext}$major'
16306 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16307 postinstall_cmds='chmod 555 $lib'
16310 irix5* | irix6* | nonstopux*)
16312 nonstopux*) version_type=nonstopux ;;
16314 if test "$lt_cv_prog_gnu_ld" = yes; then
16322 soname_spec='${libname}${release}${shared_ext}$major'
16323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16325 irix5* | nonstopux*)
16326 libsuff= shlibsuff=
16329 case $LD in # libtool.m4 will add one of these switches to LD
16330 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16331 libsuff= shlibsuff= libmagic=32-bit;;
16332 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16333 libsuff=32 shlibsuff=N32 libmagic=N32;;
16334 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16335 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16336 *) libsuff= shlibsuff= libmagic=never-match;;
16340 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16341 shlibpath_overrides_runpath=no
16342 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16343 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16344 hardcode_into_libs=yes
16347 # No shared lib support for Linux oldld, aout, or coff.
16348 linux*oldld* | linux*aout* | linux*coff*)
16352 # This must be Linux ELF.
16357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16358 soname_spec='${libname}${release}${shared_ext}$major'
16359 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16360 shlibpath_var=LD_LIBRARY_PATH
16361 shlibpath_overrides_runpath=no
16362 # This implies no fast_install, which is unacceptable.
16363 # Some rework will be needed to allow for fast_install
16364 # before this can be enabled.
16365 hardcode_into_libs=yes
16367 # We used to test for /lib/ld.so.1 and disable shared libraries on
16368 # powerpc, because MkLinux only supported shared libraries with the
16369 # GNU dynamic linker. Since this was broken with cross compilers,
16370 # most powerpc-linux boxes support dynamic linking these days and
16371 # people can always --disable-shared, the test was removed, and we
16372 # assume the GNU/Linux dynamic linker is in use.
16373 dynamic_linker='GNU/Linux ld.so'
16380 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16382 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16383 dynamic_linker='NetBSD (a.out) ld.so'
16385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16386 soname_spec='${libname}${release}${shared_ext}$major'
16387 dynamic_linker='NetBSD ld.elf_so'
16389 shlibpath_var=LD_LIBRARY_PATH
16390 shlibpath_overrides_runpath=yes
16391 hardcode_into_libs=yes
16396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16397 shlibpath_var=LD_LIBRARY_PATH
16398 shlibpath_overrides_runpath=yes
16405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16406 soname_spec='${libname}${release}${shared_ext}$major'
16407 shlibpath_var=LD_LIBRARY_PATH
16408 shlibpath_overrides_runpath=yes
16415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16416 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16417 shlibpath_var=LD_LIBRARY_PATH
16418 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16420 openbsd2.[89] | openbsd2.[89].*)
16421 shlibpath_overrides_runpath=no
16424 shlibpath_overrides_runpath=yes
16428 shlibpath_overrides_runpath=yes
16433 libname_spec='$name'
16436 library_names_spec='$libname${shared_ext} $libname.a'
16437 dynamic_linker='OS/2 ld.exe'
16438 shlibpath_var=LIBPATH
16441 osf3* | osf4* | osf5*)
16445 soname_spec='${libname}${release}${shared_ext}$major'
16446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16447 shlibpath_var=LD_LIBRARY_PATH
16448 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16449 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16454 soname_spec='${libname}${release}${shared_ext}$major'
16455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16456 shlibpath_var=LD_LIBRARY_PATH
16463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16464 soname_spec='${libname}${release}${shared_ext}$major'
16465 shlibpath_var=LD_LIBRARY_PATH
16466 shlibpath_overrides_runpath=yes
16467 hardcode_into_libs=yes
16468 # ldd complains unless libraries are executable
16469 postinstall_cmds='chmod +x $lib'
16474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16475 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16476 shlibpath_var=LD_LIBRARY_PATH
16477 shlibpath_overrides_runpath=yes
16478 if test "$with_gnu_ld" = yes; then
16484 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16487 soname_spec='${libname}${release}${shared_ext}$major'
16488 shlibpath_var=LD_LIBRARY_PATH
16489 case $host_vendor in
16491 shlibpath_overrides_runpath=no
16493 export_dynamic_flag_spec='${wl}-Blargedynsym'
16494 runpath_var=LD_RUN_PATH
16502 shlibpath_overrides_runpath=no
16503 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16509 if test -d /usr/nec ;then
16511 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16512 soname_spec='$libname${shared_ext}.$major'
16513 shlibpath_var=LD_LIBRARY_PATH
16519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16520 soname_spec='${libname}${release}${shared_ext}$major'
16521 shlibpath_var=LD_LIBRARY_PATH
16528 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16529 echo "${ECHO_T}$dynamic_linker" >&6
16530 test "$dynamic_linker" = no && can_build_shared=no
16532 if test "x$enable_dlopen" != xyes; then
16533 enable_dlopen=unknown
16534 enable_dlopen_self=unknown
16535 enable_dlopen_self_static=unknown
16542 lt_cv_dlopen="load_add_on"
16544 lt_cv_dlopen_self=yes
16548 lt_cv_dlopen="LoadLibrary"
16553 lt_cv_dlopen="dlopen"
16558 # if libdl is installed we need to link against it
16559 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16560 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16561 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16562 echo $ECHO_N "(cached) $ECHO_C" >&6
16564 ac_check_lib_save_LIBS=$LIBS
16566 cat >conftest.$ac_ext <<_ACEOF
16567 #line $LINENO "configure"
16570 cat confdefs.h >>conftest.$ac_ext
16571 cat >>conftest.$ac_ext <<_ACEOF
16572 /* end confdefs.h. */
16574 /* Override any gcc2 internal prototype to avoid an error. */
16578 /* We use char because int might match the return type of a gcc2
16579 builtin and then its argument prototype would still apply. */
16589 rm -f conftest.$ac_objext conftest$ac_exeext
16590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16591 (eval $ac_link) 2>&5
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); } &&
16595 { ac_try='test -s conftest$ac_exeext'
16596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16597 (eval $ac_try) 2>&5
16599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600 (exit $ac_status); }; }; then
16601 ac_cv_lib_dl_dlopen=yes
16603 echo "$as_me: failed program was:" >&5
16604 sed 's/^/| /' conftest.$ac_ext >&5
16606 ac_cv_lib_dl_dlopen=no
16608 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16609 LIBS=$ac_check_lib_save_LIBS
16611 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16612 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16613 if test $ac_cv_lib_dl_dlopen = yes; then
16614 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16617 lt_cv_dlopen="dyld"
16619 lt_cv_dlopen_self=yes
16626 echo "$as_me:$LINENO: checking for shl_load" >&5
16627 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16628 if test "${ac_cv_func_shl_load+set}" = set; then
16629 echo $ECHO_N "(cached) $ECHO_C" >&6
16631 cat >conftest.$ac_ext <<_ACEOF
16632 #line $LINENO "configure"
16635 cat confdefs.h >>conftest.$ac_ext
16636 cat >>conftest.$ac_ext <<_ACEOF
16637 /* end confdefs.h. */
16638 /* System header to define __stub macros and hopefully few prototypes,
16639 which can conflict with char shl_load (); below.
16640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16641 <limits.h> exists even on freestanding compilers. */
16643 # include <limits.h>
16645 # include <assert.h>
16647 /* Override any gcc2 internal prototype to avoid an error. */
16652 /* We use char because int might match the return type of a gcc2
16653 builtin and then its argument prototype would still apply. */
16655 /* The GNU C library defines this for functions which it implements
16656 to always fail with ENOSYS. Some functions are actually named
16657 something starting with __ and the normal name is an alias. */
16658 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16661 char (*f) () = shl_load;
16670 return f != shl_load;
16675 rm -f conftest.$ac_objext conftest$ac_exeext
16676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16677 (eval $ac_link) 2>&5
16679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680 (exit $ac_status); } &&
16681 { ac_try='test -s conftest$ac_exeext'
16682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16683 (eval $ac_try) 2>&5
16685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686 (exit $ac_status); }; }; then
16687 ac_cv_func_shl_load=yes
16689 echo "$as_me: failed program was:" >&5
16690 sed 's/^/| /' conftest.$ac_ext >&5
16692 ac_cv_func_shl_load=no
16694 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16696 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16697 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16698 if test $ac_cv_func_shl_load = yes; then
16699 lt_cv_dlopen="shl_load"
16701 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16702 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16703 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16704 echo $ECHO_N "(cached) $ECHO_C" >&6
16706 ac_check_lib_save_LIBS=$LIBS
16708 cat >conftest.$ac_ext <<_ACEOF
16709 #line $LINENO "configure"
16712 cat confdefs.h >>conftest.$ac_ext
16713 cat >>conftest.$ac_ext <<_ACEOF
16714 /* end confdefs.h. */
16716 /* Override any gcc2 internal prototype to avoid an error. */
16720 /* We use char because int might match the return type of a gcc2
16721 builtin and then its argument prototype would still apply. */
16731 rm -f conftest.$ac_objext conftest$ac_exeext
16732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16733 (eval $ac_link) 2>&5
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); } &&
16737 { ac_try='test -s conftest$ac_exeext'
16738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16739 (eval $ac_try) 2>&5
16741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742 (exit $ac_status); }; }; then
16743 ac_cv_lib_dld_shl_load=yes
16745 echo "$as_me: failed program was:" >&5
16746 sed 's/^/| /' conftest.$ac_ext >&5
16748 ac_cv_lib_dld_shl_load=no
16750 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16751 LIBS=$ac_check_lib_save_LIBS
16753 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16754 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16755 if test $ac_cv_lib_dld_shl_load = yes; then
16756 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16758 echo "$as_me:$LINENO: checking for dlopen" >&5
16759 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16760 if test "${ac_cv_func_dlopen+set}" = set; then
16761 echo $ECHO_N "(cached) $ECHO_C" >&6
16763 cat >conftest.$ac_ext <<_ACEOF
16764 #line $LINENO "configure"
16767 cat confdefs.h >>conftest.$ac_ext
16768 cat >>conftest.$ac_ext <<_ACEOF
16769 /* end confdefs.h. */
16770 /* System header to define __stub macros and hopefully few prototypes,
16771 which can conflict with char dlopen (); below.
16772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16773 <limits.h> exists even on freestanding compilers. */
16775 # include <limits.h>
16777 # include <assert.h>
16779 /* Override any gcc2 internal prototype to avoid an error. */
16784 /* We use char because int might match the return type of a gcc2
16785 builtin and then its argument prototype would still apply. */
16787 /* The GNU C library defines this for functions which it implements
16788 to always fail with ENOSYS. Some functions are actually named
16789 something starting with __ and the normal name is an alias. */
16790 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16793 char (*f) () = dlopen;
16802 return f != dlopen;
16807 rm -f conftest.$ac_objext conftest$ac_exeext
16808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16809 (eval $ac_link) 2>&5
16811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812 (exit $ac_status); } &&
16813 { ac_try='test -s conftest$ac_exeext'
16814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16815 (eval $ac_try) 2>&5
16817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818 (exit $ac_status); }; }; then
16819 ac_cv_func_dlopen=yes
16821 echo "$as_me: failed program was:" >&5
16822 sed 's/^/| /' conftest.$ac_ext >&5
16824 ac_cv_func_dlopen=no
16826 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16828 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16829 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16830 if test $ac_cv_func_dlopen = yes; then
16831 lt_cv_dlopen="dlopen"
16833 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16834 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16835 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16836 echo $ECHO_N "(cached) $ECHO_C" >&6
16838 ac_check_lib_save_LIBS=$LIBS
16840 cat >conftest.$ac_ext <<_ACEOF
16841 #line $LINENO "configure"
16844 cat confdefs.h >>conftest.$ac_ext
16845 cat >>conftest.$ac_ext <<_ACEOF
16846 /* end confdefs.h. */
16848 /* Override any gcc2 internal prototype to avoid an error. */
16852 /* We use char because int might match the return type of a gcc2
16853 builtin and then its argument prototype would still apply. */
16863 rm -f conftest.$ac_objext conftest$ac_exeext
16864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16865 (eval $ac_link) 2>&5
16867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868 (exit $ac_status); } &&
16869 { ac_try='test -s conftest$ac_exeext'
16870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16871 (eval $ac_try) 2>&5
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); }; }; then
16875 ac_cv_lib_dl_dlopen=yes
16877 echo "$as_me: failed program was:" >&5
16878 sed 's/^/| /' conftest.$ac_ext >&5
16880 ac_cv_lib_dl_dlopen=no
16882 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16883 LIBS=$ac_check_lib_save_LIBS
16885 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16886 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16887 if test $ac_cv_lib_dl_dlopen = yes; then
16888 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16890 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16891 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16892 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16893 echo $ECHO_N "(cached) $ECHO_C" >&6
16895 ac_check_lib_save_LIBS=$LIBS
16896 LIBS="-lsvld $LIBS"
16897 cat >conftest.$ac_ext <<_ACEOF
16898 #line $LINENO "configure"
16901 cat confdefs.h >>conftest.$ac_ext
16902 cat >>conftest.$ac_ext <<_ACEOF
16903 /* end confdefs.h. */
16905 /* Override any gcc2 internal prototype to avoid an error. */
16909 /* We use char because int might match the return type of a gcc2
16910 builtin and then its argument prototype would still apply. */
16920 rm -f conftest.$ac_objext conftest$ac_exeext
16921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16922 (eval $ac_link) 2>&5
16924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925 (exit $ac_status); } &&
16926 { ac_try='test -s conftest$ac_exeext'
16927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16928 (eval $ac_try) 2>&5
16930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16931 (exit $ac_status); }; }; then
16932 ac_cv_lib_svld_dlopen=yes
16934 echo "$as_me: failed program was:" >&5
16935 sed 's/^/| /' conftest.$ac_ext >&5
16937 ac_cv_lib_svld_dlopen=no
16939 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16940 LIBS=$ac_check_lib_save_LIBS
16942 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16943 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16944 if test $ac_cv_lib_svld_dlopen = yes; then
16945 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16947 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16948 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16949 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16950 echo $ECHO_N "(cached) $ECHO_C" >&6
16952 ac_check_lib_save_LIBS=$LIBS
16954 cat >conftest.$ac_ext <<_ACEOF
16955 #line $LINENO "configure"
16958 cat confdefs.h >>conftest.$ac_ext
16959 cat >>conftest.$ac_ext <<_ACEOF
16960 /* end confdefs.h. */
16962 /* Override any gcc2 internal prototype to avoid an error. */
16966 /* We use char because int might match the return type of a gcc2
16967 builtin and then its argument prototype would still apply. */
16977 rm -f conftest.$ac_objext conftest$ac_exeext
16978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16979 (eval $ac_link) 2>&5
16981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982 (exit $ac_status); } &&
16983 { ac_try='test -s conftest$ac_exeext'
16984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16985 (eval $ac_try) 2>&5
16987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988 (exit $ac_status); }; }; then
16989 ac_cv_lib_dld_dld_link=yes
16991 echo "$as_me: failed program was:" >&5
16992 sed 's/^/| /' conftest.$ac_ext >&5
16994 ac_cv_lib_dld_dld_link=no
16996 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16997 LIBS=$ac_check_lib_save_LIBS
16999 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17000 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17001 if test $ac_cv_lib_dld_dld_link = yes; then
17002 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17023 if test "x$lt_cv_dlopen" != xno; then
17029 case $lt_cv_dlopen in
17031 save_CPPFLAGS="$CPPFLAGS"
17032 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17034 save_LDFLAGS="$LDFLAGS"
17035 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17038 LIBS="$lt_cv_dlopen_libs $LIBS"
17040 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17041 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17042 if test "${lt_cv_dlopen_self+set}" = set; then
17043 echo $ECHO_N "(cached) $ECHO_C" >&6
17045 if test "$cross_compiling" = yes; then :
17046 lt_cv_dlopen_self=cross
17048 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17049 lt_status=$lt_dlunknown
17050 cat > conftest.$ac_ext <<EOF
17051 #line 17051 "configure"
17052 #include "confdefs.h"
17061 # define LT_DLGLOBAL RTLD_GLOBAL
17064 # define LT_DLGLOBAL DL_GLOBAL
17066 # define LT_DLGLOBAL 0
17070 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17071 find out it does not work in some platform. */
17072 #ifndef LT_DLLAZY_OR_NOW
17074 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17077 # define LT_DLLAZY_OR_NOW DL_LAZY
17080 # define LT_DLLAZY_OR_NOW RTLD_NOW
17083 # define LT_DLLAZY_OR_NOW DL_NOW
17085 # define LT_DLLAZY_OR_NOW 0
17093 extern "C" void exit (int);
17096 void fnord() { int i=42;}
17099 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17100 int status = $lt_dlunknown;
17104 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17105 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17106 /* dlclose (self); */
17112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17113 (eval $ac_link) 2>&5
17115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17117 (./conftest; exit; ) 2>/dev/null
17119 case x$lt_status in
17120 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17121 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17122 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17125 # compilation failed
17126 lt_cv_dlopen_self=no
17133 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17134 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17136 if test "x$lt_cv_dlopen_self" = xyes; then
17137 LDFLAGS="$LDFLAGS $link_static_flag"
17138 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17139 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17140 if test "${lt_cv_dlopen_self_static+set}" = set; then
17141 echo $ECHO_N "(cached) $ECHO_C" >&6
17143 if test "$cross_compiling" = yes; then :
17144 lt_cv_dlopen_self_static=cross
17146 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17147 lt_status=$lt_dlunknown
17148 cat > conftest.$ac_ext <<EOF
17149 #line 17149 "configure"
17150 #include "confdefs.h"
17159 # define LT_DLGLOBAL RTLD_GLOBAL
17162 # define LT_DLGLOBAL DL_GLOBAL
17164 # define LT_DLGLOBAL 0
17168 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17169 find out it does not work in some platform. */
17170 #ifndef LT_DLLAZY_OR_NOW
17172 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17175 # define LT_DLLAZY_OR_NOW DL_LAZY
17178 # define LT_DLLAZY_OR_NOW RTLD_NOW
17181 # define LT_DLLAZY_OR_NOW DL_NOW
17183 # define LT_DLLAZY_OR_NOW 0
17191 extern "C" void exit (int);
17194 void fnord() { int i=42;}
17197 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17198 int status = $lt_dlunknown;
17202 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17203 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17204 /* dlclose (self); */
17210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17211 (eval $ac_link) 2>&5
17213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17215 (./conftest; exit; ) 2>/dev/null
17217 case x$lt_status in
17218 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17219 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17220 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17223 # compilation failed
17224 lt_cv_dlopen_self_static=no
17231 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17232 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17235 CPPFLAGS="$save_CPPFLAGS"
17236 LDFLAGS="$save_LDFLAGS"
17241 case $lt_cv_dlopen_self in
17242 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17243 *) enable_dlopen_self=unknown ;;
17246 case $lt_cv_dlopen_self_static in
17247 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17248 *) enable_dlopen_self_static=unknown ;;
17253 # The else clause should only fire when bootstrapping the
17254 # libtool distribution, otherwise you forgot to ship ltmain.sh
17255 # with your package, and you will get complaints that there are
17256 # no rules to generate ltmain.sh.
17257 if test -f "$ltmain"; then
17258 # See if we are running on zsh, and set the options which allow our commands through
17259 # without removal of \ escapes.
17260 if test -n "${ZSH_VERSION+set}" ; then
17261 setopt NO_GLOB_SUBST
17263 # Now quote all the things that may contain metacharacters while being
17264 # careful not to overquote the AC_SUBSTed values. We take copies of the
17265 # variables and quote the copies for generation of the libtool script.
17266 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17267 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17268 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17269 deplibs_check_method reload_flag reload_cmds need_locks \
17270 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17271 lt_cv_sys_global_symbol_to_c_name_address \
17272 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17273 old_postinstall_cmds old_postuninstall_cmds \
17277 lt_prog_compiler_wl_GCJ \
17278 lt_prog_compiler_pic_GCJ \
17279 lt_prog_compiler_static_GCJ \
17280 lt_prog_compiler_no_builtin_flag_GCJ \
17281 export_dynamic_flag_spec_GCJ \
17282 thread_safe_flag_spec_GCJ \
17283 whole_archive_flag_spec_GCJ \
17284 enable_shared_with_static_runtimes_GCJ \
17285 old_archive_cmds_GCJ \
17286 old_archive_from_new_cmds_GCJ \
17287 predep_objects_GCJ \
17288 postdep_objects_GCJ \
17291 compiler_lib_search_path_GCJ \
17293 archive_expsym_cmds_GCJ \
17294 postinstall_cmds_GCJ \
17295 postuninstall_cmds_GCJ \
17296 old_archive_from_expsyms_cmds_GCJ \
17297 allow_undefined_flag_GCJ \
17298 no_undefined_flag_GCJ \
17299 export_symbols_cmds_GCJ \
17300 hardcode_libdir_flag_spec_GCJ \
17301 hardcode_libdir_flag_spec_ld_GCJ \
17302 hardcode_libdir_separator_GCJ \
17303 hardcode_automatic_GCJ \
17305 module_expsym_cmds_GCJ \
17306 lt_cv_prog_compiler_c_o_GCJ \
17307 exclude_expsyms_GCJ \
17308 include_expsyms_GCJ; do
17311 old_archive_cmds_GCJ | \
17312 old_archive_from_new_cmds_GCJ | \
17313 archive_cmds_GCJ | \
17314 archive_expsym_cmds_GCJ | \
17315 module_cmds_GCJ | \
17316 module_expsym_cmds_GCJ | \
17317 old_archive_from_expsyms_cmds_GCJ | \
17318 export_symbols_cmds_GCJ | \
17319 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17320 postinstall_cmds | postuninstall_cmds | \
17321 old_postinstall_cmds | old_postuninstall_cmds | \
17322 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17323 # Double-quote double-evaled strings.
17324 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\" -e \"\$unescape_variable_subst\"\`\\\""
17327 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17333 *'\$0 --fallback-echo"')
17334 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17340 cat <<__EOF__ >> "$cfgfile"
17341 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17343 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17345 # Set the command separator (default: ~)
17346 _S_=\${LIBTOOL_CMD_SEP-\~}
17348 # Shell to use when invoking shell scripts.
17351 # Whether or not to build shared libraries.
17352 build_libtool_libs=$enable_shared
17354 # Whether or not to build static libraries.
17355 build_old_libs=$enable_static
17357 # Whether or not to add -lc for building shared libraries.
17358 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17360 # Whether or not to disallow shared libs when runtime libs are static
17361 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17363 # Whether or not to optimize for fast installation.
17364 fast_install=$enable_fast_install
17367 host_alias=$host_alias
17370 # An echo program that does not interpret backslashes.
17375 AR_FLAGS=$lt_AR_FLAGS
17380 # A language-specific compiler.
17381 CC=$lt_compiler_GCJ
17383 # Is the compiler the GNU C compiler?
17389 # The linker used to build libraries.
17392 # Whether we need hard or soft links.
17395 # A BSD-compatible nm program.
17398 # A symbol stripping program
17401 # Used to examine libraries when file_magic_cmd begins "file"
17402 MAGIC_CMD=$MAGIC_CMD
17404 # Used on cygwin: DLL creation program.
17407 # Used on cygwin: object dumper.
17410 # Used on cygwin: assembler.
17413 # The name of the directory that contains temporary libtool files.
17416 # How to create reloadable object files.
17417 reload_flag=$lt_reload_flag
17418 reload_cmds=$lt_reload_cmds
17420 # How to pass a linker flag through the compiler.
17421 wl=$lt_lt_prog_compiler_wl_GCJ
17423 # Object file suffix (normally "o").
17424 objext="$ac_objext"
17426 # Old archive suffix (normally "a").
17429 # Shared library suffix (normally ".so").
17432 # Executable file suffix (normally "").
17435 # Additional compiler flags for building library objects.
17436 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17439 # What is the maximum length of a command?
17440 max_cmd_len=$lt_cv_sys_max_cmd_len
17442 # Does compiler simultaneously support -c and -o options?
17443 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17445 # Must we lock files when doing compilation ?
17446 need_locks=$lt_need_locks
17448 # Do we need the lib prefix for modules?
17449 need_lib_prefix=$need_lib_prefix
17451 # Do we need a version for libraries?
17452 need_version=$need_version
17454 # Whether dlopen is supported.
17455 dlopen_support=$enable_dlopen
17457 # Whether dlopen of programs is supported.
17458 dlopen_self=$enable_dlopen_self
17460 # Whether dlopen of statically linked programs is supported.
17461 dlopen_self_static=$enable_dlopen_self_static
17463 # Compiler flag to prevent dynamic linking.
17464 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17466 # Compiler flag to turn off builtin functions.
17467 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17469 # Compiler flag to allow reflexive dlopens.
17470 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17472 # Compiler flag to generate shared objects directly from archives.
17473 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17475 # Compiler flag to generate thread-safe objects.
17476 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17478 # Library versioning type.
17479 version_type=$version_type
17481 # Format of library name prefix.
17482 libname_spec=$lt_libname_spec
17484 # List of archive names. First name is the real one, the rest are links.
17485 # The last name is the one that the linker finds with -lNAME.
17486 library_names_spec=$lt_library_names_spec
17488 # The coded name of the library, if different from the real name.
17489 soname_spec=$lt_soname_spec
17491 # Commands used to build and install an old-style archive.
17493 old_archive_cmds=$lt_old_archive_cmds_GCJ
17494 old_postinstall_cmds=$lt_old_postinstall_cmds
17495 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17497 # Create an old-style archive from a shared archive.
17498 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17500 # Create a temporary old-style archive to link instead of a shared archive.
17501 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17503 # Commands used to build and install a shared archive.
17504 archive_cmds=$lt_archive_cmds_GCJ
17505 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17506 postinstall_cmds=$lt_postinstall_cmds
17507 postuninstall_cmds=$lt_postuninstall_cmds
17509 # Commands used to build a loadable module (assumed same as above if empty)
17510 module_cmds=$lt_module_cmds_GCJ
17511 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17513 # Commands to strip libraries.
17514 old_striplib=$lt_old_striplib
17515 striplib=$lt_striplib
17517 # Dependencies to place before the objects being linked to create a
17519 predep_objects=$lt_predep_objects_GCJ
17521 # Dependencies to place after the objects being linked to create a
17523 postdep_objects=$lt_postdep_objects_GCJ
17525 # Dependencies to place before the objects being linked to create a
17527 predeps=$lt_predeps_GCJ
17529 # Dependencies to place after the objects being linked to create a
17531 postdeps=$lt_postdeps_GCJ
17533 # The library search path used internally by the compiler when linking
17534 # a shared library.
17535 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17537 # Method to check whether dependent libraries are shared objects.
17538 deplibs_check_method=$lt_deplibs_check_method
17540 # Command to use when deplibs_check_method == file_magic.
17541 file_magic_cmd=$lt_file_magic_cmd
17543 # Flag that allows shared libraries with undefined symbols to be built.
17544 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17546 # Flag that forces no undefined symbols.
17547 no_undefined_flag=$lt_no_undefined_flag_GCJ
17549 # Commands used to finish a libtool library installation in a directory.
17550 finish_cmds=$lt_finish_cmds
17552 # Same as above, but a single script fragment to be evaled but not shown.
17553 finish_eval=$lt_finish_eval
17555 # Take the output of nm and produce a listing of raw symbols and C names.
17556 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17558 # Transform the output of nm in a proper C declaration
17559 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17561 # Transform the output of nm in a C name address pair
17562 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17564 # This is the shared library runtime path variable.
17565 runpath_var=$runpath_var
17567 # This is the shared library path variable.
17568 shlibpath_var=$shlibpath_var
17570 # Is shlibpath searched before the hard-coded library search path?
17571 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17573 # How to hardcode a shared library path into an executable.
17574 hardcode_action=$hardcode_action_GCJ
17576 # Whether we should hardcode library paths into libraries.
17577 hardcode_into_libs=$hardcode_into_libs
17579 # Flag to hardcode \$libdir into a binary during linking.
17580 # This must work even if \$libdir does not exist.
17581 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17583 # If ld is used when linking, flag to hardcode \$libdir into
17584 # a binary during linking. This must work even if \$libdir does
17586 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17588 # Whether we need a single -rpath flag with a separated argument.
17589 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17591 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17592 # resulting binary.
17593 hardcode_direct=$hardcode_direct_GCJ
17595 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17596 # resulting binary.
17597 hardcode_minus_L=$hardcode_minus_L_GCJ
17599 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17600 # the resulting binary.
17601 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17603 # Set to yes if building a shared library automatically hardcodes DIR into the library
17604 # and all subsequent libraries and executables linked against it.
17605 hardcode_automatic=$hardcode_automatic_GCJ
17607 # Variables whose values should be saved in libtool wrapper scripts and
17608 # restored at relink time.
17609 variables_saved_for_relink="$variables_saved_for_relink"
17611 # Whether libtool must link a program against all its dependency libraries.
17612 link_all_deplibs=$link_all_deplibs_GCJ
17614 # Compile-time system search path for libraries
17615 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17617 # Run-time system search path for libraries
17618 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17620 # Fix the shell variable \$srcfile for the compiler.
17621 fix_srcfile_path="$fix_srcfile_path_GCJ"
17623 # Set to yes if exported symbols are required.
17624 always_export_symbols=$always_export_symbols_GCJ
17626 # The commands to list exported symbols.
17627 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17629 # The commands to extract the exported symbol list from a shared archive.
17630 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17632 # Symbols that should not be listed in the preloaded symbols.
17633 exclude_expsyms=$lt_exclude_expsyms_GCJ
17635 # Symbols that must always be exported.
17636 include_expsyms=$lt_include_expsyms_GCJ
17638 # ### END LIBTOOL TAG CONFIG: $tagname
17644 # If there is no Makefile yet, we rely on a make rule to execute
17645 # `config.status --recheck' to rerun these tests and create the
17646 # libtool script then.
17647 test -f Makefile && make "$ltmain"
17652 ac_cpp='$CPP $CPPFLAGS'
17653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17668 # Source file extension for RC test sources.
17671 # Object file extension for compiled RC test sources.
17675 # Code to be used in simple compile tests
17676 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17678 # Code to be used in simple link tests
17679 lt_simple_link_test_code="$lt_simple_compile_test_code"
17681 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17683 # If no C compiler was specified, use CC.
17686 # Allow CC to be a program name with arguments.
17690 # Allow CC to be a program name with arguments.
17695 lt_cv_prog_compiler_c_o_RC=yes
17697 # The else clause should only fire when bootstrapping the
17698 # libtool distribution, otherwise you forgot to ship ltmain.sh
17699 # with your package, and you will get complaints that there are
17700 # no rules to generate ltmain.sh.
17701 if test -f "$ltmain"; then
17702 # See if we are running on zsh, and set the options which allow our commands through
17703 # without removal of \ escapes.
17704 if test -n "${ZSH_VERSION+set}" ; then
17705 setopt NO_GLOB_SUBST
17707 # Now quote all the things that may contain metacharacters while being
17708 # careful not to overquote the AC_SUBSTed values. We take copies of the
17709 # variables and quote the copies for generation of the libtool script.
17710 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17711 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17712 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17713 deplibs_check_method reload_flag reload_cmds need_locks \
17714 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17715 lt_cv_sys_global_symbol_to_c_name_address \
17716 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17717 old_postinstall_cmds old_postuninstall_cmds \
17721 lt_prog_compiler_wl_RC \
17722 lt_prog_compiler_pic_RC \
17723 lt_prog_compiler_static_RC \
17724 lt_prog_compiler_no_builtin_flag_RC \
17725 export_dynamic_flag_spec_RC \
17726 thread_safe_flag_spec_RC \
17727 whole_archive_flag_spec_RC \
17728 enable_shared_with_static_runtimes_RC \
17729 old_archive_cmds_RC \
17730 old_archive_from_new_cmds_RC \
17731 predep_objects_RC \
17732 postdep_objects_RC \
17735 compiler_lib_search_path_RC \
17737 archive_expsym_cmds_RC \
17738 postinstall_cmds_RC \
17739 postuninstall_cmds_RC \
17740 old_archive_from_expsyms_cmds_RC \
17741 allow_undefined_flag_RC \
17742 no_undefined_flag_RC \
17743 export_symbols_cmds_RC \
17744 hardcode_libdir_flag_spec_RC \
17745 hardcode_libdir_flag_spec_ld_RC \
17746 hardcode_libdir_separator_RC \
17747 hardcode_automatic_RC \
17749 module_expsym_cmds_RC \
17750 lt_cv_prog_compiler_c_o_RC \
17751 exclude_expsyms_RC \
17752 include_expsyms_RC; do
17755 old_archive_cmds_RC | \
17756 old_archive_from_new_cmds_RC | \
17757 archive_cmds_RC | \
17758 archive_expsym_cmds_RC | \
17760 module_expsym_cmds_RC | \
17761 old_archive_from_expsyms_cmds_RC | \
17762 export_symbols_cmds_RC | \
17763 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17764 postinstall_cmds | postuninstall_cmds | \
17765 old_postinstall_cmds | old_postuninstall_cmds | \
17766 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17767 # Double-quote double-evaled strings.
17768 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\" -e \"\$unescape_variable_subst\"\`\\\""
17771 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17777 *'\$0 --fallback-echo"')
17778 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17784 cat <<__EOF__ >> "$cfgfile"
17785 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17787 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17789 # Set the command separator (default: ~)
17790 _S_=\${LIBTOOL_CMD_SEP-\~}
17792 # Shell to use when invoking shell scripts.
17795 # Whether or not to build shared libraries.
17796 build_libtool_libs=$enable_shared
17798 # Whether or not to build static libraries.
17799 build_old_libs=$enable_static
17801 # Whether or not to add -lc for building shared libraries.
17802 build_libtool_need_lc=$archive_cmds_need_lc_RC
17804 # Whether or not to disallow shared libs when runtime libs are static
17805 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17807 # Whether or not to optimize for fast installation.
17808 fast_install=$enable_fast_install
17811 host_alias=$host_alias
17814 # An echo program that does not interpret backslashes.
17819 AR_FLAGS=$lt_AR_FLAGS
17824 # A language-specific compiler.
17827 # Is the compiler the GNU C compiler?
17833 # The linker used to build libraries.
17836 # Whether we need hard or soft links.
17839 # A BSD-compatible nm program.
17842 # A symbol stripping program
17845 # Used to examine libraries when file_magic_cmd begins "file"
17846 MAGIC_CMD=$MAGIC_CMD
17848 # Used on cygwin: DLL creation program.
17851 # Used on cygwin: object dumper.
17854 # Used on cygwin: assembler.
17857 # The name of the directory that contains temporary libtool files.
17860 # How to create reloadable object files.
17861 reload_flag=$lt_reload_flag
17862 reload_cmds=$lt_reload_cmds
17864 # How to pass a linker flag through the compiler.
17865 wl=$lt_lt_prog_compiler_wl_RC
17867 # Object file suffix (normally "o").
17868 objext="$ac_objext"
17870 # Old archive suffix (normally "a").
17873 # Shared library suffix (normally ".so").
17876 # Executable file suffix (normally "").
17879 # Additional compiler flags for building library objects.
17880 pic_flag=$lt_lt_prog_compiler_pic_RC
17883 # What is the maximum length of a command?
17884 max_cmd_len=$lt_cv_sys_max_cmd_len
17886 # Does compiler simultaneously support -c and -o options?
17887 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17889 # Must we lock files when doing compilation ?
17890 need_locks=$lt_need_locks
17892 # Do we need the lib prefix for modules?
17893 need_lib_prefix=$need_lib_prefix
17895 # Do we need a version for libraries?
17896 need_version=$need_version
17898 # Whether dlopen is supported.
17899 dlopen_support=$enable_dlopen
17901 # Whether dlopen of programs is supported.
17902 dlopen_self=$enable_dlopen_self
17904 # Whether dlopen of statically linked programs is supported.
17905 dlopen_self_static=$enable_dlopen_self_static
17907 # Compiler flag to prevent dynamic linking.
17908 link_static_flag=$lt_lt_prog_compiler_static_RC
17910 # Compiler flag to turn off builtin functions.
17911 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17913 # Compiler flag to allow reflexive dlopens.
17914 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17916 # Compiler flag to generate shared objects directly from archives.
17917 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17919 # Compiler flag to generate thread-safe objects.
17920 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17922 # Library versioning type.
17923 version_type=$version_type
17925 # Format of library name prefix.
17926 libname_spec=$lt_libname_spec
17928 # List of archive names. First name is the real one, the rest are links.
17929 # The last name is the one that the linker finds with -lNAME.
17930 library_names_spec=$lt_library_names_spec
17932 # The coded name of the library, if different from the real name.
17933 soname_spec=$lt_soname_spec
17935 # Commands used to build and install an old-style archive.
17937 old_archive_cmds=$lt_old_archive_cmds_RC
17938 old_postinstall_cmds=$lt_old_postinstall_cmds
17939 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17941 # Create an old-style archive from a shared archive.
17942 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17944 # Create a temporary old-style archive to link instead of a shared archive.
17945 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17947 # Commands used to build and install a shared archive.
17948 archive_cmds=$lt_archive_cmds_RC
17949 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17950 postinstall_cmds=$lt_postinstall_cmds
17951 postuninstall_cmds=$lt_postuninstall_cmds
17953 # Commands used to build a loadable module (assumed same as above if empty)
17954 module_cmds=$lt_module_cmds_RC
17955 module_expsym_cmds=$lt_module_expsym_cmds_RC
17957 # Commands to strip libraries.
17958 old_striplib=$lt_old_striplib
17959 striplib=$lt_striplib
17961 # Dependencies to place before the objects being linked to create a
17963 predep_objects=$lt_predep_objects_RC
17965 # Dependencies to place after the objects being linked to create a
17967 postdep_objects=$lt_postdep_objects_RC
17969 # Dependencies to place before the objects being linked to create a
17971 predeps=$lt_predeps_RC
17973 # Dependencies to place after the objects being linked to create a
17975 postdeps=$lt_postdeps_RC
17977 # The library search path used internally by the compiler when linking
17978 # a shared library.
17979 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17981 # Method to check whether dependent libraries are shared objects.
17982 deplibs_check_method=$lt_deplibs_check_method
17984 # Command to use when deplibs_check_method == file_magic.
17985 file_magic_cmd=$lt_file_magic_cmd
17987 # Flag that allows shared libraries with undefined symbols to be built.
17988 allow_undefined_flag=$lt_allow_undefined_flag_RC
17990 # Flag that forces no undefined symbols.
17991 no_undefined_flag=$lt_no_undefined_flag_RC
17993 # Commands used to finish a libtool library installation in a directory.
17994 finish_cmds=$lt_finish_cmds
17996 # Same as above, but a single script fragment to be evaled but not shown.
17997 finish_eval=$lt_finish_eval
17999 # Take the output of nm and produce a listing of raw symbols and C names.
18000 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18002 # Transform the output of nm in a proper C declaration
18003 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18005 # Transform the output of nm in a C name address pair
18006 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18008 # This is the shared library runtime path variable.
18009 runpath_var=$runpath_var
18011 # This is the shared library path variable.
18012 shlibpath_var=$shlibpath_var
18014 # Is shlibpath searched before the hard-coded library search path?
18015 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18017 # How to hardcode a shared library path into an executable.
18018 hardcode_action=$hardcode_action_RC
18020 # Whether we should hardcode library paths into libraries.
18021 hardcode_into_libs=$hardcode_into_libs
18023 # Flag to hardcode \$libdir into a binary during linking.
18024 # This must work even if \$libdir does not exist.
18025 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18027 # If ld is used when linking, flag to hardcode \$libdir into
18028 # a binary during linking. This must work even if \$libdir does
18030 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18032 # Whether we need a single -rpath flag with a separated argument.
18033 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18035 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18036 # resulting binary.
18037 hardcode_direct=$hardcode_direct_RC
18039 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18040 # resulting binary.
18041 hardcode_minus_L=$hardcode_minus_L_RC
18043 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18044 # the resulting binary.
18045 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18047 # Set to yes if building a shared library automatically hardcodes DIR into the library
18048 # and all subsequent libraries and executables linked against it.
18049 hardcode_automatic=$hardcode_automatic_RC
18051 # Variables whose values should be saved in libtool wrapper scripts and
18052 # restored at relink time.
18053 variables_saved_for_relink="$variables_saved_for_relink"
18055 # Whether libtool must link a program against all its dependency libraries.
18056 link_all_deplibs=$link_all_deplibs_RC
18058 # Compile-time system search path for libraries
18059 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18061 # Run-time system search path for libraries
18062 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18064 # Fix the shell variable \$srcfile for the compiler.
18065 fix_srcfile_path="$fix_srcfile_path_RC"
18067 # Set to yes if exported symbols are required.
18068 always_export_symbols=$always_export_symbols_RC
18070 # The commands to list exported symbols.
18071 export_symbols_cmds=$lt_export_symbols_cmds_RC
18073 # The commands to extract the exported symbol list from a shared archive.
18074 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18076 # Symbols that should not be listed in the preloaded symbols.
18077 exclude_expsyms=$lt_exclude_expsyms_RC
18079 # Symbols that must always be exported.
18080 include_expsyms=$lt_include_expsyms_RC
18082 # ### END LIBTOOL TAG CONFIG: $tagname
18088 # If there is no Makefile yet, we rely on a make rule to execute
18089 # `config.status --recheck' to rerun these tests and create the
18090 # libtool script then.
18091 test -f Makefile && make "$ltmain"
18096 ac_cpp='$CPP $CPPFLAGS'
18097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18106 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18107 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18108 { (exit 1); exit 1; }; }
18112 # Append the new tag name to the list of available tags.
18113 if test -n "$tagname" ; then
18114 available_tags="$available_tags $tagname"
18120 # Now substitute the updated list of available tags.
18121 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18122 mv "${ofile}T" "$ofile"
18126 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18127 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18128 { (exit 1); exit 1; }; }
18134 # This can be used to rebuild libtool when needed
18135 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18137 # Always use our own libtool.
18138 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18140 # Prevent multiple expansion
18162 # Extract the first word of "dot", so it can be a program name with args.
18163 set dummy dot; ac_word=$2
18164 echo "$as_me:$LINENO: checking for $ac_word" >&5
18165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18166 if test "${ac_cv_path_DOT+set}" = set; then
18167 echo $ECHO_N "(cached) $ECHO_C" >&6
18171 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18175 for as_dir in $PATH
18178 test -z "$as_dir" && as_dir=.
18179 for ac_exec_ext in '' $ac_executable_extensions; do
18180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18181 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18188 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
18192 DOT=$ac_cv_path_DOT
18194 if test -n "$DOT"; then
18195 echo "$as_me:$LINENO: result: $DOT" >&5
18196 echo "${ECHO_T}$DOT" >&6
18198 echo "$as_me:$LINENO: result: no" >&5
18199 echo "${ECHO_T}no" >&6
18202 # Extract the first word of "etags", so it can be a program name with args.
18203 set dummy etags; ac_word=$2
18204 echo "$as_me:$LINENO: checking for $ac_word" >&5
18205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18206 if test "${ac_cv_path_ETAGS+set}" = set; then
18207 echo $ECHO_N "(cached) $ECHO_C" >&6
18211 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18215 for as_dir in $PATH
18218 test -z "$as_dir" && as_dir=.
18219 for ac_exec_ext in '' $ac_executable_extensions; do
18220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18221 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18228 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
18232 ETAGS=$ac_cv_path_ETAGS
18234 if test -n "$ETAGS"; then
18235 echo "$as_me:$LINENO: result: $ETAGS" >&5
18236 echo "${ECHO_T}$ETAGS" >&6
18238 echo "$as_me:$LINENO: result: no" >&5
18239 echo "${ECHO_T}no" >&6
18242 etags_version=`$ETAGS --version 2>&1`
18243 case "$etags_version" in
18244 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
18245 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
18246 *) ETAGSFLAGS="" ;;
18248 ETAGSFLAGS=$ETAGSFLAGS
18250 # Extract the first word of "python", so it can be a program name with args.
18251 set dummy python; ac_word=$2
18252 echo "$as_me:$LINENO: checking for $ac_word" >&5
18253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18254 if test "${ac_cv_path_PYTHON+set}" = set; then
18255 echo $ECHO_N "(cached) $ECHO_C" >&6
18259 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18263 for as_dir in $PATH
18266 test -z "$as_dir" && as_dir=.
18267 for ac_exec_ext in '' $ac_executable_extensions; do
18268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18269 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18276 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
18280 PYTHON=$ac_cv_path_PYTHON
18282 if test -n "$PYTHON"; then
18283 echo "$as_me:$LINENO: result: $PYTHON" >&5
18284 echo "${ECHO_T}$PYTHON" >&6
18286 echo "$as_me:$LINENO: result: no" >&5
18287 echo "${ECHO_T}no" >&6
18290 if test "$PYTHON" = "false"
18292 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
18293 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
18295 # Extract the first word of "qmtest", so it can be a program name with args.
18296 set dummy qmtest; ac_word=$2
18297 echo "$as_me:$LINENO: checking for $ac_word" >&5
18298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18299 if test "${ac_cv_path_QMTEST+set}" = set; then
18300 echo $ECHO_N "(cached) $ECHO_C" >&6
18304 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18308 for as_dir in $PATH
18311 test -z "$as_dir" && as_dir=.
18312 for ac_exec_ext in '' $ac_executable_extensions; do
18313 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18314 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18321 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
18325 QMTEST=$ac_cv_path_QMTEST
18327 if test -n "$QMTEST"; then
18328 echo "$as_me:$LINENO: result: $QMTEST" >&5
18329 echo "${ECHO_T}$QMTEST" >&6
18331 echo "$as_me:$LINENO: result: no" >&5
18332 echo "${ECHO_T}no" >&6
18335 if test "$QMTEST" = "false"
18337 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
18338 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
18341 pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
18342 pymajor=`echo $pyversion | cut -d. -f1`
18343 pyminor=`echo $pyversion | cut -d. -f2`
18345 if test "$pymajor" -ge "2"
18347 if test "$pymajor" -eq "2"
18349 if test "$pyminor" -lt "2"
18351 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18352 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18356 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18357 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18363 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18364 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18365 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18366 echo $ECHO_N "(cached) $ECHO_C" >&6
18368 ac_check_lib_save_LIBS=$LIBS
18370 cat >conftest.$ac_ext <<_ACEOF
18371 #line $LINENO "configure"
18374 cat confdefs.h >>conftest.$ac_ext
18375 cat >>conftest.$ac_ext <<_ACEOF
18376 /* end confdefs.h. */
18378 /* Override any gcc2 internal prototype to avoid an error. */
18382 /* We use char because int might match the return type of a gcc2
18383 builtin and then its argument prototype would still apply. */
18393 rm -f conftest.$ac_objext conftest$ac_exeext
18394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18395 (eval $ac_link) 2>&5
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); } &&
18399 { ac_try='test -s conftest$ac_exeext'
18400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18401 (eval $ac_try) 2>&5
18403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404 (exit $ac_status); }; }; then
18405 ac_cv_lib_elf_elf_begin=yes
18407 echo "$as_me: failed program was:" >&5
18408 sed 's/^/| /' conftest.$ac_ext >&5
18410 ac_cv_lib_elf_elf_begin=no
18412 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18413 LIBS=$ac_check_lib_save_LIBS
18415 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18416 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18417 if test $ac_cv_lib_elf_elf_begin = yes; then
18418 cat >>confdefs.h <<_ACEOF
18419 #define HAVE_LIBELF 1
18427 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18428 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18429 if test "${ac_cv_search_dlopen+set}" = set; then
18430 echo $ECHO_N "(cached) $ECHO_C" >&6
18432 ac_func_search_save_LIBS=$LIBS
18433 ac_cv_search_dlopen=no
18434 cat >conftest.$ac_ext <<_ACEOF
18435 #line $LINENO "configure"
18438 cat confdefs.h >>conftest.$ac_ext
18439 cat >>conftest.$ac_ext <<_ACEOF
18440 /* end confdefs.h. */
18442 /* Override any gcc2 internal prototype to avoid an error. */
18446 /* We use char because int might match the return type of a gcc2
18447 builtin and then its argument prototype would still apply. */
18457 rm -f conftest.$ac_objext conftest$ac_exeext
18458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18459 (eval $ac_link) 2>&5
18461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18462 (exit $ac_status); } &&
18463 { ac_try='test -s conftest$ac_exeext'
18464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18465 (eval $ac_try) 2>&5
18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); }; }; then
18469 ac_cv_search_dlopen="none required"
18471 echo "$as_me: failed program was:" >&5
18472 sed 's/^/| /' conftest.$ac_ext >&5
18475 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18476 if test "$ac_cv_search_dlopen" = no; then
18477 for ac_lib in dl; do
18478 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18479 cat >conftest.$ac_ext <<_ACEOF
18480 #line $LINENO "configure"
18483 cat confdefs.h >>conftest.$ac_ext
18484 cat >>conftest.$ac_ext <<_ACEOF
18485 /* end confdefs.h. */
18487 /* Override any gcc2 internal prototype to avoid an error. */
18491 /* We use char because int might match the return type of a gcc2
18492 builtin and then its argument prototype would still apply. */
18502 rm -f conftest.$ac_objext conftest$ac_exeext
18503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18504 (eval $ac_link) 2>&5
18506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507 (exit $ac_status); } &&
18508 { ac_try='test -s conftest$ac_exeext'
18509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18510 (eval $ac_try) 2>&5
18512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18513 (exit $ac_status); }; }; then
18514 ac_cv_search_dlopen="-l$ac_lib"
18517 echo "$as_me: failed program was:" >&5
18518 sed 's/^/| /' conftest.$ac_ext >&5
18521 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18524 LIBS=$ac_func_search_save_LIBS
18526 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18527 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
18528 if test "$ac_cv_search_dlopen" != no; then
18529 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
18531 cat >>confdefs.h <<\_ACEOF
18532 #define HAVE_DLOPEN 1
18536 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
18537 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
18541 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
18542 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
18543 if test "${ac_cv_search_mallinfo+set}" = set; then
18544 echo $ECHO_N "(cached) $ECHO_C" >&6
18546 ac_func_search_save_LIBS=$LIBS
18547 ac_cv_search_mallinfo=no
18548 cat >conftest.$ac_ext <<_ACEOF
18549 #line $LINENO "configure"
18552 cat confdefs.h >>conftest.$ac_ext
18553 cat >>conftest.$ac_ext <<_ACEOF
18554 /* end confdefs.h. */
18556 /* Override any gcc2 internal prototype to avoid an error. */
18560 /* We use char because int might match the return type of a gcc2
18561 builtin and then its argument prototype would still apply. */
18571 rm -f conftest.$ac_objext conftest$ac_exeext
18572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18573 (eval $ac_link) 2>&5
18575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576 (exit $ac_status); } &&
18577 { ac_try='test -s conftest$ac_exeext'
18578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18579 (eval $ac_try) 2>&5
18581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582 (exit $ac_status); }; }; then
18583 ac_cv_search_mallinfo="none required"
18585 echo "$as_me: failed program was:" >&5
18586 sed 's/^/| /' conftest.$ac_ext >&5
18589 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18590 if test "$ac_cv_search_mallinfo" = no; then
18591 for ac_lib in malloc; do
18592 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
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. */
18601 /* Override any gcc2 internal prototype to avoid an error. */
18605 /* We use char because int might match the return type of a gcc2
18606 builtin and then its argument prototype would still apply. */
18616 rm -f conftest.$ac_objext conftest$ac_exeext
18617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18618 (eval $ac_link) 2>&5
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); } &&
18622 { ac_try='test -s conftest$ac_exeext'
18623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18624 (eval $ac_try) 2>&5
18626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627 (exit $ac_status); }; }; then
18628 ac_cv_search_mallinfo="-l$ac_lib"
18631 echo "$as_me: failed program was:" >&5
18632 sed 's/^/| /' conftest.$ac_ext >&5
18635 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18638 LIBS=$ac_func_search_save_LIBS
18640 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
18641 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
18642 if test "$ac_cv_search_mallinfo" != no; then
18643 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
18645 cat >>confdefs.h <<\_ACEOF
18646 #define HAVE_MALLINFO 1
18652 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
18653 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
18654 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
18655 echo $ECHO_N "(cached) $ECHO_C" >&6
18657 ac_func_search_save_LIBS=$LIBS
18658 ac_cv_search_pthread_mutex_lock=no
18659 cat >conftest.$ac_ext <<_ACEOF
18660 #line $LINENO "configure"
18663 cat confdefs.h >>conftest.$ac_ext
18664 cat >>conftest.$ac_ext <<_ACEOF
18665 /* end confdefs.h. */
18667 /* Override any gcc2 internal prototype to avoid an error. */
18671 /* We use char because int might match the return type of a gcc2
18672 builtin and then its argument prototype would still apply. */
18673 char pthread_mutex_lock ();
18677 pthread_mutex_lock ();
18682 rm -f conftest.$ac_objext conftest$ac_exeext
18683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18684 (eval $ac_link) 2>&5
18686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687 (exit $ac_status); } &&
18688 { ac_try='test -s conftest$ac_exeext'
18689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18690 (eval $ac_try) 2>&5
18692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693 (exit $ac_status); }; }; then
18694 ac_cv_search_pthread_mutex_lock="none required"
18696 echo "$as_me: failed program was:" >&5
18697 sed 's/^/| /' conftest.$ac_ext >&5
18700 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18701 if test "$ac_cv_search_pthread_mutex_lock" = no; then
18702 for ac_lib in pthread; do
18703 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18704 cat >conftest.$ac_ext <<_ACEOF
18705 #line $LINENO "configure"
18708 cat confdefs.h >>conftest.$ac_ext
18709 cat >>conftest.$ac_ext <<_ACEOF
18710 /* end confdefs.h. */
18712 /* Override any gcc2 internal prototype to avoid an error. */
18716 /* We use char because int might match the return type of a gcc2
18717 builtin and then its argument prototype would still apply. */
18718 char pthread_mutex_lock ();
18722 pthread_mutex_lock ();
18727 rm -f conftest.$ac_objext conftest$ac_exeext
18728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18729 (eval $ac_link) 2>&5
18731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732 (exit $ac_status); } &&
18733 { ac_try='test -s conftest$ac_exeext'
18734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18735 (eval $ac_try) 2>&5
18737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738 (exit $ac_status); }; }; then
18739 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
18742 echo "$as_me: failed program was:" >&5
18743 sed 's/^/| /' conftest.$ac_ext >&5
18746 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18749 LIBS=$ac_func_search_save_LIBS
18751 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
18752 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
18753 if test "$ac_cv_search_pthread_mutex_lock" != no; then
18754 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
18755 HAVE_PTHREAD_MUTEX_LOCK=1
18757 HAVE_PTHREAD_MUTEX_LOCK=0
18762 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18763 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18764 if test "${ac_cv_header_stdc+set}" = set; then
18765 echo $ECHO_N "(cached) $ECHO_C" >&6
18767 cat >conftest.$ac_ext <<_ACEOF
18768 #line $LINENO "configure"
18771 cat confdefs.h >>conftest.$ac_ext
18772 cat >>conftest.$ac_ext <<_ACEOF
18773 /* end confdefs.h. */
18774 #include <stdlib.h>
18775 #include <stdarg.h>
18776 #include <string.h>
18787 rm -f conftest.$ac_objext
18788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18789 (eval $ac_compile) 2>&5
18791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792 (exit $ac_status); } &&
18793 { ac_try='test -s conftest.$ac_objext'
18794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18795 (eval $ac_try) 2>&5
18797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798 (exit $ac_status); }; }; then
18799 ac_cv_header_stdc=yes
18801 echo "$as_me: failed program was:" >&5
18802 sed 's/^/| /' conftest.$ac_ext >&5
18804 ac_cv_header_stdc=no
18806 rm -f conftest.$ac_objext conftest.$ac_ext
18808 if test $ac_cv_header_stdc = yes; then
18809 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18810 cat >conftest.$ac_ext <<_ACEOF
18811 #line $LINENO "configure"
18814 cat confdefs.h >>conftest.$ac_ext
18815 cat >>conftest.$ac_ext <<_ACEOF
18816 /* end confdefs.h. */
18817 #include <string.h>
18820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18821 $EGREP "memchr" >/dev/null 2>&1; then
18824 ac_cv_header_stdc=no
18830 if test $ac_cv_header_stdc = yes; then
18831 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18832 cat >conftest.$ac_ext <<_ACEOF
18833 #line $LINENO "configure"
18836 cat confdefs.h >>conftest.$ac_ext
18837 cat >>conftest.$ac_ext <<_ACEOF
18838 /* end confdefs.h. */
18839 #include <stdlib.h>
18842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18843 $EGREP "free" >/dev/null 2>&1; then
18846 ac_cv_header_stdc=no
18852 if test $ac_cv_header_stdc = yes; then
18853 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18854 if test "$cross_compiling" = yes; then
18857 cat >conftest.$ac_ext <<_ACEOF
18858 #line $LINENO "configure"
18861 cat confdefs.h >>conftest.$ac_ext
18862 cat >>conftest.$ac_ext <<_ACEOF
18863 /* end confdefs.h. */
18865 #if ((' ' & 0x0FF) == 0x020)
18866 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18867 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18869 # define ISLOWER(c) \
18870 (('a' <= (c) && (c) <= 'i') \
18871 || ('j' <= (c) && (c) <= 'r') \
18872 || ('s' <= (c) && (c) <= 'z'))
18873 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18876 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18881 for (i = 0; i < 256; i++)
18882 if (XOR (islower (i), ISLOWER (i))
18883 || toupper (i) != TOUPPER (i))
18888 rm -f conftest$ac_exeext
18889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18890 (eval $ac_link) 2>&5
18892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18895 (eval $ac_try) 2>&5
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); }; }; then
18901 echo "$as_me: program exited with status $ac_status" >&5
18902 echo "$as_me: failed program was:" >&5
18903 sed 's/^/| /' conftest.$ac_ext >&5
18905 ( exit $ac_status )
18906 ac_cv_header_stdc=no
18908 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18912 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18913 echo "${ECHO_T}$ac_cv_header_stdc" >&6
18914 if test $ac_cv_header_stdc = yes; then
18916 cat >>confdefs.h <<\_ACEOF
18917 #define STDC_HEADERS 1
18922 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
18923 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
18924 if test "${ac_cv_header_sys_wait_h+set}" = set; then
18925 echo $ECHO_N "(cached) $ECHO_C" >&6
18927 cat >conftest.$ac_ext <<_ACEOF
18928 #line $LINENO "configure"
18931 cat confdefs.h >>conftest.$ac_ext
18932 cat >>conftest.$ac_ext <<_ACEOF
18933 /* end confdefs.h. */
18934 #include <sys/types.h>
18935 #include <sys/wait.h>
18936 #ifndef WEXITSTATUS
18937 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
18940 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18948 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18953 rm -f conftest.$ac_objext
18954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18955 (eval $ac_compile) 2>&5
18957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958 (exit $ac_status); } &&
18959 { ac_try='test -s conftest.$ac_objext'
18960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18961 (eval $ac_try) 2>&5
18963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964 (exit $ac_status); }; }; then
18965 ac_cv_header_sys_wait_h=yes
18967 echo "$as_me: failed program was:" >&5
18968 sed 's/^/| /' conftest.$ac_ext >&5
18970 ac_cv_header_sys_wait_h=no
18972 rm -f conftest.$ac_objext conftest.$ac_ext
18974 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
18975 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
18976 if test $ac_cv_header_sys_wait_h = yes; then
18978 cat >>confdefs.h <<\_ACEOF
18979 #define HAVE_SYS_WAIT_H 1
18996 for ac_header in fcntl.h limits.h sys/time.h unistd.h malloc.h sys/mman.h sys/resource.h dlfcn.h link.h execinfo.h windows.h
18998 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19000 echo "$as_me:$LINENO: checking for $ac_header" >&5
19001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19003 echo $ECHO_N "(cached) $ECHO_C" >&6
19005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19006 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19008 # Is the header compilable?
19009 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19010 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19011 cat >conftest.$ac_ext <<_ACEOF
19012 #line $LINENO "configure"
19015 cat confdefs.h >>conftest.$ac_ext
19016 cat >>conftest.$ac_ext <<_ACEOF
19017 /* end confdefs.h. */
19018 $ac_includes_default
19019 #include <$ac_header>
19021 rm -f conftest.$ac_objext
19022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19023 (eval $ac_compile) 2>&5
19025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); } &&
19027 { ac_try='test -s conftest.$ac_objext'
19028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19029 (eval $ac_try) 2>&5
19031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032 (exit $ac_status); }; }; then
19033 ac_header_compiler=yes
19035 echo "$as_me: failed program was:" >&5
19036 sed 's/^/| /' conftest.$ac_ext >&5
19038 ac_header_compiler=no
19040 rm -f conftest.$ac_objext conftest.$ac_ext
19041 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19042 echo "${ECHO_T}$ac_header_compiler" >&6
19044 # Is the header present?
19045 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19046 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19047 cat >conftest.$ac_ext <<_ACEOF
19048 #line $LINENO "configure"
19051 cat confdefs.h >>conftest.$ac_ext
19052 cat >>conftest.$ac_ext <<_ACEOF
19053 /* end confdefs.h. */
19054 #include <$ac_header>
19056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19057 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19059 grep -v '^ *+' conftest.er1 >conftest.err
19061 cat conftest.err >&5
19062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063 (exit $ac_status); } >/dev/null; then
19064 if test -s conftest.err; then
19065 ac_cpp_err=$ac_c_preproc_warn_flag
19072 if test -z "$ac_cpp_err"; then
19073 ac_header_preproc=yes
19075 echo "$as_me: failed program was:" >&5
19076 sed 's/^/| /' conftest.$ac_ext >&5
19078 ac_header_preproc=no
19080 rm -f conftest.err conftest.$ac_ext
19081 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19082 echo "${ECHO_T}$ac_header_preproc" >&6
19084 # So? What about this header?
19085 case $ac_header_compiler:$ac_header_preproc in
19087 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19088 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19093 ## ------------------------------------ ##
19094 ## Report this to bug-autoconf@gnu.org. ##
19095 ## ------------------------------------ ##
19098 sed "s/^/$as_me: WARNING: /" >&2
19101 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19102 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19103 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19104 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19106 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19109 ## ------------------------------------ ##
19110 ## Report this to bug-autoconf@gnu.org. ##
19111 ## ------------------------------------ ##
19114 sed "s/^/$as_me: WARNING: /" >&2
19117 echo "$as_me:$LINENO: checking for $ac_header" >&5
19118 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19119 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19120 echo $ECHO_N "(cached) $ECHO_C" >&6
19122 eval "$as_ac_Header=$ac_header_preproc"
19124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19125 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19128 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19129 cat >>confdefs.h <<_ACEOF
19130 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19138 if test "${ac_cv_header_sys_types_h+set}" = set; then
19139 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19140 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19141 if test "${ac_cv_header_sys_types_h+set}" = set; then
19142 echo $ECHO_N "(cached) $ECHO_C" >&6
19144 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19145 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19147 # Is the header compilable?
19148 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
19149 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
19150 cat >conftest.$ac_ext <<_ACEOF
19151 #line $LINENO "configure"
19154 cat confdefs.h >>conftest.$ac_ext
19155 cat >>conftest.$ac_ext <<_ACEOF
19156 /* end confdefs.h. */
19157 $ac_includes_default
19158 #include <sys/types.h>
19160 rm -f conftest.$ac_objext
19161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19162 (eval $ac_compile) 2>&5
19164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165 (exit $ac_status); } &&
19166 { ac_try='test -s conftest.$ac_objext'
19167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19168 (eval $ac_try) 2>&5
19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 (exit $ac_status); }; }; then
19172 ac_header_compiler=yes
19174 echo "$as_me: failed program was:" >&5
19175 sed 's/^/| /' conftest.$ac_ext >&5
19177 ac_header_compiler=no
19179 rm -f conftest.$ac_objext conftest.$ac_ext
19180 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19181 echo "${ECHO_T}$ac_header_compiler" >&6
19183 # Is the header present?
19184 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
19185 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
19186 cat >conftest.$ac_ext <<_ACEOF
19187 #line $LINENO "configure"
19190 cat confdefs.h >>conftest.$ac_ext
19191 cat >>conftest.$ac_ext <<_ACEOF
19192 /* end confdefs.h. */
19193 #include <sys/types.h>
19195 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19196 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19198 grep -v '^ *+' conftest.er1 >conftest.err
19200 cat conftest.err >&5
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); } >/dev/null; then
19203 if test -s conftest.err; then
19204 ac_cpp_err=$ac_c_preproc_warn_flag
19211 if test -z "$ac_cpp_err"; then
19212 ac_header_preproc=yes
19214 echo "$as_me: failed program was:" >&5
19215 sed 's/^/| /' conftest.$ac_ext >&5
19217 ac_header_preproc=no
19219 rm -f conftest.err conftest.$ac_ext
19220 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19221 echo "${ECHO_T}$ac_header_preproc" >&6
19223 # So? What about this header?
19224 case $ac_header_compiler:$ac_header_preproc in
19226 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
19227 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19228 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19229 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19232 ## ------------------------------------ ##
19233 ## Report this to bug-autoconf@gnu.org. ##
19234 ## ------------------------------------ ##
19237 sed "s/^/$as_me: WARNING: /" >&2
19240 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
19241 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
19242 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
19243 echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
19244 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19245 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19248 ## ------------------------------------ ##
19249 ## Report this to bug-autoconf@gnu.org. ##
19250 ## ------------------------------------ ##
19253 sed "s/^/$as_me: WARNING: /" >&2
19256 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19257 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19258 if test "${ac_cv_header_sys_types_h+set}" = set; then
19259 echo $ECHO_N "(cached) $ECHO_C" >&6
19261 ac_cv_header_sys_types_h=$ac_header_preproc
19263 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19264 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19267 if test $ac_cv_header_sys_types_h = yes; then
19268 INCLUDE_SYS_TYPES_H='#include <sys/types.h>'
19270 INCLUDE_SYS_TYPES_H=''
19275 if test "${ac_cv_header_inttypes_h+set}" = set; then
19276 echo "$as_me:$LINENO: checking for inttypes.h" >&5
19277 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19278 if test "${ac_cv_header_inttypes_h+set}" = set; then
19279 echo $ECHO_N "(cached) $ECHO_C" >&6
19281 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19282 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19284 # Is the header compilable?
19285 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
19286 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
19287 cat >conftest.$ac_ext <<_ACEOF
19288 #line $LINENO "configure"
19291 cat confdefs.h >>conftest.$ac_ext
19292 cat >>conftest.$ac_ext <<_ACEOF
19293 /* end confdefs.h. */
19294 $ac_includes_default
19295 #include <inttypes.h>
19297 rm -f conftest.$ac_objext
19298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19299 (eval $ac_compile) 2>&5
19301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19302 (exit $ac_status); } &&
19303 { ac_try='test -s conftest.$ac_objext'
19304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19305 (eval $ac_try) 2>&5
19307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308 (exit $ac_status); }; }; then
19309 ac_header_compiler=yes
19311 echo "$as_me: failed program was:" >&5
19312 sed 's/^/| /' conftest.$ac_ext >&5
19314 ac_header_compiler=no
19316 rm -f conftest.$ac_objext conftest.$ac_ext
19317 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19318 echo "${ECHO_T}$ac_header_compiler" >&6
19320 # Is the header present?
19321 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
19322 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
19323 cat >conftest.$ac_ext <<_ACEOF
19324 #line $LINENO "configure"
19327 cat confdefs.h >>conftest.$ac_ext
19328 cat >>conftest.$ac_ext <<_ACEOF
19329 /* end confdefs.h. */
19330 #include <inttypes.h>
19332 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19333 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19335 grep -v '^ *+' conftest.er1 >conftest.err
19337 cat conftest.err >&5
19338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339 (exit $ac_status); } >/dev/null; then
19340 if test -s conftest.err; then
19341 ac_cpp_err=$ac_c_preproc_warn_flag
19348 if test -z "$ac_cpp_err"; then
19349 ac_header_preproc=yes
19351 echo "$as_me: failed program was:" >&5
19352 sed 's/^/| /' conftest.$ac_ext >&5
19354 ac_header_preproc=no
19356 rm -f conftest.err conftest.$ac_ext
19357 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19358 echo "${ECHO_T}$ac_header_preproc" >&6
19360 # So? What about this header?
19361 case $ac_header_compiler:$ac_header_preproc in
19363 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
19364 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19365 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19366 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
19369 ## ------------------------------------ ##
19370 ## Report this to bug-autoconf@gnu.org. ##
19371 ## ------------------------------------ ##
19374 sed "s/^/$as_me: WARNING: /" >&2
19377 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
19378 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
19379 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
19380 echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
19381 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19382 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
19385 ## ------------------------------------ ##
19386 ## Report this to bug-autoconf@gnu.org. ##
19387 ## ------------------------------------ ##
19390 sed "s/^/$as_me: WARNING: /" >&2
19393 echo "$as_me:$LINENO: checking for inttypes.h" >&5
19394 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19395 if test "${ac_cv_header_inttypes_h+set}" = set; then
19396 echo $ECHO_N "(cached) $ECHO_C" >&6
19398 ac_cv_header_inttypes_h=$ac_header_preproc
19400 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19401 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19404 if test $ac_cv_header_inttypes_h = yes; then
19405 INCLUDE_INTTYPES_H='#include <inttypes.h>'
19407 INCLUDE_INTTYPES_H=''
19412 if test "${ac_cv_header_stdint_h+set}" = set; then
19413 echo "$as_me:$LINENO: checking for stdint.h" >&5
19414 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
19415 if test "${ac_cv_header_stdint_h+set}" = set; then
19416 echo $ECHO_N "(cached) $ECHO_C" >&6
19418 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
19419 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
19421 # Is the header compilable?
19422 echo "$as_me:$LINENO: checking stdint.h usability" >&5
19423 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
19424 cat >conftest.$ac_ext <<_ACEOF
19425 #line $LINENO "configure"
19428 cat confdefs.h >>conftest.$ac_ext
19429 cat >>conftest.$ac_ext <<_ACEOF
19430 /* end confdefs.h. */
19431 $ac_includes_default
19432 #include <stdint.h>
19434 rm -f conftest.$ac_objext
19435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19436 (eval $ac_compile) 2>&5
19438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439 (exit $ac_status); } &&
19440 { ac_try='test -s conftest.$ac_objext'
19441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19442 (eval $ac_try) 2>&5
19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); }; }; then
19446 ac_header_compiler=yes
19448 echo "$as_me: failed program was:" >&5
19449 sed 's/^/| /' conftest.$ac_ext >&5
19451 ac_header_compiler=no
19453 rm -f conftest.$ac_objext conftest.$ac_ext
19454 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19455 echo "${ECHO_T}$ac_header_compiler" >&6
19457 # Is the header present?
19458 echo "$as_me:$LINENO: checking stdint.h presence" >&5
19459 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
19460 cat >conftest.$ac_ext <<_ACEOF
19461 #line $LINENO "configure"
19464 cat confdefs.h >>conftest.$ac_ext
19465 cat >>conftest.$ac_ext <<_ACEOF
19466 /* end confdefs.h. */
19467 #include <stdint.h>
19469 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19470 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19472 grep -v '^ *+' conftest.er1 >conftest.err
19474 cat conftest.err >&5
19475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476 (exit $ac_status); } >/dev/null; then
19477 if test -s conftest.err; then
19478 ac_cpp_err=$ac_c_preproc_warn_flag
19485 if test -z "$ac_cpp_err"; then
19486 ac_header_preproc=yes
19488 echo "$as_me: failed program was:" >&5
19489 sed 's/^/| /' conftest.$ac_ext >&5
19491 ac_header_preproc=no
19493 rm -f conftest.err conftest.$ac_ext
19494 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19495 echo "${ECHO_T}$ac_header_preproc" >&6
19497 # So? What about this header?
19498 case $ac_header_compiler:$ac_header_preproc in
19500 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
19501 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19502 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
19503 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
19506 ## ------------------------------------ ##
19507 ## Report this to bug-autoconf@gnu.org. ##
19508 ## ------------------------------------ ##
19511 sed "s/^/$as_me: WARNING: /" >&2
19514 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
19515 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
19516 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
19517 echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
19518 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
19519 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
19522 ## ------------------------------------ ##
19523 ## Report this to bug-autoconf@gnu.org. ##
19524 ## ------------------------------------ ##
19527 sed "s/^/$as_me: WARNING: /" >&2
19530 echo "$as_me:$LINENO: checking for stdint.h" >&5
19531 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
19532 if test "${ac_cv_header_stdint_h+set}" = set; then
19533 echo $ECHO_N "(cached) $ECHO_C" >&6
19535 ac_cv_header_stdint_h=$ac_header_preproc
19537 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
19538 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
19541 if test $ac_cv_header_stdint_h = yes; then
19542 INCLUDE_STDINT_H='#include <stdint.h>'
19544 INCLUDE_STDINT_H=''
19551 echo "$as_me:$LINENO: checking for pid_t" >&5
19552 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19553 if test "${ac_cv_type_pid_t+set}" = set; then
19554 echo $ECHO_N "(cached) $ECHO_C" >&6
19556 cat >conftest.$ac_ext <<_ACEOF
19557 #line $LINENO "configure"
19560 cat confdefs.h >>conftest.$ac_ext
19561 cat >>conftest.$ac_ext <<_ACEOF
19562 /* end confdefs.h. */
19563 $ac_includes_default
19569 if (sizeof (pid_t))
19575 rm -f conftest.$ac_objext
19576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19577 (eval $ac_compile) 2>&5
19579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580 (exit $ac_status); } &&
19581 { ac_try='test -s conftest.$ac_objext'
19582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19583 (eval $ac_try) 2>&5
19585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586 (exit $ac_status); }; }; then
19587 ac_cv_type_pid_t=yes
19589 echo "$as_me: failed program was:" >&5
19590 sed 's/^/| /' conftest.$ac_ext >&5
19592 ac_cv_type_pid_t=no
19594 rm -f conftest.$ac_objext conftest.$ac_ext
19596 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19597 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19598 if test $ac_cv_type_pid_t = yes; then
19602 cat >>confdefs.h <<_ACEOF
19608 echo "$as_me:$LINENO: checking for size_t" >&5
19609 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19610 if test "${ac_cv_type_size_t+set}" = set; then
19611 echo $ECHO_N "(cached) $ECHO_C" >&6
19613 cat >conftest.$ac_ext <<_ACEOF
19614 #line $LINENO "configure"
19617 cat confdefs.h >>conftest.$ac_ext
19618 cat >>conftest.$ac_ext <<_ACEOF
19619 /* end confdefs.h. */
19620 $ac_includes_default
19626 if (sizeof (size_t))
19632 rm -f conftest.$ac_objext
19633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19634 (eval $ac_compile) 2>&5
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); } &&
19638 { ac_try='test -s conftest.$ac_objext'
19639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19640 (eval $ac_try) 2>&5
19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); }; }; then
19644 ac_cv_type_size_t=yes
19646 echo "$as_me: failed program was:" >&5
19647 sed 's/^/| /' conftest.$ac_ext >&5
19649 ac_cv_type_size_t=no
19651 rm -f conftest.$ac_objext conftest.$ac_ext
19653 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19654 echo "${ECHO_T}$ac_cv_type_size_t" >&6
19655 if test $ac_cv_type_size_t = yes; then
19659 cat >>confdefs.h <<_ACEOF
19660 #define size_t unsigned
19665 echo "$as_me:$LINENO: checking for int64_t" >&5
19666 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
19667 if test "${ac_cv_type_int64_t+set}" = set; then
19668 echo $ECHO_N "(cached) $ECHO_C" >&6
19670 cat >conftest.$ac_ext <<_ACEOF
19671 #line $LINENO "configure"
19674 cat confdefs.h >>conftest.$ac_ext
19675 cat >>conftest.$ac_ext <<_ACEOF
19676 /* end confdefs.h. */
19677 $ac_includes_default
19683 if (sizeof (int64_t))
19689 rm -f conftest.$ac_objext
19690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19691 (eval $ac_compile) 2>&5
19693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694 (exit $ac_status); } &&
19695 { ac_try='test -s conftest.$ac_objext'
19696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19697 (eval $ac_try) 2>&5
19699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19700 (exit $ac_status); }; }; then
19701 ac_cv_type_int64_t=yes
19703 echo "$as_me: failed program was:" >&5
19704 sed 's/^/| /' conftest.$ac_ext >&5
19706 ac_cv_type_int64_t=no
19708 rm -f conftest.$ac_objext conftest.$ac_ext
19710 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
19711 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
19712 if test $ac_cv_type_int64_t = yes; then
19714 cat >>confdefs.h <<_ACEOF
19715 #define HAVE_INT64_T 1
19720 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
19721 echo "$as_me: error: Type int64_t required but not found" >&2;}
19722 { (exit 1); exit 1; }; }
19725 echo "$as_me:$LINENO: checking for uint64_t" >&5
19726 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
19727 if test "${ac_cv_type_uint64_t+set}" = set; then
19728 echo $ECHO_N "(cached) $ECHO_C" >&6
19730 cat >conftest.$ac_ext <<_ACEOF
19731 #line $LINENO "configure"
19734 cat confdefs.h >>conftest.$ac_ext
19735 cat >>conftest.$ac_ext <<_ACEOF
19736 /* end confdefs.h. */
19737 $ac_includes_default
19741 if ((uint64_t *) 0)
19743 if (sizeof (uint64_t))
19749 rm -f conftest.$ac_objext
19750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19751 (eval $ac_compile) 2>&5
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); } &&
19755 { ac_try='test -s conftest.$ac_objext'
19756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19757 (eval $ac_try) 2>&5
19759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760 (exit $ac_status); }; }; then
19761 ac_cv_type_uint64_t=yes
19763 echo "$as_me: failed program was:" >&5
19764 sed 's/^/| /' conftest.$ac_ext >&5
19766 ac_cv_type_uint64_t=no
19768 rm -f conftest.$ac_objext conftest.$ac_ext
19770 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
19771 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
19772 if test $ac_cv_type_uint64_t = yes; then
19774 cat >>confdefs.h <<_ACEOF
19775 #define HAVE_UINT64_T 1
19780 echo "$as_me:$LINENO: checking for u_int64_t" >&5
19781 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
19782 if test "${ac_cv_type_u_int64_t+set}" = set; then
19783 echo $ECHO_N "(cached) $ECHO_C" >&6
19785 cat >conftest.$ac_ext <<_ACEOF
19786 #line $LINENO "configure"
19789 cat confdefs.h >>conftest.$ac_ext
19790 cat >>conftest.$ac_ext <<_ACEOF
19791 /* end confdefs.h. */
19792 $ac_includes_default
19796 if ((u_int64_t *) 0)
19798 if (sizeof (u_int64_t))
19804 rm -f conftest.$ac_objext
19805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19806 (eval $ac_compile) 2>&5
19808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809 (exit $ac_status); } &&
19810 { ac_try='test -s conftest.$ac_objext'
19811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19812 (eval $ac_try) 2>&5
19814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); }; }; then
19816 ac_cv_type_u_int64_t=yes
19818 echo "$as_me: failed program was:" >&5
19819 sed 's/^/| /' conftest.$ac_ext >&5
19821 ac_cv_type_u_int64_t=no
19823 rm -f conftest.$ac_objext conftest.$ac_ext
19825 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
19826 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
19827 if test $ac_cv_type_u_int64_t = yes; then
19829 cat >>confdefs.h <<_ACEOF
19830 #define HAVE_U_INT64_T 1
19835 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
19836 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
19837 { (exit 1); exit 1; }; }
19842 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19843 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19844 if test "${ac_cv_header_time+set}" = set; then
19845 echo $ECHO_N "(cached) $ECHO_C" >&6
19847 cat >conftest.$ac_ext <<_ACEOF
19848 #line $LINENO "configure"
19851 cat confdefs.h >>conftest.$ac_ext
19852 cat >>conftest.$ac_ext <<_ACEOF
19853 /* end confdefs.h. */
19854 #include <sys/types.h>
19855 #include <sys/time.h>
19861 if ((struct tm *) 0)
19867 rm -f conftest.$ac_objext
19868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19869 (eval $ac_compile) 2>&5
19871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872 (exit $ac_status); } &&
19873 { ac_try='test -s conftest.$ac_objext'
19874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19875 (eval $ac_try) 2>&5
19877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878 (exit $ac_status); }; }; then
19879 ac_cv_header_time=yes
19881 echo "$as_me: failed program was:" >&5
19882 sed 's/^/| /' conftest.$ac_ext >&5
19884 ac_cv_header_time=no
19886 rm -f conftest.$ac_objext conftest.$ac_ext
19888 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19889 echo "${ECHO_T}$ac_cv_header_time" >&6
19890 if test $ac_cv_header_time = yes; then
19892 cat >>confdefs.h <<\_ACEOF
19893 #define TIME_WITH_SYS_TIME 1
19898 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19899 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
19900 if test "${ac_cv_struct_tm+set}" = set; then
19901 echo $ECHO_N "(cached) $ECHO_C" >&6
19903 cat >conftest.$ac_ext <<_ACEOF
19904 #line $LINENO "configure"
19907 cat confdefs.h >>conftest.$ac_ext
19908 cat >>conftest.$ac_ext <<_ACEOF
19909 /* end confdefs.h. */
19910 #include <sys/types.h>
19916 struct tm *tp; tp->tm_sec;
19921 rm -f conftest.$ac_objext
19922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19923 (eval $ac_compile) 2>&5
19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926 (exit $ac_status); } &&
19927 { ac_try='test -s conftest.$ac_objext'
19928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19929 (eval $ac_try) 2>&5
19931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932 (exit $ac_status); }; }; then
19933 ac_cv_struct_tm=time.h
19935 echo "$as_me: failed program was:" >&5
19936 sed 's/^/| /' conftest.$ac_ext >&5
19938 ac_cv_struct_tm=sys/time.h
19940 rm -f conftest.$ac_objext conftest.$ac_ext
19942 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19943 echo "${ECHO_T}$ac_cv_struct_tm" >&6
19944 if test $ac_cv_struct_tm = sys/time.h; then
19946 cat >>confdefs.h <<\_ACEOF
19947 #define TM_IN_SYS_TIME 1
19954 echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
19955 echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
19959 ac_cpp='$CPP $CPPFLAGS'
19960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19964 if test "$cross_compiling" = yes; then
19965 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19966 See \`config.log' for more details." >&5
19967 echo "$as_me: error: cannot run test program while cross compiling
19968 See \`config.log' for more details." >&2;}
19969 { (exit 1); exit 1; }; }
19971 cat >conftest.$ac_ext <<_ACEOF
19972 #line $LINENO "configure"
19975 cat confdefs.h >>conftest.$ac_ext
19976 cat >>conftest.$ac_ext <<_ACEOF
19977 /* end confdefs.h. */
19979 #include <stdlib.h>
19984 volatile double A, B;
19988 sprintf(Buffer, "%a", A);
19992 if (A != 0x1.999999999999ap-4)
19999 rm -f conftest$ac_exeext
20000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20001 (eval $ac_link) 2>&5
20003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20006 (eval $ac_try) 2>&5
20008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009 (exit $ac_status); }; }; then
20012 echo "$as_me: program exited with status $ac_status" >&5
20013 echo "$as_me: failed program was:" >&5
20014 sed 's/^/| /' conftest.$ac_ext >&5
20016 ( exit $ac_status )
20019 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20022 ac_cpp='$CPP $CPPFLAGS'
20023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20027 echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
20028 echo "${ECHO_T}$ac_c_printf_a" >&6
20029 if test "$ac_c_printf_a" = "yes"; then
20031 cat >>confdefs.h <<\_ACEOF
20032 #define HAVE_PRINTF_A 1
20038 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20039 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20040 if test "${ac_cv_c_bigendian+set}" = set; then
20041 echo $ECHO_N "(cached) $ECHO_C" >&6
20043 # See if sys/param.h defines the BYTE_ORDER macro.
20044 cat >conftest.$ac_ext <<_ACEOF
20045 #line $LINENO "configure"
20048 cat confdefs.h >>conftest.$ac_ext
20049 cat >>conftest.$ac_ext <<_ACEOF
20050 /* end confdefs.h. */
20051 #include <sys/types.h>
20052 #include <sys/param.h>
20057 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20058 bogus endian macros
20065 rm -f conftest.$ac_objext
20066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20067 (eval $ac_compile) 2>&5
20069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070 (exit $ac_status); } &&
20071 { ac_try='test -s conftest.$ac_objext'
20072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20073 (eval $ac_try) 2>&5
20075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076 (exit $ac_status); }; }; then
20077 # It does; now see whether it defined to BIG_ENDIAN or not.
20078 cat >conftest.$ac_ext <<_ACEOF
20079 #line $LINENO "configure"
20082 cat confdefs.h >>conftest.$ac_ext
20083 cat >>conftest.$ac_ext <<_ACEOF
20084 /* end confdefs.h. */
20085 #include <sys/types.h>
20086 #include <sys/param.h>
20091 #if BYTE_ORDER != BIG_ENDIAN
20099 rm -f conftest.$ac_objext
20100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20101 (eval $ac_compile) 2>&5
20103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104 (exit $ac_status); } &&
20105 { ac_try='test -s conftest.$ac_objext'
20106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20107 (eval $ac_try) 2>&5
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); }; }; then
20111 ac_cv_c_bigendian=yes
20113 echo "$as_me: failed program was:" >&5
20114 sed 's/^/| /' conftest.$ac_ext >&5
20116 ac_cv_c_bigendian=no
20118 rm -f conftest.$ac_objext conftest.$ac_ext
20120 echo "$as_me: failed program was:" >&5
20121 sed 's/^/| /' conftest.$ac_ext >&5
20123 # It does not; compile a test program.
20124 if test "$cross_compiling" = yes; then
20125 # try to guess the endianness by grepping values into an object file
20126 ac_cv_c_bigendian=unknown
20127 cat >conftest.$ac_ext <<_ACEOF
20128 #line $LINENO "configure"
20131 cat confdefs.h >>conftest.$ac_ext
20132 cat >>conftest.$ac_ext <<_ACEOF
20133 /* end confdefs.h. */
20134 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20135 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20136 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20137 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20138 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20139 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20143 _ascii (); _ebcdic ();
20148 rm -f conftest.$ac_objext
20149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20150 (eval $ac_compile) 2>&5
20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); } &&
20154 { ac_try='test -s conftest.$ac_objext'
20155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20156 (eval $ac_try) 2>&5
20158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159 (exit $ac_status); }; }; then
20160 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20161 ac_cv_c_bigendian=yes
20163 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20164 if test "$ac_cv_c_bigendian" = unknown; then
20165 ac_cv_c_bigendian=no
20167 # finding both strings is unlikely to happen, but who knows?
20168 ac_cv_c_bigendian=unknown
20172 echo "$as_me: failed program was:" >&5
20173 sed 's/^/| /' conftest.$ac_ext >&5
20176 rm -f conftest.$ac_objext conftest.$ac_ext
20178 cat >conftest.$ac_ext <<_ACEOF
20179 #line $LINENO "configure"
20182 cat confdefs.h >>conftest.$ac_ext
20183 cat >>conftest.$ac_ext <<_ACEOF
20184 /* end confdefs.h. */
20188 /* Are we little or big endian? From Harbison&Steele. */
20192 char c[sizeof (long)];
20195 exit (u.c[sizeof (long) - 1] == 1);
20198 rm -f conftest$ac_exeext
20199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20200 (eval $ac_link) 2>&5
20202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20205 (eval $ac_try) 2>&5
20207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208 (exit $ac_status); }; }; then
20209 ac_cv_c_bigendian=no
20211 echo "$as_me: program exited with status $ac_status" >&5
20212 echo "$as_me: failed program was:" >&5
20213 sed 's/^/| /' conftest.$ac_ext >&5
20215 ( exit $ac_status )
20216 ac_cv_c_bigendian=yes
20218 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20221 rm -f conftest.$ac_objext conftest.$ac_ext
20223 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20224 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20225 case $ac_cv_c_bigendian in
20233 { { echo "$as_me:$LINENO: error: unknown endianness
20234 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20235 echo "$as_me: error: unknown endianness
20236 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20237 { (exit 1); exit 1; }; } ;;
20241 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20242 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20243 if test "${ac_cv_cxx_namespaces+set}" = set; then
20244 echo $ECHO_N "(cached) $ECHO_C" >&6
20249 ac_cpp='$CXXCPP $CPPFLAGS'
20250 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20251 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20252 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20254 cat >conftest.$ac_ext <<_ACEOF
20255 #line $LINENO "configure"
20258 cat confdefs.h >>conftest.$ac_ext
20259 cat >>conftest.$ac_ext <<_ACEOF
20260 /* end confdefs.h. */
20261 namespace Outer { namespace Inner { int i = 0; }}
20265 using namespace Outer::Inner; return i;
20270 rm -f conftest.$ac_objext
20271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20272 (eval $ac_compile) 2>&5
20274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275 (exit $ac_status); } &&
20276 { ac_try='test -s conftest.$ac_objext'
20277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20278 (eval $ac_try) 2>&5
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); }; }; then
20282 ac_cv_cxx_namespaces=yes
20284 echo "$as_me: failed program was:" >&5
20285 sed 's/^/| /' conftest.$ac_ext >&5
20287 ac_cv_cxx_namespaces=no
20289 rm -f conftest.$ac_objext conftest.$ac_ext
20291 ac_cpp='$CPP $CPPFLAGS'
20292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20298 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20299 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20300 if test "$ac_cv_cxx_namespaces" = yes; then
20302 cat >>confdefs.h <<\_ACEOF
20303 #define HAVE_NAMESPACES
20308 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20309 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20310 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
20311 echo $ECHO_N "(cached) $ECHO_C" >&6
20317 ac_cpp='$CXXCPP $CPPFLAGS'
20318 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20319 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20320 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20322 cat >conftest.$ac_ext <<_ACEOF
20323 #line $LINENO "configure"
20326 cat confdefs.h >>conftest.$ac_ext
20327 cat >>conftest.$ac_ext <<_ACEOF
20328 /* end confdefs.h. */
20329 #include <ext/hash_map>
20330 #ifdef HAVE_NAMESPACES
20331 using namespace std;
20336 hash_map<int, int> t;
20341 rm -f conftest.$ac_objext
20342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20343 (eval $ac_compile) 2>&5
20345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346 (exit $ac_status); } &&
20347 { ac_try='test -s conftest.$ac_objext'
20348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20349 (eval $ac_try) 2>&5
20351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352 (exit $ac_status); }; }; then
20353 ac_cv_cxx_have_std_ext_hash_map=yes
20355 echo "$as_me: failed program was:" >&5
20356 sed 's/^/| /' conftest.$ac_ext >&5
20358 ac_cv_cxx_have_std_ext_hash_map=no
20360 rm -f conftest.$ac_objext conftest.$ac_ext
20362 ac_cpp='$CPP $CPPFLAGS'
20363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20368 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
20369 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
20370 HAVE_STD_EXT_HASH_MAP=0
20371 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
20373 HAVE_STD_EXT_HASH_MAP=1
20376 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
20377 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
20378 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
20379 echo $ECHO_N "(cached) $ECHO_C" >&6
20385 ac_cpp='$CXXCPP $CPPFLAGS'
20386 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20387 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20388 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20390 cat >conftest.$ac_ext <<_ACEOF
20391 #line $LINENO "configure"
20394 cat confdefs.h >>conftest.$ac_ext
20395 cat >>conftest.$ac_ext <<_ACEOF
20396 /* end confdefs.h. */
20397 #include <ext/hash_map>
20398 #ifdef HAVE_NAMESPACES
20399 using namespace __gnu_cxx;
20404 hash_map<int,int> t;
20409 rm -f conftest.$ac_objext
20410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20411 (eval $ac_compile) 2>&5
20413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414 (exit $ac_status); } &&
20415 { ac_try='test -s conftest.$ac_objext'
20416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20417 (eval $ac_try) 2>&5
20419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420 (exit $ac_status); }; }; then
20421 ac_cv_cxx_have_gnu_ext_hash_map=yes
20423 echo "$as_me: failed program was:" >&5
20424 sed 's/^/| /' conftest.$ac_ext >&5
20426 ac_cv_cxx_have_gnu_ext_hash_map=no
20428 rm -f conftest.$ac_objext conftest.$ac_ext
20430 ac_cpp='$CPP $CPPFLAGS'
20431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20436 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
20437 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
20438 HAVE_GNU_EXT_HASH_MAP=0
20439 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
20441 HAVE_GNU_EXT_HASH_MAP=1
20444 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
20445 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
20446 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
20447 echo $ECHO_N "(cached) $ECHO_C" >&6
20453 ac_cpp='$CXXCPP $CPPFLAGS'
20454 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20455 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20456 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20458 cat >conftest.$ac_ext <<_ACEOF
20459 #line $LINENO "configure"
20462 cat confdefs.h >>conftest.$ac_ext
20463 cat >>conftest.$ac_ext <<_ACEOF
20464 /* end confdefs.h. */
20465 #include <hash_map>
20469 hash_map<int,int> t;
20474 rm -f conftest.$ac_objext
20475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20476 (eval $ac_compile) 2>&5
20478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479 (exit $ac_status); } &&
20480 { ac_try='test -s conftest.$ac_objext'
20481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20482 (eval $ac_try) 2>&5
20484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485 (exit $ac_status); }; }; then
20486 ac_cv_cxx_have_global_hash_map=yes
20488 echo "$as_me: failed program was:" >&5
20489 sed 's/^/| /' conftest.$ac_ext >&5
20491 ac_cv_cxx_have_global_hash_map=no
20493 rm -f conftest.$ac_objext conftest.$ac_ext
20495 ac_cpp='$CPP $CPPFLAGS'
20496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20501 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
20502 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
20503 HAVE_GLOBAL_HASH_MAP=0
20504 if test "$ac_cv_cxx_have_global_hash_map" = yes
20506 HAVE_GLOBAL_HASH_MAP=1
20509 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
20510 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
20511 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
20512 echo $ECHO_N "(cached) $ECHO_C" >&6
20518 ac_cpp='$CXXCPP $CPPFLAGS'
20519 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20520 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20521 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20523 cat >conftest.$ac_ext <<_ACEOF
20524 #line $LINENO "configure"
20527 cat confdefs.h >>conftest.$ac_ext
20528 cat >>conftest.$ac_ext <<_ACEOF
20529 /* end confdefs.h. */
20530 #include <ext/hash_set>
20531 #ifdef HAVE_NAMESPACES
20532 using namespace std;
20542 rm -f conftest.$ac_objext
20543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20544 (eval $ac_compile) 2>&5
20546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547 (exit $ac_status); } &&
20548 { ac_try='test -s conftest.$ac_objext'
20549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20550 (eval $ac_try) 2>&5
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); }; }; then
20554 ac_cv_cxx_have_std_ext_hash_set=yes
20556 echo "$as_me: failed program was:" >&5
20557 sed 's/^/| /' conftest.$ac_ext >&5
20559 ac_cv_cxx_have_std_ext_hash_set=no
20561 rm -f conftest.$ac_objext conftest.$ac_ext
20563 ac_cpp='$CPP $CPPFLAGS'
20564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20569 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
20570 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
20571 HAVE_STD_EXT_HASH_SET=0
20572 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
20574 HAVE_STD_EXT_HASH_SET=1
20577 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
20578 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
20579 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
20580 echo $ECHO_N "(cached) $ECHO_C" >&6
20586 ac_cpp='$CXXCPP $CPPFLAGS'
20587 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20588 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20589 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20591 cat >conftest.$ac_ext <<_ACEOF
20592 #line $LINENO "configure"
20595 cat confdefs.h >>conftest.$ac_ext
20596 cat >>conftest.$ac_ext <<_ACEOF
20597 /* end confdefs.h. */
20598 #include <ext/hash_set>
20599 #ifdef HAVE_NAMESPACES
20600 using namespace __gnu_cxx;
20610 rm -f conftest.$ac_objext
20611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20612 (eval $ac_compile) 2>&5
20614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615 (exit $ac_status); } &&
20616 { ac_try='test -s conftest.$ac_objext'
20617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20618 (eval $ac_try) 2>&5
20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); }; }; then
20622 ac_cv_cxx_have_gnu_ext_hash_set=yes
20624 echo "$as_me: failed program was:" >&5
20625 sed 's/^/| /' conftest.$ac_ext >&5
20627 ac_cv_cxx_have_gnu_ext_hash_set=no
20629 rm -f conftest.$ac_objext conftest.$ac_ext
20631 ac_cpp='$CPP $CPPFLAGS'
20632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20637 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
20638 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
20639 HAVE_GNU_EXT_HASH_SET=0
20640 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
20642 HAVE_GNU_EXT_HASH_SET=1
20645 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
20646 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
20647 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
20648 echo $ECHO_N "(cached) $ECHO_C" >&6
20654 ac_cpp='$CXXCPP $CPPFLAGS'
20655 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20656 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20657 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20659 cat >conftest.$ac_ext <<_ACEOF
20660 #line $LINENO "configure"
20663 cat confdefs.h >>conftest.$ac_ext
20664 cat >>conftest.$ac_ext <<_ACEOF
20665 /* end confdefs.h. */
20666 #include <hash_set>
20670 hash_set<int> t; return 0;
20675 rm -f conftest.$ac_objext
20676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20677 (eval $ac_compile) 2>&5
20679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20680 (exit $ac_status); } &&
20681 { ac_try='test -s conftest.$ac_objext'
20682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20683 (eval $ac_try) 2>&5
20685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20686 (exit $ac_status); }; }; then
20687 ac_cv_cxx_have_global_hash_set=yes
20689 echo "$as_me: failed program was:" >&5
20690 sed 's/^/| /' conftest.$ac_ext >&5
20692 ac_cv_cxx_have_global_hash_set=no
20694 rm -f conftest.$ac_objext conftest.$ac_ext
20696 ac_cpp='$CPP $CPPFLAGS'
20697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20702 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
20703 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
20704 HAVE_GLOBAL_HASH_SET=0
20705 if test "$ac_cv_cxx_have_global_hash_set" = yes
20707 HAVE_GLOBAL_HASH_SET=1
20710 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
20711 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
20712 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
20713 echo $ECHO_N "(cached) $ECHO_C" >&6
20719 ac_cpp='$CXXCPP $CPPFLAGS'
20720 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20721 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20722 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20724 cat >conftest.$ac_ext <<_ACEOF
20725 #line $LINENO "configure"
20728 cat confdefs.h >>conftest.$ac_ext
20729 cat >>conftest.$ac_ext <<_ACEOF
20730 /* end confdefs.h. */
20731 #include <iterator>
20732 #ifdef HAVE_NAMESPACES
20733 using namespace std;
20738 iterator<int,int,int> t; return 0;
20743 rm -f conftest.$ac_objext
20744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20745 (eval $ac_compile) 2>&5
20747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748 (exit $ac_status); } &&
20749 { ac_try='test -s conftest.$ac_objext'
20750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20751 (eval $ac_try) 2>&5
20753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754 (exit $ac_status); }; }; then
20755 ac_cv_cxx_have_std_iterator=yes
20757 echo "$as_me: failed program was:" >&5
20758 sed 's/^/| /' conftest.$ac_ext >&5
20760 ac_cv_cxx_have_std_iterator=no
20762 rm -f conftest.$ac_objext conftest.$ac_ext
20764 ac_cpp='$CPP $CPPFLAGS'
20765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20771 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
20772 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
20773 HAVE_STD_ITERATOR=0
20774 if test "$ac_cv_cxx_have_std_iterator" = yes
20776 HAVE_STD_ITERATOR=1
20779 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
20780 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
20781 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
20782 echo $ECHO_N "(cached) $ECHO_C" >&6
20788 ac_cpp='$CXXCPP $CPPFLAGS'
20789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20793 cat >conftest.$ac_ext <<_ACEOF
20794 #line $LINENO "configure"
20797 cat confdefs.h >>conftest.$ac_ext
20798 cat >>conftest.$ac_ext <<_ACEOF
20799 /* end confdefs.h. */
20800 #include <iterator>
20801 #ifdef HAVE_NAMESPACES
20802 using namespace std;
20807 bidirectional_iterator<int,int> t; return 0;
20812 rm -f conftest.$ac_objext
20813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20814 (eval $ac_compile) 2>&5
20816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817 (exit $ac_status); } &&
20818 { ac_try='test -s conftest.$ac_objext'
20819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20820 (eval $ac_try) 2>&5
20822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823 (exit $ac_status); }; }; then
20824 ac_cv_cxx_have_bi_iterator=yes
20826 echo "$as_me: failed program was:" >&5
20827 sed 's/^/| /' conftest.$ac_ext >&5
20829 ac_cv_cxx_have_bi_iterator=no
20831 rm -f conftest.$ac_objext conftest.$ac_ext
20833 ac_cpp='$CPP $CPPFLAGS'
20834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20840 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
20841 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
20843 if test "$ac_cv_cxx_have_bi_iterator" = yes
20848 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
20849 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
20850 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
20851 echo $ECHO_N "(cached) $ECHO_C" >&6
20857 ac_cpp='$CXXCPP $CPPFLAGS'
20858 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20859 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20860 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20862 cat >conftest.$ac_ext <<_ACEOF
20863 #line $LINENO "configure"
20866 cat confdefs.h >>conftest.$ac_ext
20867 cat >>conftest.$ac_ext <<_ACEOF
20868 /* end confdefs.h. */
20869 #include <iterator>
20870 #ifdef HAVE_NAMESPACES
20871 using namespace std;
20876 forward_iterator<int,int> t; return 0;
20881 rm -f conftest.$ac_objext
20882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20883 (eval $ac_compile) 2>&5
20885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886 (exit $ac_status); } &&
20887 { ac_try='test -s conftest.$ac_objext'
20888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20889 (eval $ac_try) 2>&5
20891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892 (exit $ac_status); }; }; then
20893 ac_cv_cxx_have_fwd_iterator=yes
20895 echo "$as_me: failed program was:" >&5
20896 sed 's/^/| /' conftest.$ac_ext >&5
20898 ac_cv_cxx_have_fwd_iterator=no
20900 rm -f conftest.$ac_objext conftest.$ac_ext
20902 ac_cpp='$CPP $CPPFLAGS'
20903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20909 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
20910 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
20911 HAVE_FWD_ITERATOR=0
20912 if test "$ac_cv_cxx_have_fwd_iterator" = yes
20914 HAVE_FWD_ITERATOR=1
20919 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20920 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
20921 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20922 echo $ECHO_N "(cached) $ECHO_C" >&6
20925 ac_cpp='$CXXCPP $CPPFLAGS'
20926 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20927 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20928 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20930 cat >conftest.$ac_ext <<_ACEOF
20931 #line $LINENO "configure"
20934 cat confdefs.h >>conftest.$ac_ext
20935 cat >>conftest.$ac_ext <<_ACEOF
20936 /* end confdefs.h. */
20938 int foo(float f) {return isnan(f);}
20940 rm -f conftest.$ac_objext
20941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20942 (eval $ac_compile) 2>&5
20944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945 (exit $ac_status); } &&
20946 { ac_try='test -s conftest.$ac_objext'
20947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20948 (eval $ac_try) 2>&5
20950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951 (exit $ac_status); }; }; then
20952 ac_cv_func_isnan_in_math_h=yes
20954 echo "$as_me: failed program was:" >&5
20955 sed 's/^/| /' conftest.$ac_ext >&5
20957 ac_cv_func_isnan_in_math_h=no
20959 rm -f conftest.$ac_objext conftest.$ac_ext
20961 ac_cpp='$CPP $CPPFLAGS'
20962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20967 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20968 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
20969 if test "$ac_cv_func_isnan_in_math_h" = "yes"
20972 cat >>confdefs.h <<\_ACEOF
20973 #define HAVE_ISNAN_IN_MATH_H 1
20977 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20978 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
20979 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20980 echo $ECHO_N "(cached) $ECHO_C" >&6
20983 ac_cpp='$CXXCPP $CPPFLAGS'
20984 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20985 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20986 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20988 cat >conftest.$ac_ext <<_ACEOF
20989 #line $LINENO "configure"
20992 cat confdefs.h >>conftest.$ac_ext
20993 cat >>conftest.$ac_ext <<_ACEOF
20994 /* end confdefs.h. */
20996 int foo(float f) {return isnan(f);}
20998 rm -f conftest.$ac_objext
20999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21000 (eval $ac_compile) 2>&5
21002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003 (exit $ac_status); } &&
21004 { ac_try='test -s conftest.$ac_objext'
21005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21006 (eval $ac_try) 2>&5
21008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009 (exit $ac_status); }; }; then
21010 ac_cv_func_isnan_in_cmath=yes
21012 echo "$as_me: failed program was:" >&5
21013 sed 's/^/| /' conftest.$ac_ext >&5
21015 ac_cv_func_isnan_in_cmath=no
21017 rm -f conftest.$ac_objext conftest.$ac_ext
21019 ac_cpp='$CPP $CPPFLAGS'
21020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21025 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
21026 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
21027 if test "$ac_cv_func_isnan_in_cmath" = "yes"
21030 cat >>confdefs.h <<\_ACEOF
21031 #define HAVE_ISNAN_IN_CMATH 1
21035 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
21036 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
21037 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
21038 echo $ECHO_N "(cached) $ECHO_C" >&6
21041 ac_cpp='$CXXCPP $CPPFLAGS'
21042 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21043 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21044 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21046 cat >conftest.$ac_ext <<_ACEOF
21047 #line $LINENO "configure"
21050 cat confdefs.h >>conftest.$ac_ext
21051 cat >>conftest.$ac_ext <<_ACEOF
21052 /* end confdefs.h. */
21054 using std::isnan; int foo(float f) {return isnan(f);}
21056 rm -f conftest.$ac_objext
21057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21058 (eval $ac_compile) 2>&5
21060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21061 (exit $ac_status); } &&
21062 { ac_try='test -s conftest.$ac_objext'
21063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21064 (eval $ac_try) 2>&5
21066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21067 (exit $ac_status); }; }; then
21068 ac_cv_func_std_isnan_in_cmath=yes
21070 echo "$as_me: failed program was:" >&5
21071 sed 's/^/| /' conftest.$ac_ext >&5
21073 ac_cv_func_std_isnan_in_cmath=no
21075 rm -f conftest.$ac_objext conftest.$ac_ext
21077 ac_cpp='$CPP $CPPFLAGS'
21078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21083 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21084 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
21085 if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
21088 cat >>confdefs.h <<\_ACEOF
21089 #define HAVE_STD_ISNAN_IN_CMATH 1
21095 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21096 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
21097 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21098 echo $ECHO_N "(cached) $ECHO_C" >&6
21101 ac_cpp='$CXXCPP $CPPFLAGS'
21102 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21103 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21104 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21106 cat >conftest.$ac_ext <<_ACEOF
21107 #line $LINENO "configure"
21110 cat confdefs.h >>conftest.$ac_ext
21111 cat >>conftest.$ac_ext <<_ACEOF
21112 /* end confdefs.h. */
21114 int foo(float f) {return isinf(f);}
21116 rm -f conftest.$ac_objext
21117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21118 (eval $ac_compile) 2>&5
21120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121 (exit $ac_status); } &&
21122 { ac_try='test -s conftest.$ac_objext'
21123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21124 (eval $ac_try) 2>&5
21126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127 (exit $ac_status); }; }; then
21128 ac_cv_func_isinf_in_math_h=yes
21130 echo "$as_me: failed program was:" >&5
21131 sed 's/^/| /' conftest.$ac_ext >&5
21133 ac_cv_func_isinf_in_math_h=no
21135 rm -f conftest.$ac_objext conftest.$ac_ext
21137 ac_cpp='$CPP $CPPFLAGS'
21138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21143 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21144 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
21145 if test "$ac_cv_func_isinf_in_math_h" = "yes"
21148 cat >>confdefs.h <<\_ACEOF
21149 #define HAVE_ISINF_IN_MATH_H 1
21153 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21154 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
21155 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21156 echo $ECHO_N "(cached) $ECHO_C" >&6
21159 ac_cpp='$CXXCPP $CPPFLAGS'
21160 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21161 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21162 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21164 cat >conftest.$ac_ext <<_ACEOF
21165 #line $LINENO "configure"
21168 cat confdefs.h >>conftest.$ac_ext
21169 cat >>conftest.$ac_ext <<_ACEOF
21170 /* end confdefs.h. */
21172 int foo(float f) {return isinf(f);}
21174 rm -f conftest.$ac_objext
21175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21176 (eval $ac_compile) 2>&5
21178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179 (exit $ac_status); } &&
21180 { ac_try='test -s conftest.$ac_objext'
21181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21182 (eval $ac_try) 2>&5
21184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185 (exit $ac_status); }; }; then
21186 ac_cv_func_isinf_in_cmath=yes
21188 echo "$as_me: failed program was:" >&5
21189 sed 's/^/| /' conftest.$ac_ext >&5
21191 ac_cv_func_isinf_in_cmath=no
21193 rm -f conftest.$ac_objext conftest.$ac_ext
21195 ac_cpp='$CPP $CPPFLAGS'
21196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21201 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21202 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
21203 if test "$ac_cv_func_isinf_in_cmath" = "yes"
21206 cat >>confdefs.h <<\_ACEOF
21207 #define HAVE_ISINF_IN_CMATH 1
21211 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21212 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
21213 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21214 echo $ECHO_N "(cached) $ECHO_C" >&6
21217 ac_cpp='$CXXCPP $CPPFLAGS'
21218 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21219 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21220 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21222 cat >conftest.$ac_ext <<_ACEOF
21223 #line $LINENO "configure"
21226 cat confdefs.h >>conftest.$ac_ext
21227 cat >>conftest.$ac_ext <<_ACEOF
21228 /* end confdefs.h. */
21230 using std::isinf; int foo(float f) {return isinf(f);}
21232 rm -f conftest.$ac_objext
21233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21234 (eval $ac_compile) 2>&5
21236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21237 (exit $ac_status); } &&
21238 { ac_try='test -s conftest.$ac_objext'
21239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21240 (eval $ac_try) 2>&5
21242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243 (exit $ac_status); }; }; then
21244 ac_cv_func_std_isinf_in_cmath=yes
21246 echo "$as_me: failed program was:" >&5
21247 sed 's/^/| /' conftest.$ac_ext >&5
21249 ac_cv_func_std_isinf_in_cmath=no
21251 rm -f conftest.$ac_objext conftest.$ac_ext
21253 ac_cpp='$CPP $CPPFLAGS'
21254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21259 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21260 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
21261 if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
21264 cat >>confdefs.h <<\_ACEOF
21265 #define HAVE_STD_ISINF_IN_CMATH 1
21269 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21270 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
21271 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21272 echo $ECHO_N "(cached) $ECHO_C" >&6
21275 ac_cpp='$CXXCPP $CPPFLAGS'
21276 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21277 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21278 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21280 cat >conftest.$ac_ext <<_ACEOF
21281 #line $LINENO "configure"
21284 cat confdefs.h >>conftest.$ac_ext
21285 cat >>conftest.$ac_ext <<_ACEOF
21286 /* end confdefs.h. */
21287 #include <ieeefp.h>
21288 int foo(float f) {return finite(f);}
21290 rm -f conftest.$ac_objext
21291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21292 (eval $ac_compile) 2>&5
21294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295 (exit $ac_status); } &&
21296 { ac_try='test -s conftest.$ac_objext'
21297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21298 (eval $ac_try) 2>&5
21300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301 (exit $ac_status); }; }; then
21302 ac_cv_func_finite_in_ieeefp_h=yes
21304 echo "$as_me: failed program was:" >&5
21305 sed 's/^/| /' conftest.$ac_ext >&5
21307 ac_cv_func_finite_in_ieeefp_h=no
21309 rm -f conftest.$ac_objext conftest.$ac_ext
21311 ac_cpp='$CPP $CPPFLAGS'
21312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21317 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21318 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
21319 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
21322 cat >>confdefs.h <<\_ACEOF
21323 #define HAVE_FINITE_IN_IEEEFP_H 1
21329 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21330 # for constant arguments. Useless!
21331 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21332 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21333 if test "${ac_cv_working_alloca_h+set}" = set; then
21334 echo $ECHO_N "(cached) $ECHO_C" >&6
21336 cat >conftest.$ac_ext <<_ACEOF
21337 #line $LINENO "configure"
21340 cat confdefs.h >>conftest.$ac_ext
21341 cat >>conftest.$ac_ext <<_ACEOF
21342 /* end confdefs.h. */
21343 #include <alloca.h>
21347 char *p = (char *) alloca (2 * sizeof (int));
21352 rm -f conftest.$ac_objext conftest$ac_exeext
21353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21354 (eval $ac_link) 2>&5
21356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357 (exit $ac_status); } &&
21358 { ac_try='test -s conftest$ac_exeext'
21359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21360 (eval $ac_try) 2>&5
21362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 (exit $ac_status); }; }; then
21364 ac_cv_working_alloca_h=yes
21366 echo "$as_me: failed program was:" >&5
21367 sed 's/^/| /' conftest.$ac_ext >&5
21369 ac_cv_working_alloca_h=no
21371 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21373 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21374 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21375 if test $ac_cv_working_alloca_h = yes; then
21377 cat >>confdefs.h <<\_ACEOF
21378 #define HAVE_ALLOCA_H 1
21383 echo "$as_me:$LINENO: checking for alloca" >&5
21384 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21385 if test "${ac_cv_func_alloca_works+set}" = set; then
21386 echo $ECHO_N "(cached) $ECHO_C" >&6
21388 cat >conftest.$ac_ext <<_ACEOF
21389 #line $LINENO "configure"
21392 cat confdefs.h >>conftest.$ac_ext
21393 cat >>conftest.$ac_ext <<_ACEOF
21394 /* end confdefs.h. */
21396 # define alloca __builtin_alloca
21399 # include <malloc.h>
21400 # define alloca _alloca
21403 # include <alloca.h>
21408 # ifndef alloca /* predefined by HP cc +Olibcalls */
21419 char *p = (char *) alloca (1);
21424 rm -f conftest.$ac_objext conftest$ac_exeext
21425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21426 (eval $ac_link) 2>&5
21428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429 (exit $ac_status); } &&
21430 { ac_try='test -s conftest$ac_exeext'
21431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21432 (eval $ac_try) 2>&5
21434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435 (exit $ac_status); }; }; then
21436 ac_cv_func_alloca_works=yes
21438 echo "$as_me: failed program was:" >&5
21439 sed 's/^/| /' conftest.$ac_ext >&5
21441 ac_cv_func_alloca_works=no
21443 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21445 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21446 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21448 if test $ac_cv_func_alloca_works = yes; then
21450 cat >>confdefs.h <<\_ACEOF
21451 #define HAVE_ALLOCA 1
21455 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21456 # that cause trouble. Some versions do not even contain alloca or
21457 # contain a buggy version. If you still want to use their alloca,
21458 # use ar to extract alloca.o from them instead of compiling alloca.c.
21460 ALLOCA=alloca.$ac_objext
21462 cat >>confdefs.h <<\_ACEOF
21467 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21468 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21469 if test "${ac_cv_os_cray+set}" = set; then
21470 echo $ECHO_N "(cached) $ECHO_C" >&6
21472 cat >conftest.$ac_ext <<_ACEOF
21473 #line $LINENO "configure"
21476 cat confdefs.h >>conftest.$ac_ext
21477 cat >>conftest.$ac_ext <<_ACEOF
21478 /* end confdefs.h. */
21479 #if defined(CRAY) && ! defined(CRAY2)
21486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21487 $EGREP "webecray" >/dev/null 2>&1; then
21495 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21496 echo "${ECHO_T}$ac_cv_os_cray" >&6
21497 if test $ac_cv_os_cray = yes; then
21498 for ac_func in _getb67 GETB67 getb67; do
21499 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21500 echo "$as_me:$LINENO: checking for $ac_func" >&5
21501 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21502 if eval "test \"\${$as_ac_var+set}\" = set"; then
21503 echo $ECHO_N "(cached) $ECHO_C" >&6
21505 cat >conftest.$ac_ext <<_ACEOF
21506 #line $LINENO "configure"
21509 cat confdefs.h >>conftest.$ac_ext
21510 cat >>conftest.$ac_ext <<_ACEOF
21511 /* end confdefs.h. */
21512 /* System header to define __stub macros and hopefully few prototypes,
21513 which can conflict with char $ac_func (); below.
21514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21515 <limits.h> exists even on freestanding compilers. */
21517 # include <limits.h>
21519 # include <assert.h>
21521 /* Override any gcc2 internal prototype to avoid an error. */
21526 /* We use char because int might match the return type of a gcc2
21527 builtin and then its argument prototype would still apply. */
21529 /* The GNU C library defines this for functions which it implements
21530 to always fail with ENOSYS. Some functions are actually named
21531 something starting with __ and the normal name is an alias. */
21532 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21535 char (*f) () = $ac_func;
21544 return f != $ac_func;
21549 rm -f conftest.$ac_objext conftest$ac_exeext
21550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21551 (eval $ac_link) 2>&5
21553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554 (exit $ac_status); } &&
21555 { ac_try='test -s conftest$ac_exeext'
21556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21557 (eval $ac_try) 2>&5
21559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560 (exit $ac_status); }; }; then
21561 eval "$as_ac_var=yes"
21563 echo "$as_me: failed program was:" >&5
21564 sed 's/^/| /' conftest.$ac_ext >&5
21566 eval "$as_ac_var=no"
21568 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21571 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21572 if test `eval echo '${'$as_ac_var'}'` = yes; then
21574 cat >>confdefs.h <<_ACEOF
21575 #define CRAY_STACKSEG_END $ac_func
21584 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21585 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21586 if test "${ac_cv_c_stack_direction+set}" = set; then
21587 echo $ECHO_N "(cached) $ECHO_C" >&6
21589 if test "$cross_compiling" = yes; then
21590 ac_cv_c_stack_direction=0
21592 cat >conftest.$ac_ext <<_ACEOF
21593 #line $LINENO "configure"
21596 cat confdefs.h >>conftest.$ac_ext
21597 cat >>conftest.$ac_ext <<_ACEOF
21598 /* end confdefs.h. */
21600 find_stack_direction ()
21602 static char *addr = 0;
21607 return find_stack_direction ();
21610 return (&dummy > addr) ? 1 : -1;
21616 exit (find_stack_direction () < 0);
21619 rm -f conftest$ac_exeext
21620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21621 (eval $ac_link) 2>&5
21623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21624 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21626 (eval $ac_try) 2>&5
21628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629 (exit $ac_status); }; }; then
21630 ac_cv_c_stack_direction=1
21632 echo "$as_me: program exited with status $ac_status" >&5
21633 echo "$as_me: failed program was:" >&5
21634 sed 's/^/| /' conftest.$ac_ext >&5
21636 ( exit $ac_status )
21637 ac_cv_c_stack_direction=-1
21639 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21642 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21643 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21645 cat >>confdefs.h <<_ACEOF
21646 #define STACK_DIRECTION $ac_cv_c_stack_direction
21654 for ac_header in stdlib.h unistd.h
21656 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21658 echo "$as_me:$LINENO: checking for $ac_header" >&5
21659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21661 echo $ECHO_N "(cached) $ECHO_C" >&6
21663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21664 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21666 # Is the header compilable?
21667 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21668 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21669 cat >conftest.$ac_ext <<_ACEOF
21670 #line $LINENO "configure"
21673 cat confdefs.h >>conftest.$ac_ext
21674 cat >>conftest.$ac_ext <<_ACEOF
21675 /* end confdefs.h. */
21676 $ac_includes_default
21677 #include <$ac_header>
21679 rm -f conftest.$ac_objext
21680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21681 (eval $ac_compile) 2>&5
21683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684 (exit $ac_status); } &&
21685 { ac_try='test -s conftest.$ac_objext'
21686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21687 (eval $ac_try) 2>&5
21689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690 (exit $ac_status); }; }; then
21691 ac_header_compiler=yes
21693 echo "$as_me: failed program was:" >&5
21694 sed 's/^/| /' conftest.$ac_ext >&5
21696 ac_header_compiler=no
21698 rm -f conftest.$ac_objext conftest.$ac_ext
21699 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21700 echo "${ECHO_T}$ac_header_compiler" >&6
21702 # Is the header present?
21703 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21704 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21705 cat >conftest.$ac_ext <<_ACEOF
21706 #line $LINENO "configure"
21709 cat confdefs.h >>conftest.$ac_ext
21710 cat >>conftest.$ac_ext <<_ACEOF
21711 /* end confdefs.h. */
21712 #include <$ac_header>
21714 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21715 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21717 grep -v '^ *+' conftest.er1 >conftest.err
21719 cat conftest.err >&5
21720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21721 (exit $ac_status); } >/dev/null; then
21722 if test -s conftest.err; then
21723 ac_cpp_err=$ac_c_preproc_warn_flag
21730 if test -z "$ac_cpp_err"; then
21731 ac_header_preproc=yes
21733 echo "$as_me: failed program was:" >&5
21734 sed 's/^/| /' conftest.$ac_ext >&5
21736 ac_header_preproc=no
21738 rm -f conftest.err conftest.$ac_ext
21739 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21740 echo "${ECHO_T}$ac_header_preproc" >&6
21742 # So? What about this header?
21743 case $ac_header_compiler:$ac_header_preproc in
21745 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21746 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21748 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21751 ## ------------------------------------ ##
21752 ## Report this to bug-autoconf@gnu.org. ##
21753 ## ------------------------------------ ##
21756 sed "s/^/$as_me: WARNING: /" >&2
21759 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21760 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21761 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21762 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21764 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21767 ## ------------------------------------ ##
21768 ## Report this to bug-autoconf@gnu.org. ##
21769 ## ------------------------------------ ##
21772 sed "s/^/$as_me: WARNING: /" >&2
21775 echo "$as_me:$LINENO: checking for $ac_header" >&5
21776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21778 echo $ECHO_N "(cached) $ECHO_C" >&6
21780 eval "$as_ac_Header=$ac_header_preproc"
21782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21783 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21787 cat >>confdefs.h <<_ACEOF
21788 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21796 for ac_func in getpagesize
21798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21799 echo "$as_me:$LINENO: checking for $ac_func" >&5
21800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21801 if eval "test \"\${$as_ac_var+set}\" = set"; then
21802 echo $ECHO_N "(cached) $ECHO_C" >&6
21804 cat >conftest.$ac_ext <<_ACEOF
21805 #line $LINENO "configure"
21808 cat confdefs.h >>conftest.$ac_ext
21809 cat >>conftest.$ac_ext <<_ACEOF
21810 /* end confdefs.h. */
21811 /* System header to define __stub macros and hopefully few prototypes,
21812 which can conflict with char $ac_func (); below.
21813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21814 <limits.h> exists even on freestanding compilers. */
21816 # include <limits.h>
21818 # include <assert.h>
21820 /* Override any gcc2 internal prototype to avoid an error. */
21825 /* We use char because int might match the return type of a gcc2
21826 builtin and then its argument prototype would still apply. */
21828 /* The GNU C library defines this for functions which it implements
21829 to always fail with ENOSYS. Some functions are actually named
21830 something starting with __ and the normal name is an alias. */
21831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21834 char (*f) () = $ac_func;
21843 return f != $ac_func;
21848 rm -f conftest.$ac_objext conftest$ac_exeext
21849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21850 (eval $ac_link) 2>&5
21852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21853 (exit $ac_status); } &&
21854 { ac_try='test -s conftest$ac_exeext'
21855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21856 (eval $ac_try) 2>&5
21858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21859 (exit $ac_status); }; }; then
21860 eval "$as_ac_var=yes"
21862 echo "$as_me: failed program was:" >&5
21863 sed 's/^/| /' conftest.$ac_ext >&5
21865 eval "$as_ac_var=no"
21867 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21870 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21871 if test `eval echo '${'$as_ac_var'}'` = yes; then
21872 cat >>confdefs.h <<_ACEOF
21873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21879 echo "$as_me:$LINENO: checking for working mmap" >&5
21880 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21881 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21882 echo $ECHO_N "(cached) $ECHO_C" >&6
21884 if test "$cross_compiling" = yes; then
21885 ac_cv_func_mmap_fixed_mapped=no
21887 cat >conftest.$ac_ext <<_ACEOF
21888 #line $LINENO "configure"
21891 cat confdefs.h >>conftest.$ac_ext
21892 cat >>conftest.$ac_ext <<_ACEOF
21893 /* end confdefs.h. */
21894 $ac_includes_default
21895 /* malloc might have been renamed as rpl_malloc. */
21898 /* Thanks to Mike Haertel and Jim Avera for this test.
21899 Here is a matrix of mmap possibilities:
21900 mmap private not fixed
21901 mmap private fixed at somewhere currently unmapped
21902 mmap private fixed at somewhere already mapped
21903 mmap shared not fixed
21904 mmap shared fixed at somewhere currently unmapped
21905 mmap shared fixed at somewhere already mapped
21906 For private mappings, we should verify that changes cannot be read()
21907 back from the file, nor mmap's back from the file at a different
21908 address. (There have been systems where private was not correctly
21909 implemented like the infamous i386 svr4.0, and systems where the
21910 VM page cache was not coherent with the file system buffer cache
21911 like early versions of FreeBSD and possibly contemporary NetBSD.)
21912 For shared mappings, we should conversely verify that changes get
21913 propagated back to all the places they're supposed to be.
21915 Grep wants private fixed already mapped.
21916 The main things grep needs to know about mmap are:
21917 * does it exist and is it safe to write into the mmap'd area
21918 * how to use it (BSD variants) */
21921 #include <sys/mman.h>
21923 #if !STDC_HEADERS && !HAVE_STDLIB_H
21927 /* This mess was copied from the GNU getpagesize.h. */
21928 #if !HAVE_GETPAGESIZE
21929 /* Assume that all systems that can run configure have sys/param.h. */
21930 # if !HAVE_SYS_PARAM_H
21931 # define HAVE_SYS_PARAM_H 1
21934 # ifdef _SC_PAGESIZE
21935 # define getpagesize() sysconf(_SC_PAGESIZE)
21936 # else /* no _SC_PAGESIZE */
21937 # if HAVE_SYS_PARAM_H
21938 # include <sys/param.h>
21939 # ifdef EXEC_PAGESIZE
21940 # define getpagesize() EXEC_PAGESIZE
21941 # else /* no EXEC_PAGESIZE */
21943 # define getpagesize() NBPG * CLSIZE
21946 # endif /* no CLSIZE */
21947 # else /* no NBPG */
21949 # define getpagesize() NBPC
21950 # else /* no NBPC */
21952 # define getpagesize() PAGESIZE
21953 # endif /* PAGESIZE */
21954 # endif /* no NBPC */
21955 # endif /* no NBPG */
21956 # endif /* no EXEC_PAGESIZE */
21957 # else /* no HAVE_SYS_PARAM_H */
21958 # define getpagesize() 8192 /* punt totally */
21959 # endif /* no HAVE_SYS_PARAM_H */
21960 # endif /* no _SC_PAGESIZE */
21962 #endif /* no HAVE_GETPAGESIZE */
21967 char *data, *data2, *data3;
21971 pagesize = getpagesize ();
21973 /* First, make a file with some known garbage in it. */
21974 data = (char *) malloc (pagesize);
21977 for (i = 0; i < pagesize; ++i)
21978 *(data + i) = rand ();
21980 fd = creat ("conftest.mmap", 0600);
21983 if (write (fd, data, pagesize) != pagesize)
21987 /* Next, try to mmap the file at a fixed address which already has
21988 something else allocated at it. If we can, also make sure that
21989 we see the same garbage. */
21990 fd = open ("conftest.mmap", O_RDWR);
21993 data2 = (char *) malloc (2 * pagesize);
21996 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21997 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21998 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22000 for (i = 0; i < pagesize; ++i)
22001 if (*(data + i) != *(data2 + i))
22004 /* Finally, make sure that changes to the mapped area do not
22005 percolate back to the file as seen by read(). (This is a bug on
22006 some variants of i386 svr4.0.) */
22007 for (i = 0; i < pagesize; ++i)
22008 *(data2 + i) = *(data2 + i) + 1;
22009 data3 = (char *) malloc (pagesize);
22012 if (read (fd, data3, pagesize) != pagesize)
22014 for (i = 0; i < pagesize; ++i)
22015 if (*(data + i) != *(data3 + i))
22021 rm -f conftest$ac_exeext
22022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22023 (eval $ac_link) 2>&5
22025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22026 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22028 (eval $ac_try) 2>&5
22030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22031 (exit $ac_status); }; }; then
22032 ac_cv_func_mmap_fixed_mapped=yes
22034 echo "$as_me: program exited with status $ac_status" >&5
22035 echo "$as_me: failed program was:" >&5
22036 sed 's/^/| /' conftest.$ac_ext >&5
22038 ( exit $ac_status )
22039 ac_cv_func_mmap_fixed_mapped=no
22041 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22044 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22045 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22046 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22048 cat >>confdefs.h <<\_ACEOF
22049 #define HAVE_MMAP 1
22053 rm -f conftest.mmap
22055 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
22057 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
22058 echo "$as_me: WARNING: mmap() required but not found" >&2;}
22060 echo "$as_me:$LINENO: checking for mmap of files" >&5
22061 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22062 if test "${ac_cv_func_mmap_file+set}" = set; then
22063 echo $ECHO_N "(cached) $ECHO_C" >&6
22068 ac_cpp='$CPP $CPPFLAGS'
22069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22073 if test "$cross_compiling" = yes; then
22074 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22075 See \`config.log' for more details." >&5
22076 echo "$as_me: error: cannot run test program while cross compiling
22077 See \`config.log' for more details." >&2;}
22078 { (exit 1); exit 1; }; }
22080 cat >conftest.$ac_ext <<_ACEOF
22081 #line $LINENO "configure"
22084 cat confdefs.h >>conftest.$ac_ext
22085 cat >>conftest.$ac_ext <<_ACEOF
22086 /* end confdefs.h. */
22088 #ifdef HAVE_SYS_TYPES_H
22089 #include <sys/types.h>
22092 #ifdef HAVE_SYS_MMAN_H
22093 #include <sys/mman.h>
22096 #ifdef HAVE_FCNTL_H
22102 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
22104 rm -f conftest$ac_exeext
22105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22106 (eval $ac_link) 2>&5
22108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22109 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22111 (eval $ac_try) 2>&5
22113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114 (exit $ac_status); }; }; then
22115 ac_cv_func_mmap_file=yes
22117 echo "$as_me: program exited with status $ac_status" >&5
22118 echo "$as_me: failed program was:" >&5
22119 sed 's/^/| /' conftest.$ac_ext >&5
22121 ( exit $ac_status )
22122 ac_cv_func_mmap_file=no
22124 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22127 ac_cpp='$CPP $CPPFLAGS'
22128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22134 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22135 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22136 if test "$ac_cv_func_mmap_file" = yes; then
22138 cat >>confdefs.h <<\_ACEOF
22139 #define HAVE_MMAP_FILE
22146 if test "$ac_cv_func_mmap_file" = "no"
22148 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
22149 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
22151 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22152 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22153 if test "${ac_cv_header_mmap_anon+set}" = set; then
22154 echo $ECHO_N "(cached) $ECHO_C" >&6
22159 ac_cpp='$CPP $CPPFLAGS'
22160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22164 cat >conftest.$ac_ext <<_ACEOF
22165 #line $LINENO "configure"
22168 cat confdefs.h >>conftest.$ac_ext
22169 cat >>conftest.$ac_ext <<_ACEOF
22170 /* end confdefs.h. */
22171 #include <sys/mman.h>
22172 #include <unistd.h>
22177 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22182 rm -f conftest.$ac_objext
22183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22184 (eval $ac_compile) 2>&5
22186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22187 (exit $ac_status); } &&
22188 { ac_try='test -s conftest.$ac_objext'
22189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22190 (eval $ac_try) 2>&5
22192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22193 (exit $ac_status); }; }; then
22194 ac_cv_header_mmap_anon=yes
22196 echo "$as_me: failed program was:" >&5
22197 sed 's/^/| /' conftest.$ac_ext >&5
22199 ac_cv_header_mmap_anon=no
22201 rm -f conftest.$ac_objext conftest.$ac_ext
22203 ac_cpp='$CPP $CPPFLAGS'
22204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22210 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22211 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22212 if test "$ac_cv_header_mmap_anon" = yes; then
22214 cat >>confdefs.h <<\_ACEOF
22215 #define HAVE_MMAP_ANONYMOUS
22220 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22221 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22222 if test "${ac_cv_type_signal+set}" = set; then
22223 echo $ECHO_N "(cached) $ECHO_C" >&6
22225 cat >conftest.$ac_ext <<_ACEOF
22226 #line $LINENO "configure"
22229 cat confdefs.h >>conftest.$ac_ext
22230 cat >>conftest.$ac_ext <<_ACEOF
22231 /* end confdefs.h. */
22232 #include <sys/types.h>
22233 #include <signal.h>
22238 extern "C" void (*signal (int, void (*)(int)))(int);
22240 void (*signal ()) ();
22251 rm -f conftest.$ac_objext
22252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22253 (eval $ac_compile) 2>&5
22255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256 (exit $ac_status); } &&
22257 { ac_try='test -s conftest.$ac_objext'
22258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22259 (eval $ac_try) 2>&5
22261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22262 (exit $ac_status); }; }; then
22263 ac_cv_type_signal=void
22265 echo "$as_me: failed program was:" >&5
22266 sed 's/^/| /' conftest.$ac_ext >&5
22268 ac_cv_type_signal=int
22270 rm -f conftest.$ac_objext conftest.$ac_ext
22272 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22273 echo "${ECHO_T}$ac_cv_type_signal" >&6
22275 cat >>confdefs.h <<_ACEOF
22276 #define RETSIGTYPE $ac_cv_type_signal
22289 for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
22291 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22292 echo "$as_me:$LINENO: checking for $ac_func" >&5
22293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22294 if eval "test \"\${$as_ac_var+set}\" = set"; then
22295 echo $ECHO_N "(cached) $ECHO_C" >&6
22297 cat >conftest.$ac_ext <<_ACEOF
22298 #line $LINENO "configure"
22301 cat confdefs.h >>conftest.$ac_ext
22302 cat >>conftest.$ac_ext <<_ACEOF
22303 /* end confdefs.h. */
22304 /* System header to define __stub macros and hopefully few prototypes,
22305 which can conflict with char $ac_func (); below.
22306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22307 <limits.h> exists even on freestanding compilers. */
22309 # include <limits.h>
22311 # include <assert.h>
22313 /* Override any gcc2 internal prototype to avoid an error. */
22318 /* We use char because int might match the return type of a gcc2
22319 builtin and then its argument prototype would still apply. */
22321 /* The GNU C library defines this for functions which it implements
22322 to always fail with ENOSYS. Some functions are actually named
22323 something starting with __ and the normal name is an alias. */
22324 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22327 char (*f) () = $ac_func;
22336 return f != $ac_func;
22341 rm -f conftest.$ac_objext conftest$ac_exeext
22342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22343 (eval $ac_link) 2>&5
22345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346 (exit $ac_status); } &&
22347 { ac_try='test -s conftest$ac_exeext'
22348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22349 (eval $ac_try) 2>&5
22351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22352 (exit $ac_status); }; }; then
22353 eval "$as_ac_var=yes"
22355 echo "$as_me: failed program was:" >&5
22356 sed 's/^/| /' conftest.$ac_ext >&5
22358 eval "$as_ac_var=no"
22360 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22363 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22364 if test `eval echo '${'$as_ac_var'}'` = yes; then
22365 cat >>confdefs.h <<_ACEOF
22366 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22372 echo "$as_me:$LINENO: checking for mprotect" >&5
22373 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22374 if test "${ac_cv_func_mprotect+set}" = set; then
22375 echo $ECHO_N "(cached) $ECHO_C" >&6
22377 cat >conftest.$ac_ext <<_ACEOF
22378 #line $LINENO "configure"
22381 cat confdefs.h >>conftest.$ac_ext
22382 cat >>conftest.$ac_ext <<_ACEOF
22383 /* end confdefs.h. */
22384 /* System header to define __stub macros and hopefully few prototypes,
22385 which can conflict with char mprotect (); below.
22386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22387 <limits.h> exists even on freestanding compilers. */
22389 # include <limits.h>
22391 # include <assert.h>
22393 /* Override any gcc2 internal prototype to avoid an error. */
22398 /* We use char because int might match the return type of a gcc2
22399 builtin and then its argument prototype would still apply. */
22401 /* The GNU C library defines this for functions which it implements
22402 to always fail with ENOSYS. Some functions are actually named
22403 something starting with __ and the normal name is an alias. */
22404 #if defined (__stub_mprotect) || defined (__stub___mprotect)
22407 char (*f) () = mprotect;
22416 return f != mprotect;
22421 rm -f conftest.$ac_objext conftest$ac_exeext
22422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22423 (eval $ac_link) 2>&5
22425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22426 (exit $ac_status); } &&
22427 { ac_try='test -s conftest$ac_exeext'
22428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22429 (eval $ac_try) 2>&5
22431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22432 (exit $ac_status); }; }; then
22433 ac_cv_func_mprotect=yes
22435 echo "$as_me: failed program was:" >&5
22436 sed 's/^/| /' conftest.$ac_ext >&5
22438 ac_cv_func_mprotect=no
22440 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22442 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22443 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22444 if test $ac_cv_func_mprotect = yes; then
22447 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22448 echo "$as_me: error: Function mprotect() required but not found" >&2;}
22449 { (exit 1); exit 1; }; }
22454 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
22455 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
22459 ac_cpp='$CPP $CPPFLAGS'
22460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22464 oldcflags="$CFLAGS"
22465 CFLAGS="$CFLAGS -Wl,-R."
22466 cat >conftest.$ac_ext <<_ACEOF
22467 int main() { return 0; }
22469 rm -f conftest.$ac_objext conftest$ac_exeext
22470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22471 (eval $ac_link) 2>&5
22473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474 (exit $ac_status); } &&
22475 { ac_try='test -s conftest$ac_exeext'
22476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22477 (eval $ac_try) 2>&5
22479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22480 (exit $ac_status); }; }; then
22481 ac_cv_link_use_r=yes
22483 echo "$as_me: failed program was:" >&5
22484 sed 's/^/| /' conftest.$ac_ext >&5
22486 ac_cv_link_use_r=no
22488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22489 CFLAGS="$oldcflags"
22491 ac_cpp='$CPP $CPPFLAGS'
22492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22496 echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
22497 echo "${ECHO_T}$ac_cv_link_use_r" >&6
22498 if test "$ac_cv_link_use_r" = yes
22501 cat >>confdefs.h <<\_ACEOF
22502 #define HAVE_LINK_R 1
22508 # Check whether --enable-optimized or --disable-optimized was given.
22509 if test "${enable_optimized+set}" = set; then
22510 enableval="$enable_optimized"
22515 if test ${enableval} = "no"
22520 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22524 # Check whether --enable-jit or --disable-jit was given.
22525 if test "${enable_jit+set}" = set; then
22526 enableval="$enable_jit"
22531 if test ${enableval} = "no"
22538 JIT=TARGET_HAS_JIT=1
22542 JIT=TARGET_HAS_JIT=1
22553 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22554 if test "${with_llvmgccdir+set}" = set; then
22555 withval="$with_llvmgccdir"
22556 LLVMGCCDIR=$withval
22559 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
22560 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
22562 if test -d "$LLVMGCCDIR"
22564 if test -x "$LLVMGCCDIR/bin/gcc"
22566 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
22570 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
22571 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
22572 if test "$LLVM_GCC_CHECK" = "no"
22576 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22577 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
22579 if test -x "$LLVM_GCC_CHECK"
22581 cp /dev/null conftest.c
22582 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
22588 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
22589 LLVMCC1=$llvmcc1path
22591 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
22592 LLVMCC1PLUS=$llvmcc1pluspath
22595 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
22596 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
22597 if test "$LLVM_GCC_SANE" = "no"
22602 echo "$as_me:$LINENO: checking for shared library suffix" >&5
22603 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
22604 eval "SHLIBEXT=$shrext"
22605 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
22606 echo "${ECHO_T}$SHLIBEXT" >&6
22610 cat >>confdefs.h <<_ACEOF
22611 #define SHLIBEXT "$SHLIBEXT"
22615 # Translate the various configuration directories and other basic
22616 # information into substitutions that will end up in config.h.in so
22617 # that these configured values can be hard-wired into a program.
22618 eval LLVM_PREFIX="${prefix}";
22619 eval LLVM_BINDIR="${prefix}/bin";
22620 eval LLVM_LIBDIR="${prefix}/lib";
22621 eval LLVM_DATADIR="${prefix}/data";
22622 eval LLVM_DOCSDIR="${prefix}/docs";
22623 eval LLVM_ETCDIR="${prefix}/etc";
22624 eval LLVM_INCLUDEDIR="${prefix}/include";
22625 eval LLVM_INFODIR="${prefix}/info";
22626 eval LLVM_MANDIR="${prefix}/man";
22627 LLVM_CONFIGTIME=`date`
22639 cat >>confdefs.h <<_ACEOF
22640 #define LLVM_PREFIX "$LLVM_PREFIX"
22644 cat >>confdefs.h <<_ACEOF
22645 #define LLVM_BINDIR "$LLVM_BINDIR"
22649 cat >>confdefs.h <<_ACEOF
22650 #define LLVM_LIBDIR "$LLVM_LIBDIR"
22654 cat >>confdefs.h <<_ACEOF
22655 #define LLVM_DATADIR "$LLVM_DATADIR"
22659 cat >>confdefs.h <<_ACEOF
22660 #define LLVM_DATADIR "$LLVM_DOCSDIR"
22664 cat >>confdefs.h <<_ACEOF
22665 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22669 cat >>confdefs.h <<_ACEOF
22670 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22674 cat >>confdefs.h <<_ACEOF
22675 #define LLVM_INFODIR "$LLVM_INFODIR"
22679 cat >>confdefs.h <<_ACEOF
22680 #define LLVM_MANDIR "$LLVM_MANDIR"
22684 cat >>confdefs.h <<_ACEOF
22685 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22689 cat >confcache <<\_ACEOF
22690 # This file is a shell script that caches the results of configure
22691 # tests run on this system so they can be shared between configure
22692 # scripts and configure runs, see configure's option --config-cache.
22693 # It is not useful on other systems. If it contains results you don't
22694 # want to keep, you may remove or edit it.
22696 # config.status only pays attention to the cache file if you give it
22697 # the --recheck option to rerun configure.
22699 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22700 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22701 # following values.
22705 # The following way of writing the cache mishandles newlines in values,
22706 # but we know of no workaround that is simple, portable, and efficient.
22707 # So, don't put newlines in cache variables' values.
22708 # Ultrix sh set writes to stderr and can't be redirected directly,
22709 # and sets the high bit in the cache file unless we assign to the vars.
22712 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22714 # `set' does not quote correctly, so add quotes (double-quote
22715 # substitution turns \\\\ into \\, and sed turns \\ into \).
22718 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22721 # `set' quotes correctly as required by POSIX, so do not add quotes.
22723 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22730 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22732 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22734 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22735 if test -w $cache_file; then
22736 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22737 cat confcache >$cache_file
22739 echo "not updating unwritable cache $cache_file"
22744 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22745 # Let make expand exec_prefix.
22746 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22748 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22749 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22750 # trailing colons and then remove the whole line if VPATH becomes empty
22751 # (actually we leave an empty line to preserve line numbers).
22752 if test "x$srcdir" = x.; then
22753 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22754 s/:*\$(srcdir):*/:/;
22755 s/:*\${srcdir}:*/:/;
22757 s/^\([^=]*=[ ]*\):*/\1/;
22763 DEFS=-DHAVE_CONFIG_H
22767 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22768 # 1. Remove the extension, and $U if already installed.
22769 ac_i=`echo "$ac_i" |
22770 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22772 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22773 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22775 LIBOBJS=$ac_libobjs
22777 LTLIBOBJS=$ac_ltlibobjs
22781 : ${CONFIG_STATUS=./config.status}
22782 ac_clean_files_save=$ac_clean_files
22783 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22784 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22785 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22786 cat >$CONFIG_STATUS <<_ACEOF
22788 # Generated by $as_me.
22789 # Run this file to recreate the current configuration.
22790 # Compiler output produced by configure, useful for debugging
22791 # configure, is in config.log if it exists.
22794 ac_cs_recheck=false
22796 SHELL=\${CONFIG_SHELL-$SHELL}
22799 cat >>$CONFIG_STATUS <<\_ACEOF
22800 ## --------------------- ##
22801 ## M4sh Initialization. ##
22802 ## --------------------- ##
22804 # Be Bourne compatible
22805 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22808 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22809 # is contrary to our usage. Disable this feature.
22810 alias -g '${1+"$@"}'='"$@"'
22811 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22815 # Support unset when possible.
22816 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22823 # Work around bugs in pre-3.0 UWIN ksh.
22824 $as_unset ENV MAIL MAILPATH
22831 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22832 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22833 LC_TELEPHONE LC_TIME
22835 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22836 eval $as_var=C; export $as_var
22842 # Required to use basename.
22843 if expr a : '\(a\)' >/dev/null 2>&1; then
22849 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22850 as_basename=basename
22856 # Name of the executable.
22857 as_me=`$as_basename "$0" ||
22858 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22859 X"$0" : 'X\(//\)$' \| \
22860 X"$0" : 'X\(/\)$' \| \
22861 . : '\(.\)' 2>/dev/null ||
22863 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22864 /^X\/\(\/\/\)$/{ s//\1/; q; }
22865 /^X\/\(\/\).*/{ s//\1/; q; }
22869 # PATH needs CR, and LINENO needs CR and PATH.
22870 # Avoid depending upon Character Ranges.
22871 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22872 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22873 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22874 as_cr_digits='0123456789'
22875 as_cr_alnum=$as_cr_Letters$as_cr_digits
22877 # The user is always right.
22878 if test "${PATH_SEPARATOR+set}" != set; then
22879 echo "#! /bin/sh" >conf$$.sh
22880 echo "exit 0" >>conf$$.sh
22882 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22891 as_lineno_1=$LINENO
22892 as_lineno_2=$LINENO
22893 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22894 test "x$as_lineno_1" != "x$as_lineno_2" &&
22895 test "x$as_lineno_3" = "x$as_lineno_2" || {
22896 # Find who we are. Look in the path if we contain no path at all
22899 *[\\/]* ) as_myself=$0 ;;
22900 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22901 for as_dir in $PATH
22904 test -z "$as_dir" && as_dir=.
22905 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22910 # We did not find ourselves, most probably we were run as `sh COMMAND'
22911 # in which case we are not to be found in the path.
22912 if test "x$as_myself" = x; then
22915 if test ! -f "$as_myself"; then
22916 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22917 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22918 { (exit 1); exit 1; }; }
22920 case $CONFIG_SHELL in
22922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22923 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22926 test -z "$as_dir" && as_dir=.
22927 for as_base in sh bash ksh sh5; do
22930 if ("$as_dir/$as_base" -c '
22931 as_lineno_1=$LINENO
22932 as_lineno_2=$LINENO
22933 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22934 test "x$as_lineno_1" != "x$as_lineno_2" &&
22935 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22936 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22937 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22938 CONFIG_SHELL=$as_dir/$as_base
22939 export CONFIG_SHELL
22940 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22948 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22949 # uniformly replaced by the line number. The first 'sed' inserts a
22950 # line-number line before each line; the second 'sed' does the real
22951 # work. The second script uses 'N' to pair each line-number line
22952 # with the numbered line, and appends trailing '-' during
22953 # substitution so that $LINENO is not a special case at line end.
22954 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22955 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22956 sed '=' <$as_myself |
22961 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22964 s,^['$as_cr_digits']*\n,,
22965 ' >$as_me.lineno &&
22966 chmod +x $as_me.lineno ||
22967 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22968 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22969 { (exit 1); exit 1; }; }
22971 # Don't try to exec as it changes $[0], causing all sort of problems
22972 # (the dirname of $[0] is not the place where we might find the
22973 # original and so on. Autoconf is especially sensible to this).
22975 # Exit status is that of the last command.
22980 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22981 *c*,-n*) ECHO_N= ECHO_C='
22983 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22984 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22987 if expr a : '\(a\)' >/dev/null 2>&1; then
22993 rm -f conf$$ conf$$.exe conf$$.file
22995 if ln -s conf$$.file conf$$ 2>/dev/null; then
22996 # We could just check for DJGPP; but this test a) works b) is more generic
22997 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22998 if test -f conf$$.exe; then
22999 # Don't use ln at all; we don't have any links
23004 elif ln conf$$.file conf$$ 2>/dev/null; then
23009 rm -f conf$$ conf$$.exe conf$$.file
23011 if mkdir -p . 2>/dev/null; then
23017 as_executable_p="test -f"
23019 # Sed expression to map a string onto a valid CPP name.
23020 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23022 # Sed expression to map a string onto a valid variable name.
23023 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23027 # We need space, tab and new line, in precisely that order.
23037 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23038 # report actual input values of CONFIG_FILES etc. instead of their
23039 # values after options handling. Logging --version etc. is OK.
23043 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23044 ## Running $as_me. ##
23049 This file was extended by LLVM $as_me 1.4, which was
23050 generated by GNU Autoconf 2.57. Invocation command line was
23052 CONFIG_FILES = $CONFIG_FILES
23053 CONFIG_HEADERS = $CONFIG_HEADERS
23054 CONFIG_LINKS = $CONFIG_LINKS
23055 CONFIG_COMMANDS = $CONFIG_COMMANDS
23059 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23063 # Files that config.status was made for.
23064 if test -n "$ac_config_files"; then
23065 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23068 if test -n "$ac_config_headers"; then
23069 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23072 if test -n "$ac_config_links"; then
23073 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23076 if test -n "$ac_config_commands"; then
23077 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23080 cat >>$CONFIG_STATUS <<\_ACEOF
23083 \`$as_me' instantiates files from templates according to the
23084 current configuration.
23086 Usage: $0 [OPTIONS] [FILE]...
23088 -h, --help print this help, then exit
23089 -V, --version print version number, then exit
23090 -q, --quiet do not print progress messages
23091 -d, --debug don't remove temporary files
23092 --recheck update $as_me by reconfiguring in the same conditions
23093 --file=FILE[:TEMPLATE]
23094 instantiate the configuration file FILE
23095 --header=FILE[:TEMPLATE]
23096 instantiate the configuration header FILE
23098 Configuration files:
23101 Configuration headers:
23104 Configuration links:
23107 Configuration commands:
23110 Report bugs to <bug-autoconf@gnu.org>."
23113 cat >>$CONFIG_STATUS <<_ACEOF
23115 LLVM config.status 1.4
23116 configured by $0, generated by GNU Autoconf 2.57,
23117 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23119 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23120 Free Software Foundation, Inc.
23121 This config.status script is free software; the Free Software Foundation
23122 gives unlimited permission to copy, distribute and modify it."
23127 cat >>$CONFIG_STATUS <<\_ACEOF
23128 # If no file are specified by the user, then we need to provide default
23129 # value. By we need to know if files were specified by the user.
23135 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23136 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23144 *) # This is not an option, so the user has probably given explicit
23147 ac_need_defaults=false;;
23151 # Handling of the options.
23153 cat >>$CONFIG_STATUS <<\_ACEOF
23154 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23156 --version | --vers* | -V )
23157 echo "$ac_cs_version"; exit 0 ;;
23159 # Conflict between --help and --header
23160 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23161 Try \`$0 --help' for more information." >&5
23162 echo "$as_me: error: ambiguous option: $1
23163 Try \`$0 --help' for more information." >&2;}
23164 { (exit 1); exit 1; }; };;
23165 --help | --hel | -h )
23166 echo "$ac_cs_usage"; exit 0 ;;
23167 --debug | --d* | -d )
23169 --file | --fil | --fi | --f )
23171 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23172 ac_need_defaults=false;;
23173 --header | --heade | --head | --hea )
23175 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23176 ac_need_defaults=false;;
23177 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23178 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23181 # This is an error.
23182 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23183 Try \`$0 --help' for more information." >&5
23184 echo "$as_me: error: unrecognized option: $1
23185 Try \`$0 --help' for more information." >&2;}
23186 { (exit 1); exit 1; }; } ;;
23188 *) ac_config_targets="$ac_config_targets $1" ;;
23194 ac_configure_extra_args=
23196 if $ac_cs_silent; then
23198 ac_configure_extra_args="$ac_configure_extra_args --silent"
23202 cat >>$CONFIG_STATUS <<_ACEOF
23203 if \$ac_cs_recheck; then
23204 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23205 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23210 cat >>$CONFIG_STATUS <<_ACEOF
23212 # INIT-COMMANDS section.
23215 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23216 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23217 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
23218 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23219 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23220 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23221 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23222 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
23223 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
23224 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23225 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23226 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23232 cat >>$CONFIG_STATUS <<\_ACEOF
23233 for ac_config_target in $ac_config_targets
23235 case "$ac_config_target" in
23236 # Handling of arguments.
23237 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23238 "include/llvm/Support/DataTypes.h" ) CONFIG_FILES="$CONFIG_FILES include/llvm/Support/DataTypes.h" ;;
23239 "include/llvm/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/llvm/Support/ThreadSupport.h" ;;
23240 "include/llvm/ADT/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/hash_map" ;;
23241 "include/llvm/ADT/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/hash_set" ;;
23242 "include/llvm/ADT/iterator" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/iterator" ;;
23243 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$platform_type" ;;
23244 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23245 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23246 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23247 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23248 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23249 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23250 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23251 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
23252 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
23253 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23254 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23255 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23256 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
23257 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23258 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23259 { (exit 1); exit 1; }; };;
23263 # If the user did not use the arguments to specify the items to instantiate,
23264 # then the envvar interface is used. Set only those that are not.
23265 # We use the long form for the default assignment because of an extremely
23266 # bizarre bug on SunOS 4.1.3.
23267 if $ac_need_defaults; then
23268 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23269 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23270 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
23271 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23274 # Have a temporary directory for convenience. Make it in the build tree
23275 # simply because there is no reason to put it here, and in addition,
23276 # creating and moving files from /tmp can sometimes cause problems.
23277 # Create a temporary directory, and hook for its removal unless debugging.
23280 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23281 trap '{ (exit 1); exit 1; }' 1 2 13 15
23284 # Create a (secure) tmp directory for tmp files.
23287 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23288 test -n "$tmp" && test -d "$tmp"
23291 tmp=./confstat$$-$RANDOM
23292 (umask 077 && mkdir $tmp)
23295 echo "$me: cannot create a temporary directory in ." >&2
23296 { (exit 1); exit 1; }
23301 cat >>$CONFIG_STATUS <<_ACEOF
23304 # CONFIG_FILES section.
23307 # No need to generate the scripts if there are no CONFIG_FILES.
23308 # This happens for instance when ./config.status config.h
23309 if test -n "\$CONFIG_FILES"; then
23310 # Protect against being on the right side of a sed subst in config.status.
23311 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23312 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23313 s,@SHELL@,$SHELL,;t t
23314 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23315 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23316 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23317 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23318 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23319 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23320 s,@exec_prefix@,$exec_prefix,;t t
23321 s,@prefix@,$prefix,;t t
23322 s,@program_transform_name@,$program_transform_name,;t t
23323 s,@bindir@,$bindir,;t t
23324 s,@sbindir@,$sbindir,;t t
23325 s,@libexecdir@,$libexecdir,;t t
23326 s,@datadir@,$datadir,;t t
23327 s,@sysconfdir@,$sysconfdir,;t t
23328 s,@sharedstatedir@,$sharedstatedir,;t t
23329 s,@localstatedir@,$localstatedir,;t t
23330 s,@libdir@,$libdir,;t t
23331 s,@includedir@,$includedir,;t t
23332 s,@oldincludedir@,$oldincludedir,;t t
23333 s,@infodir@,$infodir,;t t
23334 s,@mandir@,$mandir,;t t
23335 s,@build_alias@,$build_alias,;t t
23336 s,@host_alias@,$host_alias,;t t
23337 s,@target_alias@,$target_alias,;t t
23338 s,@DEFS@,$DEFS,;t t
23339 s,@ECHO_C@,$ECHO_C,;t t
23340 s,@ECHO_N@,$ECHO_N,;t t
23341 s,@ECHO_T@,$ECHO_T,;t t
23342 s,@LIBS@,$LIBS,;t t
23343 s,@subdirs@,$subdirs,;t t
23344 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23345 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23346 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23347 s,@build@,$build,;t t
23348 s,@build_cpu@,$build_cpu,;t t
23349 s,@build_vendor@,$build_vendor,;t t
23350 s,@build_os@,$build_os,;t t
23351 s,@host@,$host,;t t
23352 s,@host_cpu@,$host_cpu,;t t
23353 s,@host_vendor@,$host_vendor,;t t
23354 s,@host_os@,$host_os,;t t
23355 s,@target@,$target,;t t
23356 s,@target_cpu@,$target_cpu,;t t
23357 s,@target_vendor@,$target_vendor,;t t
23358 s,@target_os@,$target_os,;t t
23360 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
23361 s,@ARCH@,$ARCH,;t t
23363 s,@CXXFLAGS@,$CXXFLAGS,;t t
23364 s,@LDFLAGS@,$LDFLAGS,;t t
23365 s,@CPPFLAGS@,$CPPFLAGS,;t t
23366 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23367 s,@EXEEXT@,$EXEEXT,;t t
23368 s,@OBJEXT@,$OBJEXT,;t t
23370 s,@CFLAGS@,$CFLAGS,;t t
23371 s,@ac_ct_CC@,$ac_ct_CC,;t t
23373 s,@ifGNUmake@,$ifGNUmake,;t t
23375 s,@LEXLIB@,$LEXLIB,;t t
23376 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23377 s,@FLEX@,$FLEX,;t t
23378 s,@YACC@,$YACC,;t t
23379 s,@BISON@,$BISON,;t t
23380 s,@EGREP@,$EGREP,;t t
23381 s,@LN_S@,$LN_S,;t t
23382 s,@ECHO@,$ECHO,;t t
23384 s,@ac_ct_AR@,$ac_ct_AR,;t t
23385 s,@RANLIB@,$RANLIB,;t t
23386 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23387 s,@STRIP@,$STRIP,;t t
23388 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23389 s,@CXXCPP@,$CXXCPP,;t t
23391 s,@FFLAGS@,$FFLAGS,;t t
23392 s,@ac_ct_F77@,$ac_ct_F77,;t t
23393 s,@LIBTOOL@,$LIBTOOL,;t t
23395 s,@ETAGS@,$ETAGS,;t t
23396 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
23397 s,@PYTHON@,$PYTHON,;t t
23398 s,@QMTEST@,$QMTEST,;t t
23399 s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t
23400 s,@INCLUDE_SYS_TYPES_H@,$INCLUDE_SYS_TYPES_H,;t t
23401 s,@INCLUDE_INTTYPES_H@,$INCLUDE_INTTYPES_H,;t t
23402 s,@INCLUDE_STDINT_H@,$INCLUDE_STDINT_H,;t t
23403 s,@ENDIAN@,$ENDIAN,;t t
23404 s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t
23405 s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t
23406 s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t
23407 s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t
23408 s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t
23409 s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t
23410 s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
23411 s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
23412 s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
23413 s,@ALLOCA@,$ALLOCA,;t t
23414 s,@MMAP_FILE@,$MMAP_FILE,;t t
23415 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23417 s,@LLVMCC1@,$LLVMCC1,;t t
23418 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
23419 s,@SHLIBEXT@,$SHLIBEXT,;t t
23420 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
23421 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
23422 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
23423 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
23424 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
23425 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
23426 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
23427 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
23428 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
23429 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
23430 s,@LIBOBJS@,$LIBOBJS,;t t
23431 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23436 cat >>$CONFIG_STATUS <<\_ACEOF
23437 # Split the substitutions into bite-sized pieces for seds with
23438 # small command number limits, like on Digital OSF/1 and HP-UX.
23439 ac_max_sed_lines=48
23440 ac_sed_frag=1 # Number of current file.
23441 ac_beg=1 # First line for current file.
23442 ac_end=$ac_max_sed_lines # Line after last line for current file.
23445 while $ac_more_lines; do
23446 if test $ac_beg -gt 1; then
23447 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23449 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23451 if test ! -s $tmp/subs.frag; then
23452 ac_more_lines=false
23454 # The purpose of the label and of the branching condition is to
23455 # speed up the sed processing (if there are no `@' at all, there
23456 # is no need to browse any of the substitutions).
23457 # These are the two extra sed commands mentioned above.
23459 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23460 if test -z "$ac_sed_cmds"; then
23461 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23463 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23465 ac_sed_frag=`expr $ac_sed_frag + 1`
23467 ac_end=`expr $ac_end + $ac_max_sed_lines`
23470 if test -z "$ac_sed_cmds"; then
23473 fi # test -n "$CONFIG_FILES"
23476 cat >>$CONFIG_STATUS <<\_ACEOF
23477 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23478 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23480 - | *:- | *:-:* ) # input from stdin
23482 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23483 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23484 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23485 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23486 * ) ac_file_in=$ac_file.in ;;
23489 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23490 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23491 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23492 X"$ac_file" : 'X\(//\)[^/]' \| \
23493 X"$ac_file" : 'X\(//\)$' \| \
23494 X"$ac_file" : 'X\(/\)' \| \
23495 . : '\(.\)' 2>/dev/null ||
23497 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23498 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23499 /^X\(\/\/\)$/{ s//\1/; q; }
23500 /^X\(\/\).*/{ s//\1/; q; }
23502 { if $as_mkdir_p; then
23507 while test ! -d "$as_dir"; do
23508 as_dirs="$as_dir $as_dirs"
23509 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23510 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23511 X"$as_dir" : 'X\(//\)[^/]' \| \
23512 X"$as_dir" : 'X\(//\)$' \| \
23513 X"$as_dir" : 'X\(/\)' \| \
23514 . : '\(.\)' 2>/dev/null ||
23516 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23517 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23518 /^X\(\/\/\)$/{ s//\1/; q; }
23519 /^X\(\/\).*/{ s//\1/; q; }
23522 test ! -n "$as_dirs" || mkdir $as_dirs
23523 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23524 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23525 { (exit 1); exit 1; }; }; }
23529 if test "$ac_dir" != .; then
23530 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23531 # A "../" for each directory in $ac_dir_suffix.
23532 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23534 ac_dir_suffix= ac_top_builddir=
23538 .) # No --srcdir option. We are building in place.
23540 if test -z "$ac_top_builddir"; then
23543 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23545 [\\/]* | ?:[\\/]* ) # Absolute path.
23546 ac_srcdir=$srcdir$ac_dir_suffix;
23547 ac_top_srcdir=$srcdir ;;
23548 *) # Relative path.
23549 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23550 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23552 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23554 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23555 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23556 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23557 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23561 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23562 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23565 if test x"$ac_file" != x-; then
23566 { echo "$as_me:$LINENO: creating $ac_file" >&5
23567 echo "$as_me: creating $ac_file" >&6;}
23570 # Let's still pretend it is `configure' which instantiates (i.e., don't
23571 # use $as_me), people would be surprised to read:
23572 # /* config.h. Generated by config.status. */
23573 if test x"$ac_file" = x-; then
23576 configure_input="$ac_file. "
23578 configure_input=$configure_input"Generated from `echo $ac_file_in |
23579 sed 's,.*/,,'` by configure."
23581 # First look for the input files in the build tree, otherwise in the
23583 ac_file_inputs=`IFS=:
23584 for f in $ac_file_in; do
23586 -) echo $tmp/stdin ;;
23588 # Absolute (can't be DOS-style, as IFS=:)
23589 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23590 echo "$as_me: error: cannot find input file: $f" >&2;}
23591 { (exit 1); exit 1; }; }
23594 if test -f "$f"; then
23597 elif test -f "$srcdir/$f"; then
23602 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23603 echo "$as_me: error: cannot find input file: $f" >&2;}
23604 { (exit 1); exit 1; }; }
23607 done` || { (exit 1); exit 1; }
23609 cat >>$CONFIG_STATUS <<_ACEOF
23613 cat >>$CONFIG_STATUS <<\_ACEOF
23615 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23616 s,@configure_input@,$configure_input,;t t
23617 s,@srcdir@,$ac_srcdir,;t t
23618 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23619 s,@top_srcdir@,$ac_top_srcdir,;t t
23620 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23621 s,@builddir@,$ac_builddir,;t t
23622 s,@abs_builddir@,$ac_abs_builddir,;t t
23623 s,@top_builddir@,$ac_top_builddir,;t t
23624 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23625 s,@INSTALL@,$ac_INSTALL,;t t
23626 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23628 if test x"$ac_file" != x-; then
23629 mv $tmp/out $ac_file
23637 cat >>$CONFIG_STATUS <<\_ACEOF
23640 # CONFIG_HEADER section.
23643 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23644 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23646 # ac_d sets the value in "#define NAME VALUE" lines.
23647 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23648 ac_dB='[ ].*$,\1#\2'
23651 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23652 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23653 ac_uB='$,\1#\2define\3'
23657 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23658 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23660 - | *:- | *:-:* ) # input from stdin
23662 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23663 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23664 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23665 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23666 * ) ac_file_in=$ac_file.in ;;
23669 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23670 echo "$as_me: creating $ac_file" >&6;}
23672 # First look for the input files in the build tree, otherwise in the
23674 ac_file_inputs=`IFS=:
23675 for f in $ac_file_in; do
23677 -) echo $tmp/stdin ;;
23679 # Absolute (can't be DOS-style, as IFS=:)
23680 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23681 echo "$as_me: error: cannot find input file: $f" >&2;}
23682 { (exit 1); exit 1; }; }
23685 if test -f "$f"; then
23688 elif test -f "$srcdir/$f"; then
23693 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23694 echo "$as_me: error: cannot find input file: $f" >&2;}
23695 { (exit 1); exit 1; }; }
23698 done` || { (exit 1); exit 1; }
23699 # Remove the trailing spaces.
23700 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23704 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23705 # `conftest.undefs', that substitutes the proper values into
23706 # config.h.in to produce config.h. The first handles `#define'
23707 # templates, and the second `#undef' templates.
23708 # And first: Protect against being on the right side of a sed subst in
23709 # config.status. Protect against being in an unquoted here document
23710 # in config.status.
23711 rm -f conftest.defines conftest.undefs
23712 # Using a here document instead of a string reduces the quoting nightmare.
23713 # Putting comments in sed scripts is not portable.
23715 # `end' is used to avoid that the second main sed command (meant for
23716 # 0-ary CPP macros) applies to n-ary macro definitions.
23717 # See the Autoconf documentation for `clear'.
23718 cat >confdef2sed.sed <<\_ACEOF
23723 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23725 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23728 # If some macros were called several times there might be several times
23729 # the same #defines, which is useless. Nevertheless, we may not want to
23730 # sort them, since we want the *last* AC-DEFINE to be honored.
23731 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23732 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23733 rm -f confdef2sed.sed
23735 # This sed command replaces #undef with comments. This is necessary, for
23736 # example, in the case of _POSIX_SOURCE, which is predefined and required
23737 # on some systems where configure will not decide to define it.
23738 cat >>conftest.undefs <<\_ACEOF
23739 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23742 # Break up conftest.defines because some shells have a limit on the size
23743 # of here documents, and old seds have small limits too (100 cmds).
23744 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23745 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23746 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23747 echo ' :' >>$CONFIG_STATUS
23748 rm -f conftest.tail
23749 while grep . conftest.defines >/dev/null
23751 # Write a limited-size here document to $tmp/defines.sed.
23752 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23753 # Speed up: don't consider the non `#define' lines.
23754 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23755 # Work around the forget-to-reset-the-flag bug.
23756 echo 't clr' >>$CONFIG_STATUS
23757 echo ': clr' >>$CONFIG_STATUS
23758 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23760 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23762 mv $tmp/out $tmp/in
23764 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23765 rm -f conftest.defines
23766 mv conftest.tail conftest.defines
23768 rm -f conftest.defines
23769 echo ' fi # grep' >>$CONFIG_STATUS
23770 echo >>$CONFIG_STATUS
23772 # Break up conftest.undefs because some shells have a limit on the size
23773 # of here documents, and old seds have small limits too (100 cmds).
23774 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23775 rm -f conftest.tail
23776 while grep . conftest.undefs >/dev/null
23778 # Write a limited-size here document to $tmp/undefs.sed.
23779 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23780 # Speed up: don't consider the non `#undef'
23781 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23782 # Work around the forget-to-reset-the-flag bug.
23783 echo 't clr' >>$CONFIG_STATUS
23784 echo ': clr' >>$CONFIG_STATUS
23785 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23787 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23789 mv $tmp/out $tmp/in
23791 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23792 rm -f conftest.undefs
23793 mv conftest.tail conftest.undefs
23795 rm -f conftest.undefs
23797 cat >>$CONFIG_STATUS <<\_ACEOF
23798 # Let's still pretend it is `configure' which instantiates (i.e., don't
23799 # use $as_me), people would be surprised to read:
23800 # /* config.h. Generated by config.status. */
23801 if test x"$ac_file" = x-; then
23802 echo "/* Generated by configure. */" >$tmp/config.h
23804 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23806 cat $tmp/in >>$tmp/config.h
23808 if test x"$ac_file" != x-; then
23809 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23810 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23811 echo "$as_me: $ac_file is unchanged" >&6;}
23813 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23814 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23815 X"$ac_file" : 'X\(//\)[^/]' \| \
23816 X"$ac_file" : 'X\(//\)$' \| \
23817 X"$ac_file" : 'X\(/\)' \| \
23818 . : '\(.\)' 2>/dev/null ||
23820 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23821 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23822 /^X\(\/\/\)$/{ s//\1/; q; }
23823 /^X\(\/\).*/{ s//\1/; q; }
23825 { if $as_mkdir_p; then
23830 while test ! -d "$as_dir"; do
23831 as_dirs="$as_dir $as_dirs"
23832 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23833 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23834 X"$as_dir" : 'X\(//\)[^/]' \| \
23835 X"$as_dir" : 'X\(//\)$' \| \
23836 X"$as_dir" : 'X\(/\)' \| \
23837 . : '\(.\)' 2>/dev/null ||
23839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23840 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23841 /^X\(\/\/\)$/{ s//\1/; q; }
23842 /^X\(\/\).*/{ s//\1/; q; }
23845 test ! -n "$as_dirs" || mkdir $as_dirs
23846 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23847 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23848 { (exit 1); exit 1; }; }; }
23851 mv $tmp/config.h $ac_file
23855 rm -f $tmp/config.h
23859 cat >>$CONFIG_STATUS <<\_ACEOF
23862 # CONFIG_LINKS section.
23865 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
23866 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23867 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23869 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
23870 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
23872 if test ! -r $srcdir/$ac_source; then
23873 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
23874 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
23875 { (exit 1); exit 1; }; }
23879 # Make relative symlinks.
23880 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
23881 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23882 X"$ac_dest" : 'X\(//\)[^/]' \| \
23883 X"$ac_dest" : 'X\(//\)$' \| \
23884 X"$ac_dest" : 'X\(/\)' \| \
23885 . : '\(.\)' 2>/dev/null ||
23887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23888 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23889 /^X\(\/\/\)$/{ s//\1/; q; }
23890 /^X\(\/\).*/{ s//\1/; q; }
23892 { if $as_mkdir_p; then
23893 mkdir -p "$ac_dest_dir"
23895 as_dir="$ac_dest_dir"
23897 while test ! -d "$as_dir"; do
23898 as_dirs="$as_dir $as_dirs"
23899 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23900 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23901 X"$as_dir" : 'X\(//\)[^/]' \| \
23902 X"$as_dir" : 'X\(//\)$' \| \
23903 X"$as_dir" : 'X\(/\)' \| \
23904 . : '\(.\)' 2>/dev/null ||
23906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23907 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23908 /^X\(\/\/\)$/{ s//\1/; q; }
23909 /^X\(\/\).*/{ s//\1/; q; }
23912 test ! -n "$as_dirs" || mkdir $as_dirs
23913 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
23914 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
23915 { (exit 1); exit 1; }; }; }
23919 if test "$ac_dest_dir" != .; then
23920 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
23921 # A "../" for each directory in $ac_dir_suffix.
23922 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23924 ac_dir_suffix= ac_top_builddir=
23928 .) # No --srcdir option. We are building in place.
23930 if test -z "$ac_top_builddir"; then
23933 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23935 [\\/]* | ?:[\\/]* ) # Absolute path.
23936 ac_srcdir=$srcdir$ac_dir_suffix;
23937 ac_top_srcdir=$srcdir ;;
23938 *) # Relative path.
23939 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23940 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23942 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
23944 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
23945 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd ${ac_top_builddir}. && pwd`
23946 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
23947 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
23951 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
23952 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
23955 # Try a symlink, then a hard link, then a copy.
23956 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
23957 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
23958 cp -p $srcdir/$ac_source $ac_dest ||
23959 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
23960 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
23961 { (exit 1); exit 1; }; }
23964 cat >>$CONFIG_STATUS <<\_ACEOF
23967 # CONFIG_COMMANDS section.
23969 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23970 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23971 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23972 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23973 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23974 X"$ac_dest" : 'X\(//\)[^/]' \| \
23975 X"$ac_dest" : 'X\(//\)$' \| \
23976 X"$ac_dest" : 'X\(/\)' \| \
23977 . : '\(.\)' 2>/dev/null ||
23979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23980 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23981 /^X\(\/\/\)$/{ s//\1/; q; }
23982 /^X\(\/\).*/{ s//\1/; q; }
23986 if test "$ac_dir" != .; then
23987 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23988 # A "../" for each directory in $ac_dir_suffix.
23989 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23991 ac_dir_suffix= ac_top_builddir=
23995 .) # No --srcdir option. We are building in place.
23997 if test -z "$ac_top_builddir"; then
24000 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24002 [\\/]* | ?:[\\/]* ) # Absolute path.
24003 ac_srcdir=$srcdir$ac_dir_suffix;
24004 ac_top_srcdir=$srcdir ;;
24005 *) # Relative path.
24006 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24007 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24009 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24011 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24012 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24013 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24014 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24017 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24018 echo "$as_me: executing $ac_dest commands" >&6;}
24020 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24021 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24022 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
24023 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24024 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24025 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24026 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24027 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
24028 test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
24029 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24030 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24031 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24036 cat >>$CONFIG_STATUS <<\_ACEOF
24038 { (exit 0); exit 0; }
24040 chmod +x $CONFIG_STATUS
24041 ac_clean_files=$ac_clean_files_save
24044 # configure is writing to config.log, and then calls config.status.
24045 # config.status does its own redirection, appending to config.log.
24046 # Unfortunately, on DOS this fails, as config.log is still kept open
24047 # by configure, so config.status won't be able to write to it; its
24048 # output is simply discarded. So we exec the FD to /dev/null,
24049 # effectively closing config.log, so it can be properly (re)opened and
24050 # appended to by config.status. When coming back to configure, we
24051 # need to make the FD available again.
24052 if test "$no_create" != yes; then
24054 ac_config_status_args=
24055 test "$silent" = yes &&
24056 ac_config_status_args="$ac_config_status_args --quiet"
24058 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24060 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24061 # would make configure fail if this is the last instruction.
24062 $ac_cs_success || { (exit 1); exit 1; }
24066 # CONFIG_SUBDIRS section.
24068 if test "$no_recursion" != yes; then
24070 # Remove --cache-file and --srcdir arguments so they do not pile up.
24071 ac_sub_configure_args=
24073 for ac_arg in $ac_configure_args; do
24074 if test -n "$ac_prev"; then
24079 -cache-file | --cache-file | --cache-fil | --cache-fi \
24080 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24081 ac_prev=cache_file ;;
24082 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24083 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24086 --config-cache | -C)
24088 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24090 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24092 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24094 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24096 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24100 # Always prepend --prefix to ensure using the same prefix
24101 # in subdir configurations.
24102 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24105 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24107 # Do not complain, so a configure script can configure whichever
24108 # parts of a large source tree are present.
24109 test -d $srcdir/$ac_dir || continue
24111 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24112 echo "$as_me: configuring in $ac_dir" >&6;}
24113 { if $as_mkdir_p; then
24118 while test ! -d "$as_dir"; do
24119 as_dirs="$as_dir $as_dirs"
24120 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24121 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24122 X"$as_dir" : 'X\(//\)[^/]' \| \
24123 X"$as_dir" : 'X\(//\)$' \| \
24124 X"$as_dir" : 'X\(/\)' \| \
24125 . : '\(.\)' 2>/dev/null ||
24127 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24128 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24129 /^X\(\/\/\)$/{ s//\1/; q; }
24130 /^X\(\/\).*/{ s//\1/; q; }
24133 test ! -n "$as_dirs" || mkdir $as_dirs
24134 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24135 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24136 { (exit 1); exit 1; }; }; }
24140 if test "$ac_dir" != .; then
24141 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24142 # A "../" for each directory in $ac_dir_suffix.
24143 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24145 ac_dir_suffix= ac_top_builddir=
24149 .) # No --srcdir option. We are building in place.
24151 if test -z "$ac_top_builddir"; then
24154 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24156 [\\/]* | ?:[\\/]* ) # Absolute path.
24157 ac_srcdir=$srcdir$ac_dir_suffix;
24158 ac_top_srcdir=$srcdir ;;
24159 *) # Relative path.
24160 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24161 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24163 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24165 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24166 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24167 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24168 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24173 # Check for guested configure; otherwise get Cygnus style configure.
24174 if test -f $ac_srcdir/configure.gnu; then
24175 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
24176 elif test -f $ac_srcdir/configure; then
24177 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
24178 elif test -f $ac_srcdir/configure.in; then
24179 ac_sub_configure=$ac_configure
24181 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24182 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24186 # The recursion is here.
24187 if test -n "$ac_sub_configure"; then
24188 # Make the cache file name correct relative to the subdirectory.
24189 case $cache_file in
24190 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24191 *) # Relative path.
24192 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
24195 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24196 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24197 # The eval makes quoting arguments work.
24198 eval $ac_sub_configure $ac_sub_configure_args \
24199 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
24200 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24201 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24202 { (exit 1); exit 1; }; }
24210 if test $llvmgccwarn = yes
24212 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
24213 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
24214 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
24215 echo "$as_me: WARNING: ***** appear to be working." >&2;}
24216 { echo "$as_me:$LINENO: WARNING: ***** " >&5
24217 echo "$as_me: WARNING: ***** " >&2;}
24218 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
24219 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
24220 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
24221 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
24222 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
24223 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}