2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for LLVM 1.4.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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
223 test -d ./-p && rmdir ./-p
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
258 if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
261 elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
272 if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
283 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291 echo_test_string="`eval $cmd`" &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
308 # So, first we look for a working echo in the user's PATH.
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
361 # maybe with a smaller string...
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
377 # Oops. We lost completely, so just stick with echo.
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
396 tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
398 tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
416 SHELL=${CONFIG_SHELL-/bin/sh}
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete. It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
423 # Identity of this package.
425 PACKAGE_TARNAME='-llvm-'
426 PACKAGE_VERSION='1.4'
427 PACKAGE_STRING='LLVM 1.4'
428 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
430 ac_subdirs_all="$ac_subdirs_all projects/sample"
431 ac_subdirs_all="$ac_subdirs_all projects/Stacker"
432 ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
433 ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
434 ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
435 ac_subdirs_all="$ac_subdirs_all projects/llvm-java"
436 ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
437 ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
438 ac_subdirs_all="$ac_subdirs_all ${i}"
439 # Factoring default headers for most tests.
440 ac_includes_default="\
443 # include <sys/types.h>
446 # include <sys/stat.h>
457 # if !STDC_HEADERS && HAVE_MEMORY_H
463 # include <strings.h>
466 # include <inttypes.h>
476 ac_unique_file=""Makefile.config.in""
477 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 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 PAPIDIR SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
480 # Initialize some variables set by options.
482 ac_init_version=false
483 # The variables have the same names as the options, with
484 # dashes changed to underlines.
492 program_transform_name=s,x,x,
500 # Installation directory options.
501 # These are left unexpanded so users can "make install exec_prefix=/foo"
502 # and all the variables that are supposed to be based on exec_prefix
503 # by default will actually change.
504 # Use braces instead of parens because sh, perl, etc. also accept them.
505 bindir='${exec_prefix}/bin'
506 sbindir='${exec_prefix}/sbin'
507 libexecdir='${exec_prefix}/libexec'
508 datadir='${prefix}/share'
509 sysconfdir='${prefix}/etc'
510 sharedstatedir='${prefix}/com'
511 localstatedir='${prefix}/var'
512 libdir='${exec_prefix}/lib'
513 includedir='${prefix}/include'
514 oldincludedir='/usr/include'
515 infodir='${prefix}/info'
516 mandir='${prefix}/man'
521 # If the previous option needs an argument, assign it.
522 if test -n "$ac_prev"; then
523 eval "$ac_prev=\$ac_option"
528 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
530 # Accept the important Cygnus configure options, so we can diagnose typos.
534 -bindir | --bindir | --bindi | --bind | --bin | --bi)
536 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
539 -build | --build | --buil | --bui | --bu)
540 ac_prev=build_alias ;;
541 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
542 build_alias=$ac_optarg ;;
544 -cache-file | --cache-file | --cache-fil | --cache-fi \
545 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
546 ac_prev=cache_file ;;
547 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
548 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
549 cache_file=$ac_optarg ;;
552 cache_file=config.cache ;;
554 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
556 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
558 datadir=$ac_optarg ;;
560 -disable-* | --disable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 eval "enable_$ac_feature=no" ;;
569 -enable-* | --enable-*)
570 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
571 # Reject names that are not valid shell variable names.
572 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
573 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
574 { (exit 1); exit 1; }; }
575 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
577 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580 eval "enable_$ac_feature='$ac_optarg'" ;;
582 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
583 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
584 | --exec | --exe | --ex)
585 ac_prev=exec_prefix ;;
586 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
587 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
588 | --exec=* | --exe=* | --ex=*)
589 exec_prefix=$ac_optarg ;;
591 -gas | --gas | --ga | --g)
592 # Obsolete; use --with-gas.
595 -help | --help | --hel | --he | -h)
597 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
598 ac_init_help=recursive ;;
599 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
600 ac_init_help=short ;;
602 -host | --host | --hos | --ho)
603 ac_prev=host_alias ;;
604 -host=* | --host=* | --hos=* | --ho=*)
605 host_alias=$ac_optarg ;;
607 -includedir | --includedir | --includedi | --included | --include \
608 | --includ | --inclu | --incl | --inc)
609 ac_prev=includedir ;;
610 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
611 | --includ=* | --inclu=* | --incl=* | --inc=*)
612 includedir=$ac_optarg ;;
614 -infodir | --infodir | --infodi | --infod | --info | --inf)
616 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
617 infodir=$ac_optarg ;;
619 -libdir | --libdir | --libdi | --libd)
621 -libdir=* | --libdir=* | --libdi=* | --libd=*)
624 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
625 | --libexe | --libex | --libe)
626 ac_prev=libexecdir ;;
627 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
628 | --libexe=* | --libex=* | --libe=*)
629 libexecdir=$ac_optarg ;;
631 -localstatedir | --localstatedir | --localstatedi | --localstated \
632 | --localstate | --localstat | --localsta | --localst \
633 | --locals | --local | --loca | --loc | --lo)
634 ac_prev=localstatedir ;;
635 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
636 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
637 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
638 localstatedir=$ac_optarg ;;
640 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
642 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
646 # Obsolete; use --without-fp.
649 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
650 | --no-cr | --no-c | -n)
653 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
654 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
657 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
658 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
659 | --oldin | --oldi | --old | --ol | --o)
660 ac_prev=oldincludedir ;;
661 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
662 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
663 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
664 oldincludedir=$ac_optarg ;;
666 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
668 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
671 -program-prefix | --program-prefix | --program-prefi | --program-pref \
672 | --program-pre | --program-pr | --program-p)
673 ac_prev=program_prefix ;;
674 -program-prefix=* | --program-prefix=* | --program-prefi=* \
675 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
676 program_prefix=$ac_optarg ;;
678 -program-suffix | --program-suffix | --program-suffi | --program-suff \
679 | --program-suf | --program-su | --program-s)
680 ac_prev=program_suffix ;;
681 -program-suffix=* | --program-suffix=* | --program-suffi=* \
682 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
683 program_suffix=$ac_optarg ;;
685 -program-transform-name | --program-transform-name \
686 | --program-transform-nam | --program-transform-na \
687 | --program-transform-n | --program-transform- \
688 | --program-transform | --program-transfor \
689 | --program-transfo | --program-transf \
690 | --program-trans | --program-tran \
691 | --progr-tra | --program-tr | --program-t)
692 ac_prev=program_transform_name ;;
693 -program-transform-name=* | --program-transform-name=* \
694 | --program-transform-nam=* | --program-transform-na=* \
695 | --program-transform-n=* | --program-transform-=* \
696 | --program-transform=* | --program-transfor=* \
697 | --program-transfo=* | --program-transf=* \
698 | --program-trans=* | --program-tran=* \
699 | --progr-tra=* | --program-tr=* | --program-t=*)
700 program_transform_name=$ac_optarg ;;
702 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
703 | -silent | --silent | --silen | --sile | --sil)
706 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
708 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
710 sbindir=$ac_optarg ;;
712 -sharedstatedir | --sharedstatedir | --sharedstatedi \
713 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
714 | --sharedst | --shareds | --shared | --share | --shar \
716 ac_prev=sharedstatedir ;;
717 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
718 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
719 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
721 sharedstatedir=$ac_optarg ;;
723 -site | --site | --sit)
725 -site=* | --site=* | --sit=*)
728 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
730 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
733 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
734 | --syscon | --sysco | --sysc | --sys | --sy)
735 ac_prev=sysconfdir ;;
736 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
737 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
738 sysconfdir=$ac_optarg ;;
740 -target | --target | --targe | --targ | --tar | --ta | --t)
741 ac_prev=target_alias ;;
742 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
743 target_alias=$ac_optarg ;;
745 -v | -verbose | --verbose | --verbos | --verbo | --verb)
748 -version | --version | --versio | --versi | --vers | -V)
752 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
753 # Reject names that are not valid shell variable names.
754 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
755 { echo "$as_me: error: invalid package name: $ac_package" >&2
756 { (exit 1); exit 1; }; }
757 ac_package=`echo $ac_package| sed 's/-/_/g'`
759 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
762 eval "with_$ac_package='$ac_optarg'" ;;
764 -without-* | --without-*)
765 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
766 # Reject names that are not valid shell variable names.
767 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
768 { echo "$as_me: error: invalid package name: $ac_package" >&2
769 { (exit 1); exit 1; }; }
770 ac_package=`echo $ac_package | sed 's/-/_/g'`
771 eval "with_$ac_package=no" ;;
774 # Obsolete; use --with-x.
777 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
778 | --x-incl | --x-inc | --x-in | --x-i)
779 ac_prev=x_includes ;;
780 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
781 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
782 x_includes=$ac_optarg ;;
784 -x-libraries | --x-libraries | --x-librarie | --x-librari \
785 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
786 ac_prev=x_libraries ;;
787 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
788 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
789 x_libraries=$ac_optarg ;;
791 -*) { echo "$as_me: error: unrecognized option: $ac_option
792 Try \`$0 --help' for more information." >&2
793 { (exit 1); exit 1; }; }
797 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
798 # Reject names that are not valid shell variable names.
799 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
800 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
801 { (exit 1); exit 1; }; }
802 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
803 eval "$ac_envvar='$ac_optarg'"
807 # FIXME: should be removed in autoconf 3.0.
808 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
809 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
810 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
811 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
817 if test -n "$ac_prev"; then
818 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
819 { echo "$as_me: error: missing argument to $ac_option" >&2
820 { (exit 1); exit 1; }; }
823 # Be sure to have absolute paths.
824 for ac_var in exec_prefix prefix
826 eval ac_val=$`echo $ac_var`
828 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
829 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
830 { (exit 1); exit 1; }; };;
834 # Be sure to have absolute paths.
835 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
836 localstatedir libdir includedir oldincludedir infodir mandir
838 eval ac_val=$`echo $ac_var`
840 [\\/$]* | ?:[\\/]* ) ;;
841 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
842 { (exit 1); exit 1; }; };;
846 # There might be people who depend on the old broken behavior: `$host'
847 # used to hold the argument of --host etc.
848 # FIXME: To remove some day.
853 # FIXME: To remove some day.
854 if test "x$host_alias" != x; then
855 if test "x$build_alias" = x; then
856 cross_compiling=maybe
857 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
858 If a cross compiler is detected then cross compile mode will be used." >&2
859 elif test "x$build_alias" != "x$host_alias"; then
865 test -n "$host_alias" && ac_tool_prefix=$host_alias-
867 test "$silent" = yes && exec 6>/dev/null
870 # Find the source files, if location was not specified.
871 if test -z "$srcdir"; then
872 ac_srcdir_defaulted=yes
873 # Try the directory containing this script, then its parent.
874 ac_confdir=`(dirname "$0") 2>/dev/null ||
875 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
876 X"$0" : 'X\(//\)[^/]' \| \
877 X"$0" : 'X\(//\)$' \| \
878 X"$0" : 'X\(/\)' \| \
879 . : '\(.\)' 2>/dev/null ||
881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
882 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
883 /^X\(\/\/\)$/{ s//\1/; q; }
884 /^X\(\/\).*/{ s//\1/; q; }
887 if test ! -r $srcdir/$ac_unique_file; then
891 ac_srcdir_defaulted=no
893 if test ! -r $srcdir/$ac_unique_file; then
894 if test "$ac_srcdir_defaulted" = yes; then
895 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
896 { (exit 1); exit 1; }; }
898 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
899 { (exit 1); exit 1; }; }
902 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
903 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
904 { (exit 1); exit 1; }; }
905 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
906 ac_env_build_alias_set=${build_alias+set}
907 ac_env_build_alias_value=$build_alias
908 ac_cv_env_build_alias_set=${build_alias+set}
909 ac_cv_env_build_alias_value=$build_alias
910 ac_env_host_alias_set=${host_alias+set}
911 ac_env_host_alias_value=$host_alias
912 ac_cv_env_host_alias_set=${host_alias+set}
913 ac_cv_env_host_alias_value=$host_alias
914 ac_env_target_alias_set=${target_alias+set}
915 ac_env_target_alias_value=$target_alias
916 ac_cv_env_target_alias_set=${target_alias+set}
917 ac_cv_env_target_alias_value=$target_alias
918 ac_env_CXX_set=${CXX+set}
919 ac_env_CXX_value=$CXX
920 ac_cv_env_CXX_set=${CXX+set}
921 ac_cv_env_CXX_value=$CXX
922 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
923 ac_env_CXXFLAGS_value=$CXXFLAGS
924 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
925 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
926 ac_env_LDFLAGS_set=${LDFLAGS+set}
927 ac_env_LDFLAGS_value=$LDFLAGS
928 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
929 ac_cv_env_LDFLAGS_value=$LDFLAGS
930 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
931 ac_env_CPPFLAGS_value=$CPPFLAGS
932 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
933 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
934 ac_env_CC_set=${CC+set}
936 ac_cv_env_CC_set=${CC+set}
937 ac_cv_env_CC_value=$CC
938 ac_env_CFLAGS_set=${CFLAGS+set}
939 ac_env_CFLAGS_value=$CFLAGS
940 ac_cv_env_CFLAGS_set=${CFLAGS+set}
941 ac_cv_env_CFLAGS_value=$CFLAGS
942 ac_env_CPP_set=${CPP+set}
943 ac_env_CPP_value=$CPP
944 ac_cv_env_CPP_set=${CPP+set}
945 ac_cv_env_CPP_value=$CPP
946 ac_env_CXXCPP_set=${CXXCPP+set}
947 ac_env_CXXCPP_value=$CXXCPP
948 ac_cv_env_CXXCPP_set=${CXXCPP+set}
949 ac_cv_env_CXXCPP_value=$CXXCPP
950 ac_env_F77_set=${F77+set}
951 ac_env_F77_value=$F77
952 ac_cv_env_F77_set=${F77+set}
953 ac_cv_env_F77_value=$F77
954 ac_env_FFLAGS_set=${FFLAGS+set}
955 ac_env_FFLAGS_value=$FFLAGS
956 ac_cv_env_FFLAGS_set=${FFLAGS+set}
957 ac_cv_env_FFLAGS_value=$FFLAGS
960 # Report the --help message.
962 if test "$ac_init_help" = "long"; then
963 # Omit some internal or obsolete options to make the list less imposing.
964 # This message is too long to be a string in the A/UX 3.1 sh.
966 \`configure' configures LLVM 1.4 to adapt to many kinds of systems.
968 Usage: $0 [OPTION]... [VAR=VALUE]...
970 To assign environment variables (e.g., CC, CFLAGS...), specify them as
971 VAR=VALUE. See below for descriptions of some of the useful variables.
973 Defaults for the options are specified in brackets.
976 -h, --help display this help and exit
977 --help=short display options specific to this package
978 --help=recursive display the short help of all the included packages
979 -V, --version display version information and exit
980 -q, --quiet, --silent do not print \`checking...' messages
981 --cache-file=FILE cache test results in FILE [disabled]
982 -C, --config-cache alias for \`--cache-file=config.cache'
983 -n, --no-create do not create output files
984 --srcdir=DIR find the sources in DIR [configure dir or \`..']
989 Installation directories:
990 --prefix=PREFIX install architecture-independent files in PREFIX
992 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
995 By default, \`make install' will install all the files in
996 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
997 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
998 for instance \`--prefix=\$HOME'.
1000 For better control, use the options below.
1002 Fine tuning of the installation directories:
1003 --bindir=DIR user executables [EPREFIX/bin]
1004 --sbindir=DIR system admin executables [EPREFIX/sbin]
1005 --libexecdir=DIR program executables [EPREFIX/libexec]
1006 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1007 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1008 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1009 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1010 --libdir=DIR object code libraries [EPREFIX/lib]
1011 --includedir=DIR C header files [PREFIX/include]
1012 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1013 --infodir=DIR info documentation [PREFIX/info]
1014 --mandir=DIR man documentation [PREFIX/man]
1020 --build=BUILD configure for building on BUILD [guessed]
1021 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1022 --target=TARGET configure for building compilers for TARGET [HOST]
1026 if test -n "$ac_init_help"; then
1027 case $ac_init_help in
1028 short | recursive ) echo "Configuration of LLVM 1.4:";;
1033 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1034 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1035 --enable-shared[=PKGS]
1036 build shared libraries [default=yes]
1037 --enable-static[=PKGS]
1038 build static libraries [default=yes]
1039 --enable-fast-install[=PKGS]
1040 optimize for fast installation [default=yes]
1041 --disable-libtool-lock avoid locking (might break parallel builds)
1042 --enable-optimized Compile with optimizations enabled (default is NO)
1043 --enable-jit Enable Just In Time Compiling (default is YES)
1046 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1047 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1048 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1049 --with-pic try to use only PIC/non-PIC objects [default=use
1052 include additional configurations [automatic]
1053 --with-llvmgccdir Location of LLVM GCC front-end
1054 --with-papi Location of PAPI
1056 Some influential environment variables:
1057 CXX C++ compiler command
1058 CXXFLAGS C++ compiler flags
1059 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1060 nonstandard directory <lib dir>
1061 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1062 headers in a nonstandard directory <include dir>
1063 CC C compiler command
1064 CFLAGS C compiler flags
1066 CXXCPP C++ preprocessor
1067 F77 Fortran 77 compiler command
1068 FFLAGS Fortran 77 compiler flags
1070 Use these variables to override the choices made by `configure' or to help
1071 it to find libraries and programs with nonstandard names/locations.
1073 Report bugs to <llvmbugs@cs.uiuc.edu>.
1077 if test "$ac_init_help" = "recursive"; then
1078 # If there are subdirs, report their specific --help.
1080 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1081 test -d $ac_dir || continue
1084 if test "$ac_dir" != .; then
1085 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1086 # A "../" for each directory in $ac_dir_suffix.
1087 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1089 ac_dir_suffix= ac_top_builddir=
1093 .) # No --srcdir option. We are building in place.
1095 if test -z "$ac_top_builddir"; then
1098 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1100 [\\/]* | ?:[\\/]* ) # Absolute path.
1101 ac_srcdir=$srcdir$ac_dir_suffix;
1102 ac_top_srcdir=$srcdir ;;
1104 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1105 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1108 # Do not use `cd foo && pwd` to compute absolute paths, because
1109 # the directories may not exist.
1111 .) ac_abs_builddir="$ac_dir";;
1114 .) ac_abs_builddir=`pwd`;;
1115 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1116 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1119 case $ac_abs_builddir in
1120 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1122 case ${ac_top_builddir}. in
1123 .) ac_abs_top_builddir=$ac_abs_builddir;;
1124 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1125 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1128 case $ac_abs_builddir in
1129 .) ac_abs_srcdir=$ac_srcdir;;
1132 .) ac_abs_srcdir=$ac_abs_builddir;;
1133 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1134 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1137 case $ac_abs_builddir in
1138 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1140 case $ac_top_srcdir in
1141 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1142 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1143 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1148 # Check for guested configure; otherwise get Cygnus style configure.
1149 if test -f $ac_srcdir/configure.gnu; then
1151 $SHELL $ac_srcdir/configure.gnu --help=recursive
1152 elif test -f $ac_srcdir/configure; then
1154 $SHELL $ac_srcdir/configure --help=recursive
1155 elif test -f $ac_srcdir/configure.ac ||
1156 test -f $ac_srcdir/configure.in; then
1158 $ac_configure --help
1160 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1166 test -n "$ac_init_help" && exit 0
1167 if $ac_init_version; then
1170 generated by GNU Autoconf 2.59
1172 Copyright (C) 2003 Free Software Foundation, Inc.
1173 This configure script is free software; the Free Software Foundation
1174 gives unlimited permission to copy, distribute and modify it.
1180 This file contains any messages produced by compilers while
1181 running configure, to aid debugging if configure makes a mistake.
1183 It was created by LLVM $as_me 1.4, which was
1184 generated by GNU Autoconf 2.59. Invocation command line was
1195 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1196 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1197 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1198 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1199 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1201 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1202 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1204 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1205 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1206 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1207 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1208 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1209 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1210 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1218 test -z "$as_dir" && as_dir=.
1219 echo "PATH: $as_dir"
1234 # Keep a trace of the command line.
1235 # Strip out --no-create and --no-recursion so they do not pile up.
1236 # Strip out --silent because we don't want to record it for future runs.
1237 # Also quote any args containing shell meta-characters.
1238 # Make two passes to allow for proper duplicate-argument suppression.
1243 ac_must_keep_next=false
1249 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1250 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1251 | -silent | --silent | --silen | --sile | --sil)
1253 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1254 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1257 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1259 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1260 if test $ac_must_keep_next = true; then
1261 ac_must_keep_next=false # Got value, back to normal.
1264 *=* | --config-cache | -C | -disable-* | --disable-* \
1265 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1266 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1267 | -with-* | --with-* | -without-* | --without-* | --x)
1268 case "$ac_configure_args0 " in
1269 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1272 -* ) ac_must_keep_next=true ;;
1275 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1276 # Get rid of the leading space.
1282 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1283 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1285 # When interrupted or exit'd, cleanup temporary files, and complete
1286 # config.log. We remove comments because anyway the quotes in there
1287 # would cause problems or look ugly.
1288 # WARNING: Be sure not to use single quotes in there, as some shells,
1289 # such as our DU 5.0 friend, will then `close' the trap.
1290 trap 'exit_status=$?
1291 # Save into config.log some information that might help in debugging.
1296 ## ---------------- ##
1297 ## Cache variables. ##
1298 ## ---------------- ##
1301 # The following way of writing the cache mishandles newlines in values,
1304 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1307 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1308 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1312 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1319 ## ----------------- ##
1320 ## Output variables. ##
1321 ## ----------------- ##
1324 for ac_var in $ac_subst_vars
1326 eval ac_val=$`echo $ac_var`
1327 echo "$ac_var='"'"'$ac_val'"'"'"
1331 if test -n "$ac_subst_files"; then
1338 for ac_var in $ac_subst_files
1340 eval ac_val=$`echo $ac_var`
1341 echo "$ac_var='"'"'$ac_val'"'"'"
1346 if test -s confdefs.h; then
1353 sed "/^$/d" confdefs.h | sort
1356 test "$ac_signal" != 0 &&
1357 echo "$as_me: caught signal $ac_signal"
1358 echo "$as_me: exit $exit_status"
1360 rm -f core *.core &&
1361 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1364 for ac_signal in 1 2 13 15; do
1365 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1369 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1370 rm -rf conftest* confdefs.h
1371 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1374 # Predefined preprocessor variables.
1376 cat >>confdefs.h <<_ACEOF
1377 #define PACKAGE_NAME "$PACKAGE_NAME"
1381 cat >>confdefs.h <<_ACEOF
1382 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1391 cat >>confdefs.h <<_ACEOF
1392 #define PACKAGE_STRING "$PACKAGE_STRING"
1396 cat >>confdefs.h <<_ACEOF
1397 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1401 # Let the site file select an alternate cache file if it wants to.
1402 # Prefer explicitly selected file to automatically selected ones.
1403 if test -z "$CONFIG_SITE"; then
1404 if test "x$prefix" != xNONE; then
1405 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1407 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1410 for ac_site_file in $CONFIG_SITE; do
1411 if test -r "$ac_site_file"; then
1412 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1413 echo "$as_me: loading site script $ac_site_file" >&6;}
1414 sed 's/^/| /' "$ac_site_file" >&5
1419 if test -r "$cache_file"; then
1420 # Some versions of bash will fail to source /dev/null (special
1421 # files actually), so we avoid doing that.
1422 if test -f "$cache_file"; then
1423 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1424 echo "$as_me: loading cache $cache_file" >&6;}
1426 [\\/]* | ?:[\\/]* ) . $cache_file;;
1427 *) . ./$cache_file;;
1431 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1432 echo "$as_me: creating cache $cache_file" >&6;}
1436 # Check that the precious variables saved in the cache have kept the same
1438 ac_cache_corrupted=false
1439 for ac_var in `(set) 2>&1 |
1440 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1441 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1442 eval ac_new_set=\$ac_env_${ac_var}_set
1443 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1444 eval ac_new_val="\$ac_env_${ac_var}_value"
1445 case $ac_old_set,$ac_new_set in
1447 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1448 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1449 ac_cache_corrupted=: ;;
1451 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1452 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1453 ac_cache_corrupted=: ;;
1456 if test "x$ac_old_val" != "x$ac_new_val"; then
1457 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1458 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1459 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1460 echo "$as_me: former value: $ac_old_val" >&2;}
1461 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1462 echo "$as_me: current value: $ac_new_val" >&2;}
1463 ac_cache_corrupted=:
1466 # Pass precious variables to config.status.
1467 if test "$ac_new_set" = set; then
1469 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1470 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1471 *) ac_arg=$ac_var=$ac_new_val ;;
1473 case " $ac_configure_args " in
1474 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1475 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1479 if $ac_cache_corrupted; then
1480 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1481 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1482 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1483 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1484 { (exit 1); exit 1; }; }
1488 ac_cpp='$CPP $CPPFLAGS'
1489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1521 for ac_dir in autoconf $srcdir/autoconf; do
1522 if test -f $ac_dir/install-sh; then
1524 ac_install_sh="$ac_aux_dir/install-sh -c"
1526 elif test -f $ac_dir/install.sh; then
1528 ac_install_sh="$ac_aux_dir/install.sh -c"
1530 elif test -f $ac_dir/shtool; then
1532 ac_install_sh="$ac_aux_dir/shtool install -c"
1536 if test -z "$ac_aux_dir"; then
1537 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1538 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1539 { (exit 1); exit 1; }; }
1541 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1542 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1543 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1546 if test ${srcdir} != "."
1548 if test -f ${srcdir}/include/llvm/Config/config.h
1550 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1551 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1552 { (exit 1); exit 1; }; }
1556 for i in `ls ${srcdir}/projects`
1558 if test -d ${srcdir}/projects/${i} ; then
1563 subdirs="$subdirs projects/sample"
1567 subdirs="$subdirs projects/Stacker"
1571 subdirs="$subdirs projects/llvm-test"
1575 subdirs="$subdirs projects/llvm-reopt"
1579 subdirs="$subdirs projects/llvm-gcc"
1583 subdirs="$subdirs projects/llvm-java"
1587 subdirs="$subdirs projects/llvm-tv"
1591 subdirs="$subdirs projects/llvm-fefw"
1595 subdirs="$subdirs ${i}"
1601 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
1604 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"
1607 ac_config_commands="$ac_config_commands Makefile"
1610 ac_config_commands="$ac_config_commands Makefile.common"
1613 ac_config_commands="$ac_config_commands examples/Makefile"
1616 ac_config_commands="$ac_config_commands lib/Makefile"
1619 ac_config_commands="$ac_config_commands runtime/Makefile"
1622 ac_config_commands="$ac_config_commands test/Makefile"
1625 ac_config_commands="$ac_config_commands test/Makefile.tests"
1628 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1631 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1634 ac_config_commands="$ac_config_commands tools/Makefile"
1637 ac_config_commands="$ac_config_commands utils/Makefile"
1640 ac_config_commands="$ac_config_commands projects/Makefile"
1644 # Find a good install program. We prefer a C program (faster),
1645 # so one script is as good as another. But avoid the broken or
1646 # incompatible versions:
1647 # SysV /etc/install, /usr/sbin/install
1648 # SunOS /usr/etc/install
1649 # IRIX /sbin/install
1651 # AmigaOS /C/install, which installs bootblocks on floppy discs
1652 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1653 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1654 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1655 # OS/2's system install, which has a completely different semantic
1656 # ./install, which can be erroneously created by make from ./install.sh.
1657 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1658 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1659 if test -z "$INSTALL"; then
1660 if test "${ac_cv_path_install+set}" = set; then
1661 echo $ECHO_N "(cached) $ECHO_C" >&6
1663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1667 test -z "$as_dir" && as_dir=.
1668 # Account for people who put trailing slashes in PATH elements.
1670 ./ | .// | /cC/* | \
1671 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1672 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1675 # OSF1 and SCO ODT 3.0 have their own names for install.
1676 # Don't use installbsd from OSF since it installs stuff as root
1678 for ac_prog in ginstall scoinst install; do
1679 for ac_exec_ext in '' $ac_executable_extensions; do
1680 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1681 if test $ac_prog = install &&
1682 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1683 # AIX install. It has an incompatible calling convention.
1685 elif test $ac_prog = install &&
1686 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1687 # program-specific install script used by HP pwplus--don't use.
1690 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1702 if test "${ac_cv_path_install+set}" = set; then
1703 INSTALL=$ac_cv_path_install
1705 # As a last resort, use the slow shell script. We don't cache a
1706 # path for INSTALL within a source directory, because that will
1707 # break other packages using the cache if that directory is
1708 # removed, or if the path is relative.
1709 INSTALL=$ac_install_sh
1712 echo "$as_me:$LINENO: result: $INSTALL" >&5
1713 echo "${ECHO_T}$INSTALL" >&6
1715 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1716 # It thinks the first close brace ends the variable substitution.
1717 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1719 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1721 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1724 # Make sure we can run config.sub.
1725 $ac_config_sub sun4 >/dev/null 2>&1 ||
1726 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1727 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1728 { (exit 1); exit 1; }; }
1730 echo "$as_me:$LINENO: checking build system type" >&5
1731 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1732 if test "${ac_cv_build+set}" = set; then
1733 echo $ECHO_N "(cached) $ECHO_C" >&6
1735 ac_cv_build_alias=$build_alias
1736 test -z "$ac_cv_build_alias" &&
1737 ac_cv_build_alias=`$ac_config_guess`
1738 test -z "$ac_cv_build_alias" &&
1739 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1740 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1741 { (exit 1); exit 1; }; }
1742 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1743 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1744 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1745 { (exit 1); exit 1; }; }
1748 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1749 echo "${ECHO_T}$ac_cv_build" >&6
1751 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1752 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1753 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1756 echo "$as_me:$LINENO: checking host system type" >&5
1757 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1758 if test "${ac_cv_host+set}" = set; then
1759 echo $ECHO_N "(cached) $ECHO_C" >&6
1761 ac_cv_host_alias=$host_alias
1762 test -z "$ac_cv_host_alias" &&
1763 ac_cv_host_alias=$ac_cv_build_alias
1764 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1765 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1766 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1767 { (exit 1); exit 1; }; }
1770 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1771 echo "${ECHO_T}$ac_cv_host" >&6
1773 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1774 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1775 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1778 echo "$as_me:$LINENO: checking target system type" >&5
1779 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1780 if test "${ac_cv_target+set}" = set; then
1781 echo $ECHO_N "(cached) $ECHO_C" >&6
1783 ac_cv_target_alias=$target_alias
1784 test "x$ac_cv_target_alias" = "x" &&
1785 ac_cv_target_alias=$ac_cv_host_alias
1786 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1787 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1788 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1789 { (exit 1); exit 1; }; }
1792 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1793 echo "${ECHO_T}$ac_cv_target" >&6
1794 target=$ac_cv_target
1795 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1796 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1797 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1800 # The aliases save the names the user supplied, while $host etc.
1801 # will get canonicalized.
1802 test -n "$target_alias" &&
1803 test "$program_prefix$program_suffix$program_transform_name" = \
1805 program_prefix=${target_alias}-
1808 echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1809 echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
1819 platform_type="Cygwin"
1824 platform_type="Darwin"
1829 platform_type="FreeBSD"
1834 platform_type="Interix"
1839 platform_type="Linux"
1840 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1842 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1849 platform_type="SunOS"
1850 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1852 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1859 platform_type="Win32"
1864 platform_type="Unknown"
1868 if test "$platform_type" = "Unknown" ; then
1869 { { echo "$as_me:$LINENO: error: Platform is unknown, configure can't continue" >&5
1870 echo "$as_me: error: Platform is unknown, configure can't continue" >&2;}
1871 { (exit 1); exit 1; }; }
1874 ac_config_links="$ac_config_links lib/System/platform:lib/System/$platform_type"
1877 echo "$as_me:$LINENO: result: $platform_type" >&5
1878 echo "${ECHO_T}$platform_type" >&6
1880 echo "$as_me:$LINENO: checking target architecture" >&5
1881 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1883 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1911 echo "$as_me:$LINENO: result: $ARCH" >&5
1912 echo "${ECHO_T}$ARCH" >&6
1915 ac_cpp='$CXXCPP $CPPFLAGS'
1916 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1917 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1918 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1919 if test -n "$ac_tool_prefix"; then
1920 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1922 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1923 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1924 echo "$as_me:$LINENO: checking for $ac_word" >&5
1925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1926 if test "${ac_cv_prog_CXX+set}" = set; then
1927 echo $ECHO_N "(cached) $ECHO_C" >&6
1929 if test -n "$CXX"; then
1930 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1936 test -z "$as_dir" && as_dir=.
1937 for ac_exec_ext in '' $ac_executable_extensions; do
1938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1939 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1949 if test -n "$CXX"; then
1950 echo "$as_me:$LINENO: result: $CXX" >&5
1951 echo "${ECHO_T}$CXX" >&6
1953 echo "$as_me:$LINENO: result: no" >&5
1954 echo "${ECHO_T}no" >&6
1957 test -n "$CXX" && break
1960 if test -z "$CXX"; then
1962 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1964 # Extract the first word of "$ac_prog", so it can be a program name with args.
1965 set dummy $ac_prog; ac_word=$2
1966 echo "$as_me:$LINENO: checking for $ac_word" >&5
1967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1968 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1969 echo $ECHO_N "(cached) $ECHO_C" >&6
1971 if test -n "$ac_ct_CXX"; then
1972 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1978 test -z "$as_dir" && as_dir=.
1979 for ac_exec_ext in '' $ac_executable_extensions; do
1980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1981 ac_cv_prog_ac_ct_CXX="$ac_prog"
1982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1990 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1991 if test -n "$ac_ct_CXX"; then
1992 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1993 echo "${ECHO_T}$ac_ct_CXX" >&6
1995 echo "$as_me:$LINENO: result: no" >&5
1996 echo "${ECHO_T}no" >&6
1999 test -n "$ac_ct_CXX" && break
2001 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2007 # Provide some information about the compiler.
2008 echo "$as_me:$LINENO:" \
2009 "checking for C++ compiler version" >&5
2010 ac_compiler=`set X $ac_compile; echo $2`
2011 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2012 (eval $ac_compiler --version </dev/null >&5) 2>&5
2014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015 (exit $ac_status); }
2016 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2017 (eval $ac_compiler -v </dev/null >&5) 2>&5
2019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2020 (exit $ac_status); }
2021 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2022 (eval $ac_compiler -V </dev/null >&5) 2>&5
2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025 (exit $ac_status); }
2027 cat >conftest.$ac_ext <<_ACEOF
2030 cat confdefs.h >>conftest.$ac_ext
2031 cat >>conftest.$ac_ext <<_ACEOF
2032 /* end confdefs.h. */
2042 ac_clean_files_save=$ac_clean_files
2043 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2044 # Try to create an executable without -o first, disregard a.out.
2045 # It will help us diagnose broken compilers, and finding out an intuition
2047 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2048 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2049 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2050 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2051 (eval $ac_link_default) 2>&5
2053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054 (exit $ac_status); }; then
2055 # Find the output, starting from the most likely. This scheme is
2056 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2059 # Be careful to initialize this variable, since it used to be cached.
2060 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2062 # b.out is created by i960 compilers.
2063 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2065 test -f "$ac_file" || continue
2067 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2070 # This is the source file.
2073 # We found the default executable, but exeext='' is most
2077 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2078 # FIXME: I believe we export ac_cv_exeext for Libtool,
2079 # but it would be cool to find out if it's true. Does anybody
2080 # maintain Libtool? --akim.
2088 echo "$as_me: failed program was:" >&5
2089 sed 's/^/| /' conftest.$ac_ext >&5
2091 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2092 See \`config.log' for more details." >&5
2093 echo "$as_me: error: C++ compiler cannot create executables
2094 See \`config.log' for more details." >&2;}
2095 { (exit 77); exit 77; }; }
2098 ac_exeext=$ac_cv_exeext
2099 echo "$as_me:$LINENO: result: $ac_file" >&5
2100 echo "${ECHO_T}$ac_file" >&6
2102 # Check the compiler produces executables we can run. If not, either
2103 # the compiler is broken, or we cross compile.
2104 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2105 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2106 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2107 # If not cross compiling, check that we can run a simple program.
2108 if test "$cross_compiling" != yes; then
2109 if { ac_try='./$ac_file'
2110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }; }; then
2117 if test "$cross_compiling" = maybe; then
2120 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2121 If you meant to cross compile, use \`--host'.
2122 See \`config.log' for more details." >&5
2123 echo "$as_me: error: cannot run C++ compiled programs.
2124 If you meant to cross compile, use \`--host'.
2125 See \`config.log' for more details." >&2;}
2126 { (exit 1); exit 1; }; }
2130 echo "$as_me:$LINENO: result: yes" >&5
2131 echo "${ECHO_T}yes" >&6
2133 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2134 ac_clean_files=$ac_clean_files_save
2135 # Check the compiler produces executables we can run. If not, either
2136 # the compiler is broken, or we cross compile.
2137 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2138 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2139 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2140 echo "${ECHO_T}$cross_compiling" >&6
2142 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2143 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2145 (eval $ac_link) 2>&5
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); }; then
2149 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2150 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2151 # work properly (i.e., refer to `conftest.exe'), while it won't with
2153 for ac_file in conftest.exe conftest conftest.*; do
2154 test -f "$ac_file" || continue
2156 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2157 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2164 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2165 See \`config.log' for more details." >&5
2166 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2167 See \`config.log' for more details." >&2;}
2168 { (exit 1); exit 1; }; }
2171 rm -f conftest$ac_cv_exeext
2172 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2173 echo "${ECHO_T}$ac_cv_exeext" >&6
2175 rm -f conftest.$ac_ext
2176 EXEEXT=$ac_cv_exeext
2178 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2179 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2180 if test "${ac_cv_objext+set}" = set; then
2181 echo $ECHO_N "(cached) $ECHO_C" >&6
2183 cat >conftest.$ac_ext <<_ACEOF
2186 cat confdefs.h >>conftest.$ac_ext
2187 cat >>conftest.$ac_ext <<_ACEOF
2188 /* end confdefs.h. */
2198 rm -f conftest.o conftest.obj
2199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2200 (eval $ac_compile) 2>&5
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); }; then
2204 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2206 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2207 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2212 echo "$as_me: failed program was:" >&5
2213 sed 's/^/| /' conftest.$ac_ext >&5
2215 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2216 See \`config.log' for more details." >&5
2217 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2218 See \`config.log' for more details." >&2;}
2219 { (exit 1); exit 1; }; }
2222 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2224 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2225 echo "${ECHO_T}$ac_cv_objext" >&6
2226 OBJEXT=$ac_cv_objext
2228 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2229 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2230 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2231 echo $ECHO_N "(cached) $ECHO_C" >&6
2233 cat >conftest.$ac_ext <<_ACEOF
2236 cat confdefs.h >>conftest.$ac_ext
2237 cat >>conftest.$ac_ext <<_ACEOF
2238 /* end confdefs.h. */
2251 rm -f conftest.$ac_objext
2252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2253 (eval $ac_compile) 2>conftest.er1
2255 grep -v '^ *+' conftest.er1 >conftest.err
2257 cat conftest.err >&5
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); } &&
2260 { ac_try='test -z "$ac_cxx_werror_flag"
2261 || test ! -s conftest.err'
2262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }; } &&
2267 { ac_try='test -s conftest.$ac_objext'
2268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); }; }; then
2275 echo "$as_me: failed program was:" >&5
2276 sed 's/^/| /' conftest.$ac_ext >&5
2280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2281 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2284 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2285 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2286 GXX=`test $ac_compiler_gnu = yes && echo yes`
2287 ac_test_CXXFLAGS=${CXXFLAGS+set}
2288 ac_save_CXXFLAGS=$CXXFLAGS
2290 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2291 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2292 if test "${ac_cv_prog_cxx_g+set}" = set; then
2293 echo $ECHO_N "(cached) $ECHO_C" >&6
2295 cat >conftest.$ac_ext <<_ACEOF
2298 cat confdefs.h >>conftest.$ac_ext
2299 cat >>conftest.$ac_ext <<_ACEOF
2300 /* end confdefs.h. */
2310 rm -f conftest.$ac_objext
2311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2312 (eval $ac_compile) 2>conftest.er1
2314 grep -v '^ *+' conftest.er1 >conftest.err
2316 cat conftest.err >&5
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); } &&
2319 { ac_try='test -z "$ac_cxx_werror_flag"
2320 || test ! -s conftest.err'
2321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; } &&
2326 { ac_try='test -s conftest.$ac_objext'
2327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }; }; then
2332 ac_cv_prog_cxx_g=yes
2334 echo "$as_me: failed program was:" >&5
2335 sed 's/^/| /' conftest.$ac_ext >&5
2339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2341 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2342 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2343 if test "$ac_test_CXXFLAGS" = set; then
2344 CXXFLAGS=$ac_save_CXXFLAGS
2345 elif test $ac_cv_prog_cxx_g = yes; then
2346 if test "$GXX" = yes; then
2352 if test "$GXX" = yes; then
2358 for ac_declaration in \
2360 'extern "C" void std::exit (int) throw (); using std::exit;' \
2361 'extern "C" void std::exit (int); using std::exit;' \
2362 'extern "C" void exit (int) throw ();' \
2363 'extern "C" void exit (int);' \
2366 cat >conftest.$ac_ext <<_ACEOF
2369 cat confdefs.h >>conftest.$ac_ext
2370 cat >>conftest.$ac_ext <<_ACEOF
2371 /* end confdefs.h. */
2382 rm -f conftest.$ac_objext
2383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2384 (eval $ac_compile) 2>conftest.er1
2386 grep -v '^ *+' conftest.er1 >conftest.err
2388 cat conftest.err >&5
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); } &&
2391 { ac_try='test -z "$ac_cxx_werror_flag"
2392 || test ! -s conftest.err'
2393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; } &&
2398 { ac_try='test -s conftest.$ac_objext'
2399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); }; }; then
2406 echo "$as_me: failed program was:" >&5
2407 sed 's/^/| /' conftest.$ac_ext >&5
2411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2412 cat >conftest.$ac_ext <<_ACEOF
2415 cat confdefs.h >>conftest.$ac_ext
2416 cat >>conftest.$ac_ext <<_ACEOF
2417 /* end confdefs.h. */
2427 rm -f conftest.$ac_objext
2428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2429 (eval $ac_compile) 2>conftest.er1
2431 grep -v '^ *+' conftest.er1 >conftest.err
2433 cat conftest.err >&5
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); } &&
2436 { ac_try='test -z "$ac_cxx_werror_flag"
2437 || test ! -s conftest.err'
2438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); }; } &&
2443 { ac_try='test -s conftest.$ac_objext'
2444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); }; }; then
2451 echo "$as_me: failed program was:" >&5
2452 sed 's/^/| /' conftest.$ac_ext >&5
2455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2458 if test -n "$ac_declaration"; then
2459 echo '#ifdef __cplusplus' >>confdefs.h
2460 echo $ac_declaration >>confdefs.h
2461 echo '#endif' >>confdefs.h
2465 ac_cpp='$CPP $CPPFLAGS'
2466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2471 ac_cpp='$CPP $CPPFLAGS'
2472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2475 if test -n "$ac_tool_prefix"; then
2478 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2479 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2480 echo "$as_me:$LINENO: checking for $ac_word" >&5
2481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2482 if test "${ac_cv_prog_CC+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2485 if test -n "$CC"; then
2486 ac_cv_prog_CC="$CC" # Let the user override the test.
2488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2492 test -z "$as_dir" && as_dir=.
2493 for ac_exec_ext in '' $ac_executable_extensions; do
2494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2495 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2505 if test -n "$CC"; then
2506 echo "$as_me:$LINENO: result: $CC" >&5
2507 echo "${ECHO_T}$CC" >&6
2509 echo "$as_me:$LINENO: result: no" >&5
2510 echo "${ECHO_T}no" >&6
2513 test -n "$CC" && break
2516 if test -z "$CC"; then
2520 # Extract the first word of "$ac_prog", so it can be a program name with args.
2521 set dummy $ac_prog; ac_word=$2
2522 echo "$as_me:$LINENO: checking for $ac_word" >&5
2523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2524 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2527 if test -n "$ac_ct_CC"; then
2528 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534 test -z "$as_dir" && as_dir=.
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2537 ac_cv_prog_ac_ct_CC="$ac_prog"
2538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2546 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2547 if test -n "$ac_ct_CC"; then
2548 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2549 echo "${ECHO_T}$ac_ct_CC" >&6
2551 echo "$as_me:$LINENO: result: no" >&5
2552 echo "${ECHO_T}no" >&6
2555 test -n "$ac_ct_CC" && break
2562 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2563 See \`config.log' for more details." >&5
2564 echo "$as_me: error: no acceptable C compiler found in \$PATH
2565 See \`config.log' for more details." >&2;}
2566 { (exit 1); exit 1; }; }
2568 # Provide some information about the compiler.
2569 echo "$as_me:$LINENO:" \
2570 "checking for C compiler version" >&5
2571 ac_compiler=`set X $ac_compile; echo $2`
2572 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2573 (eval $ac_compiler --version </dev/null >&5) 2>&5
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }
2577 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2578 (eval $ac_compiler -v </dev/null >&5) 2>&5
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); }
2582 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2583 (eval $ac_compiler -V </dev/null >&5) 2>&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }
2588 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2589 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2590 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2591 echo $ECHO_N "(cached) $ECHO_C" >&6
2593 cat >conftest.$ac_ext <<_ACEOF
2596 cat confdefs.h >>conftest.$ac_ext
2597 cat >>conftest.$ac_ext <<_ACEOF
2598 /* end confdefs.h. */
2611 rm -f conftest.$ac_objext
2612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2613 (eval $ac_compile) 2>conftest.er1
2615 grep -v '^ *+' conftest.er1 >conftest.err
2617 cat conftest.err >&5
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); } &&
2620 { ac_try='test -z "$ac_c_werror_flag"
2621 || test ! -s conftest.err'
2622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; } &&
2627 { ac_try='test -s conftest.$ac_objext'
2628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); }; }; then
2635 echo "$as_me: failed program was:" >&5
2636 sed 's/^/| /' conftest.$ac_ext >&5
2640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2641 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2644 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2645 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2646 GCC=`test $ac_compiler_gnu = yes && echo yes`
2647 ac_test_CFLAGS=${CFLAGS+set}
2648 ac_save_CFLAGS=$CFLAGS
2650 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2651 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2652 if test "${ac_cv_prog_cc_g+set}" = set; then
2653 echo $ECHO_N "(cached) $ECHO_C" >&6
2655 cat >conftest.$ac_ext <<_ACEOF
2658 cat confdefs.h >>conftest.$ac_ext
2659 cat >>conftest.$ac_ext <<_ACEOF
2660 /* end confdefs.h. */
2670 rm -f conftest.$ac_objext
2671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2672 (eval $ac_compile) 2>conftest.er1
2674 grep -v '^ *+' conftest.er1 >conftest.err
2676 cat conftest.err >&5
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); } &&
2679 { ac_try='test -z "$ac_c_werror_flag"
2680 || test ! -s conftest.err'
2681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); }; } &&
2686 { ac_try='test -s conftest.$ac_objext'
2687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }; }; then
2694 echo "$as_me: failed program was:" >&5
2695 sed 's/^/| /' conftest.$ac_ext >&5
2699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2701 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2702 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2703 if test "$ac_test_CFLAGS" = set; then
2704 CFLAGS=$ac_save_CFLAGS
2705 elif test $ac_cv_prog_cc_g = yes; then
2706 if test "$GCC" = yes; then
2712 if test "$GCC" = yes; then
2718 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2719 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2720 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2721 echo $ECHO_N "(cached) $ECHO_C" >&6
2723 ac_cv_prog_cc_stdc=no
2725 cat >conftest.$ac_ext <<_ACEOF
2728 cat confdefs.h >>conftest.$ac_ext
2729 cat >>conftest.$ac_ext <<_ACEOF
2730 /* end confdefs.h. */
2733 #include <sys/types.h>
2734 #include <sys/stat.h>
2735 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2736 struct buf { int x; };
2737 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2738 static char *e (p, i)
2744 static char *f (char * (*g) (char **, int), char **p, ...)
2749 s = g (p, va_arg (v,int));
2754 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2755 function prototypes and stuff, but not '\xHH' hex character constants.
2756 These don't provoke an error unfortunately, instead are silently treated
2757 as 'x'. The following induces an error, until -std1 is added to get
2758 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2759 array size at least. It's necessary to write '\x00'==0 to get something
2760 that's true only with -std1. */
2761 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2763 int test (int i, double x);
2764 struct s1 {int (*f) (int a);};
2765 struct s2 {int (*f) (double a);};
2766 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2772 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2777 # Don't try gcc -ansi; that turns off useful extensions and
2778 # breaks some systems' header files.
2779 # AIX -qlanglvl=ansi
2780 # Ultrix and OSF/1 -std1
2781 # HP-UX 10.20 and later -Ae
2782 # HP-UX older versions -Aa -D_HPUX_SOURCE
2783 # SVR4 -Xc -D__EXTENSIONS__
2784 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2786 CC="$ac_save_CC $ac_arg"
2787 rm -f conftest.$ac_objext
2788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2789 (eval $ac_compile) 2>conftest.er1
2791 grep -v '^ *+' conftest.er1 >conftest.err
2793 cat conftest.err >&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); } &&
2796 { ac_try='test -z "$ac_c_werror_flag"
2797 || test ! -s conftest.err'
2798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; } &&
2803 { ac_try='test -s conftest.$ac_objext'
2804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; }; then
2809 ac_cv_prog_cc_stdc=$ac_arg
2812 echo "$as_me: failed program was:" >&5
2813 sed 's/^/| /' conftest.$ac_ext >&5
2816 rm -f conftest.err conftest.$ac_objext
2818 rm -f conftest.$ac_ext conftest.$ac_objext
2823 case "x$ac_cv_prog_cc_stdc" in
2825 echo "$as_me:$LINENO: result: none needed" >&5
2826 echo "${ECHO_T}none needed" >&6 ;;
2828 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2829 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2830 CC="$CC $ac_cv_prog_cc_stdc" ;;
2833 # Some people use a C++ compiler to compile C. Since we use `exit',
2834 # in C++ we need to declare it. In case someone uses the same compiler
2835 # for both compiling C and C++ we need to have the C++ compiler decide
2836 # the declaration of exit, since it's the most demanding environment.
2837 cat >conftest.$ac_ext <<_ACEOF
2842 rm -f conftest.$ac_objext
2843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2844 (eval $ac_compile) 2>conftest.er1
2846 grep -v '^ *+' conftest.er1 >conftest.err
2848 cat conftest.err >&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); } &&
2851 { ac_try='test -z "$ac_c_werror_flag"
2852 || test ! -s conftest.err'
2853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); }; } &&
2858 { ac_try='test -s conftest.$ac_objext'
2859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); }; }; then
2864 for ac_declaration in \
2866 'extern "C" void std::exit (int) throw (); using std::exit;' \
2867 'extern "C" void std::exit (int); using std::exit;' \
2868 'extern "C" void exit (int) throw ();' \
2869 'extern "C" void exit (int);' \
2872 cat >conftest.$ac_ext <<_ACEOF
2875 cat confdefs.h >>conftest.$ac_ext
2876 cat >>conftest.$ac_ext <<_ACEOF
2877 /* end confdefs.h. */
2888 rm -f conftest.$ac_objext
2889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2890 (eval $ac_compile) 2>conftest.er1
2892 grep -v '^ *+' conftest.er1 >conftest.err
2894 cat conftest.err >&5
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); } &&
2897 { ac_try='test -z "$ac_c_werror_flag"
2898 || test ! -s conftest.err'
2899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }; } &&
2904 { ac_try='test -s conftest.$ac_objext'
2905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); }; }; then
2912 echo "$as_me: failed program was:" >&5
2913 sed 's/^/| /' conftest.$ac_ext >&5
2917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2918 cat >conftest.$ac_ext <<_ACEOF
2921 cat confdefs.h >>conftest.$ac_ext
2922 cat >>conftest.$ac_ext <<_ACEOF
2923 /* end confdefs.h. */
2933 rm -f conftest.$ac_objext
2934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2935 (eval $ac_compile) 2>conftest.er1
2937 grep -v '^ *+' conftest.er1 >conftest.err
2939 cat conftest.err >&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); } &&
2942 { ac_try='test -z "$ac_c_werror_flag"
2943 || test ! -s conftest.err'
2944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); }; } &&
2949 { ac_try='test -s conftest.$ac_objext'
2950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); }; }; then
2957 echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2964 if test -n "$ac_declaration"; then
2965 echo '#ifdef __cplusplus' >>confdefs.h
2966 echo $ac_declaration >>confdefs.h
2967 echo '#endif' >>confdefs.h
2971 echo "$as_me: failed program was:" >&5
2972 sed 's/^/| /' conftest.$ac_ext >&5
2975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2977 ac_cpp='$CPP $CPPFLAGS'
2978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2983 ac_cpp='$CPP $CPPFLAGS'
2984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2987 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2988 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2989 # On Suns, sometimes $CPP names a directory.
2990 if test -n "$CPP" && test -d "$CPP"; then
2993 if test -z "$CPP"; then
2994 if test "${ac_cv_prog_CPP+set}" = set; then
2995 echo $ECHO_N "(cached) $ECHO_C" >&6
2997 # Double quotes because CPP needs to be expanded
2998 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3001 for ac_c_preproc_warn_flag in '' yes
3003 # Use a header file that comes with gcc, so configuring glibc
3004 # with a fresh cross-compiler works.
3005 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3006 # <limits.h> exists even on freestanding compilers.
3007 # On the NeXT, cc -E runs the code through the compiler's parser,
3008 # not just through cpp. "Syntax error" is here to catch this case.
3009 cat >conftest.$ac_ext <<_ACEOF
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.h. */
3016 # include <limits.h>
3018 # include <assert.h>
3022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3023 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3025 grep -v '^ *+' conftest.er1 >conftest.err
3027 cat conftest.err >&5
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); } >/dev/null; then
3030 if test -s conftest.err; then
3031 ac_cpp_err=$ac_c_preproc_warn_flag
3032 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3039 if test -z "$ac_cpp_err"; then
3042 echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3045 # Broken: fails on valid input.
3048 rm -f conftest.err conftest.$ac_ext
3050 # OK, works on sane cases. Now check whether non-existent headers
3051 # can be detected and how.
3052 cat >conftest.$ac_ext <<_ACEOF
3055 cat confdefs.h >>conftest.$ac_ext
3056 cat >>conftest.$ac_ext <<_ACEOF
3057 /* end confdefs.h. */
3058 #include <ac_nonexistent.h>
3060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3063 grep -v '^ *+' conftest.er1 >conftest.err
3065 cat conftest.err >&5
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); } >/dev/null; then
3068 if test -s conftest.err; then
3069 ac_cpp_err=$ac_c_preproc_warn_flag
3070 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3077 if test -z "$ac_cpp_err"; then
3078 # Broken: success on invalid input.
3081 echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.$ac_ext >&5
3084 # Passes both tests.
3088 rm -f conftest.err conftest.$ac_ext
3091 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3092 rm -f conftest.err conftest.$ac_ext
3093 if $ac_preproc_ok; then
3105 echo "$as_me:$LINENO: result: $CPP" >&5
3106 echo "${ECHO_T}$CPP" >&6
3108 for ac_c_preproc_warn_flag in '' yes
3110 # Use a header file that comes with gcc, so configuring glibc
3111 # with a fresh cross-compiler works.
3112 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3113 # <limits.h> exists even on freestanding compilers.
3114 # On the NeXT, cc -E runs the code through the compiler's parser,
3115 # not just through cpp. "Syntax error" is here to catch this case.
3116 cat >conftest.$ac_ext <<_ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h. */
3123 # include <limits.h>
3125 # include <assert.h>
3129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3132 grep -v '^ *+' conftest.er1 >conftest.err
3134 cat conftest.err >&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); } >/dev/null; then
3137 if test -s conftest.err; then
3138 ac_cpp_err=$ac_c_preproc_warn_flag
3139 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3146 if test -z "$ac_cpp_err"; then
3149 echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3152 # Broken: fails on valid input.
3155 rm -f conftest.err conftest.$ac_ext
3157 # OK, works on sane cases. Now check whether non-existent headers
3158 # can be detected and how.
3159 cat >conftest.$ac_ext <<_ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h. */
3165 #include <ac_nonexistent.h>
3167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3168 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3170 grep -v '^ *+' conftest.er1 >conftest.err
3172 cat conftest.err >&5
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); } >/dev/null; then
3175 if test -s conftest.err; then
3176 ac_cpp_err=$ac_c_preproc_warn_flag
3177 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3184 if test -z "$ac_cpp_err"; then
3185 # Broken: success on invalid input.
3188 echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.$ac_ext >&5
3191 # Passes both tests.
3195 rm -f conftest.err conftest.$ac_ext
3198 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3199 rm -f conftest.err conftest.$ac_ext
3200 if $ac_preproc_ok; then
3203 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3204 See \`config.log' for more details." >&5
3205 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3206 See \`config.log' for more details." >&2;}
3207 { (exit 1); exit 1; }; }
3211 ac_cpp='$CPP $CPPFLAGS'
3212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3217 if test "$GCC" != "yes"
3219 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3220 echo "$as_me: error: gcc required but not found" >&2;}
3221 { (exit 1); exit 1; }; }
3223 if test "$GXX" != "yes"
3225 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3226 echo "$as_me: error: g++ required but not found" >&2;}
3227 { (exit 1); exit 1; }; }
3230 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3231 if test "$gccmajor" -lt "3"
3233 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3234 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3235 { (exit 1); exit 1; }; }
3238 echo "$as_me:$LINENO: checking for GNU make" >&5
3239 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3240 if test "${_cv_gnu_make_command+set}" = set; then
3241 echo $ECHO_N "(cached) $ECHO_C" >&6
3243 _cv_gnu_make_command='' ;
3244 for a in "$MAKE" make gmake gnumake ; do
3245 if test -z "$a" ; then continue ; fi ;
3246 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3247 _cv_gnu_make_command=$a ;
3253 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3254 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3255 if test "x$_cv_gnu_make_command" != "x" ; then
3259 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3260 echo "${ECHO_T}\"Not found\"" >&6;
3264 if test -z "$_cv_gnu_make_command"
3266 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3267 echo "$as_me: error: GNU Make required but not found" >&2;}
3268 { (exit 1); exit 1; }; }
3272 echo "$as_me:$LINENO: checking " >&5
3273 echo $ECHO_N "checking ... $ECHO_C" >&6
3274 if test "${ac_cv_has_flex+set}" = set; then
3275 echo $ECHO_N "(cached) $ECHO_C" >&6
3277 for ac_prog in flex lex
3279 # Extract the first word of "$ac_prog", so it can be a program name with args.
3280 set dummy $ac_prog; ac_word=$2
3281 echo "$as_me:$LINENO: checking for $ac_word" >&5
3282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3283 if test "${ac_cv_prog_LEX+set}" = set; then
3284 echo $ECHO_N "(cached) $ECHO_C" >&6
3286 if test -n "$LEX"; then
3287 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 test -z "$as_dir" && as_dir=.
3294 for ac_exec_ext in '' $ac_executable_extensions; do
3295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3296 ac_cv_prog_LEX="$ac_prog"
3297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3306 if test -n "$LEX"; then
3307 echo "$as_me:$LINENO: result: $LEX" >&5
3308 echo "${ECHO_T}$LEX" >&6
3310 echo "$as_me:$LINENO: result: no" >&5
3311 echo "${ECHO_T}no" >&6
3314 test -n "$LEX" && break
3316 test -n "$LEX" || LEX=":"
3318 if test -z "$LEXLIB"
3320 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3321 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3322 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3323 echo $ECHO_N "(cached) $ECHO_C" >&6
3325 ac_check_lib_save_LIBS=$LIBS
3327 cat >conftest.$ac_ext <<_ACEOF
3330 cat confdefs.h >>conftest.$ac_ext
3331 cat >>conftest.$ac_ext <<_ACEOF
3332 /* end confdefs.h. */
3334 /* Override any gcc2 internal prototype to avoid an error. */
3338 /* We use char because int might match the return type of a gcc2
3339 builtin and then its argument prototype would still apply. */
3349 rm -f conftest.$ac_objext conftest$ac_exeext
3350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3351 (eval $ac_link) 2>conftest.er1
3353 grep -v '^ *+' conftest.er1 >conftest.err
3355 cat conftest.err >&5
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); } &&
3358 { ac_try='test -z "$ac_c_werror_flag"
3359 || test ! -s conftest.err'
3360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364 (exit $ac_status); }; } &&
3365 { ac_try='test -s conftest$ac_exeext'
3366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); }; }; then
3371 ac_cv_lib_fl_yywrap=yes
3373 echo "$as_me: failed program was:" >&5
3374 sed 's/^/| /' conftest.$ac_ext >&5
3376 ac_cv_lib_fl_yywrap=no
3378 rm -f conftest.err conftest.$ac_objext \
3379 conftest$ac_exeext conftest.$ac_ext
3380 LIBS=$ac_check_lib_save_LIBS
3382 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3383 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3384 if test $ac_cv_lib_fl_yywrap = yes; then
3387 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3388 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3389 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3390 echo $ECHO_N "(cached) $ECHO_C" >&6
3392 ac_check_lib_save_LIBS=$LIBS
3394 cat >conftest.$ac_ext <<_ACEOF
3397 cat confdefs.h >>conftest.$ac_ext
3398 cat >>conftest.$ac_ext <<_ACEOF
3399 /* end confdefs.h. */
3401 /* Override any gcc2 internal prototype to avoid an error. */
3405 /* We use char because int might match the return type of a gcc2
3406 builtin and then its argument prototype would still apply. */
3416 rm -f conftest.$ac_objext conftest$ac_exeext
3417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3418 (eval $ac_link) 2>conftest.er1
3420 grep -v '^ *+' conftest.er1 >conftest.err
3422 cat conftest.err >&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); } &&
3425 { ac_try='test -z "$ac_c_werror_flag"
3426 || test ! -s conftest.err'
3427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); }; } &&
3432 { ac_try='test -s conftest$ac_exeext'
3433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); }; }; then
3438 ac_cv_lib_l_yywrap=yes
3440 echo "$as_me: failed program was:" >&5
3441 sed 's/^/| /' conftest.$ac_ext >&5
3443 ac_cv_lib_l_yywrap=no
3445 rm -f conftest.err conftest.$ac_objext \
3446 conftest$ac_exeext conftest.$ac_ext
3447 LIBS=$ac_check_lib_save_LIBS
3449 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3450 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3451 if test $ac_cv_lib_l_yywrap = yes; then
3459 if test "x$LEX" != "x:"; then
3460 echo "$as_me:$LINENO: checking lex output file root" >&5
3461 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3462 if test "${ac_cv_prog_lex_root+set}" = set; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
3465 # The minimal lex program is just a single line: %%. But some broken lexes
3466 # (Solaris, I think it was) want two %% lines, so accommodate them.
3467 cat >conftest.l <<_ACEOF
3471 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3472 (eval $LEX conftest.l) 2>&5
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); }
3476 if test -f lex.yy.c; then
3477 ac_cv_prog_lex_root=lex.yy
3478 elif test -f lexyy.c; then
3479 ac_cv_prog_lex_root=lexyy
3481 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3482 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3483 { (exit 1); exit 1; }; }
3486 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3487 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3489 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3491 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3492 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3493 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3494 echo $ECHO_N "(cached) $ECHO_C" >&6
3496 # POSIX says lex can declare yytext either as a pointer or an array; the
3497 # default is implementation-dependent. Figure out which it is, since
3498 # not all implementations provide the %pointer and %array declarations.
3499 ac_cv_prog_lex_yytext_pointer=no
3500 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3502 LIBS="$LIBS $LEXLIB"
3503 cat >conftest.$ac_ext <<_ACEOF
3504 `cat $LEX_OUTPUT_ROOT.c`
3506 rm -f conftest.$ac_objext conftest$ac_exeext
3507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3508 (eval $ac_link) 2>conftest.er1
3510 grep -v '^ *+' conftest.er1 >conftest.err
3512 cat conftest.err >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } &&
3515 { ac_try='test -z "$ac_c_werror_flag"
3516 || test ! -s conftest.err'
3517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); }; } &&
3522 { ac_try='test -s conftest$ac_exeext'
3523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }; }; then
3528 ac_cv_prog_lex_yytext_pointer=yes
3530 echo "$as_me: failed program was:" >&5
3531 sed 's/^/| /' conftest.$ac_ext >&5
3534 rm -f conftest.err conftest.$ac_objext \
3535 conftest$ac_exeext conftest.$ac_ext
3537 rm -f "${LEX_OUTPUT_ROOT}.c"
3540 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3541 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3542 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3544 cat >>confdefs.h <<\_ACEOF
3545 #define YYTEXT_POINTER 1
3553 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3554 echo "${ECHO_T}$ac_cv_has_flex" >&6
3555 if test "$LEX" != "flex"; then
3556 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3557 echo "$as_me: error: flex not found but required" >&2;}
3558 { (exit 1); exit 1; }; }
3561 echo "$as_me:$LINENO: checking " >&5
3562 echo $ECHO_N "checking ... $ECHO_C" >&6
3563 if test "${ac_cv_has_bison+set}" = set; then
3564 echo $ECHO_N "(cached) $ECHO_C" >&6
3566 for ac_prog in 'bison -y' byacc
3568 # Extract the first word of "$ac_prog", so it can be a program name with args.
3569 set dummy $ac_prog; ac_word=$2
3570 echo "$as_me:$LINENO: checking for $ac_word" >&5
3571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3572 if test "${ac_cv_prog_YACC+set}" = set; then
3573 echo $ECHO_N "(cached) $ECHO_C" >&6
3575 if test -n "$YACC"; then
3576 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3582 test -z "$as_dir" && as_dir=.
3583 for ac_exec_ext in '' $ac_executable_extensions; do
3584 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3585 ac_cv_prog_YACC="$ac_prog"
3586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3594 YACC=$ac_cv_prog_YACC
3595 if test -n "$YACC"; then
3596 echo "$as_me:$LINENO: result: $YACC" >&5
3597 echo "${ECHO_T}$YACC" >&6
3599 echo "$as_me:$LINENO: result: no" >&5
3600 echo "${ECHO_T}no" >&6
3603 test -n "$YACC" && break
3605 test -n "$YACC" || YACC="yacc"
3609 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3610 echo "${ECHO_T}$ac_cv_has_bison" >&6
3611 if test "$YACC" != "bison -y"; then
3612 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3613 echo "$as_me: error: bison not found but required" >&2;}
3614 { (exit 1); exit 1; }; }
3620 # Check whether --enable-shared or --disable-shared was given.
3621 if test "${enable_shared+set}" = set; then
3622 enableval="$enable_shared"
3623 p=${PACKAGE-default}
3625 yes) enable_shared=yes ;;
3626 no) enable_shared=no ;;
3629 # Look at the argument we got. We use all the common list separators.
3630 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3631 for pkg in $enableval; do
3633 if test "X$pkg" = "X$p"; then
3644 # Check whether --enable-static or --disable-static was given.
3645 if test "${enable_static+set}" = set; then
3646 enableval="$enable_static"
3647 p=${PACKAGE-default}
3649 yes) enable_static=yes ;;
3650 no) enable_static=no ;;
3653 # Look at the argument we got. We use all the common list separators.
3654 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3655 for pkg in $enableval; do
3657 if test "X$pkg" = "X$p"; then
3668 # Check whether --enable-fast-install or --disable-fast-install was given.
3669 if test "${enable_fast_install+set}" = set; then
3670 enableval="$enable_fast_install"
3671 p=${PACKAGE-default}
3673 yes) enable_fast_install=yes ;;
3674 no) enable_fast_install=no ;;
3676 enable_fast_install=no
3677 # Look at the argument we got. We use all the common list separators.
3678 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3679 for pkg in $enableval; do
3681 if test "X$pkg" = "X$p"; then
3682 enable_fast_install=yes
3689 enable_fast_install=yes
3692 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3693 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3694 if test "${lt_cv_path_SED+set}" = set; then
3695 echo $ECHO_N "(cached) $ECHO_C" >&6
3697 # Loop through the user's path and test for sed and gsed.
3698 # Then use that list of sed's as ones to test for truncation.
3699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3703 test -z "$as_dir" && as_dir=.
3704 for lt_ac_prog in sed gsed; do
3705 for ac_exec_ext in '' $ac_executable_extensions; do
3706 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3707 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3714 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3715 # along with /bin/sed that truncates output.
3716 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3717 test ! -f $lt_ac_sed && break
3718 cat /dev/null > conftest.in
3720 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3721 # Check for GNU sed and select it if it is found.
3722 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3723 lt_cv_path_SED=$lt_ac_sed
3727 cat conftest.in conftest.in >conftest.tmp
3728 mv conftest.tmp conftest.in
3729 cp conftest.in conftest.nl
3731 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3732 cmp -s conftest.out conftest.nl || break
3733 # 10000 chars as input seems more than enough
3734 test $lt_ac_count -gt 10 && break
3735 lt_ac_count=`expr $lt_ac_count + 1`
3736 if test $lt_ac_count -gt $lt_ac_max; then
3737 lt_ac_max=$lt_ac_count
3738 lt_cv_path_SED=$lt_ac_sed
3746 echo "$as_me:$LINENO: result: $SED" >&5
3747 echo "${ECHO_T}$SED" >&6
3749 echo "$as_me:$LINENO: checking for egrep" >&5
3750 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3751 if test "${ac_cv_prog_egrep+set}" = set; then
3752 echo $ECHO_N "(cached) $ECHO_C" >&6
3754 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3755 then ac_cv_prog_egrep='grep -E'
3756 else ac_cv_prog_egrep='egrep'
3759 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3760 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3761 EGREP=$ac_cv_prog_egrep
3765 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3766 if test "${with_gnu_ld+set}" = set; then
3767 withval="$with_gnu_ld"
3768 test "$withval" = no || with_gnu_ld=yes
3773 if test "$GCC" = yes; then
3774 # Check if gcc -print-prog-name=ld gives a path.
3775 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3776 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3779 # gcc leaves a trailing carriage return which upsets mingw
3780 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3782 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3785 # Accept absolute paths.
3787 re_direlt='/[^/][^/]*/\.\./'
3788 # Canonicalize the path of ld
3789 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3790 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3791 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3793 test -z "$LD" && LD="$ac_prog"
3796 # If it fails, then pretend we aren't using GCC.
3800 # If it is relative, then search for the first ld in PATH.
3804 elif test "$with_gnu_ld" = yes; then
3805 echo "$as_me:$LINENO: checking for GNU ld" >&5
3806 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3808 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3809 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3811 if test "${lt_cv_path_LD+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3814 if test -z "$LD"; then
3815 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3816 for ac_dir in $PATH; do
3818 test -z "$ac_dir" && ac_dir=.
3819 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3820 lt_cv_path_LD="$ac_dir/$ac_prog"
3821 # Check to see if the program is GNU ld. I'd rather use --version,
3822 # but apparently some GNU ld's only accept -v.
3823 # Break only if it was the GNU/non-GNU ld that we prefer.
3824 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3825 *GNU* | *'with BFD'*)
3826 test "$with_gnu_ld" != no && break
3829 test "$with_gnu_ld" != yes && break
3836 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3841 if test -n "$LD"; then
3842 echo "$as_me:$LINENO: result: $LD" >&5
3843 echo "${ECHO_T}$LD" >&6
3845 echo "$as_me:$LINENO: result: no" >&5
3846 echo "${ECHO_T}no" >&6
3848 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3849 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3850 { (exit 1); exit 1; }; }
3851 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3852 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3853 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3854 echo $ECHO_N "(cached) $ECHO_C" >&6
3856 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3857 case `"$LD" -v 2>&1 </dev/null` in
3858 *GNU* | *'with BFD'*)
3859 lt_cv_prog_gnu_ld=yes
3862 lt_cv_prog_gnu_ld=no
3866 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3867 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3868 with_gnu_ld=$lt_cv_prog_gnu_ld
3871 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3872 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3873 if test "${lt_cv_ld_reload_flag+set}" = set; then
3874 echo $ECHO_N "(cached) $ECHO_C" >&6
3876 lt_cv_ld_reload_flag='-r'
3878 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3879 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3880 reload_flag=$lt_cv_ld_reload_flag
3881 case $reload_flag in
3883 *) reload_flag=" $reload_flag" ;;
3885 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3887 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3888 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3889 if test "${lt_cv_path_NM+set}" = set; then
3890 echo $ECHO_N "(cached) $ECHO_C" >&6
3892 if test -n "$NM"; then
3893 # Let the user override the test.
3896 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3897 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3899 test -z "$ac_dir" && ac_dir=.
3900 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3901 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3902 # Check to see if the nm accepts a BSD-compat flag.
3903 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3904 # nm: unknown option "B" ignored
3905 # Tru64's nm complains that /dev/null is an invalid object file
3906 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3907 */dev/null* | *'Invalid file or object type'*)
3908 lt_cv_path_NM="$tmp_nm -B"
3912 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3914 lt_cv_path_NM="$tmp_nm -p"
3918 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3919 continue # so that we can try to find one that supports BSD flags
3926 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3929 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3930 echo "${ECHO_T}$lt_cv_path_NM" >&6
3933 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3934 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3936 if test "$LN_S" = "ln -s"; then
3937 echo "$as_me:$LINENO: result: yes" >&5
3938 echo "${ECHO_T}yes" >&6
3940 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3941 echo "${ECHO_T}no, using $LN_S" >&6
3944 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3945 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3946 if test "${lt_cv_deplibs_check_method+set}" = set; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3949 lt_cv_file_magic_cmd='$MAGIC_CMD'
3950 lt_cv_file_magic_test_file=
3951 lt_cv_deplibs_check_method='unknown'
3952 # Need to set the preceding variable on all platforms that support
3953 # interlibrary dependencies.
3954 # 'none' -- dependencies not supported.
3955 # `unknown' -- same as none, but documents that we really don't know.
3956 # 'pass_all' -- all dependencies passed with no checks.
3957 # 'test_compile' -- check by making test program.
3958 # 'file_magic [[regex]]' -- check by looking for files in library path
3959 # which responds to the $file_magic_cmd with a given extended regex.
3960 # If you have `file' or equivalent on your system and you're not sure
3961 # whether `pass_all' will *always* work, you probably want this one.
3965 lt_cv_deplibs_check_method=pass_all
3969 lt_cv_deplibs_check_method=pass_all
3973 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3974 lt_cv_file_magic_cmd='/usr/bin/file -L'
3975 lt_cv_file_magic_test_file=/shlib/libc.so
3978 cygwin* | mingw* | pw32*)
3979 # win32_libid is a shell function defined in ltmain.sh
3980 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3981 lt_cv_file_magic_cmd='win32_libid'
3984 darwin* | rhapsody*)
3985 # this will be overwritten by pass_all, but leave it in just in case
3986 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3987 lt_cv_file_magic_cmd='/usr/bin/file -L'
3989 rhapsody* | darwin1.[012])
3990 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3993 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3996 lt_cv_deplibs_check_method=pass_all
4000 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4003 # Not sure whether the presence of OpenBSD here was a mistake.
4004 # Let's accept both of them until this is cleared up.
4005 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4006 lt_cv_file_magic_cmd=/usr/bin/file
4007 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4011 lt_cv_deplibs_check_method=pass_all
4016 lt_cv_deplibs_check_method=pass_all
4019 hpux10.20* | hpux11*)
4020 lt_cv_file_magic_cmd=/usr/bin/file
4023 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4024 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4027 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]'
4028 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4031 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4032 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4037 irix5* | irix6* | nonstopux*)
4039 irix5* | nonstopux*)
4040 # this will be overridden with pass_all, but let us keep it just in case
4041 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4045 *-32|*"-32 ") libmagic=32-bit;;
4046 *-n32|*"-n32 ") libmagic=N32;;
4047 *-64|*"-64 ") libmagic=64-bit;;
4048 *) libmagic=never-match;;
4050 # this will be overridden with pass_all, but let us keep it just in case
4051 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4054 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4055 lt_cv_deplibs_check_method=pass_all
4058 # This must be Linux ELF.
4061 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
4062 lt_cv_deplibs_check_method=pass_all ;;
4064 # glibc up to 2.1.1 does not perform some relocations on ARM
4065 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4067 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4071 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4072 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4074 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4079 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4080 lt_cv_file_magic_cmd=/usr/bin/file
4081 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4085 lt_cv_deplibs_check_method=unknown
4089 lt_cv_file_magic_cmd=/usr/bin/file
4090 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4091 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4092 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4094 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4098 osf3* | osf4* | osf5*)
4099 # this will be overridden with pass_all, but let us keep it just in case
4100 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4101 lt_cv_file_magic_test_file=/shlib/libc.so
4102 lt_cv_deplibs_check_method=pass_all
4106 lt_cv_deplibs_check_method=pass_all
4110 lt_cv_deplibs_check_method=pass_all
4111 lt_cv_file_magic_test_file=/lib/libc.so
4114 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4115 case $host_vendor in
4117 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]'
4118 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4121 lt_cv_deplibs_check_method=pass_all
4124 lt_cv_file_magic_cmd='/bin/file'
4125 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4128 lt_cv_file_magic_cmd='/bin/file'
4129 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4130 lt_cv_file_magic_test_file=/lib/libc.so
4133 lt_cv_deplibs_check_method=pass_all
4138 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4139 lt_cv_deplibs_check_method=pass_all
4144 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4145 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4146 file_magic_cmd=$lt_cv_file_magic_cmd
4147 deplibs_check_method=$lt_cv_deplibs_check_method
4148 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4153 # If no C compiler was specified, use CC.
4156 # Allow CC to be a program name with arguments.
4159 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4160 if test "${enable_libtool_lock+set}" = set; then
4161 enableval="$enable_libtool_lock"
4164 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4166 # Some flags need to be propagated to the compiler or linker for good
4170 # Find out which ABI we are using.
4171 echo 'int i;' > conftest.$ac_ext
4172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4173 (eval $ac_compile) 2>&5
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); }; then
4177 case `/usr/bin/file conftest.$ac_objext` in
4189 # Find out which ABI we are using.
4190 echo '#line 4190 "configure"' > conftest.$ac_ext
4191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4192 (eval $ac_compile) 2>&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); }; then
4196 if test "$lt_cv_prog_gnu_ld" = yes; then
4197 case `/usr/bin/file conftest.$ac_objext` in
4199 LD="${LD-ld} -melf32bsmip"
4202 LD="${LD-ld} -melf32bmipn32"
4205 LD="${LD-ld} -melf64bmip"
4209 case `/usr/bin/file conftest.$ac_objext` in
4225 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4226 # Find out which ABI we are using.
4227 echo 'int i;' > conftest.$ac_ext
4228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4229 (eval $ac_compile) 2>&5
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); }; then
4233 case "`/usr/bin/file conftest.o`" in
4237 LD="${LD-ld} -m elf_i386"
4240 LD="${LD-ld} -m elf32ppclinux"
4243 LD="${LD-ld} -m elf_s390"
4246 LD="${LD-ld} -m elf32_sparc"
4253 LD="${LD-ld} -m elf_x86_64"
4255 ppc*-*linux*|powerpc*-*linux*)
4256 LD="${LD-ld} -m elf64ppc"
4259 LD="${LD-ld} -m elf64_s390"
4262 LD="${LD-ld} -m elf64_sparc"
4272 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4273 SAVE_CFLAGS="$CFLAGS"
4274 CFLAGS="$CFLAGS -belf"
4275 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4276 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4277 if test "${lt_cv_cc_needs_belf+set}" = set; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4281 ac_cpp='$CPP $CPPFLAGS'
4282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4286 cat >conftest.$ac_ext <<_ACEOF
4289 cat confdefs.h >>conftest.$ac_ext
4290 cat >>conftest.$ac_ext <<_ACEOF
4291 /* end confdefs.h. */
4301 rm -f conftest.$ac_objext conftest$ac_exeext
4302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4303 (eval $ac_link) 2>conftest.er1
4305 grep -v '^ *+' conftest.er1 >conftest.err
4307 cat conftest.err >&5
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); } &&
4310 { ac_try='test -z "$ac_c_werror_flag"
4311 || test ! -s conftest.err'
4312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); }; } &&
4317 { ac_try='test -s conftest$ac_exeext'
4318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); }; }; then
4323 lt_cv_cc_needs_belf=yes
4325 echo "$as_me: failed program was:" >&5
4326 sed 's/^/| /' conftest.$ac_ext >&5
4328 lt_cv_cc_needs_belf=no
4330 rm -f conftest.err conftest.$ac_objext \
4331 conftest$ac_exeext conftest.$ac_ext
4333 ac_cpp='$CPP $CPPFLAGS'
4334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4339 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4340 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4341 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4342 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4343 CFLAGS="$SAVE_CFLAGS"
4349 need_locks="$enable_libtool_lock"
4353 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4354 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4355 if test "${ac_cv_header_stdc+set}" = set; then
4356 echo $ECHO_N "(cached) $ECHO_C" >&6
4358 cat >conftest.$ac_ext <<_ACEOF
4361 cat confdefs.h >>conftest.$ac_ext
4362 cat >>conftest.$ac_ext <<_ACEOF
4363 /* end confdefs.h. */
4377 rm -f conftest.$ac_objext
4378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4379 (eval $ac_compile) 2>conftest.er1
4381 grep -v '^ *+' conftest.er1 >conftest.err
4383 cat conftest.err >&5
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); } &&
4386 { ac_try='test -z "$ac_c_werror_flag"
4387 || test ! -s conftest.err'
4388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); }; } &&
4393 { ac_try='test -s conftest.$ac_objext'
4394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); }; }; then
4399 ac_cv_header_stdc=yes
4401 echo "$as_me: failed program was:" >&5
4402 sed 's/^/| /' conftest.$ac_ext >&5
4404 ac_cv_header_stdc=no
4406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4408 if test $ac_cv_header_stdc = yes; then
4409 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4410 cat >conftest.$ac_ext <<_ACEOF
4413 cat confdefs.h >>conftest.$ac_ext
4414 cat >>conftest.$ac_ext <<_ACEOF
4415 /* end confdefs.h. */
4419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4420 $EGREP "memchr" >/dev/null 2>&1; then
4423 ac_cv_header_stdc=no
4429 if test $ac_cv_header_stdc = yes; then
4430 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4431 cat >conftest.$ac_ext <<_ACEOF
4434 cat confdefs.h >>conftest.$ac_ext
4435 cat >>conftest.$ac_ext <<_ACEOF
4436 /* end confdefs.h. */
4440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4441 $EGREP "free" >/dev/null 2>&1; then
4444 ac_cv_header_stdc=no
4450 if test $ac_cv_header_stdc = yes; then
4451 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4452 if test "$cross_compiling" = yes; then
4455 cat >conftest.$ac_ext <<_ACEOF
4458 cat confdefs.h >>conftest.$ac_ext
4459 cat >>conftest.$ac_ext <<_ACEOF
4460 /* end confdefs.h. */
4462 #if ((' ' & 0x0FF) == 0x020)
4463 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4464 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4466 # define ISLOWER(c) \
4467 (('a' <= (c) && (c) <= 'i') \
4468 || ('j' <= (c) && (c) <= 'r') \
4469 || ('s' <= (c) && (c) <= 'z'))
4470 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4473 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4478 for (i = 0; i < 256; i++)
4479 if (XOR (islower (i), ISLOWER (i))
4480 || toupper (i) != TOUPPER (i))
4485 rm -f conftest$ac_exeext
4486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4487 (eval $ac_link) 2>&5
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); }; }; then
4498 echo "$as_me: program exited with status $ac_status" >&5
4499 echo "$as_me: failed program was:" >&5
4500 sed 's/^/| /' conftest.$ac_ext >&5
4503 ac_cv_header_stdc=no
4505 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4509 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4510 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4511 if test $ac_cv_header_stdc = yes; then
4513 cat >>confdefs.h <<\_ACEOF
4514 #define STDC_HEADERS 1
4519 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4529 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4530 inttypes.h stdint.h unistd.h
4532 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4533 echo "$as_me:$LINENO: checking for $ac_header" >&5
4534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4536 echo $ECHO_N "(cached) $ECHO_C" >&6
4538 cat >conftest.$ac_ext <<_ACEOF
4541 cat confdefs.h >>conftest.$ac_ext
4542 cat >>conftest.$ac_ext <<_ACEOF
4543 /* end confdefs.h. */
4544 $ac_includes_default
4546 #include <$ac_header>
4548 rm -f conftest.$ac_objext
4549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4550 (eval $ac_compile) 2>conftest.er1
4552 grep -v '^ *+' conftest.er1 >conftest.err
4554 cat conftest.err >&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); } &&
4557 { ac_try='test -z "$ac_c_werror_flag"
4558 || test ! -s conftest.err'
4559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); }; } &&
4564 { ac_try='test -s conftest.$ac_objext'
4565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); }; }; then
4570 eval "$as_ac_Header=yes"
4572 echo "$as_me: failed program was:" >&5
4573 sed 's/^/| /' conftest.$ac_ext >&5
4575 eval "$as_ac_Header=no"
4577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4580 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4582 cat >>confdefs.h <<_ACEOF
4583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4592 for ac_header in dlfcn.h
4594 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4596 echo "$as_me:$LINENO: checking for $ac_header" >&5
4597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4599 echo $ECHO_N "(cached) $ECHO_C" >&6
4601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4604 # Is the header compilable?
4605 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4606 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4607 cat >conftest.$ac_ext <<_ACEOF
4610 cat confdefs.h >>conftest.$ac_ext
4611 cat >>conftest.$ac_ext <<_ACEOF
4612 /* end confdefs.h. */
4613 $ac_includes_default
4614 #include <$ac_header>
4616 rm -f conftest.$ac_objext
4617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4618 (eval $ac_compile) 2>conftest.er1
4620 grep -v '^ *+' conftest.er1 >conftest.err
4622 cat conftest.err >&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); } &&
4625 { ac_try='test -z "$ac_c_werror_flag"
4626 || test ! -s conftest.err'
4627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); }; } &&
4632 { ac_try='test -s conftest.$ac_objext'
4633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); }; }; then
4638 ac_header_compiler=yes
4640 echo "$as_me: failed program was:" >&5
4641 sed 's/^/| /' conftest.$ac_ext >&5
4643 ac_header_compiler=no
4645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4646 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4647 echo "${ECHO_T}$ac_header_compiler" >&6
4649 # Is the header present?
4650 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4651 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4652 cat >conftest.$ac_ext <<_ACEOF
4655 cat confdefs.h >>conftest.$ac_ext
4656 cat >>conftest.$ac_ext <<_ACEOF
4657 /* end confdefs.h. */
4658 #include <$ac_header>
4660 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4661 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4663 grep -v '^ *+' conftest.er1 >conftest.err
4665 cat conftest.err >&5
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); } >/dev/null; then
4668 if test -s conftest.err; then
4669 ac_cpp_err=$ac_c_preproc_warn_flag
4670 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4677 if test -z "$ac_cpp_err"; then
4678 ac_header_preproc=yes
4680 echo "$as_me: failed program was:" >&5
4681 sed 's/^/| /' conftest.$ac_ext >&5
4683 ac_header_preproc=no
4685 rm -f conftest.err conftest.$ac_ext
4686 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4687 echo "${ECHO_T}$ac_header_preproc" >&6
4689 # So? What about this header?
4690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4692 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4693 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4695 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4696 ac_header_preproc=yes
4699 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4700 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4701 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4702 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4703 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4704 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4705 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4706 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4708 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4709 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4710 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4713 ## ----------------------------------- ##
4714 ## Report this to llvmbugs@cs.uiuc.edu ##
4715 ## ----------------------------------- ##
4718 sed "s/^/$as_me: WARNING: /" >&2
4721 echo "$as_me:$LINENO: checking for $ac_header" >&5
4722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4724 echo $ECHO_N "(cached) $ECHO_C" >&6
4726 eval "$as_ac_Header=\$ac_header_preproc"
4728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4733 cat >>confdefs.h <<_ACEOF
4734 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4742 ac_cpp='$CXXCPP $CPPFLAGS'
4743 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4744 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4745 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4746 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4747 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4748 if test -z "$CXXCPP"; then
4749 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4750 echo $ECHO_N "(cached) $ECHO_C" >&6
4752 # Double quotes because CXXCPP needs to be expanded
4753 for CXXCPP in "$CXX -E" "/lib/cpp"
4756 for ac_cxx_preproc_warn_flag in '' yes
4758 # Use a header file that comes with gcc, so configuring glibc
4759 # with a fresh cross-compiler works.
4760 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4761 # <limits.h> exists even on freestanding compilers.
4762 # On the NeXT, cc -E runs the code through the compiler's parser,
4763 # not just through cpp. "Syntax error" is here to catch this case.
4764 cat >conftest.$ac_ext <<_ACEOF
4767 cat confdefs.h >>conftest.$ac_ext
4768 cat >>conftest.$ac_ext <<_ACEOF
4769 /* end confdefs.h. */
4771 # include <limits.h>
4773 # include <assert.h>
4777 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4778 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4780 grep -v '^ *+' conftest.er1 >conftest.err
4782 cat conftest.err >&5
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); } >/dev/null; then
4785 if test -s conftest.err; then
4786 ac_cpp_err=$ac_cxx_preproc_warn_flag
4787 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4794 if test -z "$ac_cpp_err"; then
4797 echo "$as_me: failed program was:" >&5
4798 sed 's/^/| /' conftest.$ac_ext >&5
4800 # Broken: fails on valid input.
4803 rm -f conftest.err conftest.$ac_ext
4805 # OK, works on sane cases. Now check whether non-existent headers
4806 # can be detected and how.
4807 cat >conftest.$ac_ext <<_ACEOF
4810 cat confdefs.h >>conftest.$ac_ext
4811 cat >>conftest.$ac_ext <<_ACEOF
4812 /* end confdefs.h. */
4813 #include <ac_nonexistent.h>
4815 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4816 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4818 grep -v '^ *+' conftest.er1 >conftest.err
4820 cat conftest.err >&5
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); } >/dev/null; then
4823 if test -s conftest.err; then
4824 ac_cpp_err=$ac_cxx_preproc_warn_flag
4825 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4832 if test -z "$ac_cpp_err"; then
4833 # Broken: success on invalid input.
4836 echo "$as_me: failed program was:" >&5
4837 sed 's/^/| /' conftest.$ac_ext >&5
4839 # Passes both tests.
4843 rm -f conftest.err conftest.$ac_ext
4846 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4847 rm -f conftest.err conftest.$ac_ext
4848 if $ac_preproc_ok; then
4853 ac_cv_prog_CXXCPP=$CXXCPP
4856 CXXCPP=$ac_cv_prog_CXXCPP
4858 ac_cv_prog_CXXCPP=$CXXCPP
4860 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4861 echo "${ECHO_T}$CXXCPP" >&6
4863 for ac_cxx_preproc_warn_flag in '' yes
4865 # Use a header file that comes with gcc, so configuring glibc
4866 # with a fresh cross-compiler works.
4867 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4868 # <limits.h> exists even on freestanding compilers.
4869 # On the NeXT, cc -E runs the code through the compiler's parser,
4870 # not just through cpp. "Syntax error" is here to catch this case.
4871 cat >conftest.$ac_ext <<_ACEOF
4874 cat confdefs.h >>conftest.$ac_ext
4875 cat >>conftest.$ac_ext <<_ACEOF
4876 /* end confdefs.h. */
4878 # include <limits.h>
4880 # include <assert.h>
4884 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4885 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4887 grep -v '^ *+' conftest.er1 >conftest.err
4889 cat conftest.err >&5
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); } >/dev/null; then
4892 if test -s conftest.err; then
4893 ac_cpp_err=$ac_cxx_preproc_warn_flag
4894 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4901 if test -z "$ac_cpp_err"; then
4904 echo "$as_me: failed program was:" >&5
4905 sed 's/^/| /' conftest.$ac_ext >&5
4907 # Broken: fails on valid input.
4910 rm -f conftest.err conftest.$ac_ext
4912 # OK, works on sane cases. Now check whether non-existent headers
4913 # can be detected and how.
4914 cat >conftest.$ac_ext <<_ACEOF
4917 cat confdefs.h >>conftest.$ac_ext
4918 cat >>conftest.$ac_ext <<_ACEOF
4919 /* end confdefs.h. */
4920 #include <ac_nonexistent.h>
4922 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4923 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4925 grep -v '^ *+' conftest.er1 >conftest.err
4927 cat conftest.err >&5
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); } >/dev/null; then
4930 if test -s conftest.err; then
4931 ac_cpp_err=$ac_cxx_preproc_warn_flag
4932 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4939 if test -z "$ac_cpp_err"; then
4940 # Broken: success on invalid input.
4943 echo "$as_me: failed program was:" >&5
4944 sed 's/^/| /' conftest.$ac_ext >&5
4946 # Passes both tests.
4950 rm -f conftest.err conftest.$ac_ext
4953 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4954 rm -f conftest.err conftest.$ac_ext
4955 if $ac_preproc_ok; then
4958 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4959 See \`config.log' for more details." >&5
4960 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4961 See \`config.log' for more details." >&2;}
4962 { (exit 1); exit 1; }; }
4966 ac_cpp='$CXXCPP $CPPFLAGS'
4967 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4968 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4969 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4973 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4974 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4975 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4976 if test -n "$ac_tool_prefix"; then
4977 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4979 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4980 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4981 echo "$as_me:$LINENO: checking for $ac_word" >&5
4982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4983 if test "${ac_cv_prog_F77+set}" = set; then
4984 echo $ECHO_N "(cached) $ECHO_C" >&6
4986 if test -n "$F77"; then
4987 ac_cv_prog_F77="$F77" # Let the user override the test.
4989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993 test -z "$as_dir" && as_dir=.
4994 for ac_exec_ext in '' $ac_executable_extensions; do
4995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4996 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5006 if test -n "$F77"; then
5007 echo "$as_me:$LINENO: result: $F77" >&5
5008 echo "${ECHO_T}$F77" >&6
5010 echo "$as_me:$LINENO: result: no" >&5
5011 echo "${ECHO_T}no" >&6
5014 test -n "$F77" && break
5017 if test -z "$F77"; then
5019 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5021 # Extract the first word of "$ac_prog", so it can be a program name with args.
5022 set dummy $ac_prog; ac_word=$2
5023 echo "$as_me:$LINENO: checking for $ac_word" >&5
5024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5025 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5026 echo $ECHO_N "(cached) $ECHO_C" >&6
5028 if test -n "$ac_ct_F77"; then
5029 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5035 test -z "$as_dir" && as_dir=.
5036 for ac_exec_ext in '' $ac_executable_extensions; do
5037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5038 ac_cv_prog_ac_ct_F77="$ac_prog"
5039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5047 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5048 if test -n "$ac_ct_F77"; then
5049 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5050 echo "${ECHO_T}$ac_ct_F77" >&6
5052 echo "$as_me:$LINENO: result: no" >&5
5053 echo "${ECHO_T}no" >&6
5056 test -n "$ac_ct_F77" && break
5063 # Provide some information about the compiler.
5064 echo "$as_me:5064:" \
5065 "checking for Fortran 77 compiler version" >&5
5066 ac_compiler=`set X $ac_compile; echo $2`
5067 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5068 (eval $ac_compiler --version </dev/null >&5) 2>&5
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); }
5072 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5073 (eval $ac_compiler -v </dev/null >&5) 2>&5
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); }
5077 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5078 (eval $ac_compiler -V </dev/null >&5) 2>&5
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); }
5084 # If we don't use `.F' as extension, the preprocessor is not run on the
5085 # input file. (Note that this only needs to work for GNU compilers.)
5088 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5089 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5090 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5091 echo $ECHO_N "(cached) $ECHO_C" >&6
5093 cat >conftest.$ac_ext <<_ACEOF
5101 rm -f conftest.$ac_objext
5102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5103 (eval $ac_compile) 2>conftest.er1
5105 grep -v '^ *+' conftest.er1 >conftest.err
5107 cat conftest.err >&5
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); } &&
5110 { ac_try='test -z "$ac_f77_werror_flag"
5111 || test ! -s conftest.err'
5112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); }; } &&
5117 { ac_try='test -s conftest.$ac_objext'
5118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); }; }; then
5125 echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.$ac_ext >&5
5130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5131 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5134 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5135 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5137 ac_test_FFLAGS=${FFLAGS+set}
5138 ac_save_FFLAGS=$FFLAGS
5140 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5141 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5142 if test "${ac_cv_prog_f77_g+set}" = set; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5146 cat >conftest.$ac_ext <<_ACEOF
5151 rm -f conftest.$ac_objext
5152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5153 (eval $ac_compile) 2>conftest.er1
5155 grep -v '^ *+' conftest.er1 >conftest.err
5157 cat conftest.err >&5
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); } &&
5160 { ac_try='test -z "$ac_f77_werror_flag"
5161 || test ! -s conftest.err'
5162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); }; } &&
5167 { ac_try='test -s conftest.$ac_objext'
5168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); }; }; then
5173 ac_cv_prog_f77_g=yes
5175 echo "$as_me: failed program was:" >&5
5176 sed 's/^/| /' conftest.$ac_ext >&5
5180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5183 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5184 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5185 if test "$ac_test_FFLAGS" = set; then
5186 FFLAGS=$ac_save_FFLAGS
5187 elif test $ac_cv_prog_f77_g = yes; then
5188 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5194 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5201 G77=`test $ac_compiler_gnu = yes && echo yes`
5203 ac_cpp='$CPP $CPPFLAGS'
5204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5210 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5212 # find the maximum length of command line arguments
5213 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5214 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5215 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5216 echo $ECHO_N "(cached) $ECHO_C" >&6
5223 # On DJGPP, this test can blow up pretty badly due to problems in libc
5224 # (any single argument exceeding 2000 bytes causes a buffer overrun
5225 # during glob expansion). Even if it were fixed, the result of this
5226 # check would be larger than it should be.
5227 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5231 # Under GNU Hurd, this test is not required because there is
5232 # no limit to the length of command line arguments.
5233 # Libtool will interpret -1 as no limit whatsoever
5234 lt_cv_sys_max_cmd_len=-1;
5238 # On Win9x/ME, this test blows up -- it succeeds, but takes
5239 # about 5 minutes as the teststring grows exponentially.
5240 # Worse, since 9x/ME are not pre-emptively multitasking,
5241 # you end up with a "frozen" computer, even though with patience
5242 # the test eventually succeeds (with a max line length of 256k).
5243 # Instead, let's just punt: use the minimum linelength reported by
5244 # all of the supported platforms: 8192 (on NT/2K/XP).
5245 lt_cv_sys_max_cmd_len=8192;
5249 # If test is not a shell built-in, we'll probably end up computing a
5250 # maximum length that is only half of the actual maximum length, but
5252 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5253 = "XX$testring") >/dev/null 2>&1 &&
5254 new_result=`expr "X$testring" : ".*" 2>&1` &&
5255 lt_cv_sys_max_cmd_len=$new_result &&
5256 test $i != 17 # 1/2 MB should be enough
5259 testring=$testring$testring
5262 # Add a significant safety factor because C++ compilers can tack on massive
5263 # amounts of additional arguments before passing them to the linker.
5264 # It appears as though 1/2 is a usable value.
5265 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5271 if test -n $lt_cv_sys_max_cmd_len ; then
5272 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5273 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5275 echo "$as_me:$LINENO: result: none" >&5
5276 echo "${ECHO_T}none" >&6
5282 # Check for command to grab the raw symbol name followed by C symbol from nm.
5283 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5284 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5285 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5286 echo $ECHO_N "(cached) $ECHO_C" >&6
5289 # These are sane defaults that work on at least a few old systems.
5290 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5292 # Character class describing NM global symbol codes.
5293 symcode='[BCDEGRST]'
5295 # Regexp to match symbols that can be accessed directly from C.
5296 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5298 # Transform the above into a raw symbol and a C symbol.
5299 symxfrm='\1 \2\3 \3'
5301 # Transform an extracted symbol line into a proper C declaration
5302 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5304 # Transform an extracted symbol line into symbol name and symbol address
5305 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'"
5307 # Define system-specific variables.
5312 cygwin* | mingw* | pw32*)
5313 symcode='[ABCDGISTW]'
5315 hpux*) # Its linker distinguishes data from code symbols
5316 if test "$host_cpu" = ia64; then
5317 symcode='[ABCDEGRST]'
5319 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5320 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'"
5323 symcode='[BCDEGRST]'
5326 symcode='[BCDEGQRST]'
5336 # Handle CRLF in mingw tool chain
5340 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5344 # If we're using GNU nm, then use its standard symbol codes.
5345 case `$NM -V 2>&1` in
5346 *GNU* | *'with BFD'*)
5347 symcode='[ABCDGISTW]' ;;
5350 # Try without a prefix undercore, then with it.
5351 for ac_symprfx in "" "_"; do
5353 # Write the raw and C identifiers.
5354 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5356 # Check to see that the pipe works correctly.
5360 cat > conftest.$ac_ext <<EOF
5365 void nm_test_func(){}
5369 int main(){nm_test_var='a';nm_test_func();return(0);}
5372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5373 (eval $ac_compile) 2>&5
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); }; then
5377 # Now try to grab the symbols.
5379 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5380 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); } && test -s "$nlist"; then
5384 # Try sorting and uniquifying the output.
5385 if sort "$nlist" | uniq > "$nlist"T; then
5386 mv -f "$nlist"T "$nlist"
5391 # Make sure that we snagged all the symbols we need.
5392 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5393 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5394 cat <<EOF > conftest.$ac_ext
5400 # Now generate the symbol file.
5401 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5403 cat <<EOF >> conftest.$ac_ext
5404 #if defined (__STDC__) && __STDC__
5405 # define lt_ptr_t void *
5407 # define lt_ptr_t char *
5411 /* The mapping between symbol names and symbols. */
5416 lt_preloaded_symbols[] =
5419 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5420 cat <<\EOF >> conftest.$ac_ext
5428 # Now try linking the two files.
5429 mv conftest.$ac_objext conftstm.$ac_objext
5430 lt_save_LIBS="$LIBS"
5431 lt_save_CFLAGS="$CFLAGS"
5432 LIBS="conftstm.$ac_objext"
5433 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5435 (eval $ac_link) 2>&5
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5441 LIBS="$lt_save_LIBS"
5442 CFLAGS="$lt_save_CFLAGS"
5444 echo "cannot find nm_test_func in $nlist" >&5
5447 echo "cannot find nm_test_var in $nlist" >&5
5450 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5453 echo "$progname: failed program was:" >&5
5454 cat conftest.$ac_ext >&5
5456 rm -f conftest* conftst*
5458 # Do not use the global_symbol_pipe unless it works.
5459 if test "$pipe_works" = yes; then
5462 lt_cv_sys_global_symbol_pipe=
5468 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5469 lt_cv_sys_global_symbol_to_cdecl=
5471 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5472 echo "$as_me:$LINENO: result: failed" >&5
5473 echo "${ECHO_T}failed" >&6
5475 echo "$as_me:$LINENO: result: ok" >&5
5476 echo "${ECHO_T}ok" >&6
5479 echo "$as_me:$LINENO: checking for objdir" >&5
5480 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5481 if test "${lt_cv_objdir+set}" = set; then
5482 echo $ECHO_N "(cached) $ECHO_C" >&6
5484 rm -f .libs 2>/dev/null
5485 mkdir .libs 2>/dev/null
5486 if test -d .libs; then
5489 # MS-DOS does not allow filenames that begin with a dot.
5492 rmdir .libs 2>/dev/null
5494 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5495 echo "${ECHO_T}$lt_cv_objdir" >&6
5496 objdir=$lt_cv_objdir
5504 # AIX sometimes has problems with the GCC collect2 program. For some
5505 # reason, if we set the COLLECT_NAMES environment variable, the problems
5506 # vanish in a puff of smoke.
5507 if test "X${COLLECT_NAMES+set}" != Xset; then
5509 export COLLECT_NAMES
5514 # Sed substitution that helps us do robust quoting. It backslashifies
5515 # metacharacters that are still active within double-quoted strings.
5516 Xsed='sed -e s/^X//'
5517 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5519 # Same as above, but do not quote variable references.
5520 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5522 # Sed substitution to delay expansion of an escaped shell variable in a
5523 # double_quote_subst'ed string.
5524 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5526 # Sed substitution to avoid accidental globbing in evaled expressions
5527 no_glob_subst='s/\*/\\\*/g'
5534 can_build_shared=yes
5536 # All known linkers require a `.a' archive for static linking (except M$VC,
5537 # which needs '.lib').
5539 ltmain="$ac_aux_dir/ltmain.sh"
5540 ofile="$default_ofile"
5541 with_gnu_ld="$lt_cv_prog_gnu_ld"
5543 if test -n "$ac_tool_prefix"; then
5544 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5545 set dummy ${ac_tool_prefix}ar; ac_word=$2
5546 echo "$as_me:$LINENO: checking for $ac_word" >&5
5547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5548 if test "${ac_cv_prog_AR+set}" = set; then
5549 echo $ECHO_N "(cached) $ECHO_C" >&6
5551 if test -n "$AR"; then
5552 ac_cv_prog_AR="$AR" # Let the user override the test.
5554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558 test -z "$as_dir" && as_dir=.
5559 for ac_exec_ext in '' $ac_executable_extensions; do
5560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5561 ac_cv_prog_AR="${ac_tool_prefix}ar"
5562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5571 if test -n "$AR"; then
5572 echo "$as_me:$LINENO: result: $AR" >&5
5573 echo "${ECHO_T}$AR" >&6
5575 echo "$as_me:$LINENO: result: no" >&5
5576 echo "${ECHO_T}no" >&6
5580 if test -z "$ac_cv_prog_AR"; then
5582 # Extract the first word of "ar", so it can be a program name with args.
5583 set dummy ar; ac_word=$2
5584 echo "$as_me:$LINENO: checking for $ac_word" >&5
5585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5586 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5587 echo $ECHO_N "(cached) $ECHO_C" >&6
5589 if test -n "$ac_ct_AR"; then
5590 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5596 test -z "$as_dir" && as_dir=.
5597 for ac_exec_ext in '' $ac_executable_extensions; do
5598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5599 ac_cv_prog_ac_ct_AR="ar"
5600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5606 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5609 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5610 if test -n "$ac_ct_AR"; then
5611 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5612 echo "${ECHO_T}$ac_ct_AR" >&6
5614 echo "$as_me:$LINENO: result: no" >&5
5615 echo "${ECHO_T}no" >&6
5623 if test -n "$ac_tool_prefix"; then
5624 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5625 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5626 echo "$as_me:$LINENO: checking for $ac_word" >&5
5627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5628 if test "${ac_cv_prog_RANLIB+set}" = set; then
5629 echo $ECHO_N "(cached) $ECHO_C" >&6
5631 if test -n "$RANLIB"; then
5632 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5638 test -z "$as_dir" && as_dir=.
5639 for ac_exec_ext in '' $ac_executable_extensions; do
5640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5641 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5650 RANLIB=$ac_cv_prog_RANLIB
5651 if test -n "$RANLIB"; then
5652 echo "$as_me:$LINENO: result: $RANLIB" >&5
5653 echo "${ECHO_T}$RANLIB" >&6
5655 echo "$as_me:$LINENO: result: no" >&5
5656 echo "${ECHO_T}no" >&6
5660 if test -z "$ac_cv_prog_RANLIB"; then
5661 ac_ct_RANLIB=$RANLIB
5662 # Extract the first word of "ranlib", so it can be a program name with args.
5663 set dummy ranlib; ac_word=$2
5664 echo "$as_me:$LINENO: checking for $ac_word" >&5
5665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5666 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5667 echo $ECHO_N "(cached) $ECHO_C" >&6
5669 if test -n "$ac_ct_RANLIB"; then
5670 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5676 test -z "$as_dir" && as_dir=.
5677 for ac_exec_ext in '' $ac_executable_extensions; do
5678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5679 ac_cv_prog_ac_ct_RANLIB="ranlib"
5680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5686 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5689 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5690 if test -n "$ac_ct_RANLIB"; then
5691 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5692 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5694 echo "$as_me:$LINENO: result: no" >&5
5695 echo "${ECHO_T}no" >&6
5698 RANLIB=$ac_ct_RANLIB
5700 RANLIB="$ac_cv_prog_RANLIB"
5703 if test -n "$ac_tool_prefix"; then
5704 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5705 set dummy ${ac_tool_prefix}strip; ac_word=$2
5706 echo "$as_me:$LINENO: checking for $ac_word" >&5
5707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5708 if test "${ac_cv_prog_STRIP+set}" = set; then
5709 echo $ECHO_N "(cached) $ECHO_C" >&6
5711 if test -n "$STRIP"; then
5712 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718 test -z "$as_dir" && as_dir=.
5719 for ac_exec_ext in '' $ac_executable_extensions; do
5720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5721 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5730 STRIP=$ac_cv_prog_STRIP
5731 if test -n "$STRIP"; then
5732 echo "$as_me:$LINENO: result: $STRIP" >&5
5733 echo "${ECHO_T}$STRIP" >&6
5735 echo "$as_me:$LINENO: result: no" >&5
5736 echo "${ECHO_T}no" >&6
5740 if test -z "$ac_cv_prog_STRIP"; then
5742 # Extract the first word of "strip", so it can be a program name with args.
5743 set dummy strip; ac_word=$2
5744 echo "$as_me:$LINENO: checking for $ac_word" >&5
5745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5746 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5747 echo $ECHO_N "(cached) $ECHO_C" >&6
5749 if test -n "$ac_ct_STRIP"; then
5750 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5756 test -z "$as_dir" && as_dir=.
5757 for ac_exec_ext in '' $ac_executable_extensions; do
5758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5759 ac_cv_prog_ac_ct_STRIP="strip"
5760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5766 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5769 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5770 if test -n "$ac_ct_STRIP"; then
5771 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5772 echo "${ECHO_T}$ac_ct_STRIP" >&6
5774 echo "$as_me:$LINENO: result: no" >&5
5775 echo "${ECHO_T}no" >&6
5780 STRIP="$ac_cv_prog_STRIP"
5785 old_CFLAGS="$CFLAGS"
5787 # Set sane defaults for various variables
5788 test -z "$AR" && AR=ar
5789 test -z "$AR_FLAGS" && AR_FLAGS=cru
5790 test -z "$AS" && AS=as
5791 test -z "$CC" && CC=cc
5792 test -z "$LTCC" && LTCC=$CC
5793 test -z "$DLLTOOL" && DLLTOOL=dlltool
5794 test -z "$LD" && LD=ld
5795 test -z "$LN_S" && LN_S="ln -s"
5796 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5797 test -z "$NM" && NM=nm
5798 test -z "$SED" && SED=sed
5799 test -z "$OBJDUMP" && OBJDUMP=objdump
5800 test -z "$RANLIB" && RANLIB=:
5801 test -z "$STRIP" && STRIP=:
5802 test -z "$ac_objext" && ac_objext=o
5804 # Determine commands to create old-style static archives.
5805 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5806 old_postinstall_cmds='chmod 644 $oldlib'
5807 old_postuninstall_cmds=
5809 if test -n "$RANLIB"; then
5812 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5815 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5818 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5821 # Only perform the check for file, if the check method requires it
5822 case $deplibs_check_method in
5824 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5825 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5826 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5827 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5828 echo $ECHO_N "(cached) $ECHO_C" >&6
5832 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5835 lt_save_MAGIC_CMD="$MAGIC_CMD"
5836 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5837 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5838 for ac_dir in $ac_dummy; do
5840 test -z "$ac_dir" && ac_dir=.
5841 if test -f $ac_dir/${ac_tool_prefix}file; then
5842 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5843 if test -n "$file_magic_test_file"; then
5844 case $deplibs_check_method in
5846 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5847 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5848 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5849 $EGREP "$file_magic_regex" > /dev/null; then
5854 *** Warning: the command libtool uses to detect shared libraries,
5855 *** $file_magic_cmd, produces output that libtool cannot recognize.
5856 *** The result is that libtool may fail to recognize shared libraries
5857 *** as such. This will affect the creation of libtool libraries that
5858 *** depend on shared libraries, but programs linked with such libtool
5859 *** libraries will work regardless of this problem. Nevertheless, you
5860 *** may want to report the problem to your system manager and/or to
5861 *** bug-libtool@gnu.org
5871 MAGIC_CMD="$lt_save_MAGIC_CMD"
5876 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5877 if test -n "$MAGIC_CMD"; then
5878 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5879 echo "${ECHO_T}$MAGIC_CMD" >&6
5881 echo "$as_me:$LINENO: result: no" >&5
5882 echo "${ECHO_T}no" >&6
5885 if test -z "$lt_cv_path_MAGIC_CMD"; then
5886 if test -n "$ac_tool_prefix"; then
5887 echo "$as_me:$LINENO: checking for file" >&5
5888 echo $ECHO_N "checking for file... $ECHO_C" >&6
5889 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5890 echo $ECHO_N "(cached) $ECHO_C" >&6
5894 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5897 lt_save_MAGIC_CMD="$MAGIC_CMD"
5898 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5899 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5900 for ac_dir in $ac_dummy; do
5902 test -z "$ac_dir" && ac_dir=.
5903 if test -f $ac_dir/file; then
5904 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5905 if test -n "$file_magic_test_file"; then
5906 case $deplibs_check_method in
5908 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5909 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5910 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5911 $EGREP "$file_magic_regex" > /dev/null; then
5916 *** Warning: the command libtool uses to detect shared libraries,
5917 *** $file_magic_cmd, produces output that libtool cannot recognize.
5918 *** The result is that libtool may fail to recognize shared libraries
5919 *** as such. This will affect the creation of libtool libraries that
5920 *** depend on shared libraries, but programs linked with such libtool
5921 *** libraries will work regardless of this problem. Nevertheless, you
5922 *** may want to report the problem to your system manager and/or to
5923 *** bug-libtool@gnu.org
5933 MAGIC_CMD="$lt_save_MAGIC_CMD"
5938 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5939 if test -n "$MAGIC_CMD"; then
5940 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5941 echo "${ECHO_T}$MAGIC_CMD" >&6
5943 echo "$as_me:$LINENO: result: no" >&5
5944 echo "${ECHO_T}no" >&6
5959 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5960 if test "${enable_libtool_lock+set}" = set; then
5961 enableval="$enable_libtool_lock"
5964 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5967 # Check whether --with-pic or --without-pic was given.
5968 if test "${with_pic+set}" = set; then
5974 test -z "$pic_mode" && pic_mode=default
5976 # Use C for the default configuration in the libtool script
5980 ac_cpp='$CPP $CPPFLAGS'
5981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5986 # Source file extension for C test sources.
5989 # Object file extension for compiled C test sources.
5993 # Code to be used in simple compile tests
5994 lt_simple_compile_test_code="int some_variable = 0;\n"
5996 # Code to be used in simple link tests
5997 lt_simple_link_test_code='int main(){return(0);}\n'
6000 # If no C compiler was specified, use CC.
6003 # Allow CC to be a program name with arguments.
6008 # Check for any special shared library compilation flags.
6011 if test "$GCC" = no; then
6014 lt_prog_cc_shlib='-belf'
6018 if test -n "$lt_prog_cc_shlib"; then
6019 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6020 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6021 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6023 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6024 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6025 lt_cv_prog_cc_can_build_shared=no
6031 # Check to make sure the static flag actually works.
6033 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6034 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6035 if test "${lt_prog_compiler_static_works+set}" = set; then
6036 echo $ECHO_N "(cached) $ECHO_C" >&6
6038 lt_prog_compiler_static_works=no
6039 save_LDFLAGS="$LDFLAGS"
6040 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6041 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6042 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6043 # The compiler can only warn and ignore the option if not recognized
6044 # So say no if there are warnings
6045 if test -s conftest.err; then
6046 # Append any errors to the config.log.
6047 cat conftest.err 1>&5
6049 lt_prog_compiler_static_works=yes
6053 LDFLAGS="$save_LDFLAGS"
6056 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6057 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6059 if test x"$lt_prog_compiler_static_works" = xyes; then
6062 lt_prog_compiler_static=
6068 ## There is no encapsulation within the following macros, do not change
6069 ## the running order or otherwise move them around unless you know exactly
6070 ## what you are doing...
6072 lt_prog_compiler_no_builtin_flag=
6074 if test "$GCC" = yes; then
6075 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6077 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6078 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6079 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6080 echo $ECHO_N "(cached) $ECHO_C" >&6
6082 lt_cv_prog_compiler_rtti_exceptions=no
6083 ac_outfile=conftest.$ac_objext
6084 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6085 lt_compiler_flag="-fno-rtti -fno-exceptions"
6086 # Insert the option either (1) after the last *FLAGS variable, or
6087 # (2) before a word containing "conftest.", or (3) at the end.
6088 # Note that $ac_compile itself does not contain backslashes and begins
6089 # with a dollar sign (not a hyphen), so the echo should work correctly.
6090 # The option is referenced via a variable to avoid confusing sed.
6091 lt_compile=`echo "$ac_compile" | $SED \
6092 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6093 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6094 -e 's:$: $lt_compiler_flag:'`
6095 (eval echo "\"\$as_me:6095: $lt_compile\"" >&5)
6096 (eval "$lt_compile" 2>conftest.err)
6098 cat conftest.err >&5
6099 echo "$as_me:6099: \$? = $ac_status" >&5
6100 if (exit $ac_status) && test -s "$ac_outfile"; then
6101 # The compiler can only warn and ignore the option if not recognized
6102 # So say no if there are warnings
6103 if test ! -s conftest.err; then
6104 lt_cv_prog_compiler_rtti_exceptions=yes
6110 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6111 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6113 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6114 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6121 lt_prog_compiler_wl=
6122 lt_prog_compiler_pic=
6123 lt_prog_compiler_static=
6125 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6126 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6128 if test "$GCC" = yes; then
6129 lt_prog_compiler_wl='-Wl,'
6130 lt_prog_compiler_static='-static'
6134 # All AIX code is PIC.
6135 if test "$host_cpu" = ia64; then
6136 # AIX 5 now supports IA64 processor
6137 lt_prog_compiler_static='-Bstatic'
6142 # FIXME: we need at least 68020 code to build shared libraries, but
6143 # adding the `-m68020' flag to GCC prevents building anything better,
6145 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6148 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6149 # PIC is the default for these OSes.
6152 mingw* | pw32* | os2*)
6153 # This hack is so that the source file can tell whether it is being
6154 # built for inclusion in a dll (and should export symbols for example).
6155 lt_prog_compiler_pic='-DDLL_EXPORT'
6158 darwin* | rhapsody*)
6159 # PIC is the default on this platform
6160 # Common symbols not allowed in MH_DYLIB files
6161 lt_prog_compiler_pic='-fno-common'
6165 # Just because we use GCC doesn't mean we suddenly get shared libraries
6166 # on systems that don't support them.
6167 lt_prog_compiler_can_build_shared=no
6172 if test -d /usr/nec; then
6173 lt_prog_compiler_pic=-Kconform_pic
6178 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6185 lt_prog_compiler_pic='-fPIC'
6191 lt_prog_compiler_pic='-fPIC'
6195 # PORTME Check for flag to pass linker flags through the system compiler.
6198 lt_prog_compiler_wl='-Wl,'
6199 if test "$host_cpu" = ia64; then
6200 # AIX 5 now supports IA64 processor
6201 lt_prog_compiler_static='-Bstatic'
6203 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6207 mingw* | pw32* | os2*)
6208 # This hack is so that the source file can tell whether it is being
6209 # built for inclusion in a dll (and should export symbols for example).
6210 lt_prog_compiler_pic='-DDLL_EXPORT'
6213 hpux9* | hpux10* | hpux11*)
6214 lt_prog_compiler_wl='-Wl,'
6215 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6222 lt_prog_compiler_pic='+Z'
6225 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6226 lt_prog_compiler_static='${wl}-a ${wl}archive'
6229 irix5* | irix6* | nonstopux*)
6230 lt_prog_compiler_wl='-Wl,'
6231 # PIC (with -KPIC) is the default.
6232 lt_prog_compiler_static='-non_shared'
6236 lt_prog_compiler_pic='-KPIC'
6237 lt_prog_compiler_static='-Bstatic'
6243 lt_prog_compiler_wl='-Wl,'
6244 lt_prog_compiler_pic='-KPIC'
6245 lt_prog_compiler_static='-static'
6248 lt_prog_compiler_wl='-Wl,'
6249 # All Alpha code is PIC.
6250 lt_prog_compiler_static='-non_shared'
6255 osf3* | osf4* | osf5*)
6256 lt_prog_compiler_wl='-Wl,'
6257 # All OSF/1 code is PIC.
6258 lt_prog_compiler_static='-non_shared'
6262 lt_prog_compiler_pic='-Kpic'
6263 lt_prog_compiler_static='-dn'
6267 lt_prog_compiler_wl='-Wl,'
6268 lt_prog_compiler_pic='-KPIC'
6269 lt_prog_compiler_static='-Bstatic'
6273 lt_prog_compiler_wl='-Qoption ld '
6274 lt_prog_compiler_pic='-PIC'
6275 lt_prog_compiler_static='-Bstatic'
6278 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6279 lt_prog_compiler_wl='-Wl,'
6280 lt_prog_compiler_pic='-KPIC'
6281 lt_prog_compiler_static='-Bstatic'
6285 if test -d /usr/nec ;then
6286 lt_prog_compiler_pic='-Kconform_pic'
6287 lt_prog_compiler_static='-Bstatic'
6292 lt_prog_compiler_pic='-pic'
6293 lt_prog_compiler_static='-Bstatic'
6297 lt_prog_compiler_can_build_shared=no
6302 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6303 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6306 # Check to make sure the PIC flag actually works.
6308 if test -n "$lt_prog_compiler_pic"; then
6309 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6310 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6311 if test "${lt_prog_compiler_pic_works+set}" = set; then
6312 echo $ECHO_N "(cached) $ECHO_C" >&6
6314 lt_prog_compiler_pic_works=no
6315 ac_outfile=conftest.$ac_objext
6316 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6317 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6318 # Insert the option either (1) after the last *FLAGS variable, or
6319 # (2) before a word containing "conftest.", or (3) at the end.
6320 # Note that $ac_compile itself does not contain backslashes and begins
6321 # with a dollar sign (not a hyphen), so the echo should work correctly.
6322 # The option is referenced via a variable to avoid confusing sed.
6323 lt_compile=`echo "$ac_compile" | $SED \
6324 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6325 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6326 -e 's:$: $lt_compiler_flag:'`
6327 (eval echo "\"\$as_me:6327: $lt_compile\"" >&5)
6328 (eval "$lt_compile" 2>conftest.err)
6330 cat conftest.err >&5
6331 echo "$as_me:6331: \$? = $ac_status" >&5
6332 if (exit $ac_status) && test -s "$ac_outfile"; then
6333 # The compiler can only warn and ignore the option if not recognized
6334 # So say no if there are warnings
6335 if test ! -s conftest.err; then
6336 lt_prog_compiler_pic_works=yes
6342 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6343 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6345 if test x"$lt_prog_compiler_pic_works" = xyes; then
6346 case $lt_prog_compiler_pic in
6348 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6351 lt_prog_compiler_pic=
6352 lt_prog_compiler_can_build_shared=no
6357 # For platforms which do not support PIC, -DPIC is meaningless:
6359 lt_prog_compiler_pic=
6362 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6366 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6367 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6368 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6369 echo $ECHO_N "(cached) $ECHO_C" >&6
6371 lt_cv_prog_compiler_c_o=no
6372 $rm -r conftest 2>/dev/null
6376 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6378 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6379 # that will create temporary files in the current directory regardless of
6380 # the output directory. Thus, making CWD read-only will cause this test
6381 # to fail, enabling locking or at least warning the user not to do parallel
6385 lt_compiler_flag="-o out/conftest2.$ac_objext"
6386 # Insert the option either (1) after the last *FLAGS variable, or
6387 # (2) before a word containing "conftest.", or (3) at the end.
6388 # Note that $ac_compile itself does not contain backslashes and begins
6389 # with a dollar sign (not a hyphen), so the echo should work correctly.
6390 lt_compile=`echo "$ac_compile" | $SED \
6391 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6392 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6393 -e 's:$: $lt_compiler_flag:'`
6394 (eval echo "\"\$as_me:6394: $lt_compile\"" >&5)
6395 (eval "$lt_compile" 2>out/conftest.err)
6397 cat out/conftest.err >&5
6398 echo "$as_me:6398: \$? = $ac_status" >&5
6399 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6401 # The compiler can only warn and ignore the option if not recognized
6402 # So say no if there are warnings
6403 if test ! -s out/conftest.err; then
6404 lt_cv_prog_compiler_c_o=yes
6415 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6416 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6419 hard_links="nottested"
6420 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6421 # do not overwrite the value of need_locks provided by the user
6422 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6423 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6426 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6428 ln conftest.a conftest.b 2>&5 || hard_links=no
6429 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6430 echo "$as_me:$LINENO: result: $hard_links" >&5
6431 echo "${ECHO_T}$hard_links" >&6
6432 if test "$hard_links" = no; then
6433 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6434 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6441 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6442 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6445 allow_undefined_flag=
6446 enable_shared_with_static_runtimes=no
6448 archive_expsym_cmds=
6449 old_archive_From_new_cmds=
6450 old_archive_from_expsyms_cmds=
6451 export_dynamic_flag_spec=
6452 whole_archive_flag_spec=
6453 thread_safe_flag_spec=
6454 hardcode_libdir_flag_spec=
6455 hardcode_libdir_flag_spec_ld=
6456 hardcode_libdir_separator=
6459 hardcode_shlibpath_var=unsupported
6460 link_all_deplibs=unknown
6461 hardcode_automatic=no
6464 always_export_symbols=no
6465 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6466 # include_expsyms should be a list of space-separated symbols to be *always*
6467 # included in the symbol list
6469 # exclude_expsyms can be an extended regexp of symbols to exclude
6470 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6471 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6472 # as well as any symbol that contains `d'.
6473 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6474 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6475 # platforms (ab)use it in PIC code, but their linkers get confused if
6476 # the symbol is explicitly referenced. Since portable code cannot
6477 # rely on this symbol name, it's probably fine to never include it in
6478 # preloaded symbol tables.
6479 extract_expsyms_cmds=
6482 cygwin* | mingw* | pw32*)
6483 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6484 # When not using gcc, we currently assume that we are using
6485 # Microsoft Visual C++.
6486 if test "$GCC" != yes; then
6496 if test "$with_gnu_ld" = yes; then
6497 # If archive_cmds runs LD, not CC, wlarc should be empty
6500 # See if GNU ld supports shared libraries.
6502 aix3* | aix4* | aix5*)
6503 # On AIX/PPC, the GNU linker is very broken
6504 if test "$host_cpu" != ia64; then
6508 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6509 *** to be unable to reliably create shared libraries on AIX.
6510 *** Therefore, libtool is disabling shared libraries support. If you
6511 *** really care for shared libraries, you may want to modify your PATH
6512 *** so that a non-GNU linker is found, and then restart.
6519 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6520 hardcode_libdir_flag_spec='-L$libdir'
6521 hardcode_minus_L=yes
6523 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6524 # that the semantics of dynamic libraries on AmigaOS, at least up
6525 # to version 4, is to share data among multiple programs linked
6526 # with the same dynamic library. Since this doesn't match the
6527 # behavior of shared libraries on other platforms, we can't use
6533 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6534 allow_undefined_flag=unsupported
6535 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6536 # support --undefined. This deserves some investigation. FIXME
6537 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6543 cygwin* | mingw* | pw32*)
6544 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6545 # as there is no search path for DLLs.
6546 hardcode_libdir_flag_spec='-L$libdir'
6547 allow_undefined_flag=unsupported
6548 always_export_symbols=no
6549 enable_shared_with_static_runtimes=yes
6550 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6552 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6553 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6554 # If the export-symbols file already is a .def file (1st line
6555 # is EXPORTS), use it as is; otherwise, prepend...
6556 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6557 cp $export_symbols $output_objdir/$soname.def;
6559 echo EXPORTS > $output_objdir/$soname.def;
6560 cat $export_symbols >> $output_objdir/$soname.def;
6562 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6569 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6570 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6573 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6574 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6579 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6583 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6584 *** create shared libraries on Solaris systems. Therefore, libtool
6585 *** is disabling shared libraries support. We urge you to upgrade GNU
6586 *** binutils to release 2.9.1 or newer. Another option is to modify
6587 *** your PATH or compiler configuration so that the native linker is
6588 *** used, and then restart.
6591 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6592 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6593 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6600 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6603 hardcode_shlibpath_var=no
6607 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6608 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6609 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6616 if test "$ld_shlibs" = yes; then
6617 runpath_var=LD_RUN_PATH
6618 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6619 export_dynamic_flag_spec='${wl}--export-dynamic'
6620 # ancient GNU ld didn't support --whole-archive et. al.
6621 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6622 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6624 whole_archive_flag_spec=
6628 # PORTME fill in a description of your system's linker (not GNU ld)
6631 allow_undefined_flag=unsupported
6632 always_export_symbols=yes
6633 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6634 # Note: this linker hardcodes the directories in LIBPATH if there
6635 # are no directories specified by -L.
6636 hardcode_minus_L=yes
6637 if test "$GCC" = yes && test -z "$link_static_flag"; then
6638 # Neither direct hardcoding nor static linking is supported with a
6640 hardcode_direct=unsupported
6645 if test "$host_cpu" = ia64; then
6646 # On IA64, the linker does run time linking by default, so we don't
6647 # have to do anything special.
6648 aix_use_runtimelinking=no
6649 exp_sym_flag='-Bexport'
6652 # If we're using GNU nm, then we don't want the "-C" option.
6653 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6654 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6655 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'
6657 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'
6659 aix_use_runtimelinking=no
6661 # Test if we are trying to use run time linking or normal
6662 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6663 # need to do runtime linking.
6664 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6665 for ld_flag in $LDFLAGS; do
6666 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6667 aix_use_runtimelinking=yes
6673 exp_sym_flag='-bexport'
6674 no_entry_flag='-bnoentry'
6677 # When large executables or shared objects are built, AIX ld can
6678 # have problems creating the table of contents. If linking a library
6679 # or program results in "error TOC overflow" add -mminimal-toc to
6680 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6681 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6685 hardcode_libdir_separator=':'
6686 link_all_deplibs=yes
6688 if test "$GCC" = yes; then
6689 case $host_os in aix4.012|aix4.012.*)
6690 # We only want to do this on AIX 4.2 and lower, the check
6691 # below for broken collect2 doesn't work under 4.3+
6692 collect2name=`${CC} -print-prog-name=collect2`
6693 if test -f "$collect2name" && \
6694 strings "$collect2name" | grep resolve_lib_name >/dev/null
6696 # We have reworked collect2
6699 # We have old collect2
6700 hardcode_direct=unsupported
6701 # It fails to find uninstalled libraries when the uninstalled
6702 # path is not listed in the libpath. Setting hardcode_minus_L
6703 # to unsupported forces relinking
6704 hardcode_minus_L=yes
6705 hardcode_libdir_flag_spec='-L$libdir'
6706 hardcode_libdir_separator=
6709 shared_flag='-shared'
6712 if test "$host_cpu" = ia64; then
6713 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6714 # chokes on -Wl,-G. The following line is correct:
6717 if test "$aix_use_runtimelinking" = yes; then
6718 shared_flag='${wl}-G'
6720 shared_flag='${wl}-bM:SRE'
6725 # It seems that -bexpall does not export symbols beginning with
6726 # underscore (_), so it is better to generate a list of symbols to export.
6727 always_export_symbols=yes
6728 if test "$aix_use_runtimelinking" = yes; then
6729 # Warning - without using the other runtime loading flags (-brtl),
6730 # -berok will link without error, but may produce a broken library.
6731 allow_undefined_flag='-berok'
6732 # Determine the default libpath from the value encoded in an empty executable.
6733 cat >conftest.$ac_ext <<_ACEOF
6736 cat confdefs.h >>conftest.$ac_ext
6737 cat >>conftest.$ac_ext <<_ACEOF
6738 /* end confdefs.h. */
6748 rm -f conftest.$ac_objext conftest$ac_exeext
6749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6750 (eval $ac_link) 2>conftest.er1
6752 grep -v '^ *+' conftest.er1 >conftest.err
6754 cat conftest.err >&5
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); } &&
6757 { ac_try='test -z "$ac_c_werror_flag"
6758 || test ! -s conftest.err'
6759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); }; } &&
6764 { ac_try='test -s conftest$ac_exeext'
6765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); }; }; then
6771 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6773 # Check for a 64-bit object if we didn't find anything.
6774 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; }
6777 echo "$as_me: failed program was:" >&5
6778 sed 's/^/| /' conftest.$ac_ext >&5
6781 rm -f conftest.err conftest.$ac_objext \
6782 conftest$ac_exeext conftest.$ac_ext
6783 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6785 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6786 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"
6788 if test "$host_cpu" = ia64; then
6789 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6790 allow_undefined_flag="-z nodefs"
6791 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"
6793 # Determine the default libpath from the value encoded in an empty executable.
6794 cat >conftest.$ac_ext <<_ACEOF
6797 cat confdefs.h >>conftest.$ac_ext
6798 cat >>conftest.$ac_ext <<_ACEOF
6799 /* end confdefs.h. */
6809 rm -f conftest.$ac_objext conftest$ac_exeext
6810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6811 (eval $ac_link) 2>conftest.er1
6813 grep -v '^ *+' conftest.er1 >conftest.err
6815 cat conftest.err >&5
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); } &&
6818 { ac_try='test -z "$ac_c_werror_flag"
6819 || test ! -s conftest.err'
6820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); }; } &&
6825 { ac_try='test -s conftest$ac_exeext'
6826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); }; }; then
6832 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6834 # Check for a 64-bit object if we didn't find anything.
6835 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; }
6838 echo "$as_me: failed program was:" >&5
6839 sed 's/^/| /' conftest.$ac_ext >&5
6842 rm -f conftest.err conftest.$ac_objext \
6843 conftest$ac_exeext conftest.$ac_ext
6844 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6846 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6847 # Warning - without using the other run time loading flags,
6848 # -berok will link without error, but may produce a broken library.
6849 no_undefined_flag=' ${wl}-bernotok'
6850 allow_undefined_flag=' ${wl}-berok'
6851 # -bexpall does not export symbols beginning with underscore (_)
6852 always_export_symbols=yes
6853 # Exported symbols can be pulled into shared objects from archives
6854 whole_archive_flag_spec=' '
6855 archive_cmds_need_lc=yes
6856 # This is similar to how AIX traditionally builds it's shared libraries.
6857 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6863 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6864 hardcode_libdir_flag_spec='-L$libdir'
6865 hardcode_minus_L=yes
6866 # see comment about different semantics on the GNU ld section
6871 export_dynamic_flag_spec=-rdynamic
6874 cygwin* | mingw* | pw32*)
6875 # When not using gcc, we currently assume that we are using
6876 # Microsoft Visual C++.
6877 # hardcode_libdir_flag_spec is actually meaningless, as there is
6878 # no search path for DLLs.
6879 hardcode_libdir_flag_spec=' '
6880 allow_undefined_flag=unsupported
6881 # Tell ltmain to make .lib files, not .a files.
6883 # Tell ltmain to make .dll files, not .so files.
6885 # FIXME: Setting linknames here is a bad hack.
6886 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6887 # The linker will automatically build a .lib file if we build a DLL.
6888 old_archive_From_new_cmds='true'
6889 # FIXME: Should let the user specify the lib program.
6890 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6891 fix_srcfile_path='`cygpath -w "$srcfile"`'
6892 enable_shared_with_static_runtimes=yes
6895 darwin* | rhapsody*)
6896 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6897 archive_cmds_need_lc=no
6899 rhapsody* | darwin1.[012])
6900 allow_undefined_flag='-undefined suppress'
6903 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6906 # FIXME: Relying on posixy $() will cause problems for
6907 # cross-compilation, but unfortunately the echo tests do not
6908 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6909 # `"' quotes if we put them in here... so don't!
6910 lt_int_apple_cc_single_mod=no
6911 output_verbose_link_cmd='echo'
6912 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6913 lt_int_apple_cc_single_mod=yes
6915 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6916 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6918 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6920 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6921 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6922 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6923 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6925 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6927 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6929 hardcode_automatic=yes
6930 hardcode_shlibpath_var=unsupported
6931 whole_archive_flag_spec='-all_load $convenience'
6932 link_all_deplibs=yes
6937 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6938 hardcode_libdir_flag_spec='-L$libdir'
6939 hardcode_shlibpath_var=no
6946 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6947 # support. Future versions do this automatically, but an explicit c++rt0.o
6948 # does not break anything, and helps significantly (at the cost of a little
6951 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6952 hardcode_libdir_flag_spec='-R$libdir'
6954 hardcode_shlibpath_var=no
6957 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6959 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6961 hardcode_minus_L=yes
6962 hardcode_shlibpath_var=no
6965 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6967 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6968 hardcode_libdir_flag_spec='-R$libdir'
6970 hardcode_shlibpath_var=no
6974 if test "$GCC" = yes; then
6975 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6977 archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6979 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6980 hardcode_libdir_separator=:
6983 # hardcode_minus_L: Not really in the search PATH,
6984 # but as the default location of the library.
6985 hardcode_minus_L=yes
6986 export_dynamic_flag_spec='${wl}-E'
6990 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6993 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6996 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7002 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7005 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7009 if test "$with_gnu_ld" = no; then
7012 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7013 hardcode_libdir_flag_spec_ld='+b $libdir'
7014 hardcode_libdir_separator=:
7016 hardcode_shlibpath_var=no
7019 hardcode_libdir_flag_spec='-L$libdir'
7021 hardcode_shlibpath_var=no
7023 # hardcode_minus_L: Not really in the search PATH,
7024 # but as the default location of the library.
7025 hardcode_minus_L=yes
7028 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7029 hardcode_libdir_separator=:
7031 export_dynamic_flag_spec='${wl}-E'
7033 # hardcode_minus_L: Not really in the search PATH,
7034 # but as the default location of the library.
7035 hardcode_minus_L=yes
7041 irix5* | irix6* | nonstopux*)
7042 if test "$GCC" = yes; then
7043 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'
7045 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'
7046 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7048 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7049 hardcode_libdir_separator=:
7050 link_all_deplibs=yes
7054 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7055 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7057 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7059 hardcode_libdir_flag_spec='-R$libdir'
7061 hardcode_shlibpath_var=no
7065 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7067 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7068 hardcode_libdir_separator=:
7069 hardcode_shlibpath_var=no
7074 hardcode_shlibpath_var=no
7075 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7076 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7077 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7078 export_dynamic_flag_spec='${wl}-E'
7081 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7082 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7083 hardcode_libdir_flag_spec='-R$libdir'
7086 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7087 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7094 hardcode_libdir_flag_spec='-L$libdir'
7095 hardcode_minus_L=yes
7096 allow_undefined_flag=unsupported
7097 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
7098 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7102 if test "$GCC" = yes; then
7103 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7104 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'
7106 allow_undefined_flag=' -expect_unresolved \*'
7107 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'
7109 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7110 hardcode_libdir_separator=:
7113 osf4* | osf5*) # as osf3* with the addition of -msym flag
7114 if test "$GCC" = yes; then
7115 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7116 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'
7117 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7119 allow_undefined_flag=' -expect_unresolved \*'
7120 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'
7121 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7122 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7124 # Both c and cxx compiler support -rpath directly
7125 hardcode_libdir_flag_spec='-rpath $libdir'
7127 hardcode_libdir_separator=:
7131 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7132 hardcode_shlibpath_var=no
7133 export_dynamic_flag_spec='${wl}-Bexport'
7134 runpath_var=LD_RUN_PATH
7135 hardcode_runpath_var=yes
7139 no_undefined_flag=' -z text'
7140 if test "$GCC" = yes; then
7141 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7142 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7143 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7145 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7146 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7147 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7149 hardcode_libdir_flag_spec='-R$libdir'
7150 hardcode_shlibpath_var=no
7152 solaris2.[0-5] | solaris2.[0-5].*) ;;
7153 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7154 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7156 link_all_deplibs=yes
7160 if test "x$host_vendor" = xsequent; then
7161 # Use $CC to link under sequent, because it throws in some extra .o
7162 # files that make .init and .fini sections work.
7163 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7165 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7167 hardcode_libdir_flag_spec='-L$libdir'
7169 hardcode_minus_L=yes
7170 hardcode_shlibpath_var=no
7174 case $host_vendor in
7176 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7177 hardcode_direct=yes # is this really true???
7180 ## LD is ld it makes a PLAMLIB
7181 ## CC just makes a GrossModule.
7182 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7183 reload_cmds='$CC -r -o $output$reload_objs'
7187 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7188 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7191 runpath_var='LD_RUN_PATH'
7192 hardcode_shlibpath_var=no
7196 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7197 hardcode_shlibpath_var=no
7198 export_dynamic_flag_spec='-Bexport'
7202 if test -d /usr/nec; then
7203 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7204 hardcode_shlibpath_var=no
7205 runpath_var=LD_RUN_PATH
7206 hardcode_runpath_var=yes
7212 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7215 hardcode_shlibpath_var=no
7216 hardcode_runpath_var=yes
7217 runpath_var=LD_RUN_PATH
7220 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7221 no_undefined_flag='${wl}-z ${wl}text'
7222 if test "$GCC" = yes; then
7223 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7225 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7227 runpath_var='LD_RUN_PATH'
7228 hardcode_shlibpath_var=no
7232 no_undefined_flag=' -z text'
7233 # $CC -shared without GNU ld will not create a library from C++
7234 # object files and a static libstdc++, better avoid it by now
7235 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7236 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7237 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7238 hardcode_libdir_flag_spec=
7239 hardcode_shlibpath_var=no
7240 runpath_var='LD_RUN_PATH'
7244 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7245 hardcode_libdir_flag_spec='-L$libdir'
7246 hardcode_shlibpath_var=no
7255 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7256 echo "${ECHO_T}$ld_shlibs" >&6
7257 test "$ld_shlibs" = no && can_build_shared=no
7259 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7260 if test "$GCC" = yes; then
7261 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7265 # Do we need to explicitly link libc?
7267 case "x$archive_cmds_need_lc" in
7269 # Assume -lc should be added
7270 archive_cmds_need_lc=yes
7272 if test "$enable_shared" = yes && test "$GCC" = yes; then
7273 case $archive_cmds in
7275 # FIXME: we may have to deal with multi-command sequences.
7278 # Test whether the compiler implicitly links with -lc since on some
7279 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7280 # to ld, don't add -lc before -lgcc.
7281 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7282 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7284 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7287 (eval $ac_compile) 2>&5
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); } 2>conftest.err; then
7293 libobjs=conftest.$ac_objext
7295 wl=$lt_prog_compiler_wl
7301 lt_save_allow_undefined_flag=$allow_undefined_flag
7302 allow_undefined_flag=
7303 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7304 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); }
7309 archive_cmds_need_lc=no
7311 archive_cmds_need_lc=yes
7313 allow_undefined_flag=$lt_save_allow_undefined_flag
7315 cat conftest.err 1>&5
7318 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7319 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7326 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7327 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7329 if test -n "$hardcode_libdir_flag_spec" || \
7330 test -n "$runpath_var " || \
7331 test "X$hardcode_automatic"="Xyes" ; then
7333 # We can hardcode non-existant directories.
7334 if test "$hardcode_direct" != no &&
7335 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7336 # have to relink, otherwise we might link with an installed library
7337 # when we should be linking with a yet-to-be-installed one
7338 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7339 test "$hardcode_minus_L" != no; then
7340 # Linking always hardcodes the temporary library directory.
7341 hardcode_action=relink
7343 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7344 hardcode_action=immediate
7347 # We cannot hardcode anything, or else we can only hardcode existing
7349 hardcode_action=unsupported
7351 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7352 echo "${ECHO_T}$hardcode_action" >&6
7354 if test "$hardcode_action" = relink; then
7355 # Fast installation is not supported
7356 enable_fast_install=no
7357 elif test "$shlibpath_overrides_runpath" = yes ||
7358 test "$enable_shared" = no; then
7359 # Fast installation is not necessary
7360 enable_fast_install=needless
7365 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7366 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7367 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7368 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7369 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7370 echo "$as_me:$LINENO: result: yes" >&5
7371 echo "${ECHO_T}yes" >&6
7373 # FIXME - insert some real tests, host_os isn't really good enough
7376 if test -n "$STRIP" ; then
7377 striplib="$STRIP -x"
7378 echo "$as_me:$LINENO: result: yes" >&5
7379 echo "${ECHO_T}yes" >&6
7381 echo "$as_me:$LINENO: result: no" >&5
7382 echo "${ECHO_T}no" >&6
7386 echo "$as_me:$LINENO: result: no" >&5
7387 echo "${ECHO_T}no" >&6
7392 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7393 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7395 libname_spec='lib$name'
7403 shlibpath_overrides_runpath=unknown
7405 dynamic_linker="$host_os ld.so"
7406 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7407 if test "$GCC" = yes; then
7408 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7409 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7410 # if the path contains ";" then we assume it to be the separator
7411 # otherwise default to the standard path separator (i.e. ":") - it is
7412 # assumed that no part of a normal pathname contains ";" but that should
7413 # okay in the real world where ";" in dirpaths is itself problematic.
7414 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7416 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7419 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7421 need_lib_prefix=unknown
7422 hardcode_into_libs=no
7424 # when you set need_version to no, make sure it does not cause -set_version
7425 # flags to be left without arguments
7426 need_version=unknown
7431 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7432 shlibpath_var=LIBPATH
7434 # AIX 3 has no versioning support, so we append a major version to the name.
7435 soname_spec='${libname}${release}${shared_ext}$major'
7442 hardcode_into_libs=yes
7443 if test "$host_cpu" = ia64; then
7444 # AIX 5 supports IA64
7445 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7446 shlibpath_var=LD_LIBRARY_PATH
7448 # With GCC up to 2.95.x, collect2 would create an import file
7449 # for dependence libraries. The import file would start with
7450 # the line `#! .'. This would cause the generated library to
7451 # depend on `.', always an invalid library. This was fixed in
7452 # development snapshots of GCC prior to 3.0.
7454 aix4 | aix4.[01] | aix4.[01].*)
7455 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7457 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7464 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7465 # soname into executable. Probably we can add versioning support to
7466 # collect2, so additional links can be useful in future.
7467 if test "$aix_use_runtimelinking" = yes; then
7468 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7469 # instead of lib<name>.a to let people know that these are not
7470 # typical AIX shared libraries.
7471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7473 # We preserve .a as extension for shared libraries through AIX4.2
7474 # and later when we are not doing run time linking.
7475 library_names_spec='${libname}${release}.a $libname.a'
7476 soname_spec='${libname}${release}${shared_ext}$major'
7478 shlibpath_var=LIBPATH
7483 library_names_spec='$libname.ixlibrary $libname.a'
7484 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7485 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'
7489 library_names_spec='${libname}${shared_ext}'
7490 dynamic_linker="$host_os ld.so"
7491 shlibpath_var=LIBRARY_PATH
7497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7498 soname_spec='${libname}${release}${shared_ext}$major'
7499 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7500 shlibpath_var=LD_LIBRARY_PATH
7501 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7502 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7503 # the default ld.so.conf also contains /usr/contrib/lib and
7504 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7505 # libtool to hard-code these into programs
7508 cygwin* | mingw* | pw32*)
7509 version_type=windows
7514 case $GCC,$host_os in
7515 yes,cygwin* | yes,mingw* | yes,pw32*)
7516 library_names_spec='$libname.dll.a'
7517 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7518 postinstall_cmds='base_file=`basename \${file}`~
7519 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7520 dldir=$destdir/`dirname \$dlpath`~
7521 test -d \$dldir || mkdir -p \$dldir~
7522 $install_prog $dir/$dlname \$dldir/$dlname'
7523 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7524 dlpath=$dir/\$dldll~
7526 shlibpath_overrides_runpath=yes
7530 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7531 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7532 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7535 # MinGW DLLs use traditional 'lib' prefix
7536 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7537 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7538 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7539 # It is most probably a Windows format PATH printed by
7540 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7541 # path with ; separators, and with drive letters. We can handle the
7542 # drive letters (cygwin fileutils understands them), so leave them,
7543 # especially as we might pass files found there to a mingw objdump,
7544 # which wouldn't understand a cygwinified path. Ahh.
7545 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7547 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7551 # pw32 DLLs use 'pw' prefix rather than 'lib'
7552 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7558 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7561 dynamic_linker='Win32 ld.exe'
7562 # FIXME: first we should search . and the directory the executable is in
7566 darwin* | rhapsody*)
7567 dynamic_linker="$host_os dyld"
7571 # FIXME: Relying on posixy $() will cause problems for
7572 # cross-compilation, but unfortunately the echo tests do not
7573 # yet detect zsh echo's removal of \ escapes.
7574 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7575 soname_spec='${libname}${release}${major}$shared_ext'
7576 shlibpath_overrides_runpath=yes
7577 shlibpath_var=DYLD_LIBRARY_PATH
7578 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7579 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7580 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7581 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"`
7583 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7591 soname_spec='${libname}${release}${shared_ext}$major'
7592 shlibpath_var=LD_LIBRARY_PATH
7600 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7601 version_type=freebsd-$objformat
7602 case $version_type in
7604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7609 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7613 shlibpath_var=LD_LIBRARY_PATH
7616 shlibpath_overrides_runpath=yes
7618 freebsd3.01* | freebsdelf3.01*)
7619 shlibpath_overrides_runpath=yes
7620 hardcode_into_libs=yes
7623 shlibpath_overrides_runpath=no
7624 hardcode_into_libs=yes
7633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7634 soname_spec='${libname}${release}${shared_ext}$major'
7635 shlibpath_var=LD_LIBRARY_PATH
7636 hardcode_into_libs=yes
7639 hpux9* | hpux10* | hpux11*)
7640 # Give a soname corresponding to the major version so that dld.sl refuses to
7641 # link against other versions.
7648 hardcode_into_libs=yes
7649 dynamic_linker="$host_os dld.so"
7650 shlibpath_var=LD_LIBRARY_PATH
7651 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7653 soname_spec='${libname}${release}${shared_ext}$major'
7654 if test "X$HPUX_IA64_MODE" = X32; then
7655 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7657 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7659 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7663 hardcode_into_libs=yes
7664 dynamic_linker="$host_os dld.sl"
7665 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7666 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7668 soname_spec='${libname}${release}${shared_ext}$major'
7669 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7670 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7674 dynamic_linker="$host_os dld.sl"
7675 shlibpath_var=SHLIB_PATH
7676 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7678 soname_spec='${libname}${release}${shared_ext}$major'
7681 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7682 postinstall_cmds='chmod 555 $lib'
7685 irix5* | irix6* | nonstopux*)
7687 nonstopux*) version_type=nonstopux ;;
7689 if test "$lt_cv_prog_gnu_ld" = yes; then
7697 soname_spec='${libname}${release}${shared_ext}$major'
7698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7700 irix5* | nonstopux*)
7704 case $LD in # libtool.m4 will add one of these switches to LD
7705 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7706 libsuff= shlibsuff= libmagic=32-bit;;
7707 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7708 libsuff=32 shlibsuff=N32 libmagic=N32;;
7709 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7710 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7711 *) libsuff= shlibsuff= libmagic=never-match;;
7715 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7716 shlibpath_overrides_runpath=no
7717 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7718 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7719 hardcode_into_libs=yes
7722 # No shared lib support for Linux oldld, aout, or coff.
7723 linux*oldld* | linux*aout* | linux*coff*)
7727 # This must be Linux ELF.
7732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7733 soname_spec='${libname}${release}${shared_ext}$major'
7734 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7735 shlibpath_var=LD_LIBRARY_PATH
7736 shlibpath_overrides_runpath=no
7737 # This implies no fast_install, which is unacceptable.
7738 # Some rework will be needed to allow for fast_install
7739 # before this can be enabled.
7740 hardcode_into_libs=yes
7742 # We used to test for /lib/ld.so.1 and disable shared libraries on
7743 # powerpc, because MkLinux only supported shared libraries with the
7744 # GNU dynamic linker. Since this was broken with cross compilers,
7745 # most powerpc-linux boxes support dynamic linking these days and
7746 # people can always --disable-shared, the test was removed, and we
7747 # assume the GNU/Linux dynamic linker is in use.
7748 dynamic_linker='GNU/Linux ld.so'
7755 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7757 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7758 dynamic_linker='NetBSD (a.out) ld.so'
7760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7761 soname_spec='${libname}${release}${shared_ext}$major'
7762 dynamic_linker='NetBSD ld.elf_so'
7764 shlibpath_var=LD_LIBRARY_PATH
7765 shlibpath_overrides_runpath=yes
7766 hardcode_into_libs=yes
7771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7772 shlibpath_var=LD_LIBRARY_PATH
7773 shlibpath_overrides_runpath=yes
7780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7781 soname_spec='${libname}${release}${shared_ext}$major'
7782 shlibpath_var=LD_LIBRARY_PATH
7783 shlibpath_overrides_runpath=yes
7790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7791 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7792 shlibpath_var=LD_LIBRARY_PATH
7793 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7795 openbsd2.[89] | openbsd2.[89].*)
7796 shlibpath_overrides_runpath=no
7799 shlibpath_overrides_runpath=yes
7803 shlibpath_overrides_runpath=yes
7808 libname_spec='$name'
7811 library_names_spec='$libname${shared_ext} $libname.a'
7812 dynamic_linker='OS/2 ld.exe'
7813 shlibpath_var=LIBPATH
7816 osf3* | osf4* | osf5*)
7820 soname_spec='${libname}${release}${shared_ext}$major'
7821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7822 shlibpath_var=LD_LIBRARY_PATH
7823 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7824 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7829 soname_spec='${libname}${release}${shared_ext}$major'
7830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7831 shlibpath_var=LD_LIBRARY_PATH
7838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7839 soname_spec='${libname}${release}${shared_ext}$major'
7840 shlibpath_var=LD_LIBRARY_PATH
7841 shlibpath_overrides_runpath=yes
7842 hardcode_into_libs=yes
7843 # ldd complains unless libraries are executable
7844 postinstall_cmds='chmod +x $lib'
7849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7850 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7851 shlibpath_var=LD_LIBRARY_PATH
7852 shlibpath_overrides_runpath=yes
7853 if test "$with_gnu_ld" = yes; then
7859 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7862 soname_spec='${libname}${release}${shared_ext}$major'
7863 shlibpath_var=LD_LIBRARY_PATH
7864 case $host_vendor in
7866 shlibpath_overrides_runpath=no
7868 export_dynamic_flag_spec='${wl}-Blargedynsym'
7869 runpath_var=LD_RUN_PATH
7877 shlibpath_overrides_runpath=no
7878 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7884 if test -d /usr/nec ;then
7886 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7887 soname_spec='$libname${shared_ext}.$major'
7888 shlibpath_var=LD_LIBRARY_PATH
7894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7895 soname_spec='${libname}${release}${shared_ext}$major'
7896 shlibpath_var=LD_LIBRARY_PATH
7903 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7904 echo "${ECHO_T}$dynamic_linker" >&6
7905 test "$dynamic_linker" = no && can_build_shared=no
7907 if test "x$enable_dlopen" != xyes; then
7908 enable_dlopen=unknown
7909 enable_dlopen_self=unknown
7910 enable_dlopen_self_static=unknown
7917 lt_cv_dlopen="load_add_on"
7919 lt_cv_dlopen_self=yes
7923 lt_cv_dlopen="LoadLibrary"
7928 lt_cv_dlopen="dlopen"
7933 # if libdl is installed we need to link against it
7934 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7935 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7936 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7937 echo $ECHO_N "(cached) $ECHO_C" >&6
7939 ac_check_lib_save_LIBS=$LIBS
7941 cat >conftest.$ac_ext <<_ACEOF
7944 cat confdefs.h >>conftest.$ac_ext
7945 cat >>conftest.$ac_ext <<_ACEOF
7946 /* end confdefs.h. */
7948 /* Override any gcc2 internal prototype to avoid an error. */
7952 /* We use char because int might match the return type of a gcc2
7953 builtin and then its argument prototype would still apply. */
7963 rm -f conftest.$ac_objext conftest$ac_exeext
7964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7965 (eval $ac_link) 2>conftest.er1
7967 grep -v '^ *+' conftest.er1 >conftest.err
7969 cat conftest.err >&5
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); } &&
7972 { ac_try='test -z "$ac_c_werror_flag"
7973 || test ! -s conftest.err'
7974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); }; } &&
7979 { ac_try='test -s conftest$ac_exeext'
7980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); }; }; then
7985 ac_cv_lib_dl_dlopen=yes
7987 echo "$as_me: failed program was:" >&5
7988 sed 's/^/| /' conftest.$ac_ext >&5
7990 ac_cv_lib_dl_dlopen=no
7992 rm -f conftest.err conftest.$ac_objext \
7993 conftest$ac_exeext conftest.$ac_ext
7994 LIBS=$ac_check_lib_save_LIBS
7996 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7997 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7998 if test $ac_cv_lib_dl_dlopen = yes; then
7999 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8004 lt_cv_dlopen_self=yes
8011 echo "$as_me:$LINENO: checking for shl_load" >&5
8012 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8013 if test "${ac_cv_func_shl_load+set}" = set; then
8014 echo $ECHO_N "(cached) $ECHO_C" >&6
8016 cat >conftest.$ac_ext <<_ACEOF
8019 cat confdefs.h >>conftest.$ac_ext
8020 cat >>conftest.$ac_ext <<_ACEOF
8021 /* end confdefs.h. */
8022 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8024 #define shl_load innocuous_shl_load
8026 /* System header to define __stub macros and hopefully few prototypes,
8027 which can conflict with char shl_load (); below.
8028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8029 <limits.h> exists even on freestanding compilers. */
8032 # include <limits.h>
8034 # include <assert.h>
8039 /* Override any gcc2 internal prototype to avoid an error. */
8044 /* We use char because int might match the return type of a gcc2
8045 builtin and then its argument prototype would still apply. */
8047 /* The GNU C library defines this for functions which it implements
8048 to always fail with ENOSYS. Some functions are actually named
8049 something starting with __ and the normal name is an alias. */
8050 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8053 char (*f) () = shl_load;
8062 return f != shl_load;
8067 rm -f conftest.$ac_objext conftest$ac_exeext
8068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8069 (eval $ac_link) 2>conftest.er1
8071 grep -v '^ *+' conftest.er1 >conftest.err
8073 cat conftest.err >&5
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); } &&
8076 { ac_try='test -z "$ac_c_werror_flag"
8077 || test ! -s conftest.err'
8078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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_func_shl_load=yes
8091 echo "$as_me: failed program was:" >&5
8092 sed 's/^/| /' conftest.$ac_ext >&5
8094 ac_cv_func_shl_load=no
8096 rm -f conftest.err conftest.$ac_objext \
8097 conftest$ac_exeext conftest.$ac_ext
8099 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8100 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8101 if test $ac_cv_func_shl_load = yes; then
8102 lt_cv_dlopen="shl_load"
8104 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8105 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8106 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8107 echo $ECHO_N "(cached) $ECHO_C" >&6
8109 ac_check_lib_save_LIBS=$LIBS
8111 cat >conftest.$ac_ext <<_ACEOF
8114 cat confdefs.h >>conftest.$ac_ext
8115 cat >>conftest.$ac_ext <<_ACEOF
8116 /* end confdefs.h. */
8118 /* Override any gcc2 internal prototype to avoid an error. */
8122 /* We use char because int might match the return type of a gcc2
8123 builtin and then its argument prototype would still apply. */
8133 rm -f conftest.$ac_objext conftest$ac_exeext
8134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8135 (eval $ac_link) 2>conftest.er1
8137 grep -v '^ *+' conftest.er1 >conftest.err
8139 cat conftest.err >&5
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); } &&
8142 { ac_try='test -z "$ac_c_werror_flag"
8143 || test ! -s conftest.err'
8144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); }; } &&
8149 { ac_try='test -s conftest$ac_exeext'
8150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154 (exit $ac_status); }; }; then
8155 ac_cv_lib_dld_shl_load=yes
8157 echo "$as_me: failed program was:" >&5
8158 sed 's/^/| /' conftest.$ac_ext >&5
8160 ac_cv_lib_dld_shl_load=no
8162 rm -f conftest.err conftest.$ac_objext \
8163 conftest$ac_exeext conftest.$ac_ext
8164 LIBS=$ac_check_lib_save_LIBS
8166 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8167 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8168 if test $ac_cv_lib_dld_shl_load = yes; then
8169 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8171 echo "$as_me:$LINENO: checking for dlopen" >&5
8172 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8173 if test "${ac_cv_func_dlopen+set}" = set; then
8174 echo $ECHO_N "(cached) $ECHO_C" >&6
8176 cat >conftest.$ac_ext <<_ACEOF
8179 cat confdefs.h >>conftest.$ac_ext
8180 cat >>conftest.$ac_ext <<_ACEOF
8181 /* end confdefs.h. */
8182 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8184 #define dlopen innocuous_dlopen
8186 /* System header to define __stub macros and hopefully few prototypes,
8187 which can conflict with char dlopen (); below.
8188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8189 <limits.h> exists even on freestanding compilers. */
8192 # include <limits.h>
8194 # include <assert.h>
8199 /* Override any gcc2 internal prototype to avoid an error. */
8204 /* We use char because int might match the return type of a gcc2
8205 builtin and then its argument prototype would still apply. */
8207 /* The GNU C library defines this for functions which it implements
8208 to always fail with ENOSYS. Some functions are actually named
8209 something starting with __ and the normal name is an alias. */
8210 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8213 char (*f) () = dlopen;
8227 rm -f conftest.$ac_objext conftest$ac_exeext
8228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8229 (eval $ac_link) 2>conftest.er1
8231 grep -v '^ *+' conftest.er1 >conftest.err
8233 cat conftest.err >&5
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); } &&
8236 { ac_try='test -z "$ac_c_werror_flag"
8237 || test ! -s conftest.err'
8238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); }; } &&
8243 { ac_try='test -s conftest$ac_exeext'
8244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248 (exit $ac_status); }; }; then
8249 ac_cv_func_dlopen=yes
8251 echo "$as_me: failed program was:" >&5
8252 sed 's/^/| /' conftest.$ac_ext >&5
8254 ac_cv_func_dlopen=no
8256 rm -f conftest.err conftest.$ac_objext \
8257 conftest$ac_exeext conftest.$ac_ext
8259 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8260 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8261 if test $ac_cv_func_dlopen = yes; then
8262 lt_cv_dlopen="dlopen"
8264 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8265 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8266 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8267 echo $ECHO_N "(cached) $ECHO_C" >&6
8269 ac_check_lib_save_LIBS=$LIBS
8271 cat >conftest.$ac_ext <<_ACEOF
8274 cat confdefs.h >>conftest.$ac_ext
8275 cat >>conftest.$ac_ext <<_ACEOF
8276 /* end confdefs.h. */
8278 /* Override any gcc2 internal prototype to avoid an error. */
8282 /* We use char because int might match the return type of a gcc2
8283 builtin and then its argument prototype would still apply. */
8293 rm -f conftest.$ac_objext conftest$ac_exeext
8294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8295 (eval $ac_link) 2>conftest.er1
8297 grep -v '^ *+' conftest.er1 >conftest.err
8299 cat conftest.err >&5
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); } &&
8302 { ac_try='test -z "$ac_c_werror_flag"
8303 || test ! -s conftest.err'
8304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); }; } &&
8309 { ac_try='test -s conftest$ac_exeext'
8310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); }; }; then
8315 ac_cv_lib_dl_dlopen=yes
8317 echo "$as_me: failed program was:" >&5
8318 sed 's/^/| /' conftest.$ac_ext >&5
8320 ac_cv_lib_dl_dlopen=no
8322 rm -f conftest.err conftest.$ac_objext \
8323 conftest$ac_exeext conftest.$ac_ext
8324 LIBS=$ac_check_lib_save_LIBS
8326 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8327 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8328 if test $ac_cv_lib_dl_dlopen = yes; then
8329 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8331 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8332 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8333 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8334 echo $ECHO_N "(cached) $ECHO_C" >&6
8336 ac_check_lib_save_LIBS=$LIBS
8338 cat >conftest.$ac_ext <<_ACEOF
8341 cat confdefs.h >>conftest.$ac_ext
8342 cat >>conftest.$ac_ext <<_ACEOF
8343 /* end confdefs.h. */
8345 /* Override any gcc2 internal prototype to avoid an error. */
8349 /* We use char because int might match the return type of a gcc2
8350 builtin and then its argument prototype would still apply. */
8360 rm -f conftest.$ac_objext conftest$ac_exeext
8361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8362 (eval $ac_link) 2>conftest.er1
8364 grep -v '^ *+' conftest.er1 >conftest.err
8366 cat conftest.err >&5
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); } &&
8369 { ac_try='test -z "$ac_c_werror_flag"
8370 || test ! -s conftest.err'
8371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); }; } &&
8376 { ac_try='test -s conftest$ac_exeext'
8377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); }; }; then
8382 ac_cv_lib_svld_dlopen=yes
8384 echo "$as_me: failed program was:" >&5
8385 sed 's/^/| /' conftest.$ac_ext >&5
8387 ac_cv_lib_svld_dlopen=no
8389 rm -f conftest.err conftest.$ac_objext \
8390 conftest$ac_exeext conftest.$ac_ext
8391 LIBS=$ac_check_lib_save_LIBS
8393 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8394 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8395 if test $ac_cv_lib_svld_dlopen = yes; then
8396 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8398 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8399 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8400 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8401 echo $ECHO_N "(cached) $ECHO_C" >&6
8403 ac_check_lib_save_LIBS=$LIBS
8405 cat >conftest.$ac_ext <<_ACEOF
8408 cat confdefs.h >>conftest.$ac_ext
8409 cat >>conftest.$ac_ext <<_ACEOF
8410 /* end confdefs.h. */
8412 /* Override any gcc2 internal prototype to avoid an error. */
8416 /* We use char because int might match the return type of a gcc2
8417 builtin and then its argument prototype would still apply. */
8427 rm -f conftest.$ac_objext conftest$ac_exeext
8428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8429 (eval $ac_link) 2>conftest.er1
8431 grep -v '^ *+' conftest.er1 >conftest.err
8433 cat conftest.err >&5
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); } &&
8436 { ac_try='test -z "$ac_c_werror_flag"
8437 || test ! -s conftest.err'
8438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); }; } &&
8443 { ac_try='test -s conftest$ac_exeext'
8444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); }; }; then
8449 ac_cv_lib_dld_dld_link=yes
8451 echo "$as_me: failed program was:" >&5
8452 sed 's/^/| /' conftest.$ac_ext >&5
8454 ac_cv_lib_dld_dld_link=no
8456 rm -f conftest.err conftest.$ac_objext \
8457 conftest$ac_exeext conftest.$ac_ext
8458 LIBS=$ac_check_lib_save_LIBS
8460 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8461 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8462 if test $ac_cv_lib_dld_dld_link = yes; then
8463 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8484 if test "x$lt_cv_dlopen" != xno; then
8490 case $lt_cv_dlopen in
8492 save_CPPFLAGS="$CPPFLAGS"
8493 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8495 save_LDFLAGS="$LDFLAGS"
8496 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8499 LIBS="$lt_cv_dlopen_libs $LIBS"
8501 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8502 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8503 if test "${lt_cv_dlopen_self+set}" = set; then
8504 echo $ECHO_N "(cached) $ECHO_C" >&6
8506 if test "$cross_compiling" = yes; then :
8507 lt_cv_dlopen_self=cross
8509 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8510 lt_status=$lt_dlunknown
8511 cat > conftest.$ac_ext <<EOF
8512 #line 8512 "configure"
8513 #include "confdefs.h"
8522 # define LT_DLGLOBAL RTLD_GLOBAL
8525 # define LT_DLGLOBAL DL_GLOBAL
8527 # define LT_DLGLOBAL 0
8531 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8532 find out it does not work in some platform. */
8533 #ifndef LT_DLLAZY_OR_NOW
8535 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8538 # define LT_DLLAZY_OR_NOW DL_LAZY
8541 # define LT_DLLAZY_OR_NOW RTLD_NOW
8544 # define LT_DLLAZY_OR_NOW DL_NOW
8546 # define LT_DLLAZY_OR_NOW 0
8554 extern "C" void exit (int);
8557 void fnord() { int i=42;}
8560 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8561 int status = $lt_dlunknown;
8565 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8566 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8567 /* dlclose (self); */
8573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8574 (eval $ac_link) 2>&5
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8578 (./conftest; exit; ) 2>/dev/null
8581 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8582 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8583 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8586 # compilation failed
8587 lt_cv_dlopen_self=no
8594 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8595 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8597 if test "x$lt_cv_dlopen_self" = xyes; then
8598 LDFLAGS="$LDFLAGS $link_static_flag"
8599 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8600 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8601 if test "${lt_cv_dlopen_self_static+set}" = set; then
8602 echo $ECHO_N "(cached) $ECHO_C" >&6
8604 if test "$cross_compiling" = yes; then :
8605 lt_cv_dlopen_self_static=cross
8607 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8608 lt_status=$lt_dlunknown
8609 cat > conftest.$ac_ext <<EOF
8610 #line 8610 "configure"
8611 #include "confdefs.h"
8620 # define LT_DLGLOBAL RTLD_GLOBAL
8623 # define LT_DLGLOBAL DL_GLOBAL
8625 # define LT_DLGLOBAL 0
8629 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8630 find out it does not work in some platform. */
8631 #ifndef LT_DLLAZY_OR_NOW
8633 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8636 # define LT_DLLAZY_OR_NOW DL_LAZY
8639 # define LT_DLLAZY_OR_NOW RTLD_NOW
8642 # define LT_DLLAZY_OR_NOW DL_NOW
8644 # define LT_DLLAZY_OR_NOW 0
8652 extern "C" void exit (int);
8655 void fnord() { int i=42;}
8658 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8659 int status = $lt_dlunknown;
8663 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8664 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8665 /* dlclose (self); */
8671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8672 (eval $ac_link) 2>&5
8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8676 (./conftest; exit; ) 2>/dev/null
8679 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8680 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8681 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8684 # compilation failed
8685 lt_cv_dlopen_self_static=no
8692 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8693 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8696 CPPFLAGS="$save_CPPFLAGS"
8697 LDFLAGS="$save_LDFLAGS"
8702 case $lt_cv_dlopen_self in
8703 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8704 *) enable_dlopen_self=unknown ;;
8707 case $lt_cv_dlopen_self_static in
8708 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8709 *) enable_dlopen_self_static=unknown ;;
8714 # Report which librarie types wil actually be built
8715 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8716 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8717 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8718 echo "${ECHO_T}$can_build_shared" >&6
8720 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8721 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8722 test "$can_build_shared" = "no" && enable_shared=no
8724 # On AIX, shared libraries and static libraries use the same namespace, and
8725 # are all built from PIC.
8728 test "$enable_shared" = yes && enable_static=no
8729 if test -n "$RANLIB"; then
8730 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8731 postinstall_cmds='$RANLIB $lib'
8736 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8737 test "$enable_shared" = yes && enable_static=no
8740 darwin* | rhapsody*)
8741 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8742 archive_cmds_need_lc=no
8744 rhapsody* | darwin1.[012])
8745 allow_undefined_flag='-undefined suppress'
8748 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8751 # FIXME: Relying on posixy $() will cause problems for
8752 # cross-compilation, but unfortunately the echo tests do not
8753 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8754 # `"' quotes if we put them in here... so don't!
8755 output_verbose_link_cmd='echo'
8756 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8757 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8758 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8759 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8760 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8762 hardcode_automatic=yes
8763 hardcode_shlibpath_var=unsupported
8764 whole_archive_flag_spec='-all_load $convenience'
8765 link_all_deplibs=yes
8769 echo "$as_me:$LINENO: result: $enable_shared" >&5
8770 echo "${ECHO_T}$enable_shared" >&6
8772 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8773 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8774 # Make sure either enable_shared or enable_static is yes.
8775 test "$enable_shared" = yes || enable_static=yes
8776 echo "$as_me:$LINENO: result: $enable_static" >&5
8777 echo "${ECHO_T}$enable_static" >&6
8779 # The else clause should only fire when bootstrapping the
8780 # libtool distribution, otherwise you forgot to ship ltmain.sh
8781 # with your package, and you will get complaints that there are
8782 # no rules to generate ltmain.sh.
8783 if test -f "$ltmain"; then
8784 # See if we are running on zsh, and set the options which allow our commands through
8785 # without removal of \ escapes.
8786 if test -n "${ZSH_VERSION+set}" ; then
8787 setopt NO_GLOB_SUBST
8789 # Now quote all the things that may contain metacharacters while being
8790 # careful not to overquote the AC_SUBSTed values. We take copies of the
8791 # variables and quote the copies for generation of the libtool script.
8792 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8793 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8794 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8795 deplibs_check_method reload_flag reload_cmds need_locks \
8796 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8797 lt_cv_sys_global_symbol_to_c_name_address \
8798 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8799 old_postinstall_cmds old_postuninstall_cmds \
8803 lt_prog_compiler_wl \
8804 lt_prog_compiler_pic \
8805 lt_prog_compiler_static \
8806 lt_prog_compiler_no_builtin_flag \
8807 export_dynamic_flag_spec \
8808 thread_safe_flag_spec \
8809 whole_archive_flag_spec \
8810 enable_shared_with_static_runtimes \
8812 old_archive_from_new_cmds \
8817 compiler_lib_search_path \
8819 archive_expsym_cmds \
8821 postuninstall_cmds \
8822 old_archive_from_expsyms_cmds \
8823 allow_undefined_flag \
8825 export_symbols_cmds \
8826 hardcode_libdir_flag_spec \
8827 hardcode_libdir_flag_spec_ld \
8828 hardcode_libdir_separator \
8829 hardcode_automatic \
8831 module_expsym_cmds \
8832 lt_cv_prog_compiler_c_o \
8837 old_archive_cmds | \
8838 old_archive_from_new_cmds | \
8840 archive_expsym_cmds | \
8842 module_expsym_cmds | \
8843 old_archive_from_expsyms_cmds | \
8844 export_symbols_cmds | \
8845 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8846 postinstall_cmds | postuninstall_cmds | \
8847 old_postinstall_cmds | old_postuninstall_cmds | \
8848 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8849 # Double-quote double-evaled strings.
8850 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8853 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8859 *'\$0 --fallback-echo"')
8860 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8865 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8867 { echo "$as_me:$LINENO: creating $ofile" >&5
8868 echo "$as_me: creating $ofile" >&6;}
8870 cat <<__EOF__ >> "$cfgfile"
8873 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8874 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8875 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8877 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8878 # Free Software Foundation, Inc.
8880 # This file is part of GNU Libtool:
8881 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8883 # This program is free software; you can redistribute it and/or modify
8884 # it under the terms of the GNU General Public License as published by
8885 # the Free Software Foundation; either version 2 of the License, or
8886 # (at your option) any later version.
8888 # This program is distributed in the hope that it will be useful, but
8889 # WITHOUT ANY WARRANTY; without even the implied warranty of
8890 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8891 # General Public License for more details.
8893 # You should have received a copy of the GNU General Public License
8894 # along with this program; if not, write to the Free Software
8895 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8897 # As a special exception to the GNU General Public License, if you
8898 # distribute this file as part of a program that contains a
8899 # configuration script generated by Autoconf, you may include it under
8900 # the same distribution terms that you use for the rest of that program.
8902 # A sed program that does not truncate output.
8905 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8906 Xsed="$SED -e s/^X//"
8908 # The HP-UX ksh and POSIX shell print the target directory to stdout
8910 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8912 # The names of the tagged configurations supported by this script.
8915 # ### BEGIN LIBTOOL CONFIG
8917 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8919 # Shell to use when invoking shell scripts.
8922 # Whether or not to build shared libraries.
8923 build_libtool_libs=$enable_shared
8925 # Whether or not to build static libraries.
8926 build_old_libs=$enable_static
8928 # Whether or not to add -lc for building shared libraries.
8929 build_libtool_need_lc=$archive_cmds_need_lc
8931 # Whether or not to disallow shared libs when runtime libs are static
8932 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8934 # Whether or not to optimize for fast installation.
8935 fast_install=$enable_fast_install
8938 host_alias=$host_alias
8941 # An echo program that does not interpret backslashes.
8946 AR_FLAGS=$lt_AR_FLAGS
8951 # A language-specific compiler.
8954 # Is the compiler the GNU C compiler?
8960 # The linker used to build libraries.
8963 # Whether we need hard or soft links.
8966 # A BSD-compatible nm program.
8969 # A symbol stripping program
8972 # Used to examine libraries when file_magic_cmd begins "file"
8973 MAGIC_CMD=$MAGIC_CMD
8975 # Used on cygwin: DLL creation program.
8978 # Used on cygwin: object dumper.
8981 # Used on cygwin: assembler.
8984 # The name of the directory that contains temporary libtool files.
8987 # How to create reloadable object files.
8988 reload_flag=$lt_reload_flag
8989 reload_cmds=$lt_reload_cmds
8991 # How to pass a linker flag through the compiler.
8992 wl=$lt_lt_prog_compiler_wl
8994 # Object file suffix (normally "o").
8997 # Old archive suffix (normally "a").
9000 # Shared library suffix (normally ".so").
9003 # Executable file suffix (normally "").
9006 # Additional compiler flags for building library objects.
9007 pic_flag=$lt_lt_prog_compiler_pic
9010 # What is the maximum length of a command?
9011 max_cmd_len=$lt_cv_sys_max_cmd_len
9013 # Does compiler simultaneously support -c and -o options?
9014 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9016 # Must we lock files when doing compilation ?
9017 need_locks=$lt_need_locks
9019 # Do we need the lib prefix for modules?
9020 need_lib_prefix=$need_lib_prefix
9022 # Do we need a version for libraries?
9023 need_version=$need_version
9025 # Whether dlopen is supported.
9026 dlopen_support=$enable_dlopen
9028 # Whether dlopen of programs is supported.
9029 dlopen_self=$enable_dlopen_self
9031 # Whether dlopen of statically linked programs is supported.
9032 dlopen_self_static=$enable_dlopen_self_static
9034 # Compiler flag to prevent dynamic linking.
9035 link_static_flag=$lt_lt_prog_compiler_static
9037 # Compiler flag to turn off builtin functions.
9038 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9040 # Compiler flag to allow reflexive dlopens.
9041 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9043 # Compiler flag to generate shared objects directly from archives.
9044 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9046 # Compiler flag to generate thread-safe objects.
9047 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9049 # Library versioning type.
9050 version_type=$version_type
9052 # Format of library name prefix.
9053 libname_spec=$lt_libname_spec
9055 # List of archive names. First name is the real one, the rest are links.
9056 # The last name is the one that the linker finds with -lNAME.
9057 library_names_spec=$lt_library_names_spec
9059 # The coded name of the library, if different from the real name.
9060 soname_spec=$lt_soname_spec
9062 # Commands used to build and install an old-style archive.
9064 old_archive_cmds=$lt_old_archive_cmds
9065 old_postinstall_cmds=$lt_old_postinstall_cmds
9066 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9068 # Create an old-style archive from a shared archive.
9069 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9071 # Create a temporary old-style archive to link instead of a shared archive.
9072 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9074 # Commands used to build and install a shared archive.
9075 archive_cmds=$lt_archive_cmds
9076 archive_expsym_cmds=$lt_archive_expsym_cmds
9077 postinstall_cmds=$lt_postinstall_cmds
9078 postuninstall_cmds=$lt_postuninstall_cmds
9080 # Commands used to build a loadable module (assumed same as above if empty)
9081 module_cmds=$lt_module_cmds
9082 module_expsym_cmds=$lt_module_expsym_cmds
9084 # Commands to strip libraries.
9085 old_striplib=$lt_old_striplib
9086 striplib=$lt_striplib
9088 # Dependencies to place before the objects being linked to create a
9090 predep_objects=$lt_predep_objects
9092 # Dependencies to place after the objects being linked to create a
9094 postdep_objects=$lt_postdep_objects
9096 # Dependencies to place before the objects being linked to create a
9100 # Dependencies to place after the objects being linked to create a
9102 postdeps=$lt_postdeps
9104 # The library search path used internally by the compiler when linking
9106 compiler_lib_search_path=$lt_compiler_lib_search_path
9108 # Method to check whether dependent libraries are shared objects.
9109 deplibs_check_method=$lt_deplibs_check_method
9111 # Command to use when deplibs_check_method == file_magic.
9112 file_magic_cmd=$lt_file_magic_cmd
9114 # Flag that allows shared libraries with undefined symbols to be built.
9115 allow_undefined_flag=$lt_allow_undefined_flag
9117 # Flag that forces no undefined symbols.
9118 no_undefined_flag=$lt_no_undefined_flag
9120 # Commands used to finish a libtool library installation in a directory.
9121 finish_cmds=$lt_finish_cmds
9123 # Same as above, but a single script fragment to be evaled but not shown.
9124 finish_eval=$lt_finish_eval
9126 # Take the output of nm and produce a listing of raw symbols and C names.
9127 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9129 # Transform the output of nm in a proper C declaration
9130 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9132 # Transform the output of nm in a C name address pair
9133 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9135 # This is the shared library runtime path variable.
9136 runpath_var=$runpath_var
9138 # This is the shared library path variable.
9139 shlibpath_var=$shlibpath_var
9141 # Is shlibpath searched before the hard-coded library search path?
9142 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9144 # How to hardcode a shared library path into an executable.
9145 hardcode_action=$hardcode_action
9147 # Whether we should hardcode library paths into libraries.
9148 hardcode_into_libs=$hardcode_into_libs
9150 # Flag to hardcode \$libdir into a binary during linking.
9151 # This must work even if \$libdir does not exist.
9152 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9154 # If ld is used when linking, flag to hardcode \$libdir into
9155 # a binary during linking. This must work even if \$libdir does
9157 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9159 # Whether we need a single -rpath flag with a separated argument.
9160 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9162 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9164 hardcode_direct=$hardcode_direct
9166 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9168 hardcode_minus_L=$hardcode_minus_L
9170 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9171 # the resulting binary.
9172 hardcode_shlibpath_var=$hardcode_shlibpath_var
9174 # Set to yes if building a shared library automatically hardcodes DIR into the library
9175 # and all subsequent libraries and executables linked against it.
9176 hardcode_automatic=$hardcode_automatic
9178 # Variables whose values should be saved in libtool wrapper scripts and
9179 # restored at relink time.
9180 variables_saved_for_relink="$variables_saved_for_relink"
9182 # Whether libtool must link a program against all its dependency libraries.
9183 link_all_deplibs=$link_all_deplibs
9185 # Compile-time system search path for libraries
9186 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9188 # Run-time system search path for libraries
9189 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9191 # Fix the shell variable \$srcfile for the compiler.
9192 fix_srcfile_path="$fix_srcfile_path"
9194 # Set to yes if exported symbols are required.
9195 always_export_symbols=$always_export_symbols
9197 # The commands to list exported symbols.
9198 export_symbols_cmds=$lt_export_symbols_cmds
9200 # The commands to extract the exported symbol list from a shared archive.
9201 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9203 # Symbols that should not be listed in the preloaded symbols.
9204 exclude_expsyms=$lt_exclude_expsyms
9206 # Symbols that must always be exported.
9207 include_expsyms=$lt_include_expsyms
9209 # ### END LIBTOOL CONFIG
9216 cat <<\EOF >> "$cfgfile"
9218 # AIX sometimes has problems with the GCC collect2 program. For some
9219 # reason, if we set the COLLECT_NAMES environment variable, the problems
9220 # vanish in a puff of smoke.
9221 if test "X${COLLECT_NAMES+set}" != Xset; then
9223 export COLLECT_NAMES
9229 # We use sed instead of cat because bash on DJGPP gets confused if
9230 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9231 # text mode, it properly converts lines to CR/LF. This bash problem
9232 # is reportedly fixed, but why not run on old versions too?
9233 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9235 mv -f "$cfgfile" "$ofile" || \
9236 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9240 # If there is no Makefile yet, we rely on a make rule to execute
9241 # `config.status --recheck' to rerun these tests and create the
9242 # libtool script then.
9243 test -f Makefile && make "$ltmain"
9248 ac_cpp='$CPP $CPPFLAGS'
9249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9256 # Check whether --with-tags or --without-tags was given.
9257 if test "${with_tags+set}" = set; then
9258 withval="$with_tags"
9262 if test -f "$ltmain" && test -n "$tagnames"; then
9263 if test ! -f "${ofile}"; then
9264 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9265 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9268 if test -z "$LTCC"; then
9269 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9270 if test -z "$LTCC"; then
9271 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9272 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9274 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9275 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9279 # Extract list of available tagged configurations in $ofile.
9280 # Note that this assumes the entire list is on one line.
9281 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9283 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9284 for tagname in $tagnames; do
9286 # Check whether tagname contains only valid characters
9287 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9289 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9290 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9291 { (exit 1); exit 1; }; }
9295 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9297 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9298 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9299 { (exit 1); exit 1; }; }
9302 # Update the list of available tags.
9303 if test -n "$tagname"; then
9304 echo appending configuration tag \"$tagname\" to $ofile
9308 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9310 ac_cpp='$CXXCPP $CPPFLAGS'
9311 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9312 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9313 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9318 archive_cmds_need_lc_CXX=no
9319 allow_undefined_flag_CXX=
9320 always_export_symbols_CXX=no
9321 archive_expsym_cmds_CXX=
9322 export_dynamic_flag_spec_CXX=
9323 hardcode_direct_CXX=no
9324 hardcode_libdir_flag_spec_CXX=
9325 hardcode_libdir_flag_spec_ld_CXX=
9326 hardcode_libdir_separator_CXX=
9327 hardcode_minus_L_CXX=no
9328 hardcode_automatic_CXX=no
9330 module_expsym_cmds_CXX=
9331 link_all_deplibs_CXX=unknown
9332 old_archive_cmds_CXX=$old_archive_cmds
9333 no_undefined_flag_CXX=
9334 whole_archive_flag_spec_CXX=
9335 enable_shared_with_static_runtimes_CXX=no
9337 # Dependencies to place before and after the object being linked:
9339 postdep_objects_CXX=
9342 compiler_lib_search_path_CXX=
9344 # Source file extension for C++ test sources.
9347 # Object file extension for compiled C++ test sources.
9351 # Code to be used in simple compile tests
9352 lt_simple_compile_test_code="int some_variable = 0;\n"
9354 # Code to be used in simple link tests
9355 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9357 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9359 # If no C compiler was specified, use CC.
9362 # Allow CC to be a program name with arguments.
9366 # Allow CC to be a program name with arguments.
9371 lt_save_with_gnu_ld=$with_gnu_ld
9372 lt_save_path_LD=$lt_cv_path_LD
9373 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9374 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9376 unset lt_cv_prog_gnu_ld
9378 if test -n "${lt_cv_path_LDCXX+set}"; then
9379 lt_cv_path_LD=$lt_cv_path_LDCXX
9383 test -z "${LDCXX+set}" || LD=$LDCXX
9387 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9389 # We don't want -fno-exception wen compiling C++ code, so set the
9390 # no_builtin_flag separately
9391 if test "$GXX" = yes; then
9392 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9394 lt_prog_compiler_no_builtin_flag_CXX=
9397 if test "$GXX" = yes; then
9398 # Set up default GNU C++ configuration
9401 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9402 if test "${with_gnu_ld+set}" = set; then
9403 withval="$with_gnu_ld"
9404 test "$withval" = no || with_gnu_ld=yes
9409 if test "$GCC" = yes; then
9410 # Check if gcc -print-prog-name=ld gives a path.
9411 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9412 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9415 # gcc leaves a trailing carriage return which upsets mingw
9416 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9418 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9421 # Accept absolute paths.
9423 re_direlt='/[^/][^/]*/\.\./'
9424 # Canonicalize the path of ld
9425 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9426 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9427 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9429 test -z "$LD" && LD="$ac_prog"
9432 # If it fails, then pretend we aren't using GCC.
9436 # If it is relative, then search for the first ld in PATH.
9440 elif test "$with_gnu_ld" = yes; then
9441 echo "$as_me:$LINENO: checking for GNU ld" >&5
9442 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9444 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9445 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9447 if test "${lt_cv_path_LD+set}" = set; then
9448 echo $ECHO_N "(cached) $ECHO_C" >&6
9450 if test -z "$LD"; then
9451 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9452 for ac_dir in $PATH; do
9454 test -z "$ac_dir" && ac_dir=.
9455 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9456 lt_cv_path_LD="$ac_dir/$ac_prog"
9457 # Check to see if the program is GNU ld. I'd rather use --version,
9458 # but apparently some GNU ld's only accept -v.
9459 # Break only if it was the GNU/non-GNU ld that we prefer.
9460 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9461 *GNU* | *'with BFD'*)
9462 test "$with_gnu_ld" != no && break
9465 test "$with_gnu_ld" != yes && break
9472 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9477 if test -n "$LD"; then
9478 echo "$as_me:$LINENO: result: $LD" >&5
9479 echo "${ECHO_T}$LD" >&6
9481 echo "$as_me:$LINENO: result: no" >&5
9482 echo "${ECHO_T}no" >&6
9484 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9485 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9486 { (exit 1); exit 1; }; }
9487 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9488 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9489 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9490 echo $ECHO_N "(cached) $ECHO_C" >&6
9492 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9493 case `"$LD" -v 2>&1 </dev/null` in
9494 *GNU* | *'with BFD'*)
9495 lt_cv_prog_gnu_ld=yes
9498 lt_cv_prog_gnu_ld=no
9502 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9503 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9504 with_gnu_ld=$lt_cv_prog_gnu_ld
9508 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9509 # archiving commands below assume that GNU ld is being used.
9510 if test "$with_gnu_ld" = yes; then
9511 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9512 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'
9514 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9515 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9517 # If archive_cmds runs LD, not CC, wlarc should be empty
9518 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9519 # investigate it a little bit more. (MM)
9522 # ancient GNU ld didn't support --whole-archive et. al.
9523 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9524 grep 'no-whole-archive' > /dev/null; then
9525 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9527 whole_archive_flag_spec_CXX=
9533 # A generic and very simple default shared library creation
9534 # command for GNU C++ for the case where it uses the native
9535 # linker, instead of GNU ld. If possible, this setting should
9536 # overridden to take advantage of the native linker features on
9537 # the platform it is being used on.
9538 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9541 # Commands to make compiler produce verbose output that lists
9542 # what "hidden" libraries, object files and flags are used when
9543 # linking a shared library.
9544 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9552 # PORTME: fill in a description of your system's C++ link characteristics
9553 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9554 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9558 # FIXME: insert proper C++ library support
9562 if test "$host_cpu" = ia64; then
9563 # On IA64, the linker does run time linking by default, so we don't
9564 # have to do anything special.
9565 aix_use_runtimelinking=no
9566 exp_sym_flag='-Bexport'
9569 aix_use_runtimelinking=no
9571 # Test if we are trying to use run time linking or normal
9572 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9573 # need to do runtime linking.
9574 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9575 for ld_flag in $LDFLAGS; do
9578 aix_use_runtimelinking=yes
9585 exp_sym_flag='-bexport'
9586 no_entry_flag='-bnoentry'
9589 # When large executables or shared objects are built, AIX ld can
9590 # have problems creating the table of contents. If linking a library
9591 # or program results in "error TOC overflow" add -mminimal-toc to
9592 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9593 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9596 hardcode_direct_CXX=yes
9597 hardcode_libdir_separator_CXX=':'
9598 link_all_deplibs_CXX=yes
9600 if test "$GXX" = yes; then
9601 case $host_os in aix4.012|aix4.012.*)
9602 # We only want to do this on AIX 4.2 and lower, the check
9603 # below for broken collect2 doesn't work under 4.3+
9604 collect2name=`${CC} -print-prog-name=collect2`
9605 if test -f "$collect2name" && \
9606 strings "$collect2name" | grep resolve_lib_name >/dev/null
9608 # We have reworked collect2
9609 hardcode_direct_CXX=yes
9611 # We have old collect2
9612 hardcode_direct_CXX=unsupported
9613 # It fails to find uninstalled libraries when the uninstalled
9614 # path is not listed in the libpath. Setting hardcode_minus_L
9615 # to unsupported forces relinking
9616 hardcode_minus_L_CXX=yes
9617 hardcode_libdir_flag_spec_CXX='-L$libdir'
9618 hardcode_libdir_separator_CXX=
9621 shared_flag='-shared'
9624 if test "$host_cpu" = ia64; then
9625 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9626 # chokes on -Wl,-G. The following line is correct:
9629 if test "$aix_use_runtimelinking" = yes; then
9630 shared_flag='${wl}-G'
9632 shared_flag='${wl}-bM:SRE'
9637 # It seems that -bexpall does not export symbols beginning with
9638 # underscore (_), so it is better to generate a list of symbols to export.
9639 always_export_symbols_CXX=yes
9640 if test "$aix_use_runtimelinking" = yes; then
9641 # Warning - without using the other runtime loading flags (-brtl),
9642 # -berok will link without error, but may produce a broken library.
9643 allow_undefined_flag_CXX='-berok'
9644 # Determine the default libpath from the value encoded in an empty executable.
9645 cat >conftest.$ac_ext <<_ACEOF
9648 cat confdefs.h >>conftest.$ac_ext
9649 cat >>conftest.$ac_ext <<_ACEOF
9650 /* end confdefs.h. */
9660 rm -f conftest.$ac_objext conftest$ac_exeext
9661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9662 (eval $ac_link) 2>conftest.er1
9664 grep -v '^ *+' conftest.er1 >conftest.err
9666 cat conftest.err >&5
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); } &&
9669 { ac_try='test -z "$ac_cxx_werror_flag"
9670 || test ! -s conftest.err'
9671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); }; } &&
9676 { ac_try='test -s conftest$ac_exeext'
9677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); }; }; then
9683 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9685 # Check for a 64-bit object if we didn't find anything.
9686 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; }
9689 echo "$as_me: failed program was:" >&5
9690 sed 's/^/| /' conftest.$ac_ext >&5
9693 rm -f conftest.err conftest.$ac_objext \
9694 conftest$ac_exeext conftest.$ac_ext
9695 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9697 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9699 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"
9701 if test "$host_cpu" = ia64; then
9702 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9703 allow_undefined_flag_CXX="-z nodefs"
9704 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"
9706 # Determine the default libpath from the value encoded in an empty executable.
9707 cat >conftest.$ac_ext <<_ACEOF
9710 cat confdefs.h >>conftest.$ac_ext
9711 cat >>conftest.$ac_ext <<_ACEOF
9712 /* end confdefs.h. */
9722 rm -f conftest.$ac_objext conftest$ac_exeext
9723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9724 (eval $ac_link) 2>conftest.er1
9726 grep -v '^ *+' conftest.er1 >conftest.err
9728 cat conftest.err >&5
9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); } &&
9731 { ac_try='test -z "$ac_cxx_werror_flag"
9732 || test ! -s conftest.err'
9733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); }; } &&
9738 { ac_try='test -s conftest$ac_exeext'
9739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); }; }; then
9745 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9747 # Check for a 64-bit object if we didn't find anything.
9748 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; }
9751 echo "$as_me: failed program was:" >&5
9752 sed 's/^/| /' conftest.$ac_ext >&5
9755 rm -f conftest.err conftest.$ac_objext \
9756 conftest$ac_exeext conftest.$ac_ext
9757 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9759 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9760 # Warning - without using the other run time loading flags,
9761 # -berok will link without error, but may produce a broken library.
9762 no_undefined_flag_CXX=' ${wl}-bernotok'
9763 allow_undefined_flag_CXX=' ${wl}-berok'
9764 # -bexpall does not export symbols beginning with underscore (_)
9765 always_export_symbols_CXX=yes
9766 # Exported symbols can be pulled into shared objects from archives
9767 whole_archive_flag_spec_CXX=' '
9768 archive_cmds_need_lc_CXX=yes
9769 # This is similar to how AIX traditionally builds it's shared libraries.
9770 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9775 case $cc_basename in
9777 # FIXME: insert proper C++ library support
9783 cygwin* | mingw* | pw32*)
9784 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9785 # as there is no search path for DLLs.
9786 hardcode_libdir_flag_spec_CXX='-L$libdir'
9787 allow_undefined_flag_CXX=unsupported
9788 always_export_symbols_CXX=no
9789 enable_shared_with_static_runtimes_CXX=yes
9791 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9792 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'
9793 # If the export-symbols file already is a .def file (1st line
9794 # is EXPORTS), use it as is; otherwise, prepend...
9795 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9796 cp $export_symbols $output_objdir/$soname.def;
9798 echo EXPORTS > $output_objdir/$soname.def;
9799 cat $export_symbols >> $output_objdir/$soname.def;
9801 $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'
9807 darwin* | rhapsody*)
9808 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9809 archive_cmds_need_lc_CXX=no
9811 rhapsody* | darwin1.[012])
9812 allow_undefined_flag_CXX='-undefined suppress'
9815 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9818 lt_int_apple_cc_single_mod=no
9819 output_verbose_link_cmd='echo'
9820 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9821 lt_int_apple_cc_single_mod=yes
9823 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9824 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9826 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9828 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9830 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9831 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9832 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9834 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9836 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9837 hardcode_direct_CXX=no
9838 hardcode_automatic_CXX=yes
9839 hardcode_shlibpath_var_CXX=unsupported
9840 whole_archive_flag_spec_CXX='-all_load $convenience'
9841 link_all_deplibs_CXX=yes
9846 case $cc_basename in
9848 # FIXME: insert proper C++ library support
9852 # Green Hills C++ Compiler
9853 # FIXME: insert proper C++ library support
9857 # FIXME: insert proper C++ library support
9863 # C++ shared libraries reported to be fairly broken before switch to ELF
9867 archive_cmds_need_lc_CXX=no
9870 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9877 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9878 hardcode_libdir_separator_CXX=:
9879 export_dynamic_flag_spec_CXX='${wl}-E'
9880 hardcode_direct_CXX=yes
9881 hardcode_minus_L_CXX=yes # Not in the search PATH,
9882 # but as the default
9883 # location of the library.
9885 case $cc_basename in
9887 # FIXME: insert proper C++ library support
9891 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9892 # Commands to make compiler produce verbose output that lists
9893 # what "hidden" libraries, object files and flags are used when
9894 # linking a shared library.
9896 # There doesn't appear to be a way to prevent this compiler from
9897 # explicitly linking system object files so we need to strip them
9898 # from the output so that they don't get included in the library
9900 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'
9903 if test "$GXX" = yes; then
9904 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9906 # FIXME: insert proper C++ library support
9913 if test $with_gnu_ld = no; then
9916 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9917 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9918 hardcode_libdir_separator_CXX=:
9921 hardcode_libdir_flag_spec_CXX='-L$libdir'
9924 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9925 hardcode_libdir_separator_CXX=:
9926 export_dynamic_flag_spec_CXX='${wl}-E'
9932 hardcode_direct_CXX=no
9933 hardcode_shlibpath_var_CXX=no
9936 hardcode_direct_CXX=no
9937 hardcode_shlibpath_var_CXX=no
9938 hardcode_minus_L_CXX=yes # Not in the search PATH,
9939 # but as the default
9940 # location of the library.
9943 hardcode_direct_CXX=yes
9944 hardcode_minus_L_CXX=yes # Not in the search PATH,
9945 # but as the default
9946 # location of the library.
9950 case $cc_basename in
9952 # FIXME: insert proper C++ library support
9958 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9961 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9964 # Commands to make compiler produce verbose output that lists
9965 # what "hidden" libraries, object files and flags are used when
9966 # linking a shared library.
9968 # There doesn't appear to be a way to prevent this compiler from
9969 # explicitly linking system object files so we need to strip them
9970 # from the output so that they don't get included in the library
9972 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'
9975 if test "$GXX" = yes; then
9976 if test $with_gnu_ld = no; then
9979 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9982 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'
9987 # FIXME: insert proper C++ library support
9994 case $cc_basename in
9997 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'
9999 # Archives containing C++ object files must be created using
10000 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10001 # necessary to make sure instantiated templates are included
10003 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10006 if test "$GXX" = yes; then
10007 if test "$with_gnu_ld" = no; then
10008 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'
10010 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'
10013 link_all_deplibs_CXX=yes
10016 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10017 hardcode_libdir_separator_CXX=:
10020 case $cc_basename in
10022 # Kuck and Associates, Inc. (KAI) C++ Compiler
10024 # KCC will only create a shared library if the output file
10025 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10026 # to its proper name (with version) after linking.
10027 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'
10028 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'
10029 # Commands to make compiler produce verbose output that lists
10030 # what "hidden" libraries, object files and flags are used when
10031 # linking a shared library.
10033 # There doesn't appear to be a way to prevent this compiler from
10034 # explicitly linking system object files so we need to strip them
10035 # from the output so that they don't get included in the library
10037 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'
10039 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10040 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10042 # Archives containing C++ object files must be created using
10043 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10044 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10049 archive_cmds_need_lc_CXX=no
10050 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10051 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'
10052 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10053 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10054 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10058 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10059 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'
10061 runpath_var=LD_RUN_PATH
10062 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10063 hardcode_libdir_separator_CXX=:
10065 # Commands to make compiler produce verbose output that lists
10066 # what "hidden" libraries, object files and flags are used when
10067 # linking a shared library.
10069 # There doesn't appear to be a way to prevent this compiler from
10070 # explicitly linking system object files so we need to strip them
10071 # from the output so that they don't get included in the library
10073 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'
10078 # FIXME: insert proper C++ library support
10082 # FIXME: insert proper C++ library support
10086 case $cc_basename in
10088 # FIXME: insert proper C++ library support
10092 # FIXME: insert proper C++ library support
10098 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10099 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10101 hardcode_libdir_flag_spec_CXX='-R$libdir'
10102 hardcode_direct_CXX=yes
10103 hardcode_shlibpath_var_CXX=no
10105 # Workaround some broken pre-1.5 toolchains
10106 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10109 case $cc_basename in
10111 # Kuck and Associates, Inc. (KAI) C++ Compiler
10113 # KCC will only create a shared library if the output file
10114 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10115 # to its proper name (with version) after linking.
10116 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'
10118 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10119 hardcode_libdir_separator_CXX=:
10121 # Archives containing C++ object files must be created using
10122 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10123 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10127 # Rational C++ 2.4.1
10128 # FIXME: insert proper C++ library support
10132 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10133 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'
10135 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10136 hardcode_libdir_separator_CXX=:
10138 # Commands to make compiler produce verbose output that lists
10139 # what "hidden" libraries, object files and flags are used when
10140 # linking a shared library.
10142 # There doesn't appear to be a way to prevent this compiler from
10143 # explicitly linking system object files so we need to strip them
10144 # from the output so that they don't get included in the library
10146 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'
10149 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10150 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10151 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'
10153 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10154 hardcode_libdir_separator_CXX=:
10156 # Commands to make compiler produce verbose output that lists
10157 # what "hidden" libraries, object files and flags are used when
10158 # linking a shared library.
10159 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10162 # FIXME: insert proper C++ library support
10169 case $cc_basename in
10171 # Kuck and Associates, Inc. (KAI) C++ Compiler
10173 # KCC will only create a shared library if the output file
10174 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10175 # to its proper name (with version) after linking.
10176 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'
10178 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10179 hardcode_libdir_separator_CXX=:
10181 # Archives containing C++ object files must be created using
10182 # the KAI C++ compiler.
10183 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10186 # Rational C++ 2.4.1
10187 # FIXME: insert proper C++ library support
10191 allow_undefined_flag_CXX=' -expect_unresolved \*'
10192 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'
10193 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10194 echo "-hidden">> $lib.exp~
10195 $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~
10198 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10199 hardcode_libdir_separator_CXX=:
10201 # Commands to make compiler produce verbose output that lists
10202 # what "hidden" libraries, object files and flags are used when
10203 # linking a shared library.
10205 # There doesn't appear to be a way to prevent this compiler from
10206 # explicitly linking system object files so we need to strip them
10207 # from the output so that they don't get included in the library
10209 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'
10212 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10213 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10214 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'
10216 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10217 hardcode_libdir_separator_CXX=:
10219 # Commands to make compiler produce verbose output that lists
10220 # what "hidden" libraries, object files and flags are used when
10221 # linking a shared library.
10222 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10225 # FIXME: insert proper C++ library support
10232 # FIXME: insert proper C++ library support
10236 archive_cmds_need_lc_CXX=no
10237 case $cc_basename in
10239 # FIXME: insert proper C++ library support
10243 # FIXME: insert proper C++ library support
10249 case $cc_basename in
10252 # FIXME: insert proper C++ library support
10257 # FIXME: insert proper C++ library support
10261 # FIXME: insert proper C++ library support
10267 case $cc_basename in
10269 # Sun C++ 4.2, 5.x and Centerline C++
10270 no_undefined_flag_CXX=' -zdefs'
10271 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10272 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10273 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10275 hardcode_libdir_flag_spec_CXX='-R$libdir'
10276 hardcode_shlibpath_var_CXX=no
10278 solaris2.0-5 | solaris2.0-5.*) ;;
10280 # The C++ compiler is used as linker so we must use $wl
10281 # flag to pass the commands to the underlying system
10283 # Supported since Solaris 2.6 (maybe 2.5.1?)
10284 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10287 link_all_deplibs_CXX=yes
10289 # Commands to make compiler produce verbose output that lists
10290 # what "hidden" libraries, object files and flags are used when
10291 # linking a shared library.
10293 # There doesn't appear to be a way to prevent this compiler from
10294 # explicitly linking system object files so we need to strip them
10295 # from the output so that they don't get included in the library
10297 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'
10299 # Archives containing C++ object files must be created using
10300 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10301 # necessary to make sure instantiated templates are included
10303 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10306 # Green Hills C++ Compiler
10307 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10309 # The C++ compiler must be used to create the archive.
10310 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10313 # GNU C++ compiler with Solaris linker
10314 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10315 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10316 if $CC --version | grep -v '^2\.7' > /dev/null; then
10317 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10318 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10319 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10321 # Commands to make compiler produce verbose output that lists
10322 # what "hidden" libraries, object files and flags are used when
10323 # linking a shared library.
10324 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10326 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10328 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10329 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10330 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10332 # Commands to make compiler produce verbose output that lists
10333 # what "hidden" libraries, object files and flags are used when
10334 # linking a shared library.
10335 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10338 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10343 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10344 archive_cmds_need_lc_CXX=no
10347 case $cc_basename in
10349 # NonStop-UX NCC 3.20
10350 # FIXME: insert proper C++ library support
10354 # FIXME: insert proper C++ library support
10360 # FIXME: insert proper C++ library support
10364 # FIXME: insert proper C++ library support
10368 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10369 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10370 test "$ld_shlibs_CXX" = no && can_build_shared=no
10376 ## There is no encapsulation within the following macros, do not change
10377 ## the running order or otherwise move them around unless you know exactly
10378 ## what you are doing...
10380 cat > conftest.$ac_ext <<EOF
10384 Foo (void) { a = 0; }
10390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10391 (eval $ac_compile) 2>&5
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); }; then
10395 # Parse the compiler output and extract the necessary
10396 # objects, libraries and library flags.
10398 # Sentinel used to keep track of whether or not we are before
10399 # the conftest object file.
10400 pre_test_object_deps_done=no
10402 # The `*' in the case matches for architectures that use `case' in
10403 # $output_verbose_cmd can trigger glob expansion during the loop
10404 # eval without this substitution.
10405 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10407 for p in `eval $output_verbose_link_cmd`; do
10411 # Some compilers place space between "-{L,R}" and the path.
10412 # Remove the space.
10413 if test $p = "-L" \
10414 || test $p = "-R"; then
10421 if test "$pre_test_object_deps_done" = no; then
10424 # Internal compiler library paths should come after those
10425 # provided the user. The postdeps already come after the
10426 # user supplied libs so there is no need to process them.
10427 if test -z "$compiler_lib_search_path_CXX"; then
10428 compiler_lib_search_path_CXX="${prev}${p}"
10430 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10433 # The "-l" case would never come before the object being
10434 # linked, so don't bother handling this case.
10437 if test -z "$postdeps_CXX"; then
10438 postdeps_CXX="${prev}${p}"
10440 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10446 # This assumes that the test object file only shows up
10447 # once in the compiler output.
10448 if test "$p" = "conftest.$objext"; then
10449 pre_test_object_deps_done=yes
10453 if test "$pre_test_object_deps_done" = no; then
10454 if test -z "$predep_objects_CXX"; then
10455 predep_objects_CXX="$p"
10457 predep_objects_CXX="$predep_objects_CXX $p"
10460 if test -z "$postdep_objects_CXX"; then
10461 postdep_objects_CXX="$p"
10463 postdep_objects_CXX="$postdep_objects_CXX $p"
10468 *) ;; # Ignore the rest.
10476 echo "libtool.m4: error: problem compiling CXX test program"
10479 $rm -f confest.$objext
10481 case " $postdeps_CXX " in
10482 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10485 lt_prog_compiler_wl_CXX=
10486 lt_prog_compiler_pic_CXX=
10487 lt_prog_compiler_static_CXX=
10489 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10490 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10492 # C++ specific cases for pic, static, wl, etc.
10493 if test "$GXX" = yes; then
10494 lt_prog_compiler_wl_CXX='-Wl,'
10495 lt_prog_compiler_static_CXX='-static'
10499 # All AIX code is PIC.
10500 if test "$host_cpu" = ia64; then
10501 # AIX 5 now supports IA64 processor
10502 lt_prog_compiler_static_CXX='-Bstatic'
10506 # FIXME: we need at least 68020 code to build shared libraries, but
10507 # adding the `-m68020' flag to GCC prevents building anything better,
10509 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10511 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10512 # PIC is the default for these OSes.
10514 mingw* | os2* | pw32*)
10515 # This hack is so that the source file can tell whether it is being
10516 # built for inclusion in a dll (and should export symbols for example).
10517 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10519 darwin* | rhapsody*)
10520 # PIC is the default on this platform
10521 # Common symbols not allowed in MH_DYLIB files
10522 lt_prog_compiler_pic_CXX='-fno-common'
10525 # DJGPP does not support shared libraries at all
10526 lt_prog_compiler_pic_CXX=
10529 if test -d /usr/nec; then
10530 lt_prog_compiler_pic_CXX=-Kconform_pic
10534 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10535 # not for PA HP-UX.
10536 case "$host_cpu" in
10540 lt_prog_compiler_pic_CXX='-fPIC'
10545 lt_prog_compiler_pic_CXX='-fPIC'
10551 # All AIX code is PIC.
10552 if test "$host_cpu" = ia64; then
10553 # AIX 5 now supports IA64 processor
10554 lt_prog_compiler_static_CXX='-Bstatic'
10556 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10560 case $cc_basename in
10562 # Green Hills C++ Compiler
10563 # _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"
10568 case $cc_basename in
10570 lt_prog_compiler_pic_CXX='-KPIC'
10573 # Green Hills C++ Compiler
10574 lt_prog_compiler_pic_CXX='-pic'
10581 # FreeBSD uses GNU C++
10583 hpux9* | hpux10* | hpux11*)
10584 case $cc_basename in
10586 lt_prog_compiler_wl_CXX='-Wl,'
10587 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10588 if test "$host_cpu" != ia64; then
10589 lt_prog_compiler_pic_CXX='+Z'
10593 lt_prog_compiler_wl_CXX='-Wl,'
10594 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10595 case "$host_cpu" in
10600 lt_prog_compiler_pic_CXX='+Z'
10608 irix5* | irix6* | nonstopux*)
10609 case $cc_basename in
10611 lt_prog_compiler_wl_CXX='-Wl,'
10612 lt_prog_compiler_static_CXX='-non_shared'
10613 # CC pic flag -KPIC is the default.
10620 case $cc_basename in
10623 lt_prog_compiler_wl_CXX='--backend -Wl,'
10624 lt_prog_compiler_pic_CXX='-fPIC'
10628 lt_prog_compiler_wl_CXX='-Wl,'
10629 lt_prog_compiler_pic_CXX='-KPIC'
10630 lt_prog_compiler_static_CXX='-static'
10634 # Make sure the PIC flag is empty. It appears that all Alpha
10635 # Linux and Compaq Tru64 Unix objects are PIC.
10636 lt_prog_compiler_pic_CXX=
10637 lt_prog_compiler_static_CXX='-non_shared'
10648 case $cc_basename in
10650 lt_prog_compiler_pic_CXX='-W c,exportall'
10658 osf3* | osf4* | osf5*)
10659 case $cc_basename in
10661 lt_prog_compiler_wl_CXX='--backend -Wl,'
10664 # Rational C++ 2.4.1
10665 lt_prog_compiler_pic_CXX='-pic'
10668 # Digital/Compaq C++
10669 lt_prog_compiler_wl_CXX='-Wl,'
10670 # Make sure the PIC flag is empty. It appears that all Alpha
10671 # Linux and Compaq Tru64 Unix objects are PIC.
10672 lt_prog_compiler_pic_CXX=
10673 lt_prog_compiler_static_CXX='-non_shared'
10682 case $cc_basename in
10684 lt_prog_compiler_pic_CXX='-fPIC'
10691 case $cc_basename in
10693 # Sun C++ 4.2, 5.x and Centerline C++
10694 lt_prog_compiler_pic_CXX='-KPIC'
10695 lt_prog_compiler_static_CXX='-Bstatic'
10696 lt_prog_compiler_wl_CXX='-Qoption ld '
10699 # Green Hills C++ Compiler
10700 lt_prog_compiler_pic_CXX='-PIC'
10707 case $cc_basename in
10710 lt_prog_compiler_pic_CXX='-pic'
10711 lt_prog_compiler_static_CXX='-Bstatic'
10715 lt_prog_compiler_pic_CXX='-pic'
10722 case $cc_basename in
10724 # NonStop-UX NCC 3.20
10725 lt_prog_compiler_pic_CXX='-KPIC'
10736 lt_prog_compiler_can_build_shared_CXX=no
10741 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10742 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10745 # Check to make sure the PIC flag actually works.
10747 if test -n "$lt_prog_compiler_pic_CXX"; then
10748 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10749 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10750 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10751 echo $ECHO_N "(cached) $ECHO_C" >&6
10753 lt_prog_compiler_pic_works_CXX=no
10754 ac_outfile=conftest.$ac_objext
10755 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10756 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10757 # Insert the option either (1) after the last *FLAGS variable, or
10758 # (2) before a word containing "conftest.", or (3) at the end.
10759 # Note that $ac_compile itself does not contain backslashes and begins
10760 # with a dollar sign (not a hyphen), so the echo should work correctly.
10761 # The option is referenced via a variable to avoid confusing sed.
10762 lt_compile=`echo "$ac_compile" | $SED \
10763 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10764 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10765 -e 's:$: $lt_compiler_flag:'`
10766 (eval echo "\"\$as_me:10766: $lt_compile\"" >&5)
10767 (eval "$lt_compile" 2>conftest.err)
10769 cat conftest.err >&5
10770 echo "$as_me:10770: \$? = $ac_status" >&5
10771 if (exit $ac_status) && test -s "$ac_outfile"; then
10772 # The compiler can only warn and ignore the option if not recognized
10773 # So say no if there are warnings
10774 if test ! -s conftest.err; then
10775 lt_prog_compiler_pic_works_CXX=yes
10781 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10782 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10784 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10785 case $lt_prog_compiler_pic_CXX in
10787 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10790 lt_prog_compiler_pic_CXX=
10791 lt_prog_compiler_can_build_shared_CXX=no
10796 # For platforms which do not support PIC, -DPIC is meaningless:
10798 lt_prog_compiler_pic_CXX=
10801 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10805 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10806 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10807 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10808 echo $ECHO_N "(cached) $ECHO_C" >&6
10810 lt_cv_prog_compiler_c_o_CXX=no
10811 $rm -r conftest 2>/dev/null
10815 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10817 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10818 # that will create temporary files in the current directory regardless of
10819 # the output directory. Thus, making CWD read-only will cause this test
10820 # to fail, enabling locking or at least warning the user not to do parallel
10824 lt_compiler_flag="-o out/conftest2.$ac_objext"
10825 # Insert the option either (1) after the last *FLAGS variable, or
10826 # (2) before a word containing "conftest.", or (3) at the end.
10827 # Note that $ac_compile itself does not contain backslashes and begins
10828 # with a dollar sign (not a hyphen), so the echo should work correctly.
10829 lt_compile=`echo "$ac_compile" | $SED \
10830 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10831 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10832 -e 's:$: $lt_compiler_flag:'`
10833 (eval echo "\"\$as_me:10833: $lt_compile\"" >&5)
10834 (eval "$lt_compile" 2>out/conftest.err)
10836 cat out/conftest.err >&5
10837 echo "$as_me:10837: \$? = $ac_status" >&5
10838 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10840 # The compiler can only warn and ignore the option if not recognized
10841 # So say no if there are warnings
10842 if test ! -s out/conftest.err; then
10843 lt_cv_prog_compiler_c_o_CXX=yes
10847 $rm conftest* out/*
10854 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10855 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10858 hard_links="nottested"
10859 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10860 # do not overwrite the value of need_locks provided by the user
10861 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10862 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10865 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10867 ln conftest.a conftest.b 2>&5 || hard_links=no
10868 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10869 echo "$as_me:$LINENO: result: $hard_links" >&5
10870 echo "${ECHO_T}$hard_links" >&6
10871 if test "$hard_links" = no; then
10872 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10873 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10880 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10881 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10883 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10886 # If we're using GNU nm, then we don't want the "-C" option.
10887 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10888 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10889 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'
10891 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'
10895 export_symbols_cmds_CXX="$ltdll_cmds"
10898 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10901 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10905 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10906 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10907 test "$ld_shlibs_CXX" = no && can_build_shared=no
10909 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10910 if test "$GCC" = yes; then
10911 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10915 # Do we need to explicitly link libc?
10917 case "x$archive_cmds_need_lc_CXX" in
10919 # Assume -lc should be added
10920 archive_cmds_need_lc_CXX=yes
10922 if test "$enable_shared" = yes && test "$GCC" = yes; then
10923 case $archive_cmds_CXX in
10925 # FIXME: we may have to deal with multi-command sequences.
10928 # Test whether the compiler implicitly links with -lc since on some
10929 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10930 # to ld, don't add -lc before -lgcc.
10931 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10932 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10934 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10937 (eval $ac_compile) 2>&5
10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); } 2>conftest.err; then
10943 libobjs=conftest.$ac_objext
10945 wl=$lt_prog_compiler_wl_CXX
10951 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10952 allow_undefined_flag_CXX=
10953 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10954 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); }
10959 archive_cmds_need_lc_CXX=no
10961 archive_cmds_need_lc_CXX=yes
10963 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10965 cat conftest.err 1>&5
10968 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10969 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10976 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10977 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10978 hardcode_action_CXX=
10979 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10980 test -n "$runpath_var CXX" || \
10981 test "X$hardcode_automatic_CXX"="Xyes" ; then
10983 # We can hardcode non-existant directories.
10984 if test "$hardcode_direct_CXX" != no &&
10985 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10986 # have to relink, otherwise we might link with an installed library
10987 # when we should be linking with a yet-to-be-installed one
10988 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10989 test "$hardcode_minus_L_CXX" != no; then
10990 # Linking always hardcodes the temporary library directory.
10991 hardcode_action_CXX=relink
10993 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10994 hardcode_action_CXX=immediate
10997 # We cannot hardcode anything, or else we can only hardcode existing
10999 hardcode_action_CXX=unsupported
11001 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11002 echo "${ECHO_T}$hardcode_action_CXX" >&6
11004 if test "$hardcode_action_CXX" = relink; then
11005 # Fast installation is not supported
11006 enable_fast_install=no
11007 elif test "$shlibpath_overrides_runpath" = yes ||
11008 test "$enable_shared" = no; then
11009 # Fast installation is not necessary
11010 enable_fast_install=needless
11015 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11016 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11017 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11018 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11019 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11020 echo "$as_me:$LINENO: result: yes" >&5
11021 echo "${ECHO_T}yes" >&6
11023 # FIXME - insert some real tests, host_os isn't really good enough
11026 if test -n "$STRIP" ; then
11027 striplib="$STRIP -x"
11028 echo "$as_me:$LINENO: result: yes" >&5
11029 echo "${ECHO_T}yes" >&6
11031 echo "$as_me:$LINENO: result: no" >&5
11032 echo "${ECHO_T}no" >&6
11036 echo "$as_me:$LINENO: result: no" >&5
11037 echo "${ECHO_T}no" >&6
11042 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11043 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11044 library_names_spec=
11045 libname_spec='lib$name'
11049 postuninstall_cmds=
11053 shlibpath_overrides_runpath=unknown
11055 dynamic_linker="$host_os ld.so"
11056 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11057 if test "$GCC" = yes; then
11058 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11059 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11060 # if the path contains ";" then we assume it to be the separator
11061 # otherwise default to the standard path separator (i.e. ":") - it is
11062 # assumed that no part of a normal pathname contains ";" but that should
11063 # okay in the real world where ";" in dirpaths is itself problematic.
11064 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11066 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11069 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11071 need_lib_prefix=unknown
11072 hardcode_into_libs=no
11074 # when you set need_version to no, make sure it does not cause -set_version
11075 # flags to be left without arguments
11076 need_version=unknown
11081 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11082 shlibpath_var=LIBPATH
11084 # AIX 3 has no versioning support, so we append a major version to the name.
11085 soname_spec='${libname}${release}${shared_ext}$major'
11092 hardcode_into_libs=yes
11093 if test "$host_cpu" = ia64; then
11094 # AIX 5 supports IA64
11095 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11096 shlibpath_var=LD_LIBRARY_PATH
11098 # With GCC up to 2.95.x, collect2 would create an import file
11099 # for dependence libraries. The import file would start with
11100 # the line `#! .'. This would cause the generated library to
11101 # depend on `.', always an invalid library. This was fixed in
11102 # development snapshots of GCC prior to 3.0.
11104 aix4 | aix4.[01] | aix4.[01].*)
11105 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11107 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11110 can_build_shared=no
11114 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11115 # soname into executable. Probably we can add versioning support to
11116 # collect2, so additional links can be useful in future.
11117 if test "$aix_use_runtimelinking" = yes; then
11118 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11119 # instead of lib<name>.a to let people know that these are not
11120 # typical AIX shared libraries.
11121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11123 # We preserve .a as extension for shared libraries through AIX4.2
11124 # and later when we are not doing run time linking.
11125 library_names_spec='${libname}${release}.a $libname.a'
11126 soname_spec='${libname}${release}${shared_ext}$major'
11128 shlibpath_var=LIBPATH
11133 library_names_spec='$libname.ixlibrary $libname.a'
11134 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11135 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'
11139 library_names_spec='${libname}${shared_ext}'
11140 dynamic_linker="$host_os ld.so"
11141 shlibpath_var=LIBRARY_PATH
11147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11148 soname_spec='${libname}${release}${shared_ext}$major'
11149 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11150 shlibpath_var=LD_LIBRARY_PATH
11151 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11152 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11153 # the default ld.so.conf also contains /usr/contrib/lib and
11154 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11155 # libtool to hard-code these into programs
11158 cygwin* | mingw* | pw32*)
11159 version_type=windows
11164 case $GCC,$host_os in
11165 yes,cygwin* | yes,mingw* | yes,pw32*)
11166 library_names_spec='$libname.dll.a'
11167 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11168 postinstall_cmds='base_file=`basename \${file}`~
11169 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11170 dldir=$destdir/`dirname \$dlpath`~
11171 test -d \$dldir || mkdir -p \$dldir~
11172 $install_prog $dir/$dlname \$dldir/$dlname'
11173 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11174 dlpath=$dir/\$dldll~
11176 shlibpath_overrides_runpath=yes
11180 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11181 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11182 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11185 # MinGW DLLs use traditional 'lib' prefix
11186 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11187 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11188 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11189 # It is most probably a Windows format PATH printed by
11190 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11191 # path with ; separators, and with drive letters. We can handle the
11192 # drive letters (cygwin fileutils understands them), so leave them,
11193 # especially as we might pass files found there to a mingw objdump,
11194 # which wouldn't understand a cygwinified path. Ahh.
11195 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11197 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11201 # pw32 DLLs use 'pw' prefix rather than 'lib'
11202 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11208 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11211 dynamic_linker='Win32 ld.exe'
11212 # FIXME: first we should search . and the directory the executable is in
11216 darwin* | rhapsody*)
11217 dynamic_linker="$host_os dyld"
11218 version_type=darwin
11221 # FIXME: Relying on posixy $() will cause problems for
11222 # cross-compilation, but unfortunately the echo tests do not
11223 # yet detect zsh echo's removal of \ escapes.
11224 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11225 soname_spec='${libname}${release}${major}$shared_ext'
11226 shlibpath_overrides_runpath=yes
11227 shlibpath_var=DYLD_LIBRARY_PATH
11228 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11229 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11230 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11231 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"`
11233 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11241 soname_spec='${libname}${release}${shared_ext}$major'
11242 shlibpath_var=LD_LIBRARY_PATH
11250 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11251 version_type=freebsd-$objformat
11252 case $version_type in
11254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11259 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11263 shlibpath_var=LD_LIBRARY_PATH
11266 shlibpath_overrides_runpath=yes
11268 freebsd3.01* | freebsdelf3.01*)
11269 shlibpath_overrides_runpath=yes
11270 hardcode_into_libs=yes
11273 shlibpath_overrides_runpath=no
11274 hardcode_into_libs=yes
11283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11284 soname_spec='${libname}${release}${shared_ext}$major'
11285 shlibpath_var=LD_LIBRARY_PATH
11286 hardcode_into_libs=yes
11289 hpux9* | hpux10* | hpux11*)
11290 # Give a soname corresponding to the major version so that dld.sl refuses to
11291 # link against other versions.
11295 case "$host_cpu" in
11298 hardcode_into_libs=yes
11299 dynamic_linker="$host_os dld.so"
11300 shlibpath_var=LD_LIBRARY_PATH
11301 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11303 soname_spec='${libname}${release}${shared_ext}$major'
11304 if test "X$HPUX_IA64_MODE" = X32; then
11305 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11307 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11309 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11313 hardcode_into_libs=yes
11314 dynamic_linker="$host_os dld.sl"
11315 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11316 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11318 soname_spec='${libname}${release}${shared_ext}$major'
11319 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11320 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11324 dynamic_linker="$host_os dld.sl"
11325 shlibpath_var=SHLIB_PATH
11326 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11328 soname_spec='${libname}${release}${shared_ext}$major'
11331 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11332 postinstall_cmds='chmod 555 $lib'
11335 irix5* | irix6* | nonstopux*)
11337 nonstopux*) version_type=nonstopux ;;
11339 if test "$lt_cv_prog_gnu_ld" = yes; then
11347 soname_spec='${libname}${release}${shared_ext}$major'
11348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11350 irix5* | nonstopux*)
11351 libsuff= shlibsuff=
11354 case $LD in # libtool.m4 will add one of these switches to LD
11355 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11356 libsuff= shlibsuff= libmagic=32-bit;;
11357 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11358 libsuff=32 shlibsuff=N32 libmagic=N32;;
11359 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11360 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11361 *) libsuff= shlibsuff= libmagic=never-match;;
11365 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11366 shlibpath_overrides_runpath=no
11367 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11368 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11369 hardcode_into_libs=yes
11372 # No shared lib support for Linux oldld, aout, or coff.
11373 linux*oldld* | linux*aout* | linux*coff*)
11377 # This must be Linux ELF.
11382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11383 soname_spec='${libname}${release}${shared_ext}$major'
11384 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11385 shlibpath_var=LD_LIBRARY_PATH
11386 shlibpath_overrides_runpath=no
11387 # This implies no fast_install, which is unacceptable.
11388 # Some rework will be needed to allow for fast_install
11389 # before this can be enabled.
11390 hardcode_into_libs=yes
11392 # We used to test for /lib/ld.so.1 and disable shared libraries on
11393 # powerpc, because MkLinux only supported shared libraries with the
11394 # GNU dynamic linker. Since this was broken with cross compilers,
11395 # most powerpc-linux boxes support dynamic linking these days and
11396 # people can always --disable-shared, the test was removed, and we
11397 # assume the GNU/Linux dynamic linker is in use.
11398 dynamic_linker='GNU/Linux ld.so'
11405 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11407 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11408 dynamic_linker='NetBSD (a.out) ld.so'
11410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11411 soname_spec='${libname}${release}${shared_ext}$major'
11412 dynamic_linker='NetBSD ld.elf_so'
11414 shlibpath_var=LD_LIBRARY_PATH
11415 shlibpath_overrides_runpath=yes
11416 hardcode_into_libs=yes
11421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11422 shlibpath_var=LD_LIBRARY_PATH
11423 shlibpath_overrides_runpath=yes
11430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11431 soname_spec='${libname}${release}${shared_ext}$major'
11432 shlibpath_var=LD_LIBRARY_PATH
11433 shlibpath_overrides_runpath=yes
11440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11441 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11442 shlibpath_var=LD_LIBRARY_PATH
11443 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11445 openbsd2.[89] | openbsd2.[89].*)
11446 shlibpath_overrides_runpath=no
11449 shlibpath_overrides_runpath=yes
11453 shlibpath_overrides_runpath=yes
11458 libname_spec='$name'
11461 library_names_spec='$libname${shared_ext} $libname.a'
11462 dynamic_linker='OS/2 ld.exe'
11463 shlibpath_var=LIBPATH
11466 osf3* | osf4* | osf5*)
11470 soname_spec='${libname}${release}${shared_ext}$major'
11471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11472 shlibpath_var=LD_LIBRARY_PATH
11473 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11474 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11479 soname_spec='${libname}${release}${shared_ext}$major'
11480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11481 shlibpath_var=LD_LIBRARY_PATH
11488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11489 soname_spec='${libname}${release}${shared_ext}$major'
11490 shlibpath_var=LD_LIBRARY_PATH
11491 shlibpath_overrides_runpath=yes
11492 hardcode_into_libs=yes
11493 # ldd complains unless libraries are executable
11494 postinstall_cmds='chmod +x $lib'
11499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11500 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11501 shlibpath_var=LD_LIBRARY_PATH
11502 shlibpath_overrides_runpath=yes
11503 if test "$with_gnu_ld" = yes; then
11509 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11512 soname_spec='${libname}${release}${shared_ext}$major'
11513 shlibpath_var=LD_LIBRARY_PATH
11514 case $host_vendor in
11516 shlibpath_overrides_runpath=no
11518 export_dynamic_flag_spec='${wl}-Blargedynsym'
11519 runpath_var=LD_RUN_PATH
11527 shlibpath_overrides_runpath=no
11528 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11534 if test -d /usr/nec ;then
11536 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11537 soname_spec='$libname${shared_ext}.$major'
11538 shlibpath_var=LD_LIBRARY_PATH
11544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11545 soname_spec='${libname}${release}${shared_ext}$major'
11546 shlibpath_var=LD_LIBRARY_PATH
11553 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11554 echo "${ECHO_T}$dynamic_linker" >&6
11555 test "$dynamic_linker" = no && can_build_shared=no
11557 if test "x$enable_dlopen" != xyes; then
11558 enable_dlopen=unknown
11559 enable_dlopen_self=unknown
11560 enable_dlopen_self_static=unknown
11567 lt_cv_dlopen="load_add_on"
11569 lt_cv_dlopen_self=yes
11573 lt_cv_dlopen="LoadLibrary"
11578 lt_cv_dlopen="dlopen"
11583 # if libdl is installed we need to link against it
11584 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11585 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11586 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11587 echo $ECHO_N "(cached) $ECHO_C" >&6
11589 ac_check_lib_save_LIBS=$LIBS
11591 cat >conftest.$ac_ext <<_ACEOF
11594 cat confdefs.h >>conftest.$ac_ext
11595 cat >>conftest.$ac_ext <<_ACEOF
11596 /* end confdefs.h. */
11598 /* Override any gcc2 internal prototype to avoid an error. */
11602 /* We use char because int might match the return type of a gcc2
11603 builtin and then its argument prototype would still apply. */
11613 rm -f conftest.$ac_objext conftest$ac_exeext
11614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11615 (eval $ac_link) 2>conftest.er1
11617 grep -v '^ *+' conftest.er1 >conftest.err
11619 cat conftest.err >&5
11620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); } &&
11622 { ac_try='test -z "$ac_cxx_werror_flag"
11623 || test ! -s conftest.err'
11624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11625 (eval $ac_try) 2>&5
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); }; } &&
11629 { ac_try='test -s conftest$ac_exeext'
11630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11631 (eval $ac_try) 2>&5
11633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634 (exit $ac_status); }; }; then
11635 ac_cv_lib_dl_dlopen=yes
11637 echo "$as_me: failed program was:" >&5
11638 sed 's/^/| /' conftest.$ac_ext >&5
11640 ac_cv_lib_dl_dlopen=no
11642 rm -f conftest.err conftest.$ac_objext \
11643 conftest$ac_exeext conftest.$ac_ext
11644 LIBS=$ac_check_lib_save_LIBS
11646 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11647 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11648 if test $ac_cv_lib_dl_dlopen = yes; then
11649 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11652 lt_cv_dlopen="dyld"
11654 lt_cv_dlopen_self=yes
11661 echo "$as_me:$LINENO: checking for shl_load" >&5
11662 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11663 if test "${ac_cv_func_shl_load+set}" = set; then
11664 echo $ECHO_N "(cached) $ECHO_C" >&6
11666 cat >conftest.$ac_ext <<_ACEOF
11669 cat confdefs.h >>conftest.$ac_ext
11670 cat >>conftest.$ac_ext <<_ACEOF
11671 /* end confdefs.h. */
11672 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11674 #define shl_load innocuous_shl_load
11676 /* System header to define __stub macros and hopefully few prototypes,
11677 which can conflict with char shl_load (); below.
11678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11679 <limits.h> exists even on freestanding compilers. */
11682 # include <limits.h>
11684 # include <assert.h>
11689 /* 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. */
11697 /* The GNU C library defines this for functions which it implements
11698 to always fail with ENOSYS. Some functions are actually named
11699 something starting with __ and the normal name is an alias. */
11700 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11703 char (*f) () = shl_load;
11712 return f != shl_load;
11717 rm -f conftest.$ac_objext conftest$ac_exeext
11718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11719 (eval $ac_link) 2>conftest.er1
11721 grep -v '^ *+' conftest.er1 >conftest.err
11723 cat conftest.err >&5
11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); } &&
11726 { ac_try='test -z "$ac_cxx_werror_flag"
11727 || test ! -s conftest.err'
11728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11729 (eval $ac_try) 2>&5
11731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732 (exit $ac_status); }; } &&
11733 { ac_try='test -s conftest$ac_exeext'
11734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11735 (eval $ac_try) 2>&5
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); }; }; then
11739 ac_cv_func_shl_load=yes
11741 echo "$as_me: failed program was:" >&5
11742 sed 's/^/| /' conftest.$ac_ext >&5
11744 ac_cv_func_shl_load=no
11746 rm -f conftest.err conftest.$ac_objext \
11747 conftest$ac_exeext conftest.$ac_ext
11749 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11750 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11751 if test $ac_cv_func_shl_load = yes; then
11752 lt_cv_dlopen="shl_load"
11754 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11755 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11756 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11757 echo $ECHO_N "(cached) $ECHO_C" >&6
11759 ac_check_lib_save_LIBS=$LIBS
11761 cat >conftest.$ac_ext <<_ACEOF
11764 cat confdefs.h >>conftest.$ac_ext
11765 cat >>conftest.$ac_ext <<_ACEOF
11766 /* end confdefs.h. */
11768 /* Override any gcc2 internal prototype to avoid an error. */
11772 /* We use char because int might match the return type of a gcc2
11773 builtin and then its argument prototype would still apply. */
11783 rm -f conftest.$ac_objext conftest$ac_exeext
11784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11785 (eval $ac_link) 2>conftest.er1
11787 grep -v '^ *+' conftest.er1 >conftest.err
11789 cat conftest.err >&5
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); } &&
11792 { ac_try='test -z "$ac_cxx_werror_flag"
11793 || test ! -s conftest.err'
11794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11795 (eval $ac_try) 2>&5
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); }; } &&
11799 { ac_try='test -s conftest$ac_exeext'
11800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11801 (eval $ac_try) 2>&5
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); }; }; then
11805 ac_cv_lib_dld_shl_load=yes
11807 echo "$as_me: failed program was:" >&5
11808 sed 's/^/| /' conftest.$ac_ext >&5
11810 ac_cv_lib_dld_shl_load=no
11812 rm -f conftest.err conftest.$ac_objext \
11813 conftest$ac_exeext conftest.$ac_ext
11814 LIBS=$ac_check_lib_save_LIBS
11816 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11817 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11818 if test $ac_cv_lib_dld_shl_load = yes; then
11819 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11821 echo "$as_me:$LINENO: checking for dlopen" >&5
11822 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11823 if test "${ac_cv_func_dlopen+set}" = set; then
11824 echo $ECHO_N "(cached) $ECHO_C" >&6
11826 cat >conftest.$ac_ext <<_ACEOF
11829 cat confdefs.h >>conftest.$ac_ext
11830 cat >>conftest.$ac_ext <<_ACEOF
11831 /* end confdefs.h. */
11832 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11834 #define dlopen innocuous_dlopen
11836 /* System header to define __stub macros and hopefully few prototypes,
11837 which can conflict with char dlopen (); below.
11838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11839 <limits.h> exists even on freestanding compilers. */
11842 # include <limits.h>
11844 # include <assert.h>
11849 /* Override any gcc2 internal prototype to avoid an error. */
11854 /* We use char because int might match the return type of a gcc2
11855 builtin and then its argument prototype would still apply. */
11857 /* The GNU C library defines this for functions which it implements
11858 to always fail with ENOSYS. Some functions are actually named
11859 something starting with __ and the normal name is an alias. */
11860 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11863 char (*f) () = dlopen;
11872 return f != dlopen;
11877 rm -f conftest.$ac_objext conftest$ac_exeext
11878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11879 (eval $ac_link) 2>conftest.er1
11881 grep -v '^ *+' conftest.er1 >conftest.err
11883 cat conftest.err >&5
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); } &&
11886 { ac_try='test -z "$ac_cxx_werror_flag"
11887 || test ! -s conftest.err'
11888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11889 (eval $ac_try) 2>&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); }; } &&
11893 { ac_try='test -s conftest$ac_exeext'
11894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895 (eval $ac_try) 2>&5
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); }; }; then
11899 ac_cv_func_dlopen=yes
11901 echo "$as_me: failed program was:" >&5
11902 sed 's/^/| /' conftest.$ac_ext >&5
11904 ac_cv_func_dlopen=no
11906 rm -f conftest.err conftest.$ac_objext \
11907 conftest$ac_exeext conftest.$ac_ext
11909 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11910 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11911 if test $ac_cv_func_dlopen = yes; then
11912 lt_cv_dlopen="dlopen"
11914 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11915 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11916 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11917 echo $ECHO_N "(cached) $ECHO_C" >&6
11919 ac_check_lib_save_LIBS=$LIBS
11921 cat >conftest.$ac_ext <<_ACEOF
11924 cat confdefs.h >>conftest.$ac_ext
11925 cat >>conftest.$ac_ext <<_ACEOF
11926 /* end confdefs.h. */
11928 /* Override any gcc2 internal prototype to avoid an error. */
11932 /* We use char because int might match the return type of a gcc2
11933 builtin and then its argument prototype would still apply. */
11943 rm -f conftest.$ac_objext conftest$ac_exeext
11944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11945 (eval $ac_link) 2>conftest.er1
11947 grep -v '^ *+' conftest.er1 >conftest.err
11949 cat conftest.err >&5
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); } &&
11952 { ac_try='test -z "$ac_cxx_werror_flag"
11953 || test ! -s conftest.err'
11954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11955 (eval $ac_try) 2>&5
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); }; } &&
11959 { ac_try='test -s conftest$ac_exeext'
11960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11961 (eval $ac_try) 2>&5
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); }; }; then
11965 ac_cv_lib_dl_dlopen=yes
11967 echo "$as_me: failed program was:" >&5
11968 sed 's/^/| /' conftest.$ac_ext >&5
11970 ac_cv_lib_dl_dlopen=no
11972 rm -f conftest.err conftest.$ac_objext \
11973 conftest$ac_exeext conftest.$ac_ext
11974 LIBS=$ac_check_lib_save_LIBS
11976 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11977 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11978 if test $ac_cv_lib_dl_dlopen = yes; then
11979 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11981 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11982 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11983 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11984 echo $ECHO_N "(cached) $ECHO_C" >&6
11986 ac_check_lib_save_LIBS=$LIBS
11987 LIBS="-lsvld $LIBS"
11988 cat >conftest.$ac_ext <<_ACEOF
11991 cat confdefs.h >>conftest.$ac_ext
11992 cat >>conftest.$ac_ext <<_ACEOF
11993 /* end confdefs.h. */
11995 /* Override any gcc2 internal prototype to avoid an error. */
11999 /* We use char because int might match the return type of a gcc2
12000 builtin and then its argument prototype would still apply. */
12010 rm -f conftest.$ac_objext conftest$ac_exeext
12011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12012 (eval $ac_link) 2>conftest.er1
12014 grep -v '^ *+' conftest.er1 >conftest.err
12016 cat conftest.err >&5
12017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018 (exit $ac_status); } &&
12019 { ac_try='test -z "$ac_cxx_werror_flag"
12020 || test ! -s conftest.err'
12021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12022 (eval $ac_try) 2>&5
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); }; } &&
12026 { ac_try='test -s conftest$ac_exeext'
12027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12028 (eval $ac_try) 2>&5
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); }; }; then
12032 ac_cv_lib_svld_dlopen=yes
12034 echo "$as_me: failed program was:" >&5
12035 sed 's/^/| /' conftest.$ac_ext >&5
12037 ac_cv_lib_svld_dlopen=no
12039 rm -f conftest.err conftest.$ac_objext \
12040 conftest$ac_exeext conftest.$ac_ext
12041 LIBS=$ac_check_lib_save_LIBS
12043 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12044 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12045 if test $ac_cv_lib_svld_dlopen = yes; then
12046 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12048 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12049 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12050 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12051 echo $ECHO_N "(cached) $ECHO_C" >&6
12053 ac_check_lib_save_LIBS=$LIBS
12055 cat >conftest.$ac_ext <<_ACEOF
12058 cat confdefs.h >>conftest.$ac_ext
12059 cat >>conftest.$ac_ext <<_ACEOF
12060 /* end confdefs.h. */
12062 /* Override any gcc2 internal prototype to avoid an error. */
12066 /* We use char because int might match the return type of a gcc2
12067 builtin and then its argument prototype would still apply. */
12077 rm -f conftest.$ac_objext conftest$ac_exeext
12078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12079 (eval $ac_link) 2>conftest.er1
12081 grep -v '^ *+' conftest.er1 >conftest.err
12083 cat conftest.err >&5
12084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); } &&
12086 { ac_try='test -z "$ac_cxx_werror_flag"
12087 || test ! -s conftest.err'
12088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12089 (eval $ac_try) 2>&5
12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); }; } &&
12093 { ac_try='test -s conftest$ac_exeext'
12094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12095 (eval $ac_try) 2>&5
12097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098 (exit $ac_status); }; }; then
12099 ac_cv_lib_dld_dld_link=yes
12101 echo "$as_me: failed program was:" >&5
12102 sed 's/^/| /' conftest.$ac_ext >&5
12104 ac_cv_lib_dld_dld_link=no
12106 rm -f conftest.err conftest.$ac_objext \
12107 conftest$ac_exeext conftest.$ac_ext
12108 LIBS=$ac_check_lib_save_LIBS
12110 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12111 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12112 if test $ac_cv_lib_dld_dld_link = yes; then
12113 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12134 if test "x$lt_cv_dlopen" != xno; then
12140 case $lt_cv_dlopen in
12142 save_CPPFLAGS="$CPPFLAGS"
12143 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12145 save_LDFLAGS="$LDFLAGS"
12146 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12149 LIBS="$lt_cv_dlopen_libs $LIBS"
12151 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12152 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12153 if test "${lt_cv_dlopen_self+set}" = set; then
12154 echo $ECHO_N "(cached) $ECHO_C" >&6
12156 if test "$cross_compiling" = yes; then :
12157 lt_cv_dlopen_self=cross
12159 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12160 lt_status=$lt_dlunknown
12161 cat > conftest.$ac_ext <<EOF
12162 #line 12162 "configure"
12163 #include "confdefs.h"
12172 # define LT_DLGLOBAL RTLD_GLOBAL
12175 # define LT_DLGLOBAL DL_GLOBAL
12177 # define LT_DLGLOBAL 0
12181 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12182 find out it does not work in some platform. */
12183 #ifndef LT_DLLAZY_OR_NOW
12185 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12188 # define LT_DLLAZY_OR_NOW DL_LAZY
12191 # define LT_DLLAZY_OR_NOW RTLD_NOW
12194 # define LT_DLLAZY_OR_NOW DL_NOW
12196 # define LT_DLLAZY_OR_NOW 0
12204 extern "C" void exit (int);
12207 void fnord() { int i=42;}
12210 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12211 int status = $lt_dlunknown;
12215 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12216 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12217 /* dlclose (self); */
12223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12224 (eval $ac_link) 2>&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12228 (./conftest; exit; ) 2>/dev/null
12230 case x$lt_status in
12231 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12232 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12233 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12236 # compilation failed
12237 lt_cv_dlopen_self=no
12244 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12245 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12247 if test "x$lt_cv_dlopen_self" = xyes; then
12248 LDFLAGS="$LDFLAGS $link_static_flag"
12249 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12250 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12251 if test "${lt_cv_dlopen_self_static+set}" = set; then
12252 echo $ECHO_N "(cached) $ECHO_C" >&6
12254 if test "$cross_compiling" = yes; then :
12255 lt_cv_dlopen_self_static=cross
12257 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12258 lt_status=$lt_dlunknown
12259 cat > conftest.$ac_ext <<EOF
12260 #line 12260 "configure"
12261 #include "confdefs.h"
12270 # define LT_DLGLOBAL RTLD_GLOBAL
12273 # define LT_DLGLOBAL DL_GLOBAL
12275 # define LT_DLGLOBAL 0
12279 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12280 find out it does not work in some platform. */
12281 #ifndef LT_DLLAZY_OR_NOW
12283 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12286 # define LT_DLLAZY_OR_NOW DL_LAZY
12289 # define LT_DLLAZY_OR_NOW RTLD_NOW
12292 # define LT_DLLAZY_OR_NOW DL_NOW
12294 # define LT_DLLAZY_OR_NOW 0
12302 extern "C" void exit (int);
12305 void fnord() { int i=42;}
12308 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12309 int status = $lt_dlunknown;
12313 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12314 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12315 /* dlclose (self); */
12321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12322 (eval $ac_link) 2>&5
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12326 (./conftest; exit; ) 2>/dev/null
12328 case x$lt_status in
12329 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12330 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12331 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12334 # compilation failed
12335 lt_cv_dlopen_self_static=no
12342 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12343 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12346 CPPFLAGS="$save_CPPFLAGS"
12347 LDFLAGS="$save_LDFLAGS"
12352 case $lt_cv_dlopen_self in
12353 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12354 *) enable_dlopen_self=unknown ;;
12357 case $lt_cv_dlopen_self_static in
12358 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12359 *) enable_dlopen_self_static=unknown ;;
12364 # The else clause should only fire when bootstrapping the
12365 # libtool distribution, otherwise you forgot to ship ltmain.sh
12366 # with your package, and you will get complaints that there are
12367 # no rules to generate ltmain.sh.
12368 if test -f "$ltmain"; then
12369 # See if we are running on zsh, and set the options which allow our commands through
12370 # without removal of \ escapes.
12371 if test -n "${ZSH_VERSION+set}" ; then
12372 setopt NO_GLOB_SUBST
12374 # Now quote all the things that may contain metacharacters while being
12375 # careful not to overquote the AC_SUBSTed values. We take copies of the
12376 # variables and quote the copies for generation of the libtool script.
12377 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12378 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12379 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12380 deplibs_check_method reload_flag reload_cmds need_locks \
12381 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12382 lt_cv_sys_global_symbol_to_c_name_address \
12383 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12384 old_postinstall_cmds old_postuninstall_cmds \
12388 lt_prog_compiler_wl_CXX \
12389 lt_prog_compiler_pic_CXX \
12390 lt_prog_compiler_static_CXX \
12391 lt_prog_compiler_no_builtin_flag_CXX \
12392 export_dynamic_flag_spec_CXX \
12393 thread_safe_flag_spec_CXX \
12394 whole_archive_flag_spec_CXX \
12395 enable_shared_with_static_runtimes_CXX \
12396 old_archive_cmds_CXX \
12397 old_archive_from_new_cmds_CXX \
12398 predep_objects_CXX \
12399 postdep_objects_CXX \
12402 compiler_lib_search_path_CXX \
12404 archive_expsym_cmds_CXX \
12405 postinstall_cmds_CXX \
12406 postuninstall_cmds_CXX \
12407 old_archive_from_expsyms_cmds_CXX \
12408 allow_undefined_flag_CXX \
12409 no_undefined_flag_CXX \
12410 export_symbols_cmds_CXX \
12411 hardcode_libdir_flag_spec_CXX \
12412 hardcode_libdir_flag_spec_ld_CXX \
12413 hardcode_libdir_separator_CXX \
12414 hardcode_automatic_CXX \
12416 module_expsym_cmds_CXX \
12417 lt_cv_prog_compiler_c_o_CXX \
12418 exclude_expsyms_CXX \
12419 include_expsyms_CXX; do
12422 old_archive_cmds_CXX | \
12423 old_archive_from_new_cmds_CXX | \
12424 archive_cmds_CXX | \
12425 archive_expsym_cmds_CXX | \
12426 module_cmds_CXX | \
12427 module_expsym_cmds_CXX | \
12428 old_archive_from_expsyms_cmds_CXX | \
12429 export_symbols_cmds_CXX | \
12430 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12431 postinstall_cmds | postuninstall_cmds | \
12432 old_postinstall_cmds | old_postuninstall_cmds | \
12433 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12434 # Double-quote double-evaled strings.
12435 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12438 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12444 *'\$0 --fallback-echo"')
12445 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12451 cat <<__EOF__ >> "$cfgfile"
12452 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12454 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12456 # Shell to use when invoking shell scripts.
12459 # Whether or not to build shared libraries.
12460 build_libtool_libs=$enable_shared
12462 # Whether or not to build static libraries.
12463 build_old_libs=$enable_static
12465 # Whether or not to add -lc for building shared libraries.
12466 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12468 # Whether or not to disallow shared libs when runtime libs are static
12469 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12471 # Whether or not to optimize for fast installation.
12472 fast_install=$enable_fast_install
12475 host_alias=$host_alias
12478 # An echo program that does not interpret backslashes.
12483 AR_FLAGS=$lt_AR_FLAGS
12488 # A language-specific compiler.
12489 CC=$lt_compiler_CXX
12491 # Is the compiler the GNU C compiler?
12497 # The linker used to build libraries.
12500 # Whether we need hard or soft links.
12503 # A BSD-compatible nm program.
12506 # A symbol stripping program
12509 # Used to examine libraries when file_magic_cmd begins "file"
12510 MAGIC_CMD=$MAGIC_CMD
12512 # Used on cygwin: DLL creation program.
12515 # Used on cygwin: object dumper.
12518 # Used on cygwin: assembler.
12521 # The name of the directory that contains temporary libtool files.
12524 # How to create reloadable object files.
12525 reload_flag=$lt_reload_flag
12526 reload_cmds=$lt_reload_cmds
12528 # How to pass a linker flag through the compiler.
12529 wl=$lt_lt_prog_compiler_wl_CXX
12531 # Object file suffix (normally "o").
12532 objext="$ac_objext"
12534 # Old archive suffix (normally "a").
12537 # Shared library suffix (normally ".so").
12540 # Executable file suffix (normally "").
12543 # Additional compiler flags for building library objects.
12544 pic_flag=$lt_lt_prog_compiler_pic_CXX
12547 # What is the maximum length of a command?
12548 max_cmd_len=$lt_cv_sys_max_cmd_len
12550 # Does compiler simultaneously support -c and -o options?
12551 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12553 # Must we lock files when doing compilation ?
12554 need_locks=$lt_need_locks
12556 # Do we need the lib prefix for modules?
12557 need_lib_prefix=$need_lib_prefix
12559 # Do we need a version for libraries?
12560 need_version=$need_version
12562 # Whether dlopen is supported.
12563 dlopen_support=$enable_dlopen
12565 # Whether dlopen of programs is supported.
12566 dlopen_self=$enable_dlopen_self
12568 # Whether dlopen of statically linked programs is supported.
12569 dlopen_self_static=$enable_dlopen_self_static
12571 # Compiler flag to prevent dynamic linking.
12572 link_static_flag=$lt_lt_prog_compiler_static_CXX
12574 # Compiler flag to turn off builtin functions.
12575 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12577 # Compiler flag to allow reflexive dlopens.
12578 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12580 # Compiler flag to generate shared objects directly from archives.
12581 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12583 # Compiler flag to generate thread-safe objects.
12584 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12586 # Library versioning type.
12587 version_type=$version_type
12589 # Format of library name prefix.
12590 libname_spec=$lt_libname_spec
12592 # List of archive names. First name is the real one, the rest are links.
12593 # The last name is the one that the linker finds with -lNAME.
12594 library_names_spec=$lt_library_names_spec
12596 # The coded name of the library, if different from the real name.
12597 soname_spec=$lt_soname_spec
12599 # Commands used to build and install an old-style archive.
12601 old_archive_cmds=$lt_old_archive_cmds_CXX
12602 old_postinstall_cmds=$lt_old_postinstall_cmds
12603 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12605 # Create an old-style archive from a shared archive.
12606 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12608 # Create a temporary old-style archive to link instead of a shared archive.
12609 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12611 # Commands used to build and install a shared archive.
12612 archive_cmds=$lt_archive_cmds_CXX
12613 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12614 postinstall_cmds=$lt_postinstall_cmds
12615 postuninstall_cmds=$lt_postuninstall_cmds
12617 # Commands used to build a loadable module (assumed same as above if empty)
12618 module_cmds=$lt_module_cmds_CXX
12619 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12621 # Commands to strip libraries.
12622 old_striplib=$lt_old_striplib
12623 striplib=$lt_striplib
12625 # Dependencies to place before the objects being linked to create a
12627 predep_objects=$lt_predep_objects_CXX
12629 # Dependencies to place after the objects being linked to create a
12631 postdep_objects=$lt_postdep_objects_CXX
12633 # Dependencies to place before the objects being linked to create a
12635 predeps=$lt_predeps_CXX
12637 # Dependencies to place after the objects being linked to create a
12639 postdeps=$lt_postdeps_CXX
12641 # The library search path used internally by the compiler when linking
12642 # a shared library.
12643 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12645 # Method to check whether dependent libraries are shared objects.
12646 deplibs_check_method=$lt_deplibs_check_method
12648 # Command to use when deplibs_check_method == file_magic.
12649 file_magic_cmd=$lt_file_magic_cmd
12651 # Flag that allows shared libraries with undefined symbols to be built.
12652 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12654 # Flag that forces no undefined symbols.
12655 no_undefined_flag=$lt_no_undefined_flag_CXX
12657 # Commands used to finish a libtool library installation in a directory.
12658 finish_cmds=$lt_finish_cmds
12660 # Same as above, but a single script fragment to be evaled but not shown.
12661 finish_eval=$lt_finish_eval
12663 # Take the output of nm and produce a listing of raw symbols and C names.
12664 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12666 # Transform the output of nm in a proper C declaration
12667 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12669 # Transform the output of nm in a C name address pair
12670 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12672 # This is the shared library runtime path variable.
12673 runpath_var=$runpath_var
12675 # This is the shared library path variable.
12676 shlibpath_var=$shlibpath_var
12678 # Is shlibpath searched before the hard-coded library search path?
12679 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12681 # How to hardcode a shared library path into an executable.
12682 hardcode_action=$hardcode_action_CXX
12684 # Whether we should hardcode library paths into libraries.
12685 hardcode_into_libs=$hardcode_into_libs
12687 # Flag to hardcode \$libdir into a binary during linking.
12688 # This must work even if \$libdir does not exist.
12689 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12691 # If ld is used when linking, flag to hardcode \$libdir into
12692 # a binary during linking. This must work even if \$libdir does
12694 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12696 # Whether we need a single -rpath flag with a separated argument.
12697 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12699 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12700 # resulting binary.
12701 hardcode_direct=$hardcode_direct_CXX
12703 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12704 # resulting binary.
12705 hardcode_minus_L=$hardcode_minus_L_CXX
12707 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12708 # the resulting binary.
12709 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12711 # Set to yes if building a shared library automatically hardcodes DIR into the library
12712 # and all subsequent libraries and executables linked against it.
12713 hardcode_automatic=$hardcode_automatic_CXX
12715 # Variables whose values should be saved in libtool wrapper scripts and
12716 # restored at relink time.
12717 variables_saved_for_relink="$variables_saved_for_relink"
12719 # Whether libtool must link a program against all its dependency libraries.
12720 link_all_deplibs=$link_all_deplibs_CXX
12722 # Compile-time system search path for libraries
12723 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12725 # Run-time system search path for libraries
12726 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12728 # Fix the shell variable \$srcfile for the compiler.
12729 fix_srcfile_path="$fix_srcfile_path_CXX"
12731 # Set to yes if exported symbols are required.
12732 always_export_symbols=$always_export_symbols_CXX
12734 # The commands to list exported symbols.
12735 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12737 # The commands to extract the exported symbol list from a shared archive.
12738 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12740 # Symbols that should not be listed in the preloaded symbols.
12741 exclude_expsyms=$lt_exclude_expsyms_CXX
12743 # Symbols that must always be exported.
12744 include_expsyms=$lt_include_expsyms_CXX
12746 # ### END LIBTOOL TAG CONFIG: $tagname
12752 # If there is no Makefile yet, we rely on a make rule to execute
12753 # `config.status --recheck' to rerun these tests and create the
12754 # libtool script then.
12755 test -f Makefile && make "$ltmain"
12760 ac_cpp='$CPP $CPPFLAGS'
12761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12769 with_gnu_ldcxx=$with_gnu_ld
12770 with_gnu_ld=$lt_save_with_gnu_ld
12771 lt_cv_path_LDCXX=$lt_cv_path_LD
12772 lt_cv_path_LD=$lt_save_path_LD
12773 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12774 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12782 if test -n "$F77" && test "X$F77" != "Xno"; then
12785 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12786 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12787 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12790 archive_cmds_need_lc_F77=no
12791 allow_undefined_flag_F77=
12792 always_export_symbols_F77=no
12793 archive_expsym_cmds_F77=
12794 export_dynamic_flag_spec_F77=
12795 hardcode_direct_F77=no
12796 hardcode_libdir_flag_spec_F77=
12797 hardcode_libdir_flag_spec_ld_F77=
12798 hardcode_libdir_separator_F77=
12799 hardcode_minus_L_F77=no
12800 hardcode_automatic_F77=no
12802 module_expsym_cmds_F77=
12803 link_all_deplibs_F77=unknown
12804 old_archive_cmds_F77=$old_archive_cmds
12805 no_undefined_flag_F77=
12806 whole_archive_flag_spec_F77=
12807 enable_shared_with_static_runtimes_F77=no
12809 # Source file extension for f77 test sources.
12812 # Object file extension for compiled f77 test sources.
12816 # Code to be used in simple compile tests
12817 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12819 # Code to be used in simple link tests
12820 lt_simple_link_test_code=" program t\n end\n"
12822 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12824 # If no C compiler was specified, use CC.
12827 # Allow CC to be a program name with arguments.
12831 # Allow CC to be a program name with arguments.
12836 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12838 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12839 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12840 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12841 echo "${ECHO_T}$can_build_shared" >&6
12843 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12844 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12845 test "$can_build_shared" = "no" && enable_shared=no
12847 # On AIX, shared libraries and static libraries use the same namespace, and
12848 # are all built from PIC.
12851 test "$enable_shared" = yes && enable_static=no
12852 if test -n "$RANLIB"; then
12853 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12854 postinstall_cmds='$RANLIB $lib'
12858 test "$enable_shared" = yes && enable_static=no
12861 echo "$as_me:$LINENO: result: $enable_shared" >&5
12862 echo "${ECHO_T}$enable_shared" >&6
12864 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12865 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12866 # Make sure either enable_shared or enable_static is yes.
12867 test "$enable_shared" = yes || enable_static=yes
12868 echo "$as_me:$LINENO: result: $enable_static" >&5
12869 echo "${ECHO_T}$enable_static" >&6
12871 test "$ld_shlibs_F77" = no && can_build_shared=no
12876 lt_prog_compiler_wl_F77=
12877 lt_prog_compiler_pic_F77=
12878 lt_prog_compiler_static_F77=
12880 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12881 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12883 if test "$GCC" = yes; then
12884 lt_prog_compiler_wl_F77='-Wl,'
12885 lt_prog_compiler_static_F77='-static'
12889 # All AIX code is PIC.
12890 if test "$host_cpu" = ia64; then
12891 # AIX 5 now supports IA64 processor
12892 lt_prog_compiler_static_F77='-Bstatic'
12897 # FIXME: we need at least 68020 code to build shared libraries, but
12898 # adding the `-m68020' flag to GCC prevents building anything better,
12900 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12903 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12904 # PIC is the default for these OSes.
12907 mingw* | pw32* | os2*)
12908 # This hack is so that the source file can tell whether it is being
12909 # built for inclusion in a dll (and should export symbols for example).
12910 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12913 darwin* | rhapsody*)
12914 # PIC is the default on this platform
12915 # Common symbols not allowed in MH_DYLIB files
12916 lt_prog_compiler_pic_F77='-fno-common'
12920 # Just because we use GCC doesn't mean we suddenly get shared libraries
12921 # on systems that don't support them.
12922 lt_prog_compiler_can_build_shared_F77=no
12927 if test -d /usr/nec; then
12928 lt_prog_compiler_pic_F77=-Kconform_pic
12933 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12934 # not for PA HP-UX.
12935 case "$host_cpu" in
12940 lt_prog_compiler_pic_F77='-fPIC'
12946 lt_prog_compiler_pic_F77='-fPIC'
12950 # PORTME Check for flag to pass linker flags through the system compiler.
12953 lt_prog_compiler_wl_F77='-Wl,'
12954 if test "$host_cpu" = ia64; then
12955 # AIX 5 now supports IA64 processor
12956 lt_prog_compiler_static_F77='-Bstatic'
12958 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12962 mingw* | pw32* | os2*)
12963 # This hack is so that the source file can tell whether it is being
12964 # built for inclusion in a dll (and should export symbols for example).
12965 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12968 hpux9* | hpux10* | hpux11*)
12969 lt_prog_compiler_wl_F77='-Wl,'
12970 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12971 # not for PA HP-UX.
12972 case "$host_cpu" in
12977 lt_prog_compiler_pic_F77='+Z'
12980 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12981 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12984 irix5* | irix6* | nonstopux*)
12985 lt_prog_compiler_wl_F77='-Wl,'
12986 # PIC (with -KPIC) is the default.
12987 lt_prog_compiler_static_F77='-non_shared'
12991 lt_prog_compiler_pic_F77='-KPIC'
12992 lt_prog_compiler_static_F77='-Bstatic'
12998 lt_prog_compiler_wl_F77='-Wl,'
12999 lt_prog_compiler_pic_F77='-KPIC'
13000 lt_prog_compiler_static_F77='-static'
13003 lt_prog_compiler_wl_F77='-Wl,'
13004 # All Alpha code is PIC.
13005 lt_prog_compiler_static_F77='-non_shared'
13010 osf3* | osf4* | osf5*)
13011 lt_prog_compiler_wl_F77='-Wl,'
13012 # All OSF/1 code is PIC.
13013 lt_prog_compiler_static_F77='-non_shared'
13017 lt_prog_compiler_pic_F77='-Kpic'
13018 lt_prog_compiler_static_F77='-dn'
13022 lt_prog_compiler_wl_F77='-Wl,'
13023 lt_prog_compiler_pic_F77='-KPIC'
13024 lt_prog_compiler_static_F77='-Bstatic'
13028 lt_prog_compiler_wl_F77='-Qoption ld '
13029 lt_prog_compiler_pic_F77='-PIC'
13030 lt_prog_compiler_static_F77='-Bstatic'
13033 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13034 lt_prog_compiler_wl_F77='-Wl,'
13035 lt_prog_compiler_pic_F77='-KPIC'
13036 lt_prog_compiler_static_F77='-Bstatic'
13040 if test -d /usr/nec ;then
13041 lt_prog_compiler_pic_F77='-Kconform_pic'
13042 lt_prog_compiler_static_F77='-Bstatic'
13047 lt_prog_compiler_pic_F77='-pic'
13048 lt_prog_compiler_static_F77='-Bstatic'
13052 lt_prog_compiler_can_build_shared_F77=no
13057 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13058 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13061 # Check to make sure the PIC flag actually works.
13063 if test -n "$lt_prog_compiler_pic_F77"; then
13064 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13065 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13066 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13067 echo $ECHO_N "(cached) $ECHO_C" >&6
13069 lt_prog_compiler_pic_works_F77=no
13070 ac_outfile=conftest.$ac_objext
13071 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13072 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13073 # Insert the option either (1) after the last *FLAGS variable, or
13074 # (2) before a word containing "conftest.", or (3) at the end.
13075 # Note that $ac_compile itself does not contain backslashes and begins
13076 # with a dollar sign (not a hyphen), so the echo should work correctly.
13077 # The option is referenced via a variable to avoid confusing sed.
13078 lt_compile=`echo "$ac_compile" | $SED \
13079 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13080 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13081 -e 's:$: $lt_compiler_flag:'`
13082 (eval echo "\"\$as_me:13082: $lt_compile\"" >&5)
13083 (eval "$lt_compile" 2>conftest.err)
13085 cat conftest.err >&5
13086 echo "$as_me:13086: \$? = $ac_status" >&5
13087 if (exit $ac_status) && test -s "$ac_outfile"; then
13088 # The compiler can only warn and ignore the option if not recognized
13089 # So say no if there are warnings
13090 if test ! -s conftest.err; then
13091 lt_prog_compiler_pic_works_F77=yes
13097 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13098 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13100 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13101 case $lt_prog_compiler_pic_F77 in
13103 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13106 lt_prog_compiler_pic_F77=
13107 lt_prog_compiler_can_build_shared_F77=no
13112 # For platforms which do not support PIC, -DPIC is meaningless:
13114 lt_prog_compiler_pic_F77=
13117 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13121 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13122 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13123 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13124 echo $ECHO_N "(cached) $ECHO_C" >&6
13126 lt_cv_prog_compiler_c_o_F77=no
13127 $rm -r conftest 2>/dev/null
13131 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13133 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13134 # that will create temporary files in the current directory regardless of
13135 # the output directory. Thus, making CWD read-only will cause this test
13136 # to fail, enabling locking or at least warning the user not to do parallel
13140 lt_compiler_flag="-o out/conftest2.$ac_objext"
13141 # Insert the option either (1) after the last *FLAGS variable, or
13142 # (2) before a word containing "conftest.", or (3) at the end.
13143 # Note that $ac_compile itself does not contain backslashes and begins
13144 # with a dollar sign (not a hyphen), so the echo should work correctly.
13145 lt_compile=`echo "$ac_compile" | $SED \
13146 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13147 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13148 -e 's:$: $lt_compiler_flag:'`
13149 (eval echo "\"\$as_me:13149: $lt_compile\"" >&5)
13150 (eval "$lt_compile" 2>out/conftest.err)
13152 cat out/conftest.err >&5
13153 echo "$as_me:13153: \$? = $ac_status" >&5
13154 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13156 # The compiler can only warn and ignore the option if not recognized
13157 # So say no if there are warnings
13158 if test ! -s out/conftest.err; then
13159 lt_cv_prog_compiler_c_o_F77=yes
13163 $rm conftest* out/*
13170 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13171 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13174 hard_links="nottested"
13175 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13176 # do not overwrite the value of need_locks provided by the user
13177 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13178 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13181 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13183 ln conftest.a conftest.b 2>&5 || hard_links=no
13184 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13185 echo "$as_me:$LINENO: result: $hard_links" >&5
13186 echo "${ECHO_T}$hard_links" >&6
13187 if test "$hard_links" = no; then
13188 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13189 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13196 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13197 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13200 allow_undefined_flag_F77=
13201 enable_shared_with_static_runtimes_F77=no
13203 archive_expsym_cmds_F77=
13204 old_archive_From_new_cmds_F77=
13205 old_archive_from_expsyms_cmds_F77=
13206 export_dynamic_flag_spec_F77=
13207 whole_archive_flag_spec_F77=
13208 thread_safe_flag_spec_F77=
13209 hardcode_libdir_flag_spec_F77=
13210 hardcode_libdir_flag_spec_ld_F77=
13211 hardcode_libdir_separator_F77=
13212 hardcode_direct_F77=no
13213 hardcode_minus_L_F77=no
13214 hardcode_shlibpath_var_F77=unsupported
13215 link_all_deplibs_F77=unknown
13216 hardcode_automatic_F77=no
13218 module_expsym_cmds_F77=
13219 always_export_symbols_F77=no
13220 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13221 # include_expsyms should be a list of space-separated symbols to be *always*
13222 # included in the symbol list
13223 include_expsyms_F77=
13224 # exclude_expsyms can be an extended regexp of symbols to exclude
13225 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13226 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13227 # as well as any symbol that contains `d'.
13228 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13229 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13230 # platforms (ab)use it in PIC code, but their linkers get confused if
13231 # the symbol is explicitly referenced. Since portable code cannot
13232 # rely on this symbol name, it's probably fine to never include it in
13233 # preloaded symbol tables.
13234 extract_expsyms_cmds=
13237 cygwin* | mingw* | pw32*)
13238 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13239 # When not using gcc, we currently assume that we are using
13240 # Microsoft Visual C++.
13241 if test "$GCC" != yes; then
13251 if test "$with_gnu_ld" = yes; then
13252 # If archive_cmds runs LD, not CC, wlarc should be empty
13255 # See if GNU ld supports shared libraries.
13257 aix3* | aix4* | aix5*)
13258 # On AIX/PPC, the GNU linker is very broken
13259 if test "$host_cpu" != ia64; then
13263 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13264 *** to be unable to reliably create shared libraries on AIX.
13265 *** Therefore, libtool is disabling shared libraries support. If you
13266 *** really care for shared libraries, you may want to modify your PATH
13267 *** so that a non-GNU linker is found, and then restart.
13274 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13275 hardcode_libdir_flag_spec_F77='-L$libdir'
13276 hardcode_minus_L_F77=yes
13278 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13279 # that the semantics of dynamic libraries on AmigaOS, at least up
13280 # to version 4, is to share data among multiple programs linked
13281 # with the same dynamic library. Since this doesn't match the
13282 # behavior of shared libraries on other platforms, we can't use
13288 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13289 allow_undefined_flag_F77=unsupported
13290 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13291 # support --undefined. This deserves some investigation. FIXME
13292 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13298 cygwin* | mingw* | pw32*)
13299 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13300 # as there is no search path for DLLs.
13301 hardcode_libdir_flag_spec_F77='-L$libdir'
13302 allow_undefined_flag_F77=unsupported
13303 always_export_symbols_F77=no
13304 enable_shared_with_static_runtimes_F77=yes
13305 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13307 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13308 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13309 # If the export-symbols file already is a .def file (1st line
13310 # is EXPORTS), use it as is; otherwise, prepend...
13311 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13312 cp $export_symbols $output_objdir/$soname.def;
13314 echo EXPORTS > $output_objdir/$soname.def;
13315 cat $export_symbols >> $output_objdir/$soname.def;
13317 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13324 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13325 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13328 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13329 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13334 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13338 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13339 *** create shared libraries on Solaris systems. Therefore, libtool
13340 *** is disabling shared libraries support. We urge you to upgrade GNU
13341 *** binutils to release 2.9.1 or newer. Another option is to modify
13342 *** your PATH or compiler configuration so that the native linker is
13343 *** used, and then restart.
13346 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13347 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13348 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13355 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13357 hardcode_direct_F77=yes
13358 hardcode_shlibpath_var_F77=no
13362 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13363 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13364 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13371 if test "$ld_shlibs_F77" = yes; then
13372 runpath_var=LD_RUN_PATH
13373 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13374 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13375 # ancient GNU ld didn't support --whole-archive et. al.
13376 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13377 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13379 whole_archive_flag_spec_F77=
13383 # PORTME fill in a description of your system's linker (not GNU ld)
13386 allow_undefined_flag_F77=unsupported
13387 always_export_symbols_F77=yes
13388 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13389 # Note: this linker hardcodes the directories in LIBPATH if there
13390 # are no directories specified by -L.
13391 hardcode_minus_L_F77=yes
13392 if test "$GCC" = yes && test -z "$link_static_flag"; then
13393 # Neither direct hardcoding nor static linking is supported with a
13395 hardcode_direct_F77=unsupported
13400 if test "$host_cpu" = ia64; then
13401 # On IA64, the linker does run time linking by default, so we don't
13402 # have to do anything special.
13403 aix_use_runtimelinking=no
13404 exp_sym_flag='-Bexport'
13407 # If we're using GNU nm, then we don't want the "-C" option.
13408 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13409 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13410 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'
13412 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'
13414 aix_use_runtimelinking=no
13416 # Test if we are trying to use run time linking or normal
13417 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13418 # need to do runtime linking.
13419 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13420 for ld_flag in $LDFLAGS; do
13421 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13422 aix_use_runtimelinking=yes
13428 exp_sym_flag='-bexport'
13429 no_entry_flag='-bnoentry'
13432 # When large executables or shared objects are built, AIX ld can
13433 # have problems creating the table of contents. If linking a library
13434 # or program results in "error TOC overflow" add -mminimal-toc to
13435 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13436 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13438 archive_cmds_F77=''
13439 hardcode_direct_F77=yes
13440 hardcode_libdir_separator_F77=':'
13441 link_all_deplibs_F77=yes
13443 if test "$GCC" = yes; then
13444 case $host_os in aix4.012|aix4.012.*)
13445 # We only want to do this on AIX 4.2 and lower, the check
13446 # below for broken collect2 doesn't work under 4.3+
13447 collect2name=`${CC} -print-prog-name=collect2`
13448 if test -f "$collect2name" && \
13449 strings "$collect2name" | grep resolve_lib_name >/dev/null
13451 # We have reworked collect2
13452 hardcode_direct_F77=yes
13454 # We have old collect2
13455 hardcode_direct_F77=unsupported
13456 # It fails to find uninstalled libraries when the uninstalled
13457 # path is not listed in the libpath. Setting hardcode_minus_L
13458 # to unsupported forces relinking
13459 hardcode_minus_L_F77=yes
13460 hardcode_libdir_flag_spec_F77='-L$libdir'
13461 hardcode_libdir_separator_F77=
13464 shared_flag='-shared'
13467 if test "$host_cpu" = ia64; then
13468 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13469 # chokes on -Wl,-G. The following line is correct:
13472 if test "$aix_use_runtimelinking" = yes; then
13473 shared_flag='${wl}-G'
13475 shared_flag='${wl}-bM:SRE'
13480 # It seems that -bexpall does not export symbols beginning with
13481 # underscore (_), so it is better to generate a list of symbols to export.
13482 always_export_symbols_F77=yes
13483 if test "$aix_use_runtimelinking" = yes; then
13484 # Warning - without using the other runtime loading flags (-brtl),
13485 # -berok will link without error, but may produce a broken library.
13486 allow_undefined_flag_F77='-berok'
13487 # Determine the default libpath from the value encoded in an empty executable.
13488 cat >conftest.$ac_ext <<_ACEOF
13493 rm -f conftest.$ac_objext conftest$ac_exeext
13494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13495 (eval $ac_link) 2>conftest.er1
13497 grep -v '^ *+' conftest.er1 >conftest.err
13499 cat conftest.err >&5
13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); } &&
13502 { ac_try='test -z "$ac_f77_werror_flag"
13503 || test ! -s conftest.err'
13504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13505 (eval $ac_try) 2>&5
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); }; } &&
13509 { ac_try='test -s conftest$ac_exeext'
13510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13511 (eval $ac_try) 2>&5
13513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514 (exit $ac_status); }; }; then
13516 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13518 # Check for a 64-bit object if we didn't find anything.
13519 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; }
13522 echo "$as_me: failed program was:" >&5
13523 sed 's/^/| /' conftest.$ac_ext >&5
13526 rm -f conftest.err conftest.$ac_objext \
13527 conftest$ac_exeext conftest.$ac_ext
13528 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13530 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13531 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"
13533 if test "$host_cpu" = ia64; then
13534 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13535 allow_undefined_flag_F77="-z nodefs"
13536 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"
13538 # Determine the default libpath from the value encoded in an empty executable.
13539 cat >conftest.$ac_ext <<_ACEOF
13544 rm -f conftest.$ac_objext conftest$ac_exeext
13545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13546 (eval $ac_link) 2>conftest.er1
13548 grep -v '^ *+' conftest.er1 >conftest.err
13550 cat conftest.err >&5
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552 (exit $ac_status); } &&
13553 { ac_try='test -z "$ac_f77_werror_flag"
13554 || test ! -s conftest.err'
13555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13556 (eval $ac_try) 2>&5
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); }; } &&
13560 { ac_try='test -s conftest$ac_exeext'
13561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13562 (eval $ac_try) 2>&5
13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); }; }; then
13567 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13569 # Check for a 64-bit object if we didn't find anything.
13570 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; }
13573 echo "$as_me: failed program was:" >&5
13574 sed 's/^/| /' conftest.$ac_ext >&5
13577 rm -f conftest.err conftest.$ac_objext \
13578 conftest$ac_exeext conftest.$ac_ext
13579 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13581 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13582 # Warning - without using the other run time loading flags,
13583 # -berok will link without error, but may produce a broken library.
13584 no_undefined_flag_F77=' ${wl}-bernotok'
13585 allow_undefined_flag_F77=' ${wl}-berok'
13586 # -bexpall does not export symbols beginning with underscore (_)
13587 always_export_symbols_F77=yes
13588 # Exported symbols can be pulled into shared objects from archives
13589 whole_archive_flag_spec_F77=' '
13590 archive_cmds_need_lc_F77=yes
13591 # This is similar to how AIX traditionally builds it's shared libraries.
13592 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13598 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13599 hardcode_libdir_flag_spec_F77='-L$libdir'
13600 hardcode_minus_L_F77=yes
13601 # see comment about different semantics on the GNU ld section
13606 export_dynamic_flag_spec_F77=-rdynamic
13609 cygwin* | mingw* | pw32*)
13610 # When not using gcc, we currently assume that we are using
13611 # Microsoft Visual C++.
13612 # hardcode_libdir_flag_spec is actually meaningless, as there is
13613 # no search path for DLLs.
13614 hardcode_libdir_flag_spec_F77=' '
13615 allow_undefined_flag_F77=unsupported
13616 # Tell ltmain to make .lib files, not .a files.
13618 # Tell ltmain to make .dll files, not .so files.
13620 # FIXME: Setting linknames here is a bad hack.
13621 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13622 # The linker will automatically build a .lib file if we build a DLL.
13623 old_archive_From_new_cmds_F77='true'
13624 # FIXME: Should let the user specify the lib program.
13625 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13626 fix_srcfile_path='`cygpath -w "$srcfile"`'
13627 enable_shared_with_static_runtimes_F77=yes
13630 darwin* | rhapsody*)
13631 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13632 archive_cmds_need_lc_F77=no
13634 rhapsody* | darwin1.[012])
13635 allow_undefined_flag_F77='-undefined suppress'
13638 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13641 # FIXME: Relying on posixy $() will cause problems for
13642 # cross-compilation, but unfortunately the echo tests do not
13643 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13644 # `"' quotes if we put them in here... so don't!
13645 lt_int_apple_cc_single_mod=no
13646 output_verbose_link_cmd='echo'
13647 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13648 lt_int_apple_cc_single_mod=yes
13650 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13651 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13653 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13655 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13656 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13657 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13658 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13660 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13662 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13663 hardcode_direct_F77=no
13664 hardcode_automatic_F77=yes
13665 hardcode_shlibpath_var_F77=unsupported
13666 whole_archive_flag_spec_F77='-all_load $convenience'
13667 link_all_deplibs_F77=yes
13672 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13673 hardcode_libdir_flag_spec_F77='-L$libdir'
13674 hardcode_shlibpath_var_F77=no
13681 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13682 # support. Future versions do this automatically, but an explicit c++rt0.o
13683 # does not break anything, and helps significantly (at the cost of a little
13686 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13687 hardcode_libdir_flag_spec_F77='-R$libdir'
13688 hardcode_direct_F77=yes
13689 hardcode_shlibpath_var_F77=no
13692 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13694 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13695 hardcode_direct_F77=yes
13696 hardcode_minus_L_F77=yes
13697 hardcode_shlibpath_var_F77=no
13700 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13702 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13703 hardcode_libdir_flag_spec_F77='-R$libdir'
13704 hardcode_direct_F77=yes
13705 hardcode_shlibpath_var_F77=no
13709 if test "$GCC" = yes; then
13710 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13712 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13714 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13715 hardcode_libdir_separator_F77=:
13716 hardcode_direct_F77=yes
13718 # hardcode_minus_L: Not really in the search PATH,
13719 # but as the default location of the library.
13720 hardcode_minus_L_F77=yes
13721 export_dynamic_flag_spec_F77='${wl}-E'
13725 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13726 case "$host_cpu" in
13728 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13731 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13735 case "$host_cpu" in
13737 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13740 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13744 if test "$with_gnu_ld" = no; then
13745 case "$host_cpu" in
13747 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13748 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13749 hardcode_libdir_separator_F77=:
13750 hardcode_direct_F77=no
13751 hardcode_shlibpath_var_F77=no
13754 hardcode_libdir_flag_spec_F77='-L$libdir'
13755 hardcode_direct_F77=no
13756 hardcode_shlibpath_var_F77=no
13758 # hardcode_minus_L: Not really in the search PATH,
13759 # but as the default location of the library.
13760 hardcode_minus_L_F77=yes
13763 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13764 hardcode_libdir_separator_F77=:
13765 hardcode_direct_F77=yes
13766 export_dynamic_flag_spec_F77='${wl}-E'
13768 # hardcode_minus_L: Not really in the search PATH,
13769 # but as the default location of the library.
13770 hardcode_minus_L_F77=yes
13776 irix5* | irix6* | nonstopux*)
13777 if test "$GCC" = yes; then
13778 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'
13780 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'
13781 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13783 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13784 hardcode_libdir_separator_F77=:
13785 link_all_deplibs_F77=yes
13789 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13790 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13792 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13794 hardcode_libdir_flag_spec_F77='-R$libdir'
13795 hardcode_direct_F77=yes
13796 hardcode_shlibpath_var_F77=no
13800 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13801 hardcode_direct_F77=yes
13802 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13803 hardcode_libdir_separator_F77=:
13804 hardcode_shlibpath_var_F77=no
13808 hardcode_direct_F77=yes
13809 hardcode_shlibpath_var_F77=no
13810 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13811 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13812 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13813 export_dynamic_flag_spec_F77='${wl}-E'
13816 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13817 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13818 hardcode_libdir_flag_spec_F77='-R$libdir'
13821 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13822 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13829 hardcode_libdir_flag_spec_F77='-L$libdir'
13830 hardcode_minus_L_F77=yes
13831 allow_undefined_flag_F77=unsupported
13832 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
13833 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13837 if test "$GCC" = yes; then
13838 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13839 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'
13841 allow_undefined_flag_F77=' -expect_unresolved \*'
13842 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'
13844 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13845 hardcode_libdir_separator_F77=:
13848 osf4* | osf5*) # as osf3* with the addition of -msym flag
13849 if test "$GCC" = yes; then
13850 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13851 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'
13852 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13854 allow_undefined_flag_F77=' -expect_unresolved \*'
13855 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'
13856 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~
13857 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
13859 # Both c and cxx compiler support -rpath directly
13860 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13862 hardcode_libdir_separator_F77=:
13866 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13867 hardcode_shlibpath_var_F77=no
13868 export_dynamic_flag_spec_F77='${wl}-Bexport'
13869 runpath_var=LD_RUN_PATH
13870 hardcode_runpath_var=yes
13874 no_undefined_flag_F77=' -z text'
13875 if test "$GCC" = yes; then
13876 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13877 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13878 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13880 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13881 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13882 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13884 hardcode_libdir_flag_spec_F77='-R$libdir'
13885 hardcode_shlibpath_var_F77=no
13887 solaris2.[0-5] | solaris2.[0-5].*) ;;
13888 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13889 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13891 link_all_deplibs_F77=yes
13895 if test "x$host_vendor" = xsequent; then
13896 # Use $CC to link under sequent, because it throws in some extra .o
13897 # files that make .init and .fini sections work.
13898 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13900 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13902 hardcode_libdir_flag_spec_F77='-L$libdir'
13903 hardcode_direct_F77=yes
13904 hardcode_minus_L_F77=yes
13905 hardcode_shlibpath_var_F77=no
13909 case $host_vendor in
13911 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13912 hardcode_direct_F77=yes # is this really true???
13915 ## LD is ld it makes a PLAMLIB
13916 ## CC just makes a GrossModule.
13917 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13918 reload_cmds_F77='$CC -r -o $output$reload_objs'
13919 hardcode_direct_F77=no
13922 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13923 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13926 runpath_var='LD_RUN_PATH'
13927 hardcode_shlibpath_var_F77=no
13931 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13932 hardcode_shlibpath_var_F77=no
13933 export_dynamic_flag_spec_F77='-Bexport'
13937 if test -d /usr/nec; then
13938 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13939 hardcode_shlibpath_var_F77=no
13940 runpath_var=LD_RUN_PATH
13941 hardcode_runpath_var=yes
13947 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13948 hardcode_direct_F77=yes
13949 hardcode_minus_L_F77=no
13950 hardcode_shlibpath_var_F77=no
13951 hardcode_runpath_var=yes
13952 runpath_var=LD_RUN_PATH
13955 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13956 no_undefined_flag_F77='${wl}-z ${wl}text'
13957 if test "$GCC" = yes; then
13958 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13960 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13962 runpath_var='LD_RUN_PATH'
13963 hardcode_shlibpath_var_F77=no
13967 no_undefined_flag_F77=' -z text'
13968 # $CC -shared without GNU ld will not create a library from C++
13969 # object files and a static libstdc++, better avoid it by now
13970 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13971 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13972 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13973 hardcode_libdir_flag_spec_F77=
13974 hardcode_shlibpath_var_F77=no
13975 runpath_var='LD_RUN_PATH'
13979 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13980 hardcode_libdir_flag_spec_F77='-L$libdir'
13981 hardcode_shlibpath_var_F77=no
13990 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13991 echo "${ECHO_T}$ld_shlibs_F77" >&6
13992 test "$ld_shlibs_F77" = no && can_build_shared=no
13994 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13995 if test "$GCC" = yes; then
13996 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14000 # Do we need to explicitly link libc?
14002 case "x$archive_cmds_need_lc_F77" in
14004 # Assume -lc should be added
14005 archive_cmds_need_lc_F77=yes
14007 if test "$enable_shared" = yes && test "$GCC" = yes; then
14008 case $archive_cmds_F77 in
14010 # FIXME: we may have to deal with multi-command sequences.
14013 # Test whether the compiler implicitly links with -lc since on some
14014 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14015 # to ld, don't add -lc before -lgcc.
14016 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14017 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14019 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14022 (eval $ac_compile) 2>&5
14024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025 (exit $ac_status); } 2>conftest.err; then
14028 libobjs=conftest.$ac_objext
14030 wl=$lt_prog_compiler_wl_F77
14036 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14037 allow_undefined_flag_F77=
14038 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14039 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); }
14044 archive_cmds_need_lc_F77=no
14046 archive_cmds_need_lc_F77=yes
14048 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14050 cat conftest.err 1>&5
14053 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14054 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14061 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14062 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14063 hardcode_action_F77=
14064 if test -n "$hardcode_libdir_flag_spec_F77" || \
14065 test -n "$runpath_var F77" || \
14066 test "X$hardcode_automatic_F77"="Xyes" ; then
14068 # We can hardcode non-existant directories.
14069 if test "$hardcode_direct_F77" != no &&
14070 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14071 # have to relink, otherwise we might link with an installed library
14072 # when we should be linking with a yet-to-be-installed one
14073 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14074 test "$hardcode_minus_L_F77" != no; then
14075 # Linking always hardcodes the temporary library directory.
14076 hardcode_action_F77=relink
14078 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14079 hardcode_action_F77=immediate
14082 # We cannot hardcode anything, or else we can only hardcode existing
14084 hardcode_action_F77=unsupported
14086 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14087 echo "${ECHO_T}$hardcode_action_F77" >&6
14089 if test "$hardcode_action_F77" = relink; then
14090 # Fast installation is not supported
14091 enable_fast_install=no
14092 elif test "$shlibpath_overrides_runpath" = yes ||
14093 test "$enable_shared" = no; then
14094 # Fast installation is not necessary
14095 enable_fast_install=needless
14100 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14101 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14102 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14103 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14104 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14105 echo "$as_me:$LINENO: result: yes" >&5
14106 echo "${ECHO_T}yes" >&6
14108 # FIXME - insert some real tests, host_os isn't really good enough
14111 if test -n "$STRIP" ; then
14112 striplib="$STRIP -x"
14113 echo "$as_me:$LINENO: result: yes" >&5
14114 echo "${ECHO_T}yes" >&6
14116 echo "$as_me:$LINENO: result: no" >&5
14117 echo "${ECHO_T}no" >&6
14121 echo "$as_me:$LINENO: result: no" >&5
14122 echo "${ECHO_T}no" >&6
14127 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14128 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14129 library_names_spec=
14130 libname_spec='lib$name'
14134 postuninstall_cmds=
14138 shlibpath_overrides_runpath=unknown
14140 dynamic_linker="$host_os ld.so"
14141 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14142 if test "$GCC" = yes; then
14143 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14144 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14145 # if the path contains ";" then we assume it to be the separator
14146 # otherwise default to the standard path separator (i.e. ":") - it is
14147 # assumed that no part of a normal pathname contains ";" but that should
14148 # okay in the real world where ";" in dirpaths is itself problematic.
14149 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14151 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14154 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14156 need_lib_prefix=unknown
14157 hardcode_into_libs=no
14159 # when you set need_version to no, make sure it does not cause -set_version
14160 # flags to be left without arguments
14161 need_version=unknown
14166 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14167 shlibpath_var=LIBPATH
14169 # AIX 3 has no versioning support, so we append a major version to the name.
14170 soname_spec='${libname}${release}${shared_ext}$major'
14177 hardcode_into_libs=yes
14178 if test "$host_cpu" = ia64; then
14179 # AIX 5 supports IA64
14180 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14181 shlibpath_var=LD_LIBRARY_PATH
14183 # With GCC up to 2.95.x, collect2 would create an import file
14184 # for dependence libraries. The import file would start with
14185 # the line `#! .'. This would cause the generated library to
14186 # depend on `.', always an invalid library. This was fixed in
14187 # development snapshots of GCC prior to 3.0.
14189 aix4 | aix4.[01] | aix4.[01].*)
14190 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14192 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14195 can_build_shared=no
14199 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14200 # soname into executable. Probably we can add versioning support to
14201 # collect2, so additional links can be useful in future.
14202 if test "$aix_use_runtimelinking" = yes; then
14203 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14204 # instead of lib<name>.a to let people know that these are not
14205 # typical AIX shared libraries.
14206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14208 # We preserve .a as extension for shared libraries through AIX4.2
14209 # and later when we are not doing run time linking.
14210 library_names_spec='${libname}${release}.a $libname.a'
14211 soname_spec='${libname}${release}${shared_ext}$major'
14213 shlibpath_var=LIBPATH
14218 library_names_spec='$libname.ixlibrary $libname.a'
14219 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14220 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'
14224 library_names_spec='${libname}${shared_ext}'
14225 dynamic_linker="$host_os ld.so"
14226 shlibpath_var=LIBRARY_PATH
14232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14233 soname_spec='${libname}${release}${shared_ext}$major'
14234 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14235 shlibpath_var=LD_LIBRARY_PATH
14236 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14237 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14238 # the default ld.so.conf also contains /usr/contrib/lib and
14239 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14240 # libtool to hard-code these into programs
14243 cygwin* | mingw* | pw32*)
14244 version_type=windows
14249 case $GCC,$host_os in
14250 yes,cygwin* | yes,mingw* | yes,pw32*)
14251 library_names_spec='$libname.dll.a'
14252 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14253 postinstall_cmds='base_file=`basename \${file}`~
14254 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14255 dldir=$destdir/`dirname \$dlpath`~
14256 test -d \$dldir || mkdir -p \$dldir~
14257 $install_prog $dir/$dlname \$dldir/$dlname'
14258 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14259 dlpath=$dir/\$dldll~
14261 shlibpath_overrides_runpath=yes
14265 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14266 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14267 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14270 # MinGW DLLs use traditional 'lib' prefix
14271 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14272 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14273 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14274 # It is most probably a Windows format PATH printed by
14275 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14276 # path with ; separators, and with drive letters. We can handle the
14277 # drive letters (cygwin fileutils understands them), so leave them,
14278 # especially as we might pass files found there to a mingw objdump,
14279 # which wouldn't understand a cygwinified path. Ahh.
14280 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14282 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14286 # pw32 DLLs use 'pw' prefix rather than 'lib'
14287 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14293 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14296 dynamic_linker='Win32 ld.exe'
14297 # FIXME: first we should search . and the directory the executable is in
14301 darwin* | rhapsody*)
14302 dynamic_linker="$host_os dyld"
14303 version_type=darwin
14306 # FIXME: Relying on posixy $() will cause problems for
14307 # cross-compilation, but unfortunately the echo tests do not
14308 # yet detect zsh echo's removal of \ escapes.
14309 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14310 soname_spec='${libname}${release}${major}$shared_ext'
14311 shlibpath_overrides_runpath=yes
14312 shlibpath_var=DYLD_LIBRARY_PATH
14313 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14314 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14315 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14316 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"`
14318 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14326 soname_spec='${libname}${release}${shared_ext}$major'
14327 shlibpath_var=LD_LIBRARY_PATH
14335 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14336 version_type=freebsd-$objformat
14337 case $version_type in
14339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14344 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14348 shlibpath_var=LD_LIBRARY_PATH
14351 shlibpath_overrides_runpath=yes
14353 freebsd3.01* | freebsdelf3.01*)
14354 shlibpath_overrides_runpath=yes
14355 hardcode_into_libs=yes
14358 shlibpath_overrides_runpath=no
14359 hardcode_into_libs=yes
14368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14369 soname_spec='${libname}${release}${shared_ext}$major'
14370 shlibpath_var=LD_LIBRARY_PATH
14371 hardcode_into_libs=yes
14374 hpux9* | hpux10* | hpux11*)
14375 # Give a soname corresponding to the major version so that dld.sl refuses to
14376 # link against other versions.
14380 case "$host_cpu" in
14383 hardcode_into_libs=yes
14384 dynamic_linker="$host_os dld.so"
14385 shlibpath_var=LD_LIBRARY_PATH
14386 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14388 soname_spec='${libname}${release}${shared_ext}$major'
14389 if test "X$HPUX_IA64_MODE" = X32; then
14390 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14392 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14394 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14398 hardcode_into_libs=yes
14399 dynamic_linker="$host_os dld.sl"
14400 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14401 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14403 soname_spec='${libname}${release}${shared_ext}$major'
14404 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14405 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14409 dynamic_linker="$host_os dld.sl"
14410 shlibpath_var=SHLIB_PATH
14411 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14413 soname_spec='${libname}${release}${shared_ext}$major'
14416 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14417 postinstall_cmds='chmod 555 $lib'
14420 irix5* | irix6* | nonstopux*)
14422 nonstopux*) version_type=nonstopux ;;
14424 if test "$lt_cv_prog_gnu_ld" = yes; then
14432 soname_spec='${libname}${release}${shared_ext}$major'
14433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14435 irix5* | nonstopux*)
14436 libsuff= shlibsuff=
14439 case $LD in # libtool.m4 will add one of these switches to LD
14440 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14441 libsuff= shlibsuff= libmagic=32-bit;;
14442 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14443 libsuff=32 shlibsuff=N32 libmagic=N32;;
14444 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14445 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14446 *) libsuff= shlibsuff= libmagic=never-match;;
14450 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14451 shlibpath_overrides_runpath=no
14452 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14453 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14454 hardcode_into_libs=yes
14457 # No shared lib support for Linux oldld, aout, or coff.
14458 linux*oldld* | linux*aout* | linux*coff*)
14462 # This must be Linux ELF.
14467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14468 soname_spec='${libname}${release}${shared_ext}$major'
14469 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14470 shlibpath_var=LD_LIBRARY_PATH
14471 shlibpath_overrides_runpath=no
14472 # This implies no fast_install, which is unacceptable.
14473 # Some rework will be needed to allow for fast_install
14474 # before this can be enabled.
14475 hardcode_into_libs=yes
14477 # We used to test for /lib/ld.so.1 and disable shared libraries on
14478 # powerpc, because MkLinux only supported shared libraries with the
14479 # GNU dynamic linker. Since this was broken with cross compilers,
14480 # most powerpc-linux boxes support dynamic linking these days and
14481 # people can always --disable-shared, the test was removed, and we
14482 # assume the GNU/Linux dynamic linker is in use.
14483 dynamic_linker='GNU/Linux ld.so'
14490 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14492 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14493 dynamic_linker='NetBSD (a.out) ld.so'
14495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14496 soname_spec='${libname}${release}${shared_ext}$major'
14497 dynamic_linker='NetBSD ld.elf_so'
14499 shlibpath_var=LD_LIBRARY_PATH
14500 shlibpath_overrides_runpath=yes
14501 hardcode_into_libs=yes
14506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14507 shlibpath_var=LD_LIBRARY_PATH
14508 shlibpath_overrides_runpath=yes
14515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14516 soname_spec='${libname}${release}${shared_ext}$major'
14517 shlibpath_var=LD_LIBRARY_PATH
14518 shlibpath_overrides_runpath=yes
14525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14526 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14527 shlibpath_var=LD_LIBRARY_PATH
14528 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14530 openbsd2.[89] | openbsd2.[89].*)
14531 shlibpath_overrides_runpath=no
14534 shlibpath_overrides_runpath=yes
14538 shlibpath_overrides_runpath=yes
14543 libname_spec='$name'
14546 library_names_spec='$libname${shared_ext} $libname.a'
14547 dynamic_linker='OS/2 ld.exe'
14548 shlibpath_var=LIBPATH
14551 osf3* | osf4* | osf5*)
14555 soname_spec='${libname}${release}${shared_ext}$major'
14556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14557 shlibpath_var=LD_LIBRARY_PATH
14558 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14559 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14564 soname_spec='${libname}${release}${shared_ext}$major'
14565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14566 shlibpath_var=LD_LIBRARY_PATH
14573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14574 soname_spec='${libname}${release}${shared_ext}$major'
14575 shlibpath_var=LD_LIBRARY_PATH
14576 shlibpath_overrides_runpath=yes
14577 hardcode_into_libs=yes
14578 # ldd complains unless libraries are executable
14579 postinstall_cmds='chmod +x $lib'
14584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14585 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14586 shlibpath_var=LD_LIBRARY_PATH
14587 shlibpath_overrides_runpath=yes
14588 if test "$with_gnu_ld" = yes; then
14594 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14597 soname_spec='${libname}${release}${shared_ext}$major'
14598 shlibpath_var=LD_LIBRARY_PATH
14599 case $host_vendor in
14601 shlibpath_overrides_runpath=no
14603 export_dynamic_flag_spec='${wl}-Blargedynsym'
14604 runpath_var=LD_RUN_PATH
14612 shlibpath_overrides_runpath=no
14613 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14619 if test -d /usr/nec ;then
14621 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14622 soname_spec='$libname${shared_ext}.$major'
14623 shlibpath_var=LD_LIBRARY_PATH
14629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14630 soname_spec='${libname}${release}${shared_ext}$major'
14631 shlibpath_var=LD_LIBRARY_PATH
14638 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14639 echo "${ECHO_T}$dynamic_linker" >&6
14640 test "$dynamic_linker" = no && can_build_shared=no
14643 # The else clause should only fire when bootstrapping the
14644 # libtool distribution, otherwise you forgot to ship ltmain.sh
14645 # with your package, and you will get complaints that there are
14646 # no rules to generate ltmain.sh.
14647 if test -f "$ltmain"; then
14648 # See if we are running on zsh, and set the options which allow our commands through
14649 # without removal of \ escapes.
14650 if test -n "${ZSH_VERSION+set}" ; then
14651 setopt NO_GLOB_SUBST
14653 # Now quote all the things that may contain metacharacters while being
14654 # careful not to overquote the AC_SUBSTed values. We take copies of the
14655 # variables and quote the copies for generation of the libtool script.
14656 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14657 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14658 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14659 deplibs_check_method reload_flag reload_cmds need_locks \
14660 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14661 lt_cv_sys_global_symbol_to_c_name_address \
14662 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14663 old_postinstall_cmds old_postuninstall_cmds \
14667 lt_prog_compiler_wl_F77 \
14668 lt_prog_compiler_pic_F77 \
14669 lt_prog_compiler_static_F77 \
14670 lt_prog_compiler_no_builtin_flag_F77 \
14671 export_dynamic_flag_spec_F77 \
14672 thread_safe_flag_spec_F77 \
14673 whole_archive_flag_spec_F77 \
14674 enable_shared_with_static_runtimes_F77 \
14675 old_archive_cmds_F77 \
14676 old_archive_from_new_cmds_F77 \
14677 predep_objects_F77 \
14678 postdep_objects_F77 \
14681 compiler_lib_search_path_F77 \
14683 archive_expsym_cmds_F77 \
14684 postinstall_cmds_F77 \
14685 postuninstall_cmds_F77 \
14686 old_archive_from_expsyms_cmds_F77 \
14687 allow_undefined_flag_F77 \
14688 no_undefined_flag_F77 \
14689 export_symbols_cmds_F77 \
14690 hardcode_libdir_flag_spec_F77 \
14691 hardcode_libdir_flag_spec_ld_F77 \
14692 hardcode_libdir_separator_F77 \
14693 hardcode_automatic_F77 \
14695 module_expsym_cmds_F77 \
14696 lt_cv_prog_compiler_c_o_F77 \
14697 exclude_expsyms_F77 \
14698 include_expsyms_F77; do
14701 old_archive_cmds_F77 | \
14702 old_archive_from_new_cmds_F77 | \
14703 archive_cmds_F77 | \
14704 archive_expsym_cmds_F77 | \
14705 module_cmds_F77 | \
14706 module_expsym_cmds_F77 | \
14707 old_archive_from_expsyms_cmds_F77 | \
14708 export_symbols_cmds_F77 | \
14709 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14710 postinstall_cmds | postuninstall_cmds | \
14711 old_postinstall_cmds | old_postuninstall_cmds | \
14712 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14713 # Double-quote double-evaled strings.
14714 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14717 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14723 *'\$0 --fallback-echo"')
14724 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14730 cat <<__EOF__ >> "$cfgfile"
14731 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14733 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14735 # Shell to use when invoking shell scripts.
14738 # Whether or not to build shared libraries.
14739 build_libtool_libs=$enable_shared
14741 # Whether or not to build static libraries.
14742 build_old_libs=$enable_static
14744 # Whether or not to add -lc for building shared libraries.
14745 build_libtool_need_lc=$archive_cmds_need_lc_F77
14747 # Whether or not to disallow shared libs when runtime libs are static
14748 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14750 # Whether or not to optimize for fast installation.
14751 fast_install=$enable_fast_install
14754 host_alias=$host_alias
14757 # An echo program that does not interpret backslashes.
14762 AR_FLAGS=$lt_AR_FLAGS
14767 # A language-specific compiler.
14768 CC=$lt_compiler_F77
14770 # Is the compiler the GNU C compiler?
14776 # The linker used to build libraries.
14779 # Whether we need hard or soft links.
14782 # A BSD-compatible nm program.
14785 # A symbol stripping program
14788 # Used to examine libraries when file_magic_cmd begins "file"
14789 MAGIC_CMD=$MAGIC_CMD
14791 # Used on cygwin: DLL creation program.
14794 # Used on cygwin: object dumper.
14797 # Used on cygwin: assembler.
14800 # The name of the directory that contains temporary libtool files.
14803 # How to create reloadable object files.
14804 reload_flag=$lt_reload_flag
14805 reload_cmds=$lt_reload_cmds
14807 # How to pass a linker flag through the compiler.
14808 wl=$lt_lt_prog_compiler_wl_F77
14810 # Object file suffix (normally "o").
14811 objext="$ac_objext"
14813 # Old archive suffix (normally "a").
14816 # Shared library suffix (normally ".so").
14819 # Executable file suffix (normally "").
14822 # Additional compiler flags for building library objects.
14823 pic_flag=$lt_lt_prog_compiler_pic_F77
14826 # What is the maximum length of a command?
14827 max_cmd_len=$lt_cv_sys_max_cmd_len
14829 # Does compiler simultaneously support -c and -o options?
14830 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14832 # Must we lock files when doing compilation ?
14833 need_locks=$lt_need_locks
14835 # Do we need the lib prefix for modules?
14836 need_lib_prefix=$need_lib_prefix
14838 # Do we need a version for libraries?
14839 need_version=$need_version
14841 # Whether dlopen is supported.
14842 dlopen_support=$enable_dlopen
14844 # Whether dlopen of programs is supported.
14845 dlopen_self=$enable_dlopen_self
14847 # Whether dlopen of statically linked programs is supported.
14848 dlopen_self_static=$enable_dlopen_self_static
14850 # Compiler flag to prevent dynamic linking.
14851 link_static_flag=$lt_lt_prog_compiler_static_F77
14853 # Compiler flag to turn off builtin functions.
14854 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14856 # Compiler flag to allow reflexive dlopens.
14857 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14859 # Compiler flag to generate shared objects directly from archives.
14860 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14862 # Compiler flag to generate thread-safe objects.
14863 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14865 # Library versioning type.
14866 version_type=$version_type
14868 # Format of library name prefix.
14869 libname_spec=$lt_libname_spec
14871 # List of archive names. First name is the real one, the rest are links.
14872 # The last name is the one that the linker finds with -lNAME.
14873 library_names_spec=$lt_library_names_spec
14875 # The coded name of the library, if different from the real name.
14876 soname_spec=$lt_soname_spec
14878 # Commands used to build and install an old-style archive.
14880 old_archive_cmds=$lt_old_archive_cmds_F77
14881 old_postinstall_cmds=$lt_old_postinstall_cmds
14882 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14884 # Create an old-style archive from a shared archive.
14885 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14887 # Create a temporary old-style archive to link instead of a shared archive.
14888 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14890 # Commands used to build and install a shared archive.
14891 archive_cmds=$lt_archive_cmds_F77
14892 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14893 postinstall_cmds=$lt_postinstall_cmds
14894 postuninstall_cmds=$lt_postuninstall_cmds
14896 # Commands used to build a loadable module (assumed same as above if empty)
14897 module_cmds=$lt_module_cmds_F77
14898 module_expsym_cmds=$lt_module_expsym_cmds_F77
14900 # Commands to strip libraries.
14901 old_striplib=$lt_old_striplib
14902 striplib=$lt_striplib
14904 # Dependencies to place before the objects being linked to create a
14906 predep_objects=$lt_predep_objects_F77
14908 # Dependencies to place after the objects being linked to create a
14910 postdep_objects=$lt_postdep_objects_F77
14912 # Dependencies to place before the objects being linked to create a
14914 predeps=$lt_predeps_F77
14916 # Dependencies to place after the objects being linked to create a
14918 postdeps=$lt_postdeps_F77
14920 # The library search path used internally by the compiler when linking
14921 # a shared library.
14922 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14924 # Method to check whether dependent libraries are shared objects.
14925 deplibs_check_method=$lt_deplibs_check_method
14927 # Command to use when deplibs_check_method == file_magic.
14928 file_magic_cmd=$lt_file_magic_cmd
14930 # Flag that allows shared libraries with undefined symbols to be built.
14931 allow_undefined_flag=$lt_allow_undefined_flag_F77
14933 # Flag that forces no undefined symbols.
14934 no_undefined_flag=$lt_no_undefined_flag_F77
14936 # Commands used to finish a libtool library installation in a directory.
14937 finish_cmds=$lt_finish_cmds
14939 # Same as above, but a single script fragment to be evaled but not shown.
14940 finish_eval=$lt_finish_eval
14942 # Take the output of nm and produce a listing of raw symbols and C names.
14943 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14945 # Transform the output of nm in a proper C declaration
14946 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14948 # Transform the output of nm in a C name address pair
14949 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14951 # This is the shared library runtime path variable.
14952 runpath_var=$runpath_var
14954 # This is the shared library path variable.
14955 shlibpath_var=$shlibpath_var
14957 # Is shlibpath searched before the hard-coded library search path?
14958 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14960 # How to hardcode a shared library path into an executable.
14961 hardcode_action=$hardcode_action_F77
14963 # Whether we should hardcode library paths into libraries.
14964 hardcode_into_libs=$hardcode_into_libs
14966 # Flag to hardcode \$libdir into a binary during linking.
14967 # This must work even if \$libdir does not exist.
14968 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14970 # If ld is used when linking, flag to hardcode \$libdir into
14971 # a binary during linking. This must work even if \$libdir does
14973 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14975 # Whether we need a single -rpath flag with a separated argument.
14976 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14978 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14979 # resulting binary.
14980 hardcode_direct=$hardcode_direct_F77
14982 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14983 # resulting binary.
14984 hardcode_minus_L=$hardcode_minus_L_F77
14986 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14987 # the resulting binary.
14988 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14990 # Set to yes if building a shared library automatically hardcodes DIR into the library
14991 # and all subsequent libraries and executables linked against it.
14992 hardcode_automatic=$hardcode_automatic_F77
14994 # Variables whose values should be saved in libtool wrapper scripts and
14995 # restored at relink time.
14996 variables_saved_for_relink="$variables_saved_for_relink"
14998 # Whether libtool must link a program against all its dependency libraries.
14999 link_all_deplibs=$link_all_deplibs_F77
15001 # Compile-time system search path for libraries
15002 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15004 # Run-time system search path for libraries
15005 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15007 # Fix the shell variable \$srcfile for the compiler.
15008 fix_srcfile_path="$fix_srcfile_path_F77"
15010 # Set to yes if exported symbols are required.
15011 always_export_symbols=$always_export_symbols_F77
15013 # The commands to list exported symbols.
15014 export_symbols_cmds=$lt_export_symbols_cmds_F77
15016 # The commands to extract the exported symbol list from a shared archive.
15017 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15019 # Symbols that should not be listed in the preloaded symbols.
15020 exclude_expsyms=$lt_exclude_expsyms_F77
15022 # Symbols that must always be exported.
15023 include_expsyms=$lt_include_expsyms_F77
15025 # ### END LIBTOOL TAG CONFIG: $tagname
15031 # If there is no Makefile yet, we rely on a make rule to execute
15032 # `config.status --recheck' to rerun these tests and create the
15033 # libtool script then.
15034 test -f Makefile && make "$ltmain"
15039 ac_cpp='$CPP $CPPFLAGS'
15040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15052 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15056 # Source file extension for Java test sources.
15059 # Object file extension for compiled Java test sources.
15063 # Code to be used in simple compile tests
15064 lt_simple_compile_test_code="class foo {}\n"
15066 # Code to be used in simple link tests
15067 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15069 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15071 # If no C compiler was specified, use CC.
15074 # Allow CC to be a program name with arguments.
15078 # Allow CC to be a program name with arguments.
15084 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15085 archive_cmds_need_lc_GCJ=no
15088 ## There is no encapsulation within the following macros, do not change
15089 ## the running order or otherwise move them around unless you know exactly
15090 ## what you are doing...
15092 lt_prog_compiler_no_builtin_flag_GCJ=
15094 if test "$GCC" = yes; then
15095 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15097 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15098 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15099 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15100 echo $ECHO_N "(cached) $ECHO_C" >&6
15102 lt_cv_prog_compiler_rtti_exceptions=no
15103 ac_outfile=conftest.$ac_objext
15104 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15105 lt_compiler_flag="-fno-rtti -fno-exceptions"
15106 # Insert the option either (1) after the last *FLAGS variable, or
15107 # (2) before a word containing "conftest.", or (3) at the end.
15108 # Note that $ac_compile itself does not contain backslashes and begins
15109 # with a dollar sign (not a hyphen), so the echo should work correctly.
15110 # The option is referenced via a variable to avoid confusing sed.
15111 lt_compile=`echo "$ac_compile" | $SED \
15112 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15113 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15114 -e 's:$: $lt_compiler_flag:'`
15115 (eval echo "\"\$as_me:15115: $lt_compile\"" >&5)
15116 (eval "$lt_compile" 2>conftest.err)
15118 cat conftest.err >&5
15119 echo "$as_me:15119: \$? = $ac_status" >&5
15120 if (exit $ac_status) && test -s "$ac_outfile"; then
15121 # The compiler can only warn and ignore the option if not recognized
15122 # So say no if there are warnings
15123 if test ! -s conftest.err; then
15124 lt_cv_prog_compiler_rtti_exceptions=yes
15130 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15131 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15133 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15134 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15141 lt_prog_compiler_wl_GCJ=
15142 lt_prog_compiler_pic_GCJ=
15143 lt_prog_compiler_static_GCJ=
15145 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15146 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15148 if test "$GCC" = yes; then
15149 lt_prog_compiler_wl_GCJ='-Wl,'
15150 lt_prog_compiler_static_GCJ='-static'
15154 # All AIX code is PIC.
15155 if test "$host_cpu" = ia64; then
15156 # AIX 5 now supports IA64 processor
15157 lt_prog_compiler_static_GCJ='-Bstatic'
15162 # FIXME: we need at least 68020 code to build shared libraries, but
15163 # adding the `-m68020' flag to GCC prevents building anything better,
15165 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15168 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15169 # PIC is the default for these OSes.
15172 mingw* | pw32* | os2*)
15173 # This hack is so that the source file can tell whether it is being
15174 # built for inclusion in a dll (and should export symbols for example).
15175 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15178 darwin* | rhapsody*)
15179 # PIC is the default on this platform
15180 # Common symbols not allowed in MH_DYLIB files
15181 lt_prog_compiler_pic_GCJ='-fno-common'
15185 # Just because we use GCC doesn't mean we suddenly get shared libraries
15186 # on systems that don't support them.
15187 lt_prog_compiler_can_build_shared_GCJ=no
15192 if test -d /usr/nec; then
15193 lt_prog_compiler_pic_GCJ=-Kconform_pic
15198 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15199 # not for PA HP-UX.
15200 case "$host_cpu" in
15205 lt_prog_compiler_pic_GCJ='-fPIC'
15211 lt_prog_compiler_pic_GCJ='-fPIC'
15215 # PORTME Check for flag to pass linker flags through the system compiler.
15218 lt_prog_compiler_wl_GCJ='-Wl,'
15219 if test "$host_cpu" = ia64; then
15220 # AIX 5 now supports IA64 processor
15221 lt_prog_compiler_static_GCJ='-Bstatic'
15223 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15227 mingw* | pw32* | os2*)
15228 # This hack is so that the source file can tell whether it is being
15229 # built for inclusion in a dll (and should export symbols for example).
15230 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15233 hpux9* | hpux10* | hpux11*)
15234 lt_prog_compiler_wl_GCJ='-Wl,'
15235 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15236 # not for PA HP-UX.
15237 case "$host_cpu" in
15242 lt_prog_compiler_pic_GCJ='+Z'
15245 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15246 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15249 irix5* | irix6* | nonstopux*)
15250 lt_prog_compiler_wl_GCJ='-Wl,'
15251 # PIC (with -KPIC) is the default.
15252 lt_prog_compiler_static_GCJ='-non_shared'
15256 lt_prog_compiler_pic_GCJ='-KPIC'
15257 lt_prog_compiler_static_GCJ='-Bstatic'
15263 lt_prog_compiler_wl_GCJ='-Wl,'
15264 lt_prog_compiler_pic_GCJ='-KPIC'
15265 lt_prog_compiler_static_GCJ='-static'
15268 lt_prog_compiler_wl_GCJ='-Wl,'
15269 # All Alpha code is PIC.
15270 lt_prog_compiler_static_GCJ='-non_shared'
15275 osf3* | osf4* | osf5*)
15276 lt_prog_compiler_wl_GCJ='-Wl,'
15277 # All OSF/1 code is PIC.
15278 lt_prog_compiler_static_GCJ='-non_shared'
15282 lt_prog_compiler_pic_GCJ='-Kpic'
15283 lt_prog_compiler_static_GCJ='-dn'
15287 lt_prog_compiler_wl_GCJ='-Wl,'
15288 lt_prog_compiler_pic_GCJ='-KPIC'
15289 lt_prog_compiler_static_GCJ='-Bstatic'
15293 lt_prog_compiler_wl_GCJ='-Qoption ld '
15294 lt_prog_compiler_pic_GCJ='-PIC'
15295 lt_prog_compiler_static_GCJ='-Bstatic'
15298 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15299 lt_prog_compiler_wl_GCJ='-Wl,'
15300 lt_prog_compiler_pic_GCJ='-KPIC'
15301 lt_prog_compiler_static_GCJ='-Bstatic'
15305 if test -d /usr/nec ;then
15306 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15307 lt_prog_compiler_static_GCJ='-Bstatic'
15312 lt_prog_compiler_pic_GCJ='-pic'
15313 lt_prog_compiler_static_GCJ='-Bstatic'
15317 lt_prog_compiler_can_build_shared_GCJ=no
15322 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15323 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15326 # Check to make sure the PIC flag actually works.
15328 if test -n "$lt_prog_compiler_pic_GCJ"; then
15329 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15330 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15331 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15332 echo $ECHO_N "(cached) $ECHO_C" >&6
15334 lt_prog_compiler_pic_works_GCJ=no
15335 ac_outfile=conftest.$ac_objext
15336 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15337 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15338 # Insert the option either (1) after the last *FLAGS variable, or
15339 # (2) before a word containing "conftest.", or (3) at the end.
15340 # Note that $ac_compile itself does not contain backslashes and begins
15341 # with a dollar sign (not a hyphen), so the echo should work correctly.
15342 # The option is referenced via a variable to avoid confusing sed.
15343 lt_compile=`echo "$ac_compile" | $SED \
15344 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15345 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15346 -e 's:$: $lt_compiler_flag:'`
15347 (eval echo "\"\$as_me:15347: $lt_compile\"" >&5)
15348 (eval "$lt_compile" 2>conftest.err)
15350 cat conftest.err >&5
15351 echo "$as_me:15351: \$? = $ac_status" >&5
15352 if (exit $ac_status) && test -s "$ac_outfile"; then
15353 # The compiler can only warn and ignore the option if not recognized
15354 # So say no if there are warnings
15355 if test ! -s conftest.err; then
15356 lt_prog_compiler_pic_works_GCJ=yes
15362 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15363 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15365 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15366 case $lt_prog_compiler_pic_GCJ in
15368 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15371 lt_prog_compiler_pic_GCJ=
15372 lt_prog_compiler_can_build_shared_GCJ=no
15377 # For platforms which do not support PIC, -DPIC is meaningless:
15379 lt_prog_compiler_pic_GCJ=
15382 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15386 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15387 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15388 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15389 echo $ECHO_N "(cached) $ECHO_C" >&6
15391 lt_cv_prog_compiler_c_o_GCJ=no
15392 $rm -r conftest 2>/dev/null
15396 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15398 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15399 # that will create temporary files in the current directory regardless of
15400 # the output directory. Thus, making CWD read-only will cause this test
15401 # to fail, enabling locking or at least warning the user not to do parallel
15405 lt_compiler_flag="-o out/conftest2.$ac_objext"
15406 # Insert the option either (1) after the last *FLAGS variable, or
15407 # (2) before a word containing "conftest.", or (3) at the end.
15408 # Note that $ac_compile itself does not contain backslashes and begins
15409 # with a dollar sign (not a hyphen), so the echo should work correctly.
15410 lt_compile=`echo "$ac_compile" | $SED \
15411 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15412 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15413 -e 's:$: $lt_compiler_flag:'`
15414 (eval echo "\"\$as_me:15414: $lt_compile\"" >&5)
15415 (eval "$lt_compile" 2>out/conftest.err)
15417 cat out/conftest.err >&5
15418 echo "$as_me:15418: \$? = $ac_status" >&5
15419 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15421 # The compiler can only warn and ignore the option if not recognized
15422 # So say no if there are warnings
15423 if test ! -s out/conftest.err; then
15424 lt_cv_prog_compiler_c_o_GCJ=yes
15428 $rm conftest* out/*
15435 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15436 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15439 hard_links="nottested"
15440 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15441 # do not overwrite the value of need_locks provided by the user
15442 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15443 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15446 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15448 ln conftest.a conftest.b 2>&5 || hard_links=no
15449 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15450 echo "$as_me:$LINENO: result: $hard_links" >&5
15451 echo "${ECHO_T}$hard_links" >&6
15452 if test "$hard_links" = no; then
15453 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15454 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15461 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15462 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15465 allow_undefined_flag_GCJ=
15466 enable_shared_with_static_runtimes_GCJ=no
15468 archive_expsym_cmds_GCJ=
15469 old_archive_From_new_cmds_GCJ=
15470 old_archive_from_expsyms_cmds_GCJ=
15471 export_dynamic_flag_spec_GCJ=
15472 whole_archive_flag_spec_GCJ=
15473 thread_safe_flag_spec_GCJ=
15474 hardcode_libdir_flag_spec_GCJ=
15475 hardcode_libdir_flag_spec_ld_GCJ=
15476 hardcode_libdir_separator_GCJ=
15477 hardcode_direct_GCJ=no
15478 hardcode_minus_L_GCJ=no
15479 hardcode_shlibpath_var_GCJ=unsupported
15480 link_all_deplibs_GCJ=unknown
15481 hardcode_automatic_GCJ=no
15483 module_expsym_cmds_GCJ=
15484 always_export_symbols_GCJ=no
15485 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15486 # include_expsyms should be a list of space-separated symbols to be *always*
15487 # included in the symbol list
15488 include_expsyms_GCJ=
15489 # exclude_expsyms can be an extended regexp of symbols to exclude
15490 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15491 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15492 # as well as any symbol that contains `d'.
15493 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15494 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15495 # platforms (ab)use it in PIC code, but their linkers get confused if
15496 # the symbol is explicitly referenced. Since portable code cannot
15497 # rely on this symbol name, it's probably fine to never include it in
15498 # preloaded symbol tables.
15499 extract_expsyms_cmds=
15502 cygwin* | mingw* | pw32*)
15503 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15504 # When not using gcc, we currently assume that we are using
15505 # Microsoft Visual C++.
15506 if test "$GCC" != yes; then
15516 if test "$with_gnu_ld" = yes; then
15517 # If archive_cmds runs LD, not CC, wlarc should be empty
15520 # See if GNU ld supports shared libraries.
15522 aix3* | aix4* | aix5*)
15523 # On AIX/PPC, the GNU linker is very broken
15524 if test "$host_cpu" != ia64; then
15528 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15529 *** to be unable to reliably create shared libraries on AIX.
15530 *** Therefore, libtool is disabling shared libraries support. If you
15531 *** really care for shared libraries, you may want to modify your PATH
15532 *** so that a non-GNU linker is found, and then restart.
15539 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15540 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15541 hardcode_minus_L_GCJ=yes
15543 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15544 # that the semantics of dynamic libraries on AmigaOS, at least up
15545 # to version 4, is to share data among multiple programs linked
15546 # with the same dynamic library. Since this doesn't match the
15547 # behavior of shared libraries on other platforms, we can't use
15553 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15554 allow_undefined_flag_GCJ=unsupported
15555 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15556 # support --undefined. This deserves some investigation. FIXME
15557 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15563 cygwin* | mingw* | pw32*)
15564 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15565 # as there is no search path for DLLs.
15566 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15567 allow_undefined_flag_GCJ=unsupported
15568 always_export_symbols_GCJ=no
15569 enable_shared_with_static_runtimes_GCJ=yes
15570 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15572 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15573 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15574 # If the export-symbols file already is a .def file (1st line
15575 # is EXPORTS), use it as is; otherwise, prepend...
15576 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15577 cp $export_symbols $output_objdir/$soname.def;
15579 echo EXPORTS > $output_objdir/$soname.def;
15580 cat $export_symbols >> $output_objdir/$soname.def;
15582 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15589 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15590 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15593 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15594 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15599 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15603 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15604 *** create shared libraries on Solaris systems. Therefore, libtool
15605 *** is disabling shared libraries support. We urge you to upgrade GNU
15606 *** binutils to release 2.9.1 or newer. Another option is to modify
15607 *** your PATH or compiler configuration so that the native linker is
15608 *** used, and then restart.
15611 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15612 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15613 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15620 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15622 hardcode_direct_GCJ=yes
15623 hardcode_shlibpath_var_GCJ=no
15627 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15628 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15629 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15636 if test "$ld_shlibs_GCJ" = yes; then
15637 runpath_var=LD_RUN_PATH
15638 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15639 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15640 # ancient GNU ld didn't support --whole-archive et. al.
15641 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15642 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15644 whole_archive_flag_spec_GCJ=
15648 # PORTME fill in a description of your system's linker (not GNU ld)
15651 allow_undefined_flag_GCJ=unsupported
15652 always_export_symbols_GCJ=yes
15653 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15654 # Note: this linker hardcodes the directories in LIBPATH if there
15655 # are no directories specified by -L.
15656 hardcode_minus_L_GCJ=yes
15657 if test "$GCC" = yes && test -z "$link_static_flag"; then
15658 # Neither direct hardcoding nor static linking is supported with a
15660 hardcode_direct_GCJ=unsupported
15665 if test "$host_cpu" = ia64; then
15666 # On IA64, the linker does run time linking by default, so we don't
15667 # have to do anything special.
15668 aix_use_runtimelinking=no
15669 exp_sym_flag='-Bexport'
15672 # If we're using GNU nm, then we don't want the "-C" option.
15673 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15674 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15675 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'
15677 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'
15679 aix_use_runtimelinking=no
15681 # Test if we are trying to use run time linking or normal
15682 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15683 # need to do runtime linking.
15684 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15685 for ld_flag in $LDFLAGS; do
15686 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15687 aix_use_runtimelinking=yes
15693 exp_sym_flag='-bexport'
15694 no_entry_flag='-bnoentry'
15697 # When large executables or shared objects are built, AIX ld can
15698 # have problems creating the table of contents. If linking a library
15699 # or program results in "error TOC overflow" add -mminimal-toc to
15700 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15701 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15703 archive_cmds_GCJ=''
15704 hardcode_direct_GCJ=yes
15705 hardcode_libdir_separator_GCJ=':'
15706 link_all_deplibs_GCJ=yes
15708 if test "$GCC" = yes; then
15709 case $host_os in aix4.012|aix4.012.*)
15710 # We only want to do this on AIX 4.2 and lower, the check
15711 # below for broken collect2 doesn't work under 4.3+
15712 collect2name=`${CC} -print-prog-name=collect2`
15713 if test -f "$collect2name" && \
15714 strings "$collect2name" | grep resolve_lib_name >/dev/null
15716 # We have reworked collect2
15717 hardcode_direct_GCJ=yes
15719 # We have old collect2
15720 hardcode_direct_GCJ=unsupported
15721 # It fails to find uninstalled libraries when the uninstalled
15722 # path is not listed in the libpath. Setting hardcode_minus_L
15723 # to unsupported forces relinking
15724 hardcode_minus_L_GCJ=yes
15725 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15726 hardcode_libdir_separator_GCJ=
15729 shared_flag='-shared'
15732 if test "$host_cpu" = ia64; then
15733 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15734 # chokes on -Wl,-G. The following line is correct:
15737 if test "$aix_use_runtimelinking" = yes; then
15738 shared_flag='${wl}-G'
15740 shared_flag='${wl}-bM:SRE'
15745 # It seems that -bexpall does not export symbols beginning with
15746 # underscore (_), so it is better to generate a list of symbols to export.
15747 always_export_symbols_GCJ=yes
15748 if test "$aix_use_runtimelinking" = yes; then
15749 # Warning - without using the other runtime loading flags (-brtl),
15750 # -berok will link without error, but may produce a broken library.
15751 allow_undefined_flag_GCJ='-berok'
15752 # Determine the default libpath from the value encoded in an empty executable.
15753 cat >conftest.$ac_ext <<_ACEOF
15756 cat confdefs.h >>conftest.$ac_ext
15757 cat >>conftest.$ac_ext <<_ACEOF
15758 /* end confdefs.h. */
15768 rm -f conftest.$ac_objext conftest$ac_exeext
15769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15770 (eval $ac_link) 2>conftest.er1
15772 grep -v '^ *+' conftest.er1 >conftest.err
15774 cat conftest.err >&5
15775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15776 (exit $ac_status); } &&
15777 { ac_try='test -z "$ac_c_werror_flag"
15778 || test ! -s conftest.err'
15779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15780 (eval $ac_try) 2>&5
15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783 (exit $ac_status); }; } &&
15784 { ac_try='test -s conftest$ac_exeext'
15785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15786 (eval $ac_try) 2>&5
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); }; }; then
15791 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15793 # Check for a 64-bit object if we didn't find anything.
15794 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; }
15797 echo "$as_me: failed program was:" >&5
15798 sed 's/^/| /' conftest.$ac_ext >&5
15801 rm -f conftest.err conftest.$ac_objext \
15802 conftest$ac_exeext conftest.$ac_ext
15803 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15805 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15806 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"
15808 if test "$host_cpu" = ia64; then
15809 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15810 allow_undefined_flag_GCJ="-z nodefs"
15811 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"
15813 # Determine the default libpath from the value encoded in an empty executable.
15814 cat >conftest.$ac_ext <<_ACEOF
15817 cat confdefs.h >>conftest.$ac_ext
15818 cat >>conftest.$ac_ext <<_ACEOF
15819 /* end confdefs.h. */
15829 rm -f conftest.$ac_objext conftest$ac_exeext
15830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15831 (eval $ac_link) 2>conftest.er1
15833 grep -v '^ *+' conftest.er1 >conftest.err
15835 cat conftest.err >&5
15836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837 (exit $ac_status); } &&
15838 { ac_try='test -z "$ac_c_werror_flag"
15839 || test ! -s conftest.err'
15840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15841 (eval $ac_try) 2>&5
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); }; } &&
15845 { ac_try='test -s conftest$ac_exeext'
15846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15847 (eval $ac_try) 2>&5
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); }; }; then
15852 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15854 # Check for a 64-bit object if we didn't find anything.
15855 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; }
15858 echo "$as_me: failed program was:" >&5
15859 sed 's/^/| /' conftest.$ac_ext >&5
15862 rm -f conftest.err conftest.$ac_objext \
15863 conftest$ac_exeext conftest.$ac_ext
15864 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15866 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15867 # Warning - without using the other run time loading flags,
15868 # -berok will link without error, but may produce a broken library.
15869 no_undefined_flag_GCJ=' ${wl}-bernotok'
15870 allow_undefined_flag_GCJ=' ${wl}-berok'
15871 # -bexpall does not export symbols beginning with underscore (_)
15872 always_export_symbols_GCJ=yes
15873 # Exported symbols can be pulled into shared objects from archives
15874 whole_archive_flag_spec_GCJ=' '
15875 archive_cmds_need_lc_GCJ=yes
15876 # This is similar to how AIX traditionally builds it's shared libraries.
15877 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15883 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15884 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15885 hardcode_minus_L_GCJ=yes
15886 # see comment about different semantics on the GNU ld section
15891 export_dynamic_flag_spec_GCJ=-rdynamic
15894 cygwin* | mingw* | pw32*)
15895 # When not using gcc, we currently assume that we are using
15896 # Microsoft Visual C++.
15897 # hardcode_libdir_flag_spec is actually meaningless, as there is
15898 # no search path for DLLs.
15899 hardcode_libdir_flag_spec_GCJ=' '
15900 allow_undefined_flag_GCJ=unsupported
15901 # Tell ltmain to make .lib files, not .a files.
15903 # Tell ltmain to make .dll files, not .so files.
15905 # FIXME: Setting linknames here is a bad hack.
15906 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15907 # The linker will automatically build a .lib file if we build a DLL.
15908 old_archive_From_new_cmds_GCJ='true'
15909 # FIXME: Should let the user specify the lib program.
15910 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15911 fix_srcfile_path='`cygpath -w "$srcfile"`'
15912 enable_shared_with_static_runtimes_GCJ=yes
15915 darwin* | rhapsody*)
15916 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15917 archive_cmds_need_lc_GCJ=no
15919 rhapsody* | darwin1.[012])
15920 allow_undefined_flag_GCJ='-undefined suppress'
15923 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15926 # FIXME: Relying on posixy $() will cause problems for
15927 # cross-compilation, but unfortunately the echo tests do not
15928 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15929 # `"' quotes if we put them in here... so don't!
15930 lt_int_apple_cc_single_mod=no
15931 output_verbose_link_cmd='echo'
15932 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15933 lt_int_apple_cc_single_mod=yes
15935 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15936 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15938 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15940 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15941 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15942 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15943 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15945 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15947 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15948 hardcode_direct_GCJ=no
15949 hardcode_automatic_GCJ=yes
15950 hardcode_shlibpath_var_GCJ=unsupported
15951 whole_archive_flag_spec_GCJ='-all_load $convenience'
15952 link_all_deplibs_GCJ=yes
15957 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15958 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15959 hardcode_shlibpath_var_GCJ=no
15966 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15967 # support. Future versions do this automatically, but an explicit c++rt0.o
15968 # does not break anything, and helps significantly (at the cost of a little
15971 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15972 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15973 hardcode_direct_GCJ=yes
15974 hardcode_shlibpath_var_GCJ=no
15977 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15979 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15980 hardcode_direct_GCJ=yes
15981 hardcode_minus_L_GCJ=yes
15982 hardcode_shlibpath_var_GCJ=no
15985 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15987 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15988 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15989 hardcode_direct_GCJ=yes
15990 hardcode_shlibpath_var_GCJ=no
15994 if test "$GCC" = yes; then
15995 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15997 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15999 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16000 hardcode_libdir_separator_GCJ=:
16001 hardcode_direct_GCJ=yes
16003 # hardcode_minus_L: Not really in the search PATH,
16004 # but as the default location of the library.
16005 hardcode_minus_L_GCJ=yes
16006 export_dynamic_flag_spec_GCJ='${wl}-E'
16010 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16011 case "$host_cpu" in
16013 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16016 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16020 case "$host_cpu" in
16022 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16025 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16029 if test "$with_gnu_ld" = no; then
16030 case "$host_cpu" in
16032 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16033 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16034 hardcode_libdir_separator_GCJ=:
16035 hardcode_direct_GCJ=no
16036 hardcode_shlibpath_var_GCJ=no
16039 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16040 hardcode_direct_GCJ=no
16041 hardcode_shlibpath_var_GCJ=no
16043 # hardcode_minus_L: Not really in the search PATH,
16044 # but as the default location of the library.
16045 hardcode_minus_L_GCJ=yes
16048 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16049 hardcode_libdir_separator_GCJ=:
16050 hardcode_direct_GCJ=yes
16051 export_dynamic_flag_spec_GCJ='${wl}-E'
16053 # hardcode_minus_L: Not really in the search PATH,
16054 # but as the default location of the library.
16055 hardcode_minus_L_GCJ=yes
16061 irix5* | irix6* | nonstopux*)
16062 if test "$GCC" = yes; then
16063 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'
16065 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'
16066 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16068 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16069 hardcode_libdir_separator_GCJ=:
16070 link_all_deplibs_GCJ=yes
16074 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16075 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16077 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16079 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16080 hardcode_direct_GCJ=yes
16081 hardcode_shlibpath_var_GCJ=no
16085 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16086 hardcode_direct_GCJ=yes
16087 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16088 hardcode_libdir_separator_GCJ=:
16089 hardcode_shlibpath_var_GCJ=no
16093 hardcode_direct_GCJ=yes
16094 hardcode_shlibpath_var_GCJ=no
16095 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16096 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16097 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16098 export_dynamic_flag_spec_GCJ='${wl}-E'
16101 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16102 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16103 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16106 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16107 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16114 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16115 hardcode_minus_L_GCJ=yes
16116 allow_undefined_flag_GCJ=unsupported
16117 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
16118 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16122 if test "$GCC" = yes; then
16123 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16124 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'
16126 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16127 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'
16129 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16130 hardcode_libdir_separator_GCJ=:
16133 osf4* | osf5*) # as osf3* with the addition of -msym flag
16134 if test "$GCC" = yes; then
16135 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16136 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'
16137 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16139 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16140 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'
16141 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~
16142 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16144 # Both c and cxx compiler support -rpath directly
16145 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16147 hardcode_libdir_separator_GCJ=:
16151 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16152 hardcode_shlibpath_var_GCJ=no
16153 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16154 runpath_var=LD_RUN_PATH
16155 hardcode_runpath_var=yes
16159 no_undefined_flag_GCJ=' -z text'
16160 if test "$GCC" = yes; then
16161 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16162 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16163 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16165 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16166 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16167 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16169 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16170 hardcode_shlibpath_var_GCJ=no
16172 solaris2.[0-5] | solaris2.[0-5].*) ;;
16173 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16174 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16176 link_all_deplibs_GCJ=yes
16180 if test "x$host_vendor" = xsequent; then
16181 # Use $CC to link under sequent, because it throws in some extra .o
16182 # files that make .init and .fini sections work.
16183 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16185 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16187 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16188 hardcode_direct_GCJ=yes
16189 hardcode_minus_L_GCJ=yes
16190 hardcode_shlibpath_var_GCJ=no
16194 case $host_vendor in
16196 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16197 hardcode_direct_GCJ=yes # is this really true???
16200 ## LD is ld it makes a PLAMLIB
16201 ## CC just makes a GrossModule.
16202 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16203 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16204 hardcode_direct_GCJ=no
16207 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16208 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16211 runpath_var='LD_RUN_PATH'
16212 hardcode_shlibpath_var_GCJ=no
16216 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16217 hardcode_shlibpath_var_GCJ=no
16218 export_dynamic_flag_spec_GCJ='-Bexport'
16222 if test -d /usr/nec; then
16223 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16224 hardcode_shlibpath_var_GCJ=no
16225 runpath_var=LD_RUN_PATH
16226 hardcode_runpath_var=yes
16232 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16233 hardcode_direct_GCJ=yes
16234 hardcode_minus_L_GCJ=no
16235 hardcode_shlibpath_var_GCJ=no
16236 hardcode_runpath_var=yes
16237 runpath_var=LD_RUN_PATH
16240 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16241 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16242 if test "$GCC" = yes; then
16243 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16245 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16247 runpath_var='LD_RUN_PATH'
16248 hardcode_shlibpath_var_GCJ=no
16252 no_undefined_flag_GCJ=' -z text'
16253 # $CC -shared without GNU ld will not create a library from C++
16254 # object files and a static libstdc++, better avoid it by now
16255 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16256 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16257 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16258 hardcode_libdir_flag_spec_GCJ=
16259 hardcode_shlibpath_var_GCJ=no
16260 runpath_var='LD_RUN_PATH'
16264 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16265 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16266 hardcode_shlibpath_var_GCJ=no
16275 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16276 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16277 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16279 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16280 if test "$GCC" = yes; then
16281 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16285 # Do we need to explicitly link libc?
16287 case "x$archive_cmds_need_lc_GCJ" in
16289 # Assume -lc should be added
16290 archive_cmds_need_lc_GCJ=yes
16292 if test "$enable_shared" = yes && test "$GCC" = yes; then
16293 case $archive_cmds_GCJ in
16295 # FIXME: we may have to deal with multi-command sequences.
16298 # Test whether the compiler implicitly links with -lc since on some
16299 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16300 # to ld, don't add -lc before -lgcc.
16301 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16302 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16304 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16307 (eval $ac_compile) 2>&5
16309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16310 (exit $ac_status); } 2>conftest.err; then
16313 libobjs=conftest.$ac_objext
16315 wl=$lt_prog_compiler_wl_GCJ
16321 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16322 allow_undefined_flag_GCJ=
16323 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16324 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327 (exit $ac_status); }
16329 archive_cmds_need_lc_GCJ=no
16331 archive_cmds_need_lc_GCJ=yes
16333 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16335 cat conftest.err 1>&5
16338 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16339 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16346 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16347 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16348 hardcode_action_GCJ=
16349 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16350 test -n "$runpath_var GCJ" || \
16351 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16353 # We can hardcode non-existant directories.
16354 if test "$hardcode_direct_GCJ" != no &&
16355 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16356 # have to relink, otherwise we might link with an installed library
16357 # when we should be linking with a yet-to-be-installed one
16358 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16359 test "$hardcode_minus_L_GCJ" != no; then
16360 # Linking always hardcodes the temporary library directory.
16361 hardcode_action_GCJ=relink
16363 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16364 hardcode_action_GCJ=immediate
16367 # We cannot hardcode anything, or else we can only hardcode existing
16369 hardcode_action_GCJ=unsupported
16371 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16372 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16374 if test "$hardcode_action_GCJ" = relink; then
16375 # Fast installation is not supported
16376 enable_fast_install=no
16377 elif test "$shlibpath_overrides_runpath" = yes ||
16378 test "$enable_shared" = no; then
16379 # Fast installation is not necessary
16380 enable_fast_install=needless
16385 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16386 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16387 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16388 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16389 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16390 echo "$as_me:$LINENO: result: yes" >&5
16391 echo "${ECHO_T}yes" >&6
16393 # FIXME - insert some real tests, host_os isn't really good enough
16396 if test -n "$STRIP" ; then
16397 striplib="$STRIP -x"
16398 echo "$as_me:$LINENO: result: yes" >&5
16399 echo "${ECHO_T}yes" >&6
16401 echo "$as_me:$LINENO: result: no" >&5
16402 echo "${ECHO_T}no" >&6
16406 echo "$as_me:$LINENO: result: no" >&5
16407 echo "${ECHO_T}no" >&6
16412 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16413 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16414 library_names_spec=
16415 libname_spec='lib$name'
16419 postuninstall_cmds=
16423 shlibpath_overrides_runpath=unknown
16425 dynamic_linker="$host_os ld.so"
16426 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16427 if test "$GCC" = yes; then
16428 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16429 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16430 # if the path contains ";" then we assume it to be the separator
16431 # otherwise default to the standard path separator (i.e. ":") - it is
16432 # assumed that no part of a normal pathname contains ";" but that should
16433 # okay in the real world where ";" in dirpaths is itself problematic.
16434 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16436 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16439 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16441 need_lib_prefix=unknown
16442 hardcode_into_libs=no
16444 # when you set need_version to no, make sure it does not cause -set_version
16445 # flags to be left without arguments
16446 need_version=unknown
16451 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16452 shlibpath_var=LIBPATH
16454 # AIX 3 has no versioning support, so we append a major version to the name.
16455 soname_spec='${libname}${release}${shared_ext}$major'
16462 hardcode_into_libs=yes
16463 if test "$host_cpu" = ia64; then
16464 # AIX 5 supports IA64
16465 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16466 shlibpath_var=LD_LIBRARY_PATH
16468 # With GCC up to 2.95.x, collect2 would create an import file
16469 # for dependence libraries. The import file would start with
16470 # the line `#! .'. This would cause the generated library to
16471 # depend on `.', always an invalid library. This was fixed in
16472 # development snapshots of GCC prior to 3.0.
16474 aix4 | aix4.[01] | aix4.[01].*)
16475 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16477 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16480 can_build_shared=no
16484 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16485 # soname into executable. Probably we can add versioning support to
16486 # collect2, so additional links can be useful in future.
16487 if test "$aix_use_runtimelinking" = yes; then
16488 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16489 # instead of lib<name>.a to let people know that these are not
16490 # typical AIX shared libraries.
16491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16493 # We preserve .a as extension for shared libraries through AIX4.2
16494 # and later when we are not doing run time linking.
16495 library_names_spec='${libname}${release}.a $libname.a'
16496 soname_spec='${libname}${release}${shared_ext}$major'
16498 shlibpath_var=LIBPATH
16503 library_names_spec='$libname.ixlibrary $libname.a'
16504 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16505 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'
16509 library_names_spec='${libname}${shared_ext}'
16510 dynamic_linker="$host_os ld.so"
16511 shlibpath_var=LIBRARY_PATH
16517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16518 soname_spec='${libname}${release}${shared_ext}$major'
16519 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16520 shlibpath_var=LD_LIBRARY_PATH
16521 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16522 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16523 # the default ld.so.conf also contains /usr/contrib/lib and
16524 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16525 # libtool to hard-code these into programs
16528 cygwin* | mingw* | pw32*)
16529 version_type=windows
16534 case $GCC,$host_os in
16535 yes,cygwin* | yes,mingw* | yes,pw32*)
16536 library_names_spec='$libname.dll.a'
16537 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16538 postinstall_cmds='base_file=`basename \${file}`~
16539 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16540 dldir=$destdir/`dirname \$dlpath`~
16541 test -d \$dldir || mkdir -p \$dldir~
16542 $install_prog $dir/$dlname \$dldir/$dlname'
16543 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16544 dlpath=$dir/\$dldll~
16546 shlibpath_overrides_runpath=yes
16550 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16551 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16552 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16555 # MinGW DLLs use traditional 'lib' prefix
16556 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16557 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16558 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16559 # It is most probably a Windows format PATH printed by
16560 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16561 # path with ; separators, and with drive letters. We can handle the
16562 # drive letters (cygwin fileutils understands them), so leave them,
16563 # especially as we might pass files found there to a mingw objdump,
16564 # which wouldn't understand a cygwinified path. Ahh.
16565 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16567 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16571 # pw32 DLLs use 'pw' prefix rather than 'lib'
16572 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16578 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16581 dynamic_linker='Win32 ld.exe'
16582 # FIXME: first we should search . and the directory the executable is in
16586 darwin* | rhapsody*)
16587 dynamic_linker="$host_os dyld"
16588 version_type=darwin
16591 # FIXME: Relying on posixy $() will cause problems for
16592 # cross-compilation, but unfortunately the echo tests do not
16593 # yet detect zsh echo's removal of \ escapes.
16594 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16595 soname_spec='${libname}${release}${major}$shared_ext'
16596 shlibpath_overrides_runpath=yes
16597 shlibpath_var=DYLD_LIBRARY_PATH
16598 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16599 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16600 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16601 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"`
16603 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16611 soname_spec='${libname}${release}${shared_ext}$major'
16612 shlibpath_var=LD_LIBRARY_PATH
16620 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16621 version_type=freebsd-$objformat
16622 case $version_type in
16624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16629 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16633 shlibpath_var=LD_LIBRARY_PATH
16636 shlibpath_overrides_runpath=yes
16638 freebsd3.01* | freebsdelf3.01*)
16639 shlibpath_overrides_runpath=yes
16640 hardcode_into_libs=yes
16643 shlibpath_overrides_runpath=no
16644 hardcode_into_libs=yes
16653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16654 soname_spec='${libname}${release}${shared_ext}$major'
16655 shlibpath_var=LD_LIBRARY_PATH
16656 hardcode_into_libs=yes
16659 hpux9* | hpux10* | hpux11*)
16660 # Give a soname corresponding to the major version so that dld.sl refuses to
16661 # link against other versions.
16665 case "$host_cpu" in
16668 hardcode_into_libs=yes
16669 dynamic_linker="$host_os dld.so"
16670 shlibpath_var=LD_LIBRARY_PATH
16671 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16673 soname_spec='${libname}${release}${shared_ext}$major'
16674 if test "X$HPUX_IA64_MODE" = X32; then
16675 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16677 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16679 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16683 hardcode_into_libs=yes
16684 dynamic_linker="$host_os dld.sl"
16685 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16686 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16688 soname_spec='${libname}${release}${shared_ext}$major'
16689 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16690 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16694 dynamic_linker="$host_os dld.sl"
16695 shlibpath_var=SHLIB_PATH
16696 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16698 soname_spec='${libname}${release}${shared_ext}$major'
16701 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16702 postinstall_cmds='chmod 555 $lib'
16705 irix5* | irix6* | nonstopux*)
16707 nonstopux*) version_type=nonstopux ;;
16709 if test "$lt_cv_prog_gnu_ld" = yes; then
16717 soname_spec='${libname}${release}${shared_ext}$major'
16718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16720 irix5* | nonstopux*)
16721 libsuff= shlibsuff=
16724 case $LD in # libtool.m4 will add one of these switches to LD
16725 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16726 libsuff= shlibsuff= libmagic=32-bit;;
16727 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16728 libsuff=32 shlibsuff=N32 libmagic=N32;;
16729 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16730 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16731 *) libsuff= shlibsuff= libmagic=never-match;;
16735 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16736 shlibpath_overrides_runpath=no
16737 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16738 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16739 hardcode_into_libs=yes
16742 # No shared lib support for Linux oldld, aout, or coff.
16743 linux*oldld* | linux*aout* | linux*coff*)
16747 # This must be Linux ELF.
16752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16753 soname_spec='${libname}${release}${shared_ext}$major'
16754 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16755 shlibpath_var=LD_LIBRARY_PATH
16756 shlibpath_overrides_runpath=no
16757 # This implies no fast_install, which is unacceptable.
16758 # Some rework will be needed to allow for fast_install
16759 # before this can be enabled.
16760 hardcode_into_libs=yes
16762 # We used to test for /lib/ld.so.1 and disable shared libraries on
16763 # powerpc, because MkLinux only supported shared libraries with the
16764 # GNU dynamic linker. Since this was broken with cross compilers,
16765 # most powerpc-linux boxes support dynamic linking these days and
16766 # people can always --disable-shared, the test was removed, and we
16767 # assume the GNU/Linux dynamic linker is in use.
16768 dynamic_linker='GNU/Linux ld.so'
16775 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16777 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16778 dynamic_linker='NetBSD (a.out) ld.so'
16780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16781 soname_spec='${libname}${release}${shared_ext}$major'
16782 dynamic_linker='NetBSD ld.elf_so'
16784 shlibpath_var=LD_LIBRARY_PATH
16785 shlibpath_overrides_runpath=yes
16786 hardcode_into_libs=yes
16791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16792 shlibpath_var=LD_LIBRARY_PATH
16793 shlibpath_overrides_runpath=yes
16800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16801 soname_spec='${libname}${release}${shared_ext}$major'
16802 shlibpath_var=LD_LIBRARY_PATH
16803 shlibpath_overrides_runpath=yes
16810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16811 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16812 shlibpath_var=LD_LIBRARY_PATH
16813 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16815 openbsd2.[89] | openbsd2.[89].*)
16816 shlibpath_overrides_runpath=no
16819 shlibpath_overrides_runpath=yes
16823 shlibpath_overrides_runpath=yes
16828 libname_spec='$name'
16831 library_names_spec='$libname${shared_ext} $libname.a'
16832 dynamic_linker='OS/2 ld.exe'
16833 shlibpath_var=LIBPATH
16836 osf3* | osf4* | osf5*)
16840 soname_spec='${libname}${release}${shared_ext}$major'
16841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16842 shlibpath_var=LD_LIBRARY_PATH
16843 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16844 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16849 soname_spec='${libname}${release}${shared_ext}$major'
16850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16851 shlibpath_var=LD_LIBRARY_PATH
16858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16859 soname_spec='${libname}${release}${shared_ext}$major'
16860 shlibpath_var=LD_LIBRARY_PATH
16861 shlibpath_overrides_runpath=yes
16862 hardcode_into_libs=yes
16863 # ldd complains unless libraries are executable
16864 postinstall_cmds='chmod +x $lib'
16869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16870 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16871 shlibpath_var=LD_LIBRARY_PATH
16872 shlibpath_overrides_runpath=yes
16873 if test "$with_gnu_ld" = yes; then
16879 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16882 soname_spec='${libname}${release}${shared_ext}$major'
16883 shlibpath_var=LD_LIBRARY_PATH
16884 case $host_vendor in
16886 shlibpath_overrides_runpath=no
16888 export_dynamic_flag_spec='${wl}-Blargedynsym'
16889 runpath_var=LD_RUN_PATH
16897 shlibpath_overrides_runpath=no
16898 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16904 if test -d /usr/nec ;then
16906 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16907 soname_spec='$libname${shared_ext}.$major'
16908 shlibpath_var=LD_LIBRARY_PATH
16914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16915 soname_spec='${libname}${release}${shared_ext}$major'
16916 shlibpath_var=LD_LIBRARY_PATH
16923 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16924 echo "${ECHO_T}$dynamic_linker" >&6
16925 test "$dynamic_linker" = no && can_build_shared=no
16927 if test "x$enable_dlopen" != xyes; then
16928 enable_dlopen=unknown
16929 enable_dlopen_self=unknown
16930 enable_dlopen_self_static=unknown
16937 lt_cv_dlopen="load_add_on"
16939 lt_cv_dlopen_self=yes
16943 lt_cv_dlopen="LoadLibrary"
16948 lt_cv_dlopen="dlopen"
16953 # if libdl is installed we need to link against it
16954 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16955 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16956 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16957 echo $ECHO_N "(cached) $ECHO_C" >&6
16959 ac_check_lib_save_LIBS=$LIBS
16961 cat >conftest.$ac_ext <<_ACEOF
16964 cat confdefs.h >>conftest.$ac_ext
16965 cat >>conftest.$ac_ext <<_ACEOF
16966 /* end confdefs.h. */
16968 /* Override any gcc2 internal prototype to avoid an error. */
16972 /* We use char because int might match the return type of a gcc2
16973 builtin and then its argument prototype would still apply. */
16983 rm -f conftest.$ac_objext conftest$ac_exeext
16984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16985 (eval $ac_link) 2>conftest.er1
16987 grep -v '^ *+' conftest.er1 >conftest.err
16989 cat conftest.err >&5
16990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991 (exit $ac_status); } &&
16992 { ac_try='test -z "$ac_c_werror_flag"
16993 || test ! -s conftest.err'
16994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16995 (eval $ac_try) 2>&5
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); }; } &&
16999 { ac_try='test -s conftest$ac_exeext'
17000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17001 (eval $ac_try) 2>&5
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); }; }; then
17005 ac_cv_lib_dl_dlopen=yes
17007 echo "$as_me: failed program was:" >&5
17008 sed 's/^/| /' conftest.$ac_ext >&5
17010 ac_cv_lib_dl_dlopen=no
17012 rm -f conftest.err conftest.$ac_objext \
17013 conftest$ac_exeext conftest.$ac_ext
17014 LIBS=$ac_check_lib_save_LIBS
17016 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17017 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17018 if test $ac_cv_lib_dl_dlopen = yes; then
17019 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17022 lt_cv_dlopen="dyld"
17024 lt_cv_dlopen_self=yes
17031 echo "$as_me:$LINENO: checking for shl_load" >&5
17032 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17033 if test "${ac_cv_func_shl_load+set}" = set; then
17034 echo $ECHO_N "(cached) $ECHO_C" >&6
17036 cat >conftest.$ac_ext <<_ACEOF
17039 cat confdefs.h >>conftest.$ac_ext
17040 cat >>conftest.$ac_ext <<_ACEOF
17041 /* end confdefs.h. */
17042 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17044 #define shl_load innocuous_shl_load
17046 /* System header to define __stub macros and hopefully few prototypes,
17047 which can conflict with char shl_load (); below.
17048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17049 <limits.h> exists even on freestanding compilers. */
17052 # include <limits.h>
17054 # include <assert.h>
17059 /* Override any gcc2 internal prototype to avoid an error. */
17064 /* We use char because int might match the return type of a gcc2
17065 builtin and then its argument prototype would still apply. */
17067 /* The GNU C library defines this for functions which it implements
17068 to always fail with ENOSYS. Some functions are actually named
17069 something starting with __ and the normal name is an alias. */
17070 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17073 char (*f) () = shl_load;
17082 return f != shl_load;
17087 rm -f conftest.$ac_objext conftest$ac_exeext
17088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17089 (eval $ac_link) 2>conftest.er1
17091 grep -v '^ *+' conftest.er1 >conftest.err
17093 cat conftest.err >&5
17094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095 (exit $ac_status); } &&
17096 { ac_try='test -z "$ac_c_werror_flag"
17097 || test ! -s conftest.err'
17098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17099 (eval $ac_try) 2>&5
17101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 (exit $ac_status); }; } &&
17103 { ac_try='test -s conftest$ac_exeext'
17104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17105 (eval $ac_try) 2>&5
17107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108 (exit $ac_status); }; }; then
17109 ac_cv_func_shl_load=yes
17111 echo "$as_me: failed program was:" >&5
17112 sed 's/^/| /' conftest.$ac_ext >&5
17114 ac_cv_func_shl_load=no
17116 rm -f conftest.err conftest.$ac_objext \
17117 conftest$ac_exeext conftest.$ac_ext
17119 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17120 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17121 if test $ac_cv_func_shl_load = yes; then
17122 lt_cv_dlopen="shl_load"
17124 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17125 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17126 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17127 echo $ECHO_N "(cached) $ECHO_C" >&6
17129 ac_check_lib_save_LIBS=$LIBS
17131 cat >conftest.$ac_ext <<_ACEOF
17134 cat confdefs.h >>conftest.$ac_ext
17135 cat >>conftest.$ac_ext <<_ACEOF
17136 /* end confdefs.h. */
17138 /* Override any gcc2 internal prototype to avoid an error. */
17142 /* We use char because int might match the return type of a gcc2
17143 builtin and then its argument prototype would still apply. */
17153 rm -f conftest.$ac_objext conftest$ac_exeext
17154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17155 (eval $ac_link) 2>conftest.er1
17157 grep -v '^ *+' conftest.er1 >conftest.err
17159 cat conftest.err >&5
17160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161 (exit $ac_status); } &&
17162 { ac_try='test -z "$ac_c_werror_flag"
17163 || test ! -s conftest.err'
17164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17165 (eval $ac_try) 2>&5
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); }; } &&
17169 { ac_try='test -s conftest$ac_exeext'
17170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17171 (eval $ac_try) 2>&5
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); }; }; then
17175 ac_cv_lib_dld_shl_load=yes
17177 echo "$as_me: failed program was:" >&5
17178 sed 's/^/| /' conftest.$ac_ext >&5
17180 ac_cv_lib_dld_shl_load=no
17182 rm -f conftest.err conftest.$ac_objext \
17183 conftest$ac_exeext conftest.$ac_ext
17184 LIBS=$ac_check_lib_save_LIBS
17186 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17187 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17188 if test $ac_cv_lib_dld_shl_load = yes; then
17189 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17191 echo "$as_me:$LINENO: checking for dlopen" >&5
17192 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17193 if test "${ac_cv_func_dlopen+set}" = set; then
17194 echo $ECHO_N "(cached) $ECHO_C" >&6
17196 cat >conftest.$ac_ext <<_ACEOF
17199 cat confdefs.h >>conftest.$ac_ext
17200 cat >>conftest.$ac_ext <<_ACEOF
17201 /* end confdefs.h. */
17202 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17204 #define dlopen innocuous_dlopen
17206 /* System header to define __stub macros and hopefully few prototypes,
17207 which can conflict with char dlopen (); below.
17208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17209 <limits.h> exists even on freestanding compilers. */
17212 # include <limits.h>
17214 # include <assert.h>
17219 /* Override any gcc2 internal prototype to avoid an error. */
17224 /* We use char because int might match the return type of a gcc2
17225 builtin and then its argument prototype would still apply. */
17227 /* The GNU C library defines this for functions which it implements
17228 to always fail with ENOSYS. Some functions are actually named
17229 something starting with __ and the normal name is an alias. */
17230 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17233 char (*f) () = dlopen;
17242 return f != dlopen;
17247 rm -f conftest.$ac_objext conftest$ac_exeext
17248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17249 (eval $ac_link) 2>conftest.er1
17251 grep -v '^ *+' conftest.er1 >conftest.err
17253 cat conftest.err >&5
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); } &&
17256 { ac_try='test -z "$ac_c_werror_flag"
17257 || test ! -s conftest.err'
17258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17259 (eval $ac_try) 2>&5
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); }; } &&
17263 { ac_try='test -s conftest$ac_exeext'
17264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17265 (eval $ac_try) 2>&5
17267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268 (exit $ac_status); }; }; then
17269 ac_cv_func_dlopen=yes
17271 echo "$as_me: failed program was:" >&5
17272 sed 's/^/| /' conftest.$ac_ext >&5
17274 ac_cv_func_dlopen=no
17276 rm -f conftest.err conftest.$ac_objext \
17277 conftest$ac_exeext conftest.$ac_ext
17279 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17280 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17281 if test $ac_cv_func_dlopen = yes; then
17282 lt_cv_dlopen="dlopen"
17284 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17285 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17286 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17287 echo $ECHO_N "(cached) $ECHO_C" >&6
17289 ac_check_lib_save_LIBS=$LIBS
17291 cat >conftest.$ac_ext <<_ACEOF
17294 cat confdefs.h >>conftest.$ac_ext
17295 cat >>conftest.$ac_ext <<_ACEOF
17296 /* end confdefs.h. */
17298 /* Override any gcc2 internal prototype to avoid an error. */
17302 /* We use char because int might match the return type of a gcc2
17303 builtin and then its argument prototype would still apply. */
17313 rm -f conftest.$ac_objext conftest$ac_exeext
17314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17315 (eval $ac_link) 2>conftest.er1
17317 grep -v '^ *+' conftest.er1 >conftest.err
17319 cat conftest.err >&5
17320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321 (exit $ac_status); } &&
17322 { ac_try='test -z "$ac_c_werror_flag"
17323 || test ! -s conftest.err'
17324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17325 (eval $ac_try) 2>&5
17327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328 (exit $ac_status); }; } &&
17329 { ac_try='test -s conftest$ac_exeext'
17330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17331 (eval $ac_try) 2>&5
17333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334 (exit $ac_status); }; }; then
17335 ac_cv_lib_dl_dlopen=yes
17337 echo "$as_me: failed program was:" >&5
17338 sed 's/^/| /' conftest.$ac_ext >&5
17340 ac_cv_lib_dl_dlopen=no
17342 rm -f conftest.err conftest.$ac_objext \
17343 conftest$ac_exeext conftest.$ac_ext
17344 LIBS=$ac_check_lib_save_LIBS
17346 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17347 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17348 if test $ac_cv_lib_dl_dlopen = yes; then
17349 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17351 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17352 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17353 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17354 echo $ECHO_N "(cached) $ECHO_C" >&6
17356 ac_check_lib_save_LIBS=$LIBS
17357 LIBS="-lsvld $LIBS"
17358 cat >conftest.$ac_ext <<_ACEOF
17361 cat confdefs.h >>conftest.$ac_ext
17362 cat >>conftest.$ac_ext <<_ACEOF
17363 /* end confdefs.h. */
17365 /* Override any gcc2 internal prototype to avoid an error. */
17369 /* We use char because int might match the return type of a gcc2
17370 builtin and then its argument prototype would still apply. */
17380 rm -f conftest.$ac_objext conftest$ac_exeext
17381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17382 (eval $ac_link) 2>conftest.er1
17384 grep -v '^ *+' conftest.er1 >conftest.err
17386 cat conftest.err >&5
17387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388 (exit $ac_status); } &&
17389 { ac_try='test -z "$ac_c_werror_flag"
17390 || test ! -s conftest.err'
17391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17392 (eval $ac_try) 2>&5
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); }; } &&
17396 { ac_try='test -s conftest$ac_exeext'
17397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17398 (eval $ac_try) 2>&5
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); }; }; then
17402 ac_cv_lib_svld_dlopen=yes
17404 echo "$as_me: failed program was:" >&5
17405 sed 's/^/| /' conftest.$ac_ext >&5
17407 ac_cv_lib_svld_dlopen=no
17409 rm -f conftest.err conftest.$ac_objext \
17410 conftest$ac_exeext conftest.$ac_ext
17411 LIBS=$ac_check_lib_save_LIBS
17413 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17414 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17415 if test $ac_cv_lib_svld_dlopen = yes; then
17416 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17418 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17419 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17420 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17421 echo $ECHO_N "(cached) $ECHO_C" >&6
17423 ac_check_lib_save_LIBS=$LIBS
17425 cat >conftest.$ac_ext <<_ACEOF
17428 cat confdefs.h >>conftest.$ac_ext
17429 cat >>conftest.$ac_ext <<_ACEOF
17430 /* end confdefs.h. */
17432 /* Override any gcc2 internal prototype to avoid an error. */
17436 /* We use char because int might match the return type of a gcc2
17437 builtin and then its argument prototype would still apply. */
17447 rm -f conftest.$ac_objext conftest$ac_exeext
17448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17449 (eval $ac_link) 2>conftest.er1
17451 grep -v '^ *+' conftest.er1 >conftest.err
17453 cat conftest.err >&5
17454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455 (exit $ac_status); } &&
17456 { ac_try='test -z "$ac_c_werror_flag"
17457 || test ! -s conftest.err'
17458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17459 (eval $ac_try) 2>&5
17461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462 (exit $ac_status); }; } &&
17463 { ac_try='test -s conftest$ac_exeext'
17464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17465 (eval $ac_try) 2>&5
17467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468 (exit $ac_status); }; }; then
17469 ac_cv_lib_dld_dld_link=yes
17471 echo "$as_me: failed program was:" >&5
17472 sed 's/^/| /' conftest.$ac_ext >&5
17474 ac_cv_lib_dld_dld_link=no
17476 rm -f conftest.err conftest.$ac_objext \
17477 conftest$ac_exeext conftest.$ac_ext
17478 LIBS=$ac_check_lib_save_LIBS
17480 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17481 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17482 if test $ac_cv_lib_dld_dld_link = yes; then
17483 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17504 if test "x$lt_cv_dlopen" != xno; then
17510 case $lt_cv_dlopen in
17512 save_CPPFLAGS="$CPPFLAGS"
17513 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17515 save_LDFLAGS="$LDFLAGS"
17516 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17519 LIBS="$lt_cv_dlopen_libs $LIBS"
17521 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17522 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17523 if test "${lt_cv_dlopen_self+set}" = set; then
17524 echo $ECHO_N "(cached) $ECHO_C" >&6
17526 if test "$cross_compiling" = yes; then :
17527 lt_cv_dlopen_self=cross
17529 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17530 lt_status=$lt_dlunknown
17531 cat > conftest.$ac_ext <<EOF
17532 #line 17532 "configure"
17533 #include "confdefs.h"
17542 # define LT_DLGLOBAL RTLD_GLOBAL
17545 # define LT_DLGLOBAL DL_GLOBAL
17547 # define LT_DLGLOBAL 0
17551 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17552 find out it does not work in some platform. */
17553 #ifndef LT_DLLAZY_OR_NOW
17555 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17558 # define LT_DLLAZY_OR_NOW DL_LAZY
17561 # define LT_DLLAZY_OR_NOW RTLD_NOW
17564 # define LT_DLLAZY_OR_NOW DL_NOW
17566 # define LT_DLLAZY_OR_NOW 0
17574 extern "C" void exit (int);
17577 void fnord() { int i=42;}
17580 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17581 int status = $lt_dlunknown;
17585 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17586 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17587 /* dlclose (self); */
17593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17594 (eval $ac_link) 2>&5
17596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17598 (./conftest; exit; ) 2>/dev/null
17600 case x$lt_status in
17601 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17602 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17603 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17606 # compilation failed
17607 lt_cv_dlopen_self=no
17614 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17615 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17617 if test "x$lt_cv_dlopen_self" = xyes; then
17618 LDFLAGS="$LDFLAGS $link_static_flag"
17619 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17620 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17621 if test "${lt_cv_dlopen_self_static+set}" = set; then
17622 echo $ECHO_N "(cached) $ECHO_C" >&6
17624 if test "$cross_compiling" = yes; then :
17625 lt_cv_dlopen_self_static=cross
17627 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17628 lt_status=$lt_dlunknown
17629 cat > conftest.$ac_ext <<EOF
17630 #line 17630 "configure"
17631 #include "confdefs.h"
17640 # define LT_DLGLOBAL RTLD_GLOBAL
17643 # define LT_DLGLOBAL DL_GLOBAL
17645 # define LT_DLGLOBAL 0
17649 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17650 find out it does not work in some platform. */
17651 #ifndef LT_DLLAZY_OR_NOW
17653 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17656 # define LT_DLLAZY_OR_NOW DL_LAZY
17659 # define LT_DLLAZY_OR_NOW RTLD_NOW
17662 # define LT_DLLAZY_OR_NOW DL_NOW
17664 # define LT_DLLAZY_OR_NOW 0
17672 extern "C" void exit (int);
17675 void fnord() { int i=42;}
17678 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17679 int status = $lt_dlunknown;
17683 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17684 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17685 /* dlclose (self); */
17691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17692 (eval $ac_link) 2>&5
17694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17696 (./conftest; exit; ) 2>/dev/null
17698 case x$lt_status in
17699 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17700 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17701 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17704 # compilation failed
17705 lt_cv_dlopen_self_static=no
17712 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17713 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17716 CPPFLAGS="$save_CPPFLAGS"
17717 LDFLAGS="$save_LDFLAGS"
17722 case $lt_cv_dlopen_self in
17723 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17724 *) enable_dlopen_self=unknown ;;
17727 case $lt_cv_dlopen_self_static in
17728 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17729 *) enable_dlopen_self_static=unknown ;;
17734 # The else clause should only fire when bootstrapping the
17735 # libtool distribution, otherwise you forgot to ship ltmain.sh
17736 # with your package, and you will get complaints that there are
17737 # no rules to generate ltmain.sh.
17738 if test -f "$ltmain"; then
17739 # See if we are running on zsh, and set the options which allow our commands through
17740 # without removal of \ escapes.
17741 if test -n "${ZSH_VERSION+set}" ; then
17742 setopt NO_GLOB_SUBST
17744 # Now quote all the things that may contain metacharacters while being
17745 # careful not to overquote the AC_SUBSTed values. We take copies of the
17746 # variables and quote the copies for generation of the libtool script.
17747 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17748 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17749 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17750 deplibs_check_method reload_flag reload_cmds need_locks \
17751 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17752 lt_cv_sys_global_symbol_to_c_name_address \
17753 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17754 old_postinstall_cmds old_postuninstall_cmds \
17758 lt_prog_compiler_wl_GCJ \
17759 lt_prog_compiler_pic_GCJ \
17760 lt_prog_compiler_static_GCJ \
17761 lt_prog_compiler_no_builtin_flag_GCJ \
17762 export_dynamic_flag_spec_GCJ \
17763 thread_safe_flag_spec_GCJ \
17764 whole_archive_flag_spec_GCJ \
17765 enable_shared_with_static_runtimes_GCJ \
17766 old_archive_cmds_GCJ \
17767 old_archive_from_new_cmds_GCJ \
17768 predep_objects_GCJ \
17769 postdep_objects_GCJ \
17772 compiler_lib_search_path_GCJ \
17774 archive_expsym_cmds_GCJ \
17775 postinstall_cmds_GCJ \
17776 postuninstall_cmds_GCJ \
17777 old_archive_from_expsyms_cmds_GCJ \
17778 allow_undefined_flag_GCJ \
17779 no_undefined_flag_GCJ \
17780 export_symbols_cmds_GCJ \
17781 hardcode_libdir_flag_spec_GCJ \
17782 hardcode_libdir_flag_spec_ld_GCJ \
17783 hardcode_libdir_separator_GCJ \
17784 hardcode_automatic_GCJ \
17786 module_expsym_cmds_GCJ \
17787 lt_cv_prog_compiler_c_o_GCJ \
17788 exclude_expsyms_GCJ \
17789 include_expsyms_GCJ; do
17792 old_archive_cmds_GCJ | \
17793 old_archive_from_new_cmds_GCJ | \
17794 archive_cmds_GCJ | \
17795 archive_expsym_cmds_GCJ | \
17796 module_cmds_GCJ | \
17797 module_expsym_cmds_GCJ | \
17798 old_archive_from_expsyms_cmds_GCJ | \
17799 export_symbols_cmds_GCJ | \
17800 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17801 postinstall_cmds | postuninstall_cmds | \
17802 old_postinstall_cmds | old_postuninstall_cmds | \
17803 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17804 # Double-quote double-evaled strings.
17805 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17808 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17814 *'\$0 --fallback-echo"')
17815 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17821 cat <<__EOF__ >> "$cfgfile"
17822 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17824 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17826 # Shell to use when invoking shell scripts.
17829 # Whether or not to build shared libraries.
17830 build_libtool_libs=$enable_shared
17832 # Whether or not to build static libraries.
17833 build_old_libs=$enable_static
17835 # Whether or not to add -lc for building shared libraries.
17836 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17838 # Whether or not to disallow shared libs when runtime libs are static
17839 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17841 # Whether or not to optimize for fast installation.
17842 fast_install=$enable_fast_install
17845 host_alias=$host_alias
17848 # An echo program that does not interpret backslashes.
17853 AR_FLAGS=$lt_AR_FLAGS
17858 # A language-specific compiler.
17859 CC=$lt_compiler_GCJ
17861 # Is the compiler the GNU C compiler?
17867 # The linker used to build libraries.
17870 # Whether we need hard or soft links.
17873 # A BSD-compatible nm program.
17876 # A symbol stripping program
17879 # Used to examine libraries when file_magic_cmd begins "file"
17880 MAGIC_CMD=$MAGIC_CMD
17882 # Used on cygwin: DLL creation program.
17885 # Used on cygwin: object dumper.
17888 # Used on cygwin: assembler.
17891 # The name of the directory that contains temporary libtool files.
17894 # How to create reloadable object files.
17895 reload_flag=$lt_reload_flag
17896 reload_cmds=$lt_reload_cmds
17898 # How to pass a linker flag through the compiler.
17899 wl=$lt_lt_prog_compiler_wl_GCJ
17901 # Object file suffix (normally "o").
17902 objext="$ac_objext"
17904 # Old archive suffix (normally "a").
17907 # Shared library suffix (normally ".so").
17910 # Executable file suffix (normally "").
17913 # Additional compiler flags for building library objects.
17914 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17917 # What is the maximum length of a command?
17918 max_cmd_len=$lt_cv_sys_max_cmd_len
17920 # Does compiler simultaneously support -c and -o options?
17921 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17923 # Must we lock files when doing compilation ?
17924 need_locks=$lt_need_locks
17926 # Do we need the lib prefix for modules?
17927 need_lib_prefix=$need_lib_prefix
17929 # Do we need a version for libraries?
17930 need_version=$need_version
17932 # Whether dlopen is supported.
17933 dlopen_support=$enable_dlopen
17935 # Whether dlopen of programs is supported.
17936 dlopen_self=$enable_dlopen_self
17938 # Whether dlopen of statically linked programs is supported.
17939 dlopen_self_static=$enable_dlopen_self_static
17941 # Compiler flag to prevent dynamic linking.
17942 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17944 # Compiler flag to turn off builtin functions.
17945 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17947 # Compiler flag to allow reflexive dlopens.
17948 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17950 # Compiler flag to generate shared objects directly from archives.
17951 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17953 # Compiler flag to generate thread-safe objects.
17954 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17956 # Library versioning type.
17957 version_type=$version_type
17959 # Format of library name prefix.
17960 libname_spec=$lt_libname_spec
17962 # List of archive names. First name is the real one, the rest are links.
17963 # The last name is the one that the linker finds with -lNAME.
17964 library_names_spec=$lt_library_names_spec
17966 # The coded name of the library, if different from the real name.
17967 soname_spec=$lt_soname_spec
17969 # Commands used to build and install an old-style archive.
17971 old_archive_cmds=$lt_old_archive_cmds_GCJ
17972 old_postinstall_cmds=$lt_old_postinstall_cmds
17973 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17975 # Create an old-style archive from a shared archive.
17976 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17978 # Create a temporary old-style archive to link instead of a shared archive.
17979 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17981 # Commands used to build and install a shared archive.
17982 archive_cmds=$lt_archive_cmds_GCJ
17983 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17984 postinstall_cmds=$lt_postinstall_cmds
17985 postuninstall_cmds=$lt_postuninstall_cmds
17987 # Commands used to build a loadable module (assumed same as above if empty)
17988 module_cmds=$lt_module_cmds_GCJ
17989 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17991 # Commands to strip libraries.
17992 old_striplib=$lt_old_striplib
17993 striplib=$lt_striplib
17995 # Dependencies to place before the objects being linked to create a
17997 predep_objects=$lt_predep_objects_GCJ
17999 # Dependencies to place after the objects being linked to create a
18001 postdep_objects=$lt_postdep_objects_GCJ
18003 # Dependencies to place before the objects being linked to create a
18005 predeps=$lt_predeps_GCJ
18007 # Dependencies to place after the objects being linked to create a
18009 postdeps=$lt_postdeps_GCJ
18011 # The library search path used internally by the compiler when linking
18012 # a shared library.
18013 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18015 # Method to check whether dependent libraries are shared objects.
18016 deplibs_check_method=$lt_deplibs_check_method
18018 # Command to use when deplibs_check_method == file_magic.
18019 file_magic_cmd=$lt_file_magic_cmd
18021 # Flag that allows shared libraries with undefined symbols to be built.
18022 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18024 # Flag that forces no undefined symbols.
18025 no_undefined_flag=$lt_no_undefined_flag_GCJ
18027 # Commands used to finish a libtool library installation in a directory.
18028 finish_cmds=$lt_finish_cmds
18030 # Same as above, but a single script fragment to be evaled but not shown.
18031 finish_eval=$lt_finish_eval
18033 # Take the output of nm and produce a listing of raw symbols and C names.
18034 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18036 # Transform the output of nm in a proper C declaration
18037 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18039 # Transform the output of nm in a C name address pair
18040 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18042 # This is the shared library runtime path variable.
18043 runpath_var=$runpath_var
18045 # This is the shared library path variable.
18046 shlibpath_var=$shlibpath_var
18048 # Is shlibpath searched before the hard-coded library search path?
18049 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18051 # How to hardcode a shared library path into an executable.
18052 hardcode_action=$hardcode_action_GCJ
18054 # Whether we should hardcode library paths into libraries.
18055 hardcode_into_libs=$hardcode_into_libs
18057 # Flag to hardcode \$libdir into a binary during linking.
18058 # This must work even if \$libdir does not exist.
18059 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18061 # If ld is used when linking, flag to hardcode \$libdir into
18062 # a binary during linking. This must work even if \$libdir does
18064 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18066 # Whether we need a single -rpath flag with a separated argument.
18067 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18069 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18070 # resulting binary.
18071 hardcode_direct=$hardcode_direct_GCJ
18073 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18074 # resulting binary.
18075 hardcode_minus_L=$hardcode_minus_L_GCJ
18077 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18078 # the resulting binary.
18079 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18081 # Set to yes if building a shared library automatically hardcodes DIR into the library
18082 # and all subsequent libraries and executables linked against it.
18083 hardcode_automatic=$hardcode_automatic_GCJ
18085 # Variables whose values should be saved in libtool wrapper scripts and
18086 # restored at relink time.
18087 variables_saved_for_relink="$variables_saved_for_relink"
18089 # Whether libtool must link a program against all its dependency libraries.
18090 link_all_deplibs=$link_all_deplibs_GCJ
18092 # Compile-time system search path for libraries
18093 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18095 # Run-time system search path for libraries
18096 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18098 # Fix the shell variable \$srcfile for the compiler.
18099 fix_srcfile_path="$fix_srcfile_path_GCJ"
18101 # Set to yes if exported symbols are required.
18102 always_export_symbols=$always_export_symbols_GCJ
18104 # The commands to list exported symbols.
18105 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18107 # The commands to extract the exported symbol list from a shared archive.
18108 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18110 # Symbols that should not be listed in the preloaded symbols.
18111 exclude_expsyms=$lt_exclude_expsyms_GCJ
18113 # Symbols that must always be exported.
18114 include_expsyms=$lt_include_expsyms_GCJ
18116 # ### END LIBTOOL TAG CONFIG: $tagname
18122 # If there is no Makefile yet, we rely on a make rule to execute
18123 # `config.status --recheck' to rerun these tests and create the
18124 # libtool script then.
18125 test -f Makefile && make "$ltmain"
18130 ac_cpp='$CPP $CPPFLAGS'
18131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18146 # Source file extension for RC test sources.
18149 # Object file extension for compiled RC test sources.
18153 # Code to be used in simple compile tests
18154 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18156 # Code to be used in simple link tests
18157 lt_simple_link_test_code="$lt_simple_compile_test_code"
18159 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18161 # If no C compiler was specified, use CC.
18164 # Allow CC to be a program name with arguments.
18168 # Allow CC to be a program name with arguments.
18173 lt_cv_prog_compiler_c_o_RC=yes
18175 # The else clause should only fire when bootstrapping the
18176 # libtool distribution, otherwise you forgot to ship ltmain.sh
18177 # with your package, and you will get complaints that there are
18178 # no rules to generate ltmain.sh.
18179 if test -f "$ltmain"; then
18180 # See if we are running on zsh, and set the options which allow our commands through
18181 # without removal of \ escapes.
18182 if test -n "${ZSH_VERSION+set}" ; then
18183 setopt NO_GLOB_SUBST
18185 # Now quote all the things that may contain metacharacters while being
18186 # careful not to overquote the AC_SUBSTed values. We take copies of the
18187 # variables and quote the copies for generation of the libtool script.
18188 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18189 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18190 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18191 deplibs_check_method reload_flag reload_cmds need_locks \
18192 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18193 lt_cv_sys_global_symbol_to_c_name_address \
18194 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18195 old_postinstall_cmds old_postuninstall_cmds \
18199 lt_prog_compiler_wl_RC \
18200 lt_prog_compiler_pic_RC \
18201 lt_prog_compiler_static_RC \
18202 lt_prog_compiler_no_builtin_flag_RC \
18203 export_dynamic_flag_spec_RC \
18204 thread_safe_flag_spec_RC \
18205 whole_archive_flag_spec_RC \
18206 enable_shared_with_static_runtimes_RC \
18207 old_archive_cmds_RC \
18208 old_archive_from_new_cmds_RC \
18209 predep_objects_RC \
18210 postdep_objects_RC \
18213 compiler_lib_search_path_RC \
18215 archive_expsym_cmds_RC \
18216 postinstall_cmds_RC \
18217 postuninstall_cmds_RC \
18218 old_archive_from_expsyms_cmds_RC \
18219 allow_undefined_flag_RC \
18220 no_undefined_flag_RC \
18221 export_symbols_cmds_RC \
18222 hardcode_libdir_flag_spec_RC \
18223 hardcode_libdir_flag_spec_ld_RC \
18224 hardcode_libdir_separator_RC \
18225 hardcode_automatic_RC \
18227 module_expsym_cmds_RC \
18228 lt_cv_prog_compiler_c_o_RC \
18229 exclude_expsyms_RC \
18230 include_expsyms_RC; do
18233 old_archive_cmds_RC | \
18234 old_archive_from_new_cmds_RC | \
18235 archive_cmds_RC | \
18236 archive_expsym_cmds_RC | \
18238 module_expsym_cmds_RC | \
18239 old_archive_from_expsyms_cmds_RC | \
18240 export_symbols_cmds_RC | \
18241 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18242 postinstall_cmds | postuninstall_cmds | \
18243 old_postinstall_cmds | old_postuninstall_cmds | \
18244 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18245 # Double-quote double-evaled strings.
18246 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18249 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18255 *'\$0 --fallback-echo"')
18256 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18262 cat <<__EOF__ >> "$cfgfile"
18263 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18265 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18267 # Shell to use when invoking shell scripts.
18270 # Whether or not to build shared libraries.
18271 build_libtool_libs=$enable_shared
18273 # Whether or not to build static libraries.
18274 build_old_libs=$enable_static
18276 # Whether or not to add -lc for building shared libraries.
18277 build_libtool_need_lc=$archive_cmds_need_lc_RC
18279 # Whether or not to disallow shared libs when runtime libs are static
18280 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18282 # Whether or not to optimize for fast installation.
18283 fast_install=$enable_fast_install
18286 host_alias=$host_alias
18289 # An echo program that does not interpret backslashes.
18294 AR_FLAGS=$lt_AR_FLAGS
18299 # A language-specific compiler.
18302 # Is the compiler the GNU C compiler?
18308 # The linker used to build libraries.
18311 # Whether we need hard or soft links.
18314 # A BSD-compatible nm program.
18317 # A symbol stripping program
18320 # Used to examine libraries when file_magic_cmd begins "file"
18321 MAGIC_CMD=$MAGIC_CMD
18323 # Used on cygwin: DLL creation program.
18326 # Used on cygwin: object dumper.
18329 # Used on cygwin: assembler.
18332 # The name of the directory that contains temporary libtool files.
18335 # How to create reloadable object files.
18336 reload_flag=$lt_reload_flag
18337 reload_cmds=$lt_reload_cmds
18339 # How to pass a linker flag through the compiler.
18340 wl=$lt_lt_prog_compiler_wl_RC
18342 # Object file suffix (normally "o").
18343 objext="$ac_objext"
18345 # Old archive suffix (normally "a").
18348 # Shared library suffix (normally ".so").
18351 # Executable file suffix (normally "").
18354 # Additional compiler flags for building library objects.
18355 pic_flag=$lt_lt_prog_compiler_pic_RC
18358 # What is the maximum length of a command?
18359 max_cmd_len=$lt_cv_sys_max_cmd_len
18361 # Does compiler simultaneously support -c and -o options?
18362 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18364 # Must we lock files when doing compilation ?
18365 need_locks=$lt_need_locks
18367 # Do we need the lib prefix for modules?
18368 need_lib_prefix=$need_lib_prefix
18370 # Do we need a version for libraries?
18371 need_version=$need_version
18373 # Whether dlopen is supported.
18374 dlopen_support=$enable_dlopen
18376 # Whether dlopen of programs is supported.
18377 dlopen_self=$enable_dlopen_self
18379 # Whether dlopen of statically linked programs is supported.
18380 dlopen_self_static=$enable_dlopen_self_static
18382 # Compiler flag to prevent dynamic linking.
18383 link_static_flag=$lt_lt_prog_compiler_static_RC
18385 # Compiler flag to turn off builtin functions.
18386 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18388 # Compiler flag to allow reflexive dlopens.
18389 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18391 # Compiler flag to generate shared objects directly from archives.
18392 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18394 # Compiler flag to generate thread-safe objects.
18395 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18397 # Library versioning type.
18398 version_type=$version_type
18400 # Format of library name prefix.
18401 libname_spec=$lt_libname_spec
18403 # List of archive names. First name is the real one, the rest are links.
18404 # The last name is the one that the linker finds with -lNAME.
18405 library_names_spec=$lt_library_names_spec
18407 # The coded name of the library, if different from the real name.
18408 soname_spec=$lt_soname_spec
18410 # Commands used to build and install an old-style archive.
18412 old_archive_cmds=$lt_old_archive_cmds_RC
18413 old_postinstall_cmds=$lt_old_postinstall_cmds
18414 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18416 # Create an old-style archive from a shared archive.
18417 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18419 # Create a temporary old-style archive to link instead of a shared archive.
18420 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18422 # Commands used to build and install a shared archive.
18423 archive_cmds=$lt_archive_cmds_RC
18424 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18425 postinstall_cmds=$lt_postinstall_cmds
18426 postuninstall_cmds=$lt_postuninstall_cmds
18428 # Commands used to build a loadable module (assumed same as above if empty)
18429 module_cmds=$lt_module_cmds_RC
18430 module_expsym_cmds=$lt_module_expsym_cmds_RC
18432 # Commands to strip libraries.
18433 old_striplib=$lt_old_striplib
18434 striplib=$lt_striplib
18436 # Dependencies to place before the objects being linked to create a
18438 predep_objects=$lt_predep_objects_RC
18440 # Dependencies to place after the objects being linked to create a
18442 postdep_objects=$lt_postdep_objects_RC
18444 # Dependencies to place before the objects being linked to create a
18446 predeps=$lt_predeps_RC
18448 # Dependencies to place after the objects being linked to create a
18450 postdeps=$lt_postdeps_RC
18452 # The library search path used internally by the compiler when linking
18453 # a shared library.
18454 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18456 # Method to check whether dependent libraries are shared objects.
18457 deplibs_check_method=$lt_deplibs_check_method
18459 # Command to use when deplibs_check_method == file_magic.
18460 file_magic_cmd=$lt_file_magic_cmd
18462 # Flag that allows shared libraries with undefined symbols to be built.
18463 allow_undefined_flag=$lt_allow_undefined_flag_RC
18465 # Flag that forces no undefined symbols.
18466 no_undefined_flag=$lt_no_undefined_flag_RC
18468 # Commands used to finish a libtool library installation in a directory.
18469 finish_cmds=$lt_finish_cmds
18471 # Same as above, but a single script fragment to be evaled but not shown.
18472 finish_eval=$lt_finish_eval
18474 # Take the output of nm and produce a listing of raw symbols and C names.
18475 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18477 # Transform the output of nm in a proper C declaration
18478 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18480 # Transform the output of nm in a C name address pair
18481 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18483 # This is the shared library runtime path variable.
18484 runpath_var=$runpath_var
18486 # This is the shared library path variable.
18487 shlibpath_var=$shlibpath_var
18489 # Is shlibpath searched before the hard-coded library search path?
18490 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18492 # How to hardcode a shared library path into an executable.
18493 hardcode_action=$hardcode_action_RC
18495 # Whether we should hardcode library paths into libraries.
18496 hardcode_into_libs=$hardcode_into_libs
18498 # Flag to hardcode \$libdir into a binary during linking.
18499 # This must work even if \$libdir does not exist.
18500 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18502 # If ld is used when linking, flag to hardcode \$libdir into
18503 # a binary during linking. This must work even if \$libdir does
18505 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18507 # Whether we need a single -rpath flag with a separated argument.
18508 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18510 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18511 # resulting binary.
18512 hardcode_direct=$hardcode_direct_RC
18514 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18515 # resulting binary.
18516 hardcode_minus_L=$hardcode_minus_L_RC
18518 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18519 # the resulting binary.
18520 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18522 # Set to yes if building a shared library automatically hardcodes DIR into the library
18523 # and all subsequent libraries and executables linked against it.
18524 hardcode_automatic=$hardcode_automatic_RC
18526 # Variables whose values should be saved in libtool wrapper scripts and
18527 # restored at relink time.
18528 variables_saved_for_relink="$variables_saved_for_relink"
18530 # Whether libtool must link a program against all its dependency libraries.
18531 link_all_deplibs=$link_all_deplibs_RC
18533 # Compile-time system search path for libraries
18534 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18536 # Run-time system search path for libraries
18537 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18539 # Fix the shell variable \$srcfile for the compiler.
18540 fix_srcfile_path="$fix_srcfile_path_RC"
18542 # Set to yes if exported symbols are required.
18543 always_export_symbols=$always_export_symbols_RC
18545 # The commands to list exported symbols.
18546 export_symbols_cmds=$lt_export_symbols_cmds_RC
18548 # The commands to extract the exported symbol list from a shared archive.
18549 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18551 # Symbols that should not be listed in the preloaded symbols.
18552 exclude_expsyms=$lt_exclude_expsyms_RC
18554 # Symbols that must always be exported.
18555 include_expsyms=$lt_include_expsyms_RC
18557 # ### END LIBTOOL TAG CONFIG: $tagname
18563 # If there is no Makefile yet, we rely on a make rule to execute
18564 # `config.status --recheck' to rerun these tests and create the
18565 # libtool script then.
18566 test -f Makefile && make "$ltmain"
18571 ac_cpp='$CPP $CPPFLAGS'
18572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18581 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18582 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18583 { (exit 1); exit 1; }; }
18587 # Append the new tag name to the list of available tags.
18588 if test -n "$tagname" ; then
18589 available_tags="$available_tags $tagname"
18595 # Now substitute the updated list of available tags.
18596 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18597 mv "${ofile}T" "$ofile"
18601 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18602 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18603 { (exit 1); exit 1; }; }
18609 # This can be used to rebuild libtool when needed
18610 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18612 # Always use our own libtool.
18613 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18615 # Prevent multiple expansion
18637 # Extract the first word of "dot", so it can be a program name with args.
18638 set dummy dot; ac_word=$2
18639 echo "$as_me:$LINENO: checking for $ac_word" >&5
18640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18641 if test "${ac_cv_path_DOT+set}" = set; then
18642 echo $ECHO_N "(cached) $ECHO_C" >&6
18646 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18650 for as_dir in $PATH
18653 test -z "$as_dir" && as_dir=.
18654 for ac_exec_ext in '' $ac_executable_extensions; do
18655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18656 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18663 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
18667 DOT=$ac_cv_path_DOT
18669 if test -n "$DOT"; then
18670 echo "$as_me:$LINENO: result: $DOT" >&5
18671 echo "${ECHO_T}$DOT" >&6
18673 echo "$as_me:$LINENO: result: no" >&5
18674 echo "${ECHO_T}no" >&6
18677 # Extract the first word of "etags", so it can be a program name with args.
18678 set dummy etags; ac_word=$2
18679 echo "$as_me:$LINENO: checking for $ac_word" >&5
18680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18681 if test "${ac_cv_path_ETAGS+set}" = set; then
18682 echo $ECHO_N "(cached) $ECHO_C" >&6
18686 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18690 for as_dir in $PATH
18693 test -z "$as_dir" && as_dir=.
18694 for ac_exec_ext in '' $ac_executable_extensions; do
18695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18696 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18703 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
18707 ETAGS=$ac_cv_path_ETAGS
18709 if test -n "$ETAGS"; then
18710 echo "$as_me:$LINENO: result: $ETAGS" >&5
18711 echo "${ECHO_T}$ETAGS" >&6
18713 echo "$as_me:$LINENO: result: no" >&5
18714 echo "${ECHO_T}no" >&6
18717 etags_version=`$ETAGS --version 2>&1`
18718 case "$etags_version" in
18719 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
18720 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
18721 *) ETAGSFLAGS="" ;;
18723 ETAGSFLAGS=$ETAGSFLAGS
18725 # Extract the first word of "python", so it can be a program name with args.
18726 set dummy python; ac_word=$2
18727 echo "$as_me:$LINENO: checking for $ac_word" >&5
18728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18729 if test "${ac_cv_path_PYTHON+set}" = set; then
18730 echo $ECHO_N "(cached) $ECHO_C" >&6
18734 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18738 for as_dir in $PATH
18741 test -z "$as_dir" && as_dir=.
18742 for ac_exec_ext in '' $ac_executable_extensions; do
18743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18744 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18751 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
18755 PYTHON=$ac_cv_path_PYTHON
18757 if test -n "$PYTHON"; then
18758 echo "$as_me:$LINENO: result: $PYTHON" >&5
18759 echo "${ECHO_T}$PYTHON" >&6
18761 echo "$as_me:$LINENO: result: no" >&5
18762 echo "${ECHO_T}no" >&6
18765 if test "$PYTHON" = "false"
18767 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
18768 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
18770 # Extract the first word of "qmtest", so it can be a program name with args.
18771 set dummy qmtest; ac_word=$2
18772 echo "$as_me:$LINENO: checking for $ac_word" >&5
18773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18774 if test "${ac_cv_path_QMTEST+set}" = set; then
18775 echo $ECHO_N "(cached) $ECHO_C" >&6
18779 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18783 for as_dir in $PATH
18786 test -z "$as_dir" && as_dir=.
18787 for ac_exec_ext in '' $ac_executable_extensions; do
18788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18789 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18796 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
18800 QMTEST=$ac_cv_path_QMTEST
18802 if test -n "$QMTEST"; then
18803 echo "$as_me:$LINENO: result: $QMTEST" >&5
18804 echo "${ECHO_T}$QMTEST" >&6
18806 echo "$as_me:$LINENO: result: no" >&5
18807 echo "${ECHO_T}no" >&6
18810 if test "$QMTEST" = "false"
18812 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
18813 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
18816 pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
18817 pymajor=`echo $pyversion | cut -d. -f1`
18818 pyminor=`echo $pyversion | cut -d. -f2`
18820 if test "$pymajor" -ge "2"
18822 if test "$pymajor" -eq "2"
18824 if test "$pyminor" -lt "2"
18826 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18827 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18831 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18832 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18838 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18839 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18840 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18841 echo $ECHO_N "(cached) $ECHO_C" >&6
18843 ac_check_lib_save_LIBS=$LIBS
18845 cat >conftest.$ac_ext <<_ACEOF
18848 cat confdefs.h >>conftest.$ac_ext
18849 cat >>conftest.$ac_ext <<_ACEOF
18850 /* end confdefs.h. */
18852 /* Override any gcc2 internal prototype to avoid an error. */
18856 /* We use char because int might match the return type of a gcc2
18857 builtin and then its argument prototype would still apply. */
18867 rm -f conftest.$ac_objext conftest$ac_exeext
18868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18869 (eval $ac_link) 2>conftest.er1
18871 grep -v '^ *+' conftest.er1 >conftest.err
18873 cat conftest.err >&5
18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); } &&
18876 { ac_try='test -z "$ac_c_werror_flag"
18877 || test ! -s conftest.err'
18878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18879 (eval $ac_try) 2>&5
18881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882 (exit $ac_status); }; } &&
18883 { ac_try='test -s conftest$ac_exeext'
18884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18885 (eval $ac_try) 2>&5
18887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888 (exit $ac_status); }; }; then
18889 ac_cv_lib_elf_elf_begin=yes
18891 echo "$as_me: failed program was:" >&5
18892 sed 's/^/| /' conftest.$ac_ext >&5
18894 ac_cv_lib_elf_elf_begin=no
18896 rm -f conftest.err conftest.$ac_objext \
18897 conftest$ac_exeext conftest.$ac_ext
18898 LIBS=$ac_check_lib_save_LIBS
18900 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18901 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18902 if test $ac_cv_lib_elf_elf_begin = yes; then
18903 cat >>confdefs.h <<_ACEOF
18904 #define HAVE_LIBELF 1
18912 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18913 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18914 if test "${ac_cv_search_dlopen+set}" = set; then
18915 echo $ECHO_N "(cached) $ECHO_C" >&6
18917 ac_func_search_save_LIBS=$LIBS
18918 ac_cv_search_dlopen=no
18919 cat >conftest.$ac_ext <<_ACEOF
18922 cat confdefs.h >>conftest.$ac_ext
18923 cat >>conftest.$ac_ext <<_ACEOF
18924 /* end confdefs.h. */
18926 /* Override any gcc2 internal prototype to avoid an error. */
18930 /* We use char because int might match the return type of a gcc2
18931 builtin and then its argument prototype would still apply. */
18941 rm -f conftest.$ac_objext conftest$ac_exeext
18942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18943 (eval $ac_link) 2>conftest.er1
18945 grep -v '^ *+' conftest.er1 >conftest.err
18947 cat conftest.err >&5
18948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949 (exit $ac_status); } &&
18950 { ac_try='test -z "$ac_c_werror_flag"
18951 || test ! -s conftest.err'
18952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18953 (eval $ac_try) 2>&5
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); }; } &&
18957 { ac_try='test -s conftest$ac_exeext'
18958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18959 (eval $ac_try) 2>&5
18961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962 (exit $ac_status); }; }; then
18963 ac_cv_search_dlopen="none required"
18965 echo "$as_me: failed program was:" >&5
18966 sed 's/^/| /' conftest.$ac_ext >&5
18969 rm -f conftest.err conftest.$ac_objext \
18970 conftest$ac_exeext conftest.$ac_ext
18971 if test "$ac_cv_search_dlopen" = no; then
18972 for ac_lib in dl; do
18973 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18974 cat >conftest.$ac_ext <<_ACEOF
18977 cat confdefs.h >>conftest.$ac_ext
18978 cat >>conftest.$ac_ext <<_ACEOF
18979 /* end confdefs.h. */
18981 /* Override any gcc2 internal prototype to avoid an error. */
18985 /* We use char because int might match the return type of a gcc2
18986 builtin and then its argument prototype would still apply. */
18996 rm -f conftest.$ac_objext conftest$ac_exeext
18997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18998 (eval $ac_link) 2>conftest.er1
19000 grep -v '^ *+' conftest.er1 >conftest.err
19002 cat conftest.err >&5
19003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19004 (exit $ac_status); } &&
19005 { ac_try='test -z "$ac_c_werror_flag"
19006 || test ! -s conftest.err'
19007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19008 (eval $ac_try) 2>&5
19010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011 (exit $ac_status); }; } &&
19012 { ac_try='test -s conftest$ac_exeext'
19013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19014 (eval $ac_try) 2>&5
19016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017 (exit $ac_status); }; }; then
19018 ac_cv_search_dlopen="-l$ac_lib"
19021 echo "$as_me: failed program was:" >&5
19022 sed 's/^/| /' conftest.$ac_ext >&5
19025 rm -f conftest.err conftest.$ac_objext \
19026 conftest$ac_exeext conftest.$ac_ext
19029 LIBS=$ac_func_search_save_LIBS
19031 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19032 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19033 if test "$ac_cv_search_dlopen" != no; then
19034 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19036 cat >>confdefs.h <<\_ACEOF
19037 #define HAVE_DLOPEN 1
19041 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19042 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
19046 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19047 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19048 if test "${ac_cv_search_mallinfo+set}" = set; then
19049 echo $ECHO_N "(cached) $ECHO_C" >&6
19051 ac_func_search_save_LIBS=$LIBS
19052 ac_cv_search_mallinfo=no
19053 cat >conftest.$ac_ext <<_ACEOF
19056 cat confdefs.h >>conftest.$ac_ext
19057 cat >>conftest.$ac_ext <<_ACEOF
19058 /* end confdefs.h. */
19060 /* Override any gcc2 internal prototype to avoid an error. */
19064 /* We use char because int might match the return type of a gcc2
19065 builtin and then its argument prototype would still apply. */
19075 rm -f conftest.$ac_objext conftest$ac_exeext
19076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19077 (eval $ac_link) 2>conftest.er1
19079 grep -v '^ *+' conftest.er1 >conftest.err
19081 cat conftest.err >&5
19082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083 (exit $ac_status); } &&
19084 { ac_try='test -z "$ac_c_werror_flag"
19085 || test ! -s conftest.err'
19086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19087 (eval $ac_try) 2>&5
19089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090 (exit $ac_status); }; } &&
19091 { ac_try='test -s conftest$ac_exeext'
19092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19093 (eval $ac_try) 2>&5
19095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096 (exit $ac_status); }; }; then
19097 ac_cv_search_mallinfo="none required"
19099 echo "$as_me: failed program was:" >&5
19100 sed 's/^/| /' conftest.$ac_ext >&5
19103 rm -f conftest.err conftest.$ac_objext \
19104 conftest$ac_exeext conftest.$ac_ext
19105 if test "$ac_cv_search_mallinfo" = no; then
19106 for ac_lib in malloc; do
19107 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19108 cat >conftest.$ac_ext <<_ACEOF
19111 cat confdefs.h >>conftest.$ac_ext
19112 cat >>conftest.$ac_ext <<_ACEOF
19113 /* end confdefs.h. */
19115 /* Override any gcc2 internal prototype to avoid an error. */
19119 /* We use char because int might match the return type of a gcc2
19120 builtin and then its argument prototype would still apply. */
19130 rm -f conftest.$ac_objext conftest$ac_exeext
19131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19132 (eval $ac_link) 2>conftest.er1
19134 grep -v '^ *+' conftest.er1 >conftest.err
19136 cat conftest.err >&5
19137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138 (exit $ac_status); } &&
19139 { ac_try='test -z "$ac_c_werror_flag"
19140 || test ! -s conftest.err'
19141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19142 (eval $ac_try) 2>&5
19144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145 (exit $ac_status); }; } &&
19146 { ac_try='test -s conftest$ac_exeext'
19147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19148 (eval $ac_try) 2>&5
19150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151 (exit $ac_status); }; }; then
19152 ac_cv_search_mallinfo="-l$ac_lib"
19155 echo "$as_me: failed program was:" >&5
19156 sed 's/^/| /' conftest.$ac_ext >&5
19159 rm -f conftest.err conftest.$ac_objext \
19160 conftest$ac_exeext conftest.$ac_ext
19163 LIBS=$ac_func_search_save_LIBS
19165 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19166 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19167 if test "$ac_cv_search_mallinfo" != no; then
19168 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19170 cat >>confdefs.h <<\_ACEOF
19171 #define HAVE_MALLINFO 1
19177 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
19178 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
19179 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
19180 echo $ECHO_N "(cached) $ECHO_C" >&6
19182 ac_func_search_save_LIBS=$LIBS
19183 ac_cv_search_pthread_mutex_lock=no
19184 cat >conftest.$ac_ext <<_ACEOF
19187 cat confdefs.h >>conftest.$ac_ext
19188 cat >>conftest.$ac_ext <<_ACEOF
19189 /* end confdefs.h. */
19191 /* Override any gcc2 internal prototype to avoid an error. */
19195 /* We use char because int might match the return type of a gcc2
19196 builtin and then its argument prototype would still apply. */
19197 char pthread_mutex_lock ();
19201 pthread_mutex_lock ();
19206 rm -f conftest.$ac_objext conftest$ac_exeext
19207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19208 (eval $ac_link) 2>conftest.er1
19210 grep -v '^ *+' conftest.er1 >conftest.err
19212 cat conftest.err >&5
19213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214 (exit $ac_status); } &&
19215 { ac_try='test -z "$ac_c_werror_flag"
19216 || test ! -s conftest.err'
19217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19218 (eval $ac_try) 2>&5
19220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221 (exit $ac_status); }; } &&
19222 { ac_try='test -s conftest$ac_exeext'
19223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19224 (eval $ac_try) 2>&5
19226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227 (exit $ac_status); }; }; then
19228 ac_cv_search_pthread_mutex_lock="none required"
19230 echo "$as_me: failed program was:" >&5
19231 sed 's/^/| /' conftest.$ac_ext >&5
19234 rm -f conftest.err conftest.$ac_objext \
19235 conftest$ac_exeext conftest.$ac_ext
19236 if test "$ac_cv_search_pthread_mutex_lock" = no; then
19237 for ac_lib in pthread; do
19238 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19239 cat >conftest.$ac_ext <<_ACEOF
19242 cat confdefs.h >>conftest.$ac_ext
19243 cat >>conftest.$ac_ext <<_ACEOF
19244 /* end confdefs.h. */
19246 /* Override any gcc2 internal prototype to avoid an error. */
19250 /* We use char because int might match the return type of a gcc2
19251 builtin and then its argument prototype would still apply. */
19252 char pthread_mutex_lock ();
19256 pthread_mutex_lock ();
19261 rm -f conftest.$ac_objext conftest$ac_exeext
19262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19263 (eval $ac_link) 2>conftest.er1
19265 grep -v '^ *+' conftest.er1 >conftest.err
19267 cat conftest.err >&5
19268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269 (exit $ac_status); } &&
19270 { ac_try='test -z "$ac_c_werror_flag"
19271 || test ! -s conftest.err'
19272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19273 (eval $ac_try) 2>&5
19275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276 (exit $ac_status); }; } &&
19277 { ac_try='test -s conftest$ac_exeext'
19278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19279 (eval $ac_try) 2>&5
19281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282 (exit $ac_status); }; }; then
19283 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
19286 echo "$as_me: failed program was:" >&5
19287 sed 's/^/| /' conftest.$ac_ext >&5
19290 rm -f conftest.err conftest.$ac_objext \
19291 conftest$ac_exeext conftest.$ac_ext
19294 LIBS=$ac_func_search_save_LIBS
19296 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
19297 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
19298 if test "$ac_cv_search_pthread_mutex_lock" != no; then
19299 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
19300 HAVE_PTHREAD_MUTEX_LOCK=1
19302 HAVE_PTHREAD_MUTEX_LOCK=0
19307 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19308 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19309 if test "${ac_cv_header_stdc+set}" = set; then
19310 echo $ECHO_N "(cached) $ECHO_C" >&6
19312 cat >conftest.$ac_ext <<_ACEOF
19315 cat confdefs.h >>conftest.$ac_ext
19316 cat >>conftest.$ac_ext <<_ACEOF
19317 /* end confdefs.h. */
19318 #include <stdlib.h>
19319 #include <stdarg.h>
19320 #include <string.h>
19331 rm -f conftest.$ac_objext
19332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19333 (eval $ac_compile) 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); } &&
19340 { ac_try='test -z "$ac_c_werror_flag"
19341 || test ! -s conftest.err'
19342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19343 (eval $ac_try) 2>&5
19345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346 (exit $ac_status); }; } &&
19347 { ac_try='test -s conftest.$ac_objext'
19348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19349 (eval $ac_try) 2>&5
19351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352 (exit $ac_status); }; }; then
19353 ac_cv_header_stdc=yes
19355 echo "$as_me: failed program was:" >&5
19356 sed 's/^/| /' conftest.$ac_ext >&5
19358 ac_cv_header_stdc=no
19360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19362 if test $ac_cv_header_stdc = yes; then
19363 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19364 cat >conftest.$ac_ext <<_ACEOF
19367 cat confdefs.h >>conftest.$ac_ext
19368 cat >>conftest.$ac_ext <<_ACEOF
19369 /* end confdefs.h. */
19370 #include <string.h>
19373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19374 $EGREP "memchr" >/dev/null 2>&1; then
19377 ac_cv_header_stdc=no
19383 if test $ac_cv_header_stdc = yes; then
19384 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19385 cat >conftest.$ac_ext <<_ACEOF
19388 cat confdefs.h >>conftest.$ac_ext
19389 cat >>conftest.$ac_ext <<_ACEOF
19390 /* end confdefs.h. */
19391 #include <stdlib.h>
19394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19395 $EGREP "free" >/dev/null 2>&1; then
19398 ac_cv_header_stdc=no
19404 if test $ac_cv_header_stdc = yes; then
19405 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19406 if test "$cross_compiling" = yes; then
19409 cat >conftest.$ac_ext <<_ACEOF
19412 cat confdefs.h >>conftest.$ac_ext
19413 cat >>conftest.$ac_ext <<_ACEOF
19414 /* end confdefs.h. */
19416 #if ((' ' & 0x0FF) == 0x020)
19417 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19418 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19420 # define ISLOWER(c) \
19421 (('a' <= (c) && (c) <= 'i') \
19422 || ('j' <= (c) && (c) <= 'r') \
19423 || ('s' <= (c) && (c) <= 'z'))
19424 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19427 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19432 for (i = 0; i < 256; i++)
19433 if (XOR (islower (i), ISLOWER (i))
19434 || toupper (i) != TOUPPER (i))
19439 rm -f conftest$ac_exeext
19440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19441 (eval $ac_link) 2>&5
19443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19446 (eval $ac_try) 2>&5
19448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449 (exit $ac_status); }; }; then
19452 echo "$as_me: program exited with status $ac_status" >&5
19453 echo "$as_me: failed program was:" >&5
19454 sed 's/^/| /' conftest.$ac_ext >&5
19456 ( exit $ac_status )
19457 ac_cv_header_stdc=no
19459 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19463 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19464 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19465 if test $ac_cv_header_stdc = yes; then
19467 cat >>confdefs.h <<\_ACEOF
19468 #define STDC_HEADERS 1
19473 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19474 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19475 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19476 echo $ECHO_N "(cached) $ECHO_C" >&6
19478 cat >conftest.$ac_ext <<_ACEOF
19481 cat confdefs.h >>conftest.$ac_ext
19482 cat >>conftest.$ac_ext <<_ACEOF
19483 /* end confdefs.h. */
19484 #include <sys/types.h>
19485 #include <sys/wait.h>
19486 #ifndef WEXITSTATUS
19487 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19490 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19498 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19503 rm -f conftest.$ac_objext
19504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19505 (eval $ac_compile) 2>conftest.er1
19507 grep -v '^ *+' conftest.er1 >conftest.err
19509 cat conftest.err >&5
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); } &&
19512 { ac_try='test -z "$ac_c_werror_flag"
19513 || test ! -s conftest.err'
19514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19515 (eval $ac_try) 2>&5
19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 (exit $ac_status); }; } &&
19519 { ac_try='test -s conftest.$ac_objext'
19520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19521 (eval $ac_try) 2>&5
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); }; }; then
19525 ac_cv_header_sys_wait_h=yes
19527 echo "$as_me: failed program was:" >&5
19528 sed 's/^/| /' conftest.$ac_ext >&5
19530 ac_cv_header_sys_wait_h=no
19532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19534 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19535 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19536 if test $ac_cv_header_sys_wait_h = yes; then
19538 cat >>confdefs.h <<\_ACEOF
19539 #define HAVE_SYS_WAIT_H 1
19556 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
19558 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19560 echo "$as_me:$LINENO: checking for $ac_header" >&5
19561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19563 echo $ECHO_N "(cached) $ECHO_C" >&6
19565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19566 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19568 # Is the header compilable?
19569 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19570 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19571 cat >conftest.$ac_ext <<_ACEOF
19574 cat confdefs.h >>conftest.$ac_ext
19575 cat >>conftest.$ac_ext <<_ACEOF
19576 /* end confdefs.h. */
19577 $ac_includes_default
19578 #include <$ac_header>
19580 rm -f conftest.$ac_objext
19581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19582 (eval $ac_compile) 2>conftest.er1
19584 grep -v '^ *+' conftest.er1 >conftest.err
19586 cat conftest.err >&5
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); } &&
19589 { ac_try='test -z "$ac_c_werror_flag"
19590 || test ! -s conftest.err'
19591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19592 (eval $ac_try) 2>&5
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); }; } &&
19596 { ac_try='test -s conftest.$ac_objext'
19597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19598 (eval $ac_try) 2>&5
19600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601 (exit $ac_status); }; }; then
19602 ac_header_compiler=yes
19604 echo "$as_me: failed program was:" >&5
19605 sed 's/^/| /' conftest.$ac_ext >&5
19607 ac_header_compiler=no
19609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19610 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19611 echo "${ECHO_T}$ac_header_compiler" >&6
19613 # Is the header present?
19614 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19615 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19616 cat >conftest.$ac_ext <<_ACEOF
19619 cat confdefs.h >>conftest.$ac_ext
19620 cat >>conftest.$ac_ext <<_ACEOF
19621 /* end confdefs.h. */
19622 #include <$ac_header>
19624 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19625 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19627 grep -v '^ *+' conftest.er1 >conftest.err
19629 cat conftest.err >&5
19630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631 (exit $ac_status); } >/dev/null; then
19632 if test -s conftest.err; then
19633 ac_cpp_err=$ac_c_preproc_warn_flag
19634 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19641 if test -z "$ac_cpp_err"; then
19642 ac_header_preproc=yes
19644 echo "$as_me: failed program was:" >&5
19645 sed 's/^/| /' conftest.$ac_ext >&5
19647 ac_header_preproc=no
19649 rm -f conftest.err conftest.$ac_ext
19650 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19651 echo "${ECHO_T}$ac_header_preproc" >&6
19653 # So? What about this header?
19654 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19656 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19657 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19659 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19660 ac_header_preproc=yes
19663 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19664 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19665 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19666 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19667 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19668 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19669 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19670 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19672 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19673 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19674 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19677 ## ----------------------------------- ##
19678 ## Report this to llvmbugs@cs.uiuc.edu ##
19679 ## ----------------------------------- ##
19682 sed "s/^/$as_me: WARNING: /" >&2
19685 echo "$as_me:$LINENO: checking for $ac_header" >&5
19686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19688 echo $ECHO_N "(cached) $ECHO_C" >&6
19690 eval "$as_ac_Header=\$ac_header_preproc"
19692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19693 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19696 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19697 cat >>confdefs.h <<_ACEOF
19698 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19706 if test "${ac_cv_header_sys_types_h+set}" = set; then
19707 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19708 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19709 if test "${ac_cv_header_sys_types_h+set}" = set; then
19710 echo $ECHO_N "(cached) $ECHO_C" >&6
19712 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19713 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19715 # Is the header compilable?
19716 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
19717 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
19718 cat >conftest.$ac_ext <<_ACEOF
19721 cat confdefs.h >>conftest.$ac_ext
19722 cat >>conftest.$ac_ext <<_ACEOF
19723 /* end confdefs.h. */
19724 $ac_includes_default
19725 #include <sys/types.h>
19727 rm -f conftest.$ac_objext
19728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19729 (eval $ac_compile) 2>conftest.er1
19731 grep -v '^ *+' conftest.er1 >conftest.err
19733 cat conftest.err >&5
19734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); } &&
19736 { ac_try='test -z "$ac_c_werror_flag"
19737 || test ! -s conftest.err'
19738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19739 (eval $ac_try) 2>&5
19741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742 (exit $ac_status); }; } &&
19743 { ac_try='test -s conftest.$ac_objext'
19744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19745 (eval $ac_try) 2>&5
19747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748 (exit $ac_status); }; }; then
19749 ac_header_compiler=yes
19751 echo "$as_me: failed program was:" >&5
19752 sed 's/^/| /' conftest.$ac_ext >&5
19754 ac_header_compiler=no
19756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19757 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19758 echo "${ECHO_T}$ac_header_compiler" >&6
19760 # Is the header present?
19761 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
19762 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
19763 cat >conftest.$ac_ext <<_ACEOF
19766 cat confdefs.h >>conftest.$ac_ext
19767 cat >>conftest.$ac_ext <<_ACEOF
19768 /* end confdefs.h. */
19769 #include <sys/types.h>
19771 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19772 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19774 grep -v '^ *+' conftest.er1 >conftest.err
19776 cat conftest.err >&5
19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); } >/dev/null; then
19779 if test -s conftest.err; then
19780 ac_cpp_err=$ac_c_preproc_warn_flag
19781 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19788 if test -z "$ac_cpp_err"; then
19789 ac_header_preproc=yes
19791 echo "$as_me: failed program was:" >&5
19792 sed 's/^/| /' conftest.$ac_ext >&5
19794 ac_header_preproc=no
19796 rm -f conftest.err conftest.$ac_ext
19797 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19798 echo "${ECHO_T}$ac_header_preproc" >&6
19800 # So? What about this header?
19801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19803 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
19804 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19805 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
19806 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
19807 ac_header_preproc=yes
19810 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
19811 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
19812 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
19813 echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
19814 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
19815 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
19816 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
19817 echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
19818 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19819 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19820 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
19821 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
19824 ## ----------------------------------- ##
19825 ## Report this to llvmbugs@cs.uiuc.edu ##
19826 ## ----------------------------------- ##
19829 sed "s/^/$as_me: WARNING: /" >&2
19832 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19833 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19834 if test "${ac_cv_header_sys_types_h+set}" = set; then
19835 echo $ECHO_N "(cached) $ECHO_C" >&6
19837 ac_cv_header_sys_types_h=$ac_header_preproc
19839 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19840 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19843 if test $ac_cv_header_sys_types_h = yes; then
19844 INCLUDE_SYS_TYPES_H='#include <sys/types.h>'
19846 INCLUDE_SYS_TYPES_H=''
19851 if test "${ac_cv_header_inttypes_h+set}" = set; then
19852 echo "$as_me:$LINENO: checking for inttypes.h" >&5
19853 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19854 if test "${ac_cv_header_inttypes_h+set}" = set; then
19855 echo $ECHO_N "(cached) $ECHO_C" >&6
19857 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19858 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19860 # Is the header compilable?
19861 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
19862 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
19863 cat >conftest.$ac_ext <<_ACEOF
19866 cat confdefs.h >>conftest.$ac_ext
19867 cat >>conftest.$ac_ext <<_ACEOF
19868 /* end confdefs.h. */
19869 $ac_includes_default
19870 #include <inttypes.h>
19872 rm -f conftest.$ac_objext
19873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19874 (eval $ac_compile) 2>conftest.er1
19876 grep -v '^ *+' conftest.er1 >conftest.err
19878 cat conftest.err >&5
19879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880 (exit $ac_status); } &&
19881 { ac_try='test -z "$ac_c_werror_flag"
19882 || test ! -s conftest.err'
19883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19884 (eval $ac_try) 2>&5
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); }; } &&
19888 { ac_try='test -s conftest.$ac_objext'
19889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19890 (eval $ac_try) 2>&5
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); }; }; then
19894 ac_header_compiler=yes
19896 echo "$as_me: failed program was:" >&5
19897 sed 's/^/| /' conftest.$ac_ext >&5
19899 ac_header_compiler=no
19901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19902 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19903 echo "${ECHO_T}$ac_header_compiler" >&6
19905 # Is the header present?
19906 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
19907 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
19908 cat >conftest.$ac_ext <<_ACEOF
19911 cat confdefs.h >>conftest.$ac_ext
19912 cat >>conftest.$ac_ext <<_ACEOF
19913 /* end confdefs.h. */
19914 #include <inttypes.h>
19916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19919 grep -v '^ *+' conftest.er1 >conftest.err
19921 cat conftest.err >&5
19922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923 (exit $ac_status); } >/dev/null; then
19924 if test -s conftest.err; then
19925 ac_cpp_err=$ac_c_preproc_warn_flag
19926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19933 if test -z "$ac_cpp_err"; then
19934 ac_header_preproc=yes
19936 echo "$as_me: failed program was:" >&5
19937 sed 's/^/| /' conftest.$ac_ext >&5
19939 ac_header_preproc=no
19941 rm -f conftest.err conftest.$ac_ext
19942 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19943 echo "${ECHO_T}$ac_header_preproc" >&6
19945 # So? What about this header?
19946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19948 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
19949 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19950 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
19951 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
19952 ac_header_preproc=yes
19955 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
19956 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
19957 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
19958 echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
19959 { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
19960 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
19961 { echo "$as_me:$LINENO: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&5
19962 echo "$as_me: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&2;}
19963 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19964 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
19965 { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
19966 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
19969 ## ----------------------------------- ##
19970 ## Report this to llvmbugs@cs.uiuc.edu ##
19971 ## ----------------------------------- ##
19974 sed "s/^/$as_me: WARNING: /" >&2
19977 echo "$as_me:$LINENO: checking for inttypes.h" >&5
19978 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19979 if test "${ac_cv_header_inttypes_h+set}" = set; then
19980 echo $ECHO_N "(cached) $ECHO_C" >&6
19982 ac_cv_header_inttypes_h=$ac_header_preproc
19984 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19985 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19988 if test $ac_cv_header_inttypes_h = yes; then
19989 INCLUDE_INTTYPES_H='#include <inttypes.h>'
19991 INCLUDE_INTTYPES_H=''
19996 if test "${ac_cv_header_stdint_h+set}" = set; then
19997 echo "$as_me:$LINENO: checking for stdint.h" >&5
19998 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
19999 if test "${ac_cv_header_stdint_h+set}" = set; then
20000 echo $ECHO_N "(cached) $ECHO_C" >&6
20002 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20003 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20005 # Is the header compilable?
20006 echo "$as_me:$LINENO: checking stdint.h usability" >&5
20007 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
20008 cat >conftest.$ac_ext <<_ACEOF
20011 cat confdefs.h >>conftest.$ac_ext
20012 cat >>conftest.$ac_ext <<_ACEOF
20013 /* end confdefs.h. */
20014 $ac_includes_default
20015 #include <stdint.h>
20017 rm -f conftest.$ac_objext
20018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20019 (eval $ac_compile) 2>conftest.er1
20021 grep -v '^ *+' conftest.er1 >conftest.err
20023 cat conftest.err >&5
20024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20025 (exit $ac_status); } &&
20026 { ac_try='test -z "$ac_c_werror_flag"
20027 || test ! -s conftest.err'
20028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20029 (eval $ac_try) 2>&5
20031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032 (exit $ac_status); }; } &&
20033 { ac_try='test -s conftest.$ac_objext'
20034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20035 (eval $ac_try) 2>&5
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); }; }; then
20039 ac_header_compiler=yes
20041 echo "$as_me: failed program was:" >&5
20042 sed 's/^/| /' conftest.$ac_ext >&5
20044 ac_header_compiler=no
20046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20047 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20048 echo "${ECHO_T}$ac_header_compiler" >&6
20050 # Is the header present?
20051 echo "$as_me:$LINENO: checking stdint.h presence" >&5
20052 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
20053 cat >conftest.$ac_ext <<_ACEOF
20056 cat confdefs.h >>conftest.$ac_ext
20057 cat >>conftest.$ac_ext <<_ACEOF
20058 /* end confdefs.h. */
20059 #include <stdint.h>
20061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20062 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20064 grep -v '^ *+' conftest.er1 >conftest.err
20066 cat conftest.err >&5
20067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20068 (exit $ac_status); } >/dev/null; then
20069 if test -s conftest.err; then
20070 ac_cpp_err=$ac_c_preproc_warn_flag
20071 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20078 if test -z "$ac_cpp_err"; then
20079 ac_header_preproc=yes
20081 echo "$as_me: failed program was:" >&5
20082 sed 's/^/| /' conftest.$ac_ext >&5
20084 ac_header_preproc=no
20086 rm -f conftest.err conftest.$ac_ext
20087 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20088 echo "${ECHO_T}$ac_header_preproc" >&6
20090 # So? What about this header?
20091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20093 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20094 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20095 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20096 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20097 ac_header_preproc=yes
20100 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20101 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
20102 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
20103 echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
20104 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20105 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20106 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
20107 echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
20108 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20109 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
20110 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20111 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
20114 ## ----------------------------------- ##
20115 ## Report this to llvmbugs@cs.uiuc.edu ##
20116 ## ----------------------------------- ##
20119 sed "s/^/$as_me: WARNING: /" >&2
20122 echo "$as_me:$LINENO: checking for stdint.h" >&5
20123 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20124 if test "${ac_cv_header_stdint_h+set}" = set; then
20125 echo $ECHO_N "(cached) $ECHO_C" >&6
20127 ac_cv_header_stdint_h=$ac_header_preproc
20129 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20130 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20133 if test $ac_cv_header_stdint_h = yes; then
20134 INCLUDE_STDINT_H='#include <stdint.h>'
20136 INCLUDE_STDINT_H=''
20143 echo "$as_me:$LINENO: checking for pid_t" >&5
20144 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20145 if test "${ac_cv_type_pid_t+set}" = set; then
20146 echo $ECHO_N "(cached) $ECHO_C" >&6
20148 cat >conftest.$ac_ext <<_ACEOF
20151 cat confdefs.h >>conftest.$ac_ext
20152 cat >>conftest.$ac_ext <<_ACEOF
20153 /* end confdefs.h. */
20154 $ac_includes_default
20160 if (sizeof (pid_t))
20166 rm -f conftest.$ac_objext
20167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20168 (eval $ac_compile) 2>conftest.er1
20170 grep -v '^ *+' conftest.er1 >conftest.err
20172 cat conftest.err >&5
20173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174 (exit $ac_status); } &&
20175 { ac_try='test -z "$ac_c_werror_flag"
20176 || test ! -s conftest.err'
20177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20178 (eval $ac_try) 2>&5
20180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181 (exit $ac_status); }; } &&
20182 { ac_try='test -s conftest.$ac_objext'
20183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20184 (eval $ac_try) 2>&5
20186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187 (exit $ac_status); }; }; then
20188 ac_cv_type_pid_t=yes
20190 echo "$as_me: failed program was:" >&5
20191 sed 's/^/| /' conftest.$ac_ext >&5
20193 ac_cv_type_pid_t=no
20195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20197 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20198 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20199 if test $ac_cv_type_pid_t = yes; then
20203 cat >>confdefs.h <<_ACEOF
20209 echo "$as_me:$LINENO: checking for size_t" >&5
20210 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20211 if test "${ac_cv_type_size_t+set}" = set; then
20212 echo $ECHO_N "(cached) $ECHO_C" >&6
20214 cat >conftest.$ac_ext <<_ACEOF
20217 cat confdefs.h >>conftest.$ac_ext
20218 cat >>conftest.$ac_ext <<_ACEOF
20219 /* end confdefs.h. */
20220 $ac_includes_default
20226 if (sizeof (size_t))
20232 rm -f conftest.$ac_objext
20233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20234 (eval $ac_compile) 2>conftest.er1
20236 grep -v '^ *+' conftest.er1 >conftest.err
20238 cat conftest.err >&5
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); } &&
20241 { ac_try='test -z "$ac_c_werror_flag"
20242 || test ! -s conftest.err'
20243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20244 (eval $ac_try) 2>&5
20246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247 (exit $ac_status); }; } &&
20248 { ac_try='test -s conftest.$ac_objext'
20249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20250 (eval $ac_try) 2>&5
20252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253 (exit $ac_status); }; }; then
20254 ac_cv_type_size_t=yes
20256 echo "$as_me: failed program was:" >&5
20257 sed 's/^/| /' conftest.$ac_ext >&5
20259 ac_cv_type_size_t=no
20261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20263 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20264 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20265 if test $ac_cv_type_size_t = yes; then
20269 cat >>confdefs.h <<_ACEOF
20270 #define size_t unsigned
20275 echo "$as_me:$LINENO: checking for int64_t" >&5
20276 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20277 if test "${ac_cv_type_int64_t+set}" = set; then
20278 echo $ECHO_N "(cached) $ECHO_C" >&6
20280 cat >conftest.$ac_ext <<_ACEOF
20283 cat confdefs.h >>conftest.$ac_ext
20284 cat >>conftest.$ac_ext <<_ACEOF
20285 /* end confdefs.h. */
20286 $ac_includes_default
20292 if (sizeof (int64_t))
20298 rm -f conftest.$ac_objext
20299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20300 (eval $ac_compile) 2>conftest.er1
20302 grep -v '^ *+' conftest.er1 >conftest.err
20304 cat conftest.err >&5
20305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306 (exit $ac_status); } &&
20307 { ac_try='test -z "$ac_c_werror_flag"
20308 || test ! -s conftest.err'
20309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20310 (eval $ac_try) 2>&5
20312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313 (exit $ac_status); }; } &&
20314 { ac_try='test -s conftest.$ac_objext'
20315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20316 (eval $ac_try) 2>&5
20318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319 (exit $ac_status); }; }; then
20320 ac_cv_type_int64_t=yes
20322 echo "$as_me: failed program was:" >&5
20323 sed 's/^/| /' conftest.$ac_ext >&5
20325 ac_cv_type_int64_t=no
20327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20329 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20330 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20331 if test $ac_cv_type_int64_t = yes; then
20333 cat >>confdefs.h <<_ACEOF
20334 #define HAVE_INT64_T 1
20339 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20340 echo "$as_me: error: Type int64_t required but not found" >&2;}
20341 { (exit 1); exit 1; }; }
20344 echo "$as_me:$LINENO: checking for uint64_t" >&5
20345 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20346 if test "${ac_cv_type_uint64_t+set}" = set; then
20347 echo $ECHO_N "(cached) $ECHO_C" >&6
20349 cat >conftest.$ac_ext <<_ACEOF
20352 cat confdefs.h >>conftest.$ac_ext
20353 cat >>conftest.$ac_ext <<_ACEOF
20354 /* end confdefs.h. */
20355 $ac_includes_default
20359 if ((uint64_t *) 0)
20361 if (sizeof (uint64_t))
20367 rm -f conftest.$ac_objext
20368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20369 (eval $ac_compile) 2>conftest.er1
20371 grep -v '^ *+' conftest.er1 >conftest.err
20373 cat conftest.err >&5
20374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375 (exit $ac_status); } &&
20376 { ac_try='test -z "$ac_c_werror_flag"
20377 || test ! -s conftest.err'
20378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20379 (eval $ac_try) 2>&5
20381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382 (exit $ac_status); }; } &&
20383 { ac_try='test -s conftest.$ac_objext'
20384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20385 (eval $ac_try) 2>&5
20387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388 (exit $ac_status); }; }; then
20389 ac_cv_type_uint64_t=yes
20391 echo "$as_me: failed program was:" >&5
20392 sed 's/^/| /' conftest.$ac_ext >&5
20394 ac_cv_type_uint64_t=no
20396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20398 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20399 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20400 if test $ac_cv_type_uint64_t = yes; then
20402 cat >>confdefs.h <<_ACEOF
20403 #define HAVE_UINT64_T 1
20408 echo "$as_me:$LINENO: checking for u_int64_t" >&5
20409 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
20410 if test "${ac_cv_type_u_int64_t+set}" = set; then
20411 echo $ECHO_N "(cached) $ECHO_C" >&6
20413 cat >conftest.$ac_ext <<_ACEOF
20416 cat confdefs.h >>conftest.$ac_ext
20417 cat >>conftest.$ac_ext <<_ACEOF
20418 /* end confdefs.h. */
20419 $ac_includes_default
20423 if ((u_int64_t *) 0)
20425 if (sizeof (u_int64_t))
20431 rm -f conftest.$ac_objext
20432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20433 (eval $ac_compile) 2>conftest.er1
20435 grep -v '^ *+' conftest.er1 >conftest.err
20437 cat conftest.err >&5
20438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439 (exit $ac_status); } &&
20440 { ac_try='test -z "$ac_c_werror_flag"
20441 || test ! -s conftest.err'
20442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20443 (eval $ac_try) 2>&5
20445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446 (exit $ac_status); }; } &&
20447 { ac_try='test -s conftest.$ac_objext'
20448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20449 (eval $ac_try) 2>&5
20451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452 (exit $ac_status); }; }; then
20453 ac_cv_type_u_int64_t=yes
20455 echo "$as_me: failed program was:" >&5
20456 sed 's/^/| /' conftest.$ac_ext >&5
20458 ac_cv_type_u_int64_t=no
20460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20462 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
20463 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
20464 if test $ac_cv_type_u_int64_t = yes; then
20466 cat >>confdefs.h <<_ACEOF
20467 #define HAVE_U_INT64_T 1
20472 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
20473 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
20474 { (exit 1); exit 1; }; }
20479 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20480 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20481 if test "${ac_cv_header_time+set}" = set; then
20482 echo $ECHO_N "(cached) $ECHO_C" >&6
20484 cat >conftest.$ac_ext <<_ACEOF
20487 cat confdefs.h >>conftest.$ac_ext
20488 cat >>conftest.$ac_ext <<_ACEOF
20489 /* end confdefs.h. */
20490 #include <sys/types.h>
20491 #include <sys/time.h>
20497 if ((struct tm *) 0)
20503 rm -f conftest.$ac_objext
20504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20505 (eval $ac_compile) 2>conftest.er1
20507 grep -v '^ *+' conftest.er1 >conftest.err
20509 cat conftest.err >&5
20510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511 (exit $ac_status); } &&
20512 { ac_try='test -z "$ac_c_werror_flag"
20513 || test ! -s conftest.err'
20514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20515 (eval $ac_try) 2>&5
20517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518 (exit $ac_status); }; } &&
20519 { ac_try='test -s conftest.$ac_objext'
20520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20521 (eval $ac_try) 2>&5
20523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524 (exit $ac_status); }; }; then
20525 ac_cv_header_time=yes
20527 echo "$as_me: failed program was:" >&5
20528 sed 's/^/| /' conftest.$ac_ext >&5
20530 ac_cv_header_time=no
20532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20534 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20535 echo "${ECHO_T}$ac_cv_header_time" >&6
20536 if test $ac_cv_header_time = yes; then
20538 cat >>confdefs.h <<\_ACEOF
20539 #define TIME_WITH_SYS_TIME 1
20544 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20545 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20546 if test "${ac_cv_struct_tm+set}" = set; then
20547 echo $ECHO_N "(cached) $ECHO_C" >&6
20549 cat >conftest.$ac_ext <<_ACEOF
20552 cat confdefs.h >>conftest.$ac_ext
20553 cat >>conftest.$ac_ext <<_ACEOF
20554 /* end confdefs.h. */
20555 #include <sys/types.h>
20561 struct tm *tp; tp->tm_sec;
20566 rm -f conftest.$ac_objext
20567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20568 (eval $ac_compile) 2>conftest.er1
20570 grep -v '^ *+' conftest.er1 >conftest.err
20572 cat conftest.err >&5
20573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574 (exit $ac_status); } &&
20575 { ac_try='test -z "$ac_c_werror_flag"
20576 || test ! -s conftest.err'
20577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20578 (eval $ac_try) 2>&5
20580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20581 (exit $ac_status); }; } &&
20582 { ac_try='test -s conftest.$ac_objext'
20583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20584 (eval $ac_try) 2>&5
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 (exit $ac_status); }; }; then
20588 ac_cv_struct_tm=time.h
20590 echo "$as_me: failed program was:" >&5
20591 sed 's/^/| /' conftest.$ac_ext >&5
20593 ac_cv_struct_tm=sys/time.h
20595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20597 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20598 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20599 if test $ac_cv_struct_tm = sys/time.h; then
20601 cat >>confdefs.h <<\_ACEOF
20602 #define TM_IN_SYS_TIME 1
20609 echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
20610 echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
20614 ac_cpp='$CPP $CPPFLAGS'
20615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20619 if test "$cross_compiling" = yes; then
20620 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20621 See \`config.log' for more details." >&5
20622 echo "$as_me: error: cannot run test program while cross compiling
20623 See \`config.log' for more details." >&2;}
20624 { (exit 1); exit 1; }; }
20626 cat >conftest.$ac_ext <<_ACEOF
20629 cat confdefs.h >>conftest.$ac_ext
20630 cat >>conftest.$ac_ext <<_ACEOF
20631 /* end confdefs.h. */
20633 #include <stdlib.h>
20638 volatile double A, B;
20642 sprintf(Buffer, "%a", A);
20646 if (A != 0x1.999999999999ap-4)
20653 rm -f conftest$ac_exeext
20654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20655 (eval $ac_link) 2>&5
20657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20658 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20660 (eval $ac_try) 2>&5
20662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663 (exit $ac_status); }; }; then
20666 echo "$as_me: program exited with status $ac_status" >&5
20667 echo "$as_me: failed program was:" >&5
20668 sed 's/^/| /' conftest.$ac_ext >&5
20670 ( exit $ac_status )
20673 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20676 ac_cpp='$CPP $CPPFLAGS'
20677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20681 echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
20682 echo "${ECHO_T}$ac_c_printf_a" >&6
20683 if test "$ac_c_printf_a" = "yes"; then
20685 cat >>confdefs.h <<\_ACEOF
20686 #define HAVE_PRINTF_A 1
20692 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20693 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20694 if test "${ac_cv_c_bigendian+set}" = set; then
20695 echo $ECHO_N "(cached) $ECHO_C" >&6
20697 # See if sys/param.h defines the BYTE_ORDER macro.
20698 cat >conftest.$ac_ext <<_ACEOF
20701 cat confdefs.h >>conftest.$ac_ext
20702 cat >>conftest.$ac_ext <<_ACEOF
20703 /* end confdefs.h. */
20704 #include <sys/types.h>
20705 #include <sys/param.h>
20710 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20711 bogus endian macros
20718 rm -f conftest.$ac_objext
20719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20720 (eval $ac_compile) 2>conftest.er1
20722 grep -v '^ *+' conftest.er1 >conftest.err
20724 cat conftest.err >&5
20725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726 (exit $ac_status); } &&
20727 { ac_try='test -z "$ac_c_werror_flag"
20728 || test ! -s conftest.err'
20729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20730 (eval $ac_try) 2>&5
20732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733 (exit $ac_status); }; } &&
20734 { ac_try='test -s conftest.$ac_objext'
20735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20736 (eval $ac_try) 2>&5
20738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739 (exit $ac_status); }; }; then
20740 # It does; now see whether it defined to BIG_ENDIAN or not.
20741 cat >conftest.$ac_ext <<_ACEOF
20744 cat confdefs.h >>conftest.$ac_ext
20745 cat >>conftest.$ac_ext <<_ACEOF
20746 /* end confdefs.h. */
20747 #include <sys/types.h>
20748 #include <sys/param.h>
20753 #if BYTE_ORDER != BIG_ENDIAN
20761 rm -f conftest.$ac_objext
20762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20763 (eval $ac_compile) 2>conftest.er1
20765 grep -v '^ *+' conftest.er1 >conftest.err
20767 cat conftest.err >&5
20768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769 (exit $ac_status); } &&
20770 { ac_try='test -z "$ac_c_werror_flag"
20771 || test ! -s conftest.err'
20772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20773 (eval $ac_try) 2>&5
20775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776 (exit $ac_status); }; } &&
20777 { ac_try='test -s conftest.$ac_objext'
20778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20779 (eval $ac_try) 2>&5
20781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782 (exit $ac_status); }; }; then
20783 ac_cv_c_bigendian=yes
20785 echo "$as_me: failed program was:" >&5
20786 sed 's/^/| /' conftest.$ac_ext >&5
20788 ac_cv_c_bigendian=no
20790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20792 echo "$as_me: failed program was:" >&5
20793 sed 's/^/| /' conftest.$ac_ext >&5
20795 # It does not; compile a test program.
20796 if test "$cross_compiling" = yes; then
20797 # try to guess the endianness by grepping values into an object file
20798 ac_cv_c_bigendian=unknown
20799 cat >conftest.$ac_ext <<_ACEOF
20802 cat confdefs.h >>conftest.$ac_ext
20803 cat >>conftest.$ac_ext <<_ACEOF
20804 /* end confdefs.h. */
20805 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20806 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20807 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20808 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20809 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20810 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20814 _ascii (); _ebcdic ();
20819 rm -f conftest.$ac_objext
20820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20821 (eval $ac_compile) 2>conftest.er1
20823 grep -v '^ *+' conftest.er1 >conftest.err
20825 cat conftest.err >&5
20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); } &&
20828 { ac_try='test -z "$ac_c_werror_flag"
20829 || test ! -s conftest.err'
20830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20831 (eval $ac_try) 2>&5
20833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20834 (exit $ac_status); }; } &&
20835 { ac_try='test -s conftest.$ac_objext'
20836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20837 (eval $ac_try) 2>&5
20839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20840 (exit $ac_status); }; }; then
20841 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20842 ac_cv_c_bigendian=yes
20844 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20845 if test "$ac_cv_c_bigendian" = unknown; then
20846 ac_cv_c_bigendian=no
20848 # finding both strings is unlikely to happen, but who knows?
20849 ac_cv_c_bigendian=unknown
20853 echo "$as_me: failed program was:" >&5
20854 sed 's/^/| /' conftest.$ac_ext >&5
20857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20859 cat >conftest.$ac_ext <<_ACEOF
20862 cat confdefs.h >>conftest.$ac_ext
20863 cat >>conftest.$ac_ext <<_ACEOF
20864 /* end confdefs.h. */
20868 /* Are we little or big endian? From Harbison&Steele. */
20872 char c[sizeof (long)];
20875 exit (u.c[sizeof (long) - 1] == 1);
20878 rm -f conftest$ac_exeext
20879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20880 (eval $ac_link) 2>&5
20882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20885 (eval $ac_try) 2>&5
20887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888 (exit $ac_status); }; }; then
20889 ac_cv_c_bigendian=no
20891 echo "$as_me: program exited with status $ac_status" >&5
20892 echo "$as_me: failed program was:" >&5
20893 sed 's/^/| /' conftest.$ac_ext >&5
20895 ( exit $ac_status )
20896 ac_cv_c_bigendian=yes
20898 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20903 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20904 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20905 case $ac_cv_c_bigendian in
20913 { { echo "$as_me:$LINENO: error: unknown endianness
20914 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20915 echo "$as_me: error: unknown endianness
20916 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20917 { (exit 1); exit 1; }; } ;;
20921 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20922 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20923 if test "${ac_cv_cxx_namespaces+set}" = set; then
20924 echo $ECHO_N "(cached) $ECHO_C" >&6
20929 ac_cpp='$CXXCPP $CPPFLAGS'
20930 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20931 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20932 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20934 cat >conftest.$ac_ext <<_ACEOF
20937 cat confdefs.h >>conftest.$ac_ext
20938 cat >>conftest.$ac_ext <<_ACEOF
20939 /* end confdefs.h. */
20940 namespace Outer { namespace Inner { int i = 0; }}
20944 using namespace Outer::Inner; return i;
20949 rm -f conftest.$ac_objext
20950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20951 (eval $ac_compile) 2>conftest.er1
20953 grep -v '^ *+' conftest.er1 >conftest.err
20955 cat conftest.err >&5
20956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957 (exit $ac_status); } &&
20958 { ac_try='test -z "$ac_cxx_werror_flag"
20959 || test ! -s conftest.err'
20960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20961 (eval $ac_try) 2>&5
20963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20964 (exit $ac_status); }; } &&
20965 { ac_try='test -s conftest.$ac_objext'
20966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20967 (eval $ac_try) 2>&5
20969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970 (exit $ac_status); }; }; then
20971 ac_cv_cxx_namespaces=yes
20973 echo "$as_me: failed program was:" >&5
20974 sed 's/^/| /' conftest.$ac_ext >&5
20976 ac_cv_cxx_namespaces=no
20978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20980 ac_cpp='$CPP $CPPFLAGS'
20981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20987 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20988 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20989 if test "$ac_cv_cxx_namespaces" = yes; then
20991 cat >>confdefs.h <<\_ACEOF
20992 #define HAVE_NAMESPACES
20997 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20998 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20999 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
21000 echo $ECHO_N "(cached) $ECHO_C" >&6
21006 ac_cpp='$CXXCPP $CPPFLAGS'
21007 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21008 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21009 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21011 cat >conftest.$ac_ext <<_ACEOF
21014 cat confdefs.h >>conftest.$ac_ext
21015 cat >>conftest.$ac_ext <<_ACEOF
21016 /* end confdefs.h. */
21017 #include <ext/hash_map>
21018 #ifdef HAVE_NAMESPACES
21019 using namespace std;
21024 hash_map<int, int> t;
21029 rm -f conftest.$ac_objext
21030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21031 (eval $ac_compile) 2>conftest.er1
21033 grep -v '^ *+' conftest.er1 >conftest.err
21035 cat conftest.err >&5
21036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21037 (exit $ac_status); } &&
21038 { ac_try='test -z "$ac_cxx_werror_flag"
21039 || test ! -s conftest.err'
21040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21041 (eval $ac_try) 2>&5
21043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044 (exit $ac_status); }; } &&
21045 { ac_try='test -s conftest.$ac_objext'
21046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21047 (eval $ac_try) 2>&5
21049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050 (exit $ac_status); }; }; then
21051 ac_cv_cxx_have_std_ext_hash_map=yes
21053 echo "$as_me: failed program was:" >&5
21054 sed 's/^/| /' conftest.$ac_ext >&5
21056 ac_cv_cxx_have_std_ext_hash_map=no
21058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21060 ac_cpp='$CPP $CPPFLAGS'
21061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21066 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
21067 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
21068 HAVE_STD_EXT_HASH_MAP=0
21069 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
21071 HAVE_STD_EXT_HASH_MAP=1
21074 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
21075 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
21076 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
21077 echo $ECHO_N "(cached) $ECHO_C" >&6
21083 ac_cpp='$CXXCPP $CPPFLAGS'
21084 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21085 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21086 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21088 cat >conftest.$ac_ext <<_ACEOF
21091 cat confdefs.h >>conftest.$ac_ext
21092 cat >>conftest.$ac_ext <<_ACEOF
21093 /* end confdefs.h. */
21094 #include <ext/hash_map>
21095 #ifdef HAVE_NAMESPACES
21096 using namespace __gnu_cxx;
21101 hash_map<int,int> t;
21106 rm -f conftest.$ac_objext
21107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21108 (eval $ac_compile) 2>conftest.er1
21110 grep -v '^ *+' conftest.er1 >conftest.err
21112 cat conftest.err >&5
21113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114 (exit $ac_status); } &&
21115 { ac_try='test -z "$ac_cxx_werror_flag"
21116 || test ! -s conftest.err'
21117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21118 (eval $ac_try) 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_cxx_have_gnu_ext_hash_map=yes
21130 echo "$as_me: failed program was:" >&5
21131 sed 's/^/| /' conftest.$ac_ext >&5
21133 ac_cv_cxx_have_gnu_ext_hash_map=no
21135 rm -f conftest.err 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_cxx_have_gnu_ext_hash_map" >&5
21144 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
21145 HAVE_GNU_EXT_HASH_MAP=0
21146 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
21148 HAVE_GNU_EXT_HASH_MAP=1
21151 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
21152 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
21153 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
21154 echo $ECHO_N "(cached) $ECHO_C" >&6
21160 ac_cpp='$CXXCPP $CPPFLAGS'
21161 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21162 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21163 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21165 cat >conftest.$ac_ext <<_ACEOF
21168 cat confdefs.h >>conftest.$ac_ext
21169 cat >>conftest.$ac_ext <<_ACEOF
21170 /* end confdefs.h. */
21171 #include <hash_map>
21175 hash_map<int,int> t;
21180 rm -f conftest.$ac_objext
21181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21182 (eval $ac_compile) 2>conftest.er1
21184 grep -v '^ *+' conftest.er1 >conftest.err
21186 cat conftest.err >&5
21187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21188 (exit $ac_status); } &&
21189 { ac_try='test -z "$ac_cxx_werror_flag"
21190 || test ! -s conftest.err'
21191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21192 (eval $ac_try) 2>&5
21194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21195 (exit $ac_status); }; } &&
21196 { ac_try='test -s conftest.$ac_objext'
21197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21198 (eval $ac_try) 2>&5
21200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201 (exit $ac_status); }; }; then
21202 ac_cv_cxx_have_global_hash_map=yes
21204 echo "$as_me: failed program was:" >&5
21205 sed 's/^/| /' conftest.$ac_ext >&5
21207 ac_cv_cxx_have_global_hash_map=no
21209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21211 ac_cpp='$CPP $CPPFLAGS'
21212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21217 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
21218 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
21219 HAVE_GLOBAL_HASH_MAP=0
21220 if test "$ac_cv_cxx_have_global_hash_map" = yes
21222 HAVE_GLOBAL_HASH_MAP=1
21225 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
21226 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
21227 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
21228 echo $ECHO_N "(cached) $ECHO_C" >&6
21234 ac_cpp='$CXXCPP $CPPFLAGS'
21235 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21236 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21237 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21239 cat >conftest.$ac_ext <<_ACEOF
21242 cat confdefs.h >>conftest.$ac_ext
21243 cat >>conftest.$ac_ext <<_ACEOF
21244 /* end confdefs.h. */
21245 #include <ext/hash_set>
21246 #ifdef HAVE_NAMESPACES
21247 using namespace std;
21257 rm -f conftest.$ac_objext
21258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21259 (eval $ac_compile) 2>conftest.er1
21261 grep -v '^ *+' conftest.er1 >conftest.err
21263 cat conftest.err >&5
21264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265 (exit $ac_status); } &&
21266 { ac_try='test -z "$ac_cxx_werror_flag"
21267 || test ! -s conftest.err'
21268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21269 (eval $ac_try) 2>&5
21271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21272 (exit $ac_status); }; } &&
21273 { ac_try='test -s conftest.$ac_objext'
21274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21275 (eval $ac_try) 2>&5
21277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278 (exit $ac_status); }; }; then
21279 ac_cv_cxx_have_std_ext_hash_set=yes
21281 echo "$as_me: failed program was:" >&5
21282 sed 's/^/| /' conftest.$ac_ext >&5
21284 ac_cv_cxx_have_std_ext_hash_set=no
21286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21288 ac_cpp='$CPP $CPPFLAGS'
21289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21294 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
21295 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
21296 HAVE_STD_EXT_HASH_SET=0
21297 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
21299 HAVE_STD_EXT_HASH_SET=1
21302 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
21303 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
21304 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
21305 echo $ECHO_N "(cached) $ECHO_C" >&6
21311 ac_cpp='$CXXCPP $CPPFLAGS'
21312 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21313 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21314 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21316 cat >conftest.$ac_ext <<_ACEOF
21319 cat confdefs.h >>conftest.$ac_ext
21320 cat >>conftest.$ac_ext <<_ACEOF
21321 /* end confdefs.h. */
21322 #include <ext/hash_set>
21323 #ifdef HAVE_NAMESPACES
21324 using namespace __gnu_cxx;
21334 rm -f conftest.$ac_objext
21335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21336 (eval $ac_compile) 2>conftest.er1
21338 grep -v '^ *+' conftest.er1 >conftest.err
21340 cat conftest.err >&5
21341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342 (exit $ac_status); } &&
21343 { ac_try='test -z "$ac_cxx_werror_flag"
21344 || test ! -s conftest.err'
21345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21346 (eval $ac_try) 2>&5
21348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21349 (exit $ac_status); }; } &&
21350 { ac_try='test -s conftest.$ac_objext'
21351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21352 (eval $ac_try) 2>&5
21354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355 (exit $ac_status); }; }; then
21356 ac_cv_cxx_have_gnu_ext_hash_set=yes
21358 echo "$as_me: failed program was:" >&5
21359 sed 's/^/| /' conftest.$ac_ext >&5
21361 ac_cv_cxx_have_gnu_ext_hash_set=no
21363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21365 ac_cpp='$CPP $CPPFLAGS'
21366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21371 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
21372 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
21373 HAVE_GNU_EXT_HASH_SET=0
21374 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
21376 HAVE_GNU_EXT_HASH_SET=1
21379 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
21380 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
21381 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
21382 echo $ECHO_N "(cached) $ECHO_C" >&6
21388 ac_cpp='$CXXCPP $CPPFLAGS'
21389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21393 cat >conftest.$ac_ext <<_ACEOF
21396 cat confdefs.h >>conftest.$ac_ext
21397 cat >>conftest.$ac_ext <<_ACEOF
21398 /* end confdefs.h. */
21399 #include <hash_set>
21403 hash_set<int> t; return 0;
21408 rm -f conftest.$ac_objext
21409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21410 (eval $ac_compile) 2>conftest.er1
21412 grep -v '^ *+' conftest.er1 >conftest.err
21414 cat conftest.err >&5
21415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416 (exit $ac_status); } &&
21417 { ac_try='test -z "$ac_cxx_werror_flag"
21418 || test ! -s conftest.err'
21419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21420 (eval $ac_try) 2>&5
21422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21423 (exit $ac_status); }; } &&
21424 { ac_try='test -s conftest.$ac_objext'
21425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21426 (eval $ac_try) 2>&5
21428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429 (exit $ac_status); }; }; then
21430 ac_cv_cxx_have_global_hash_set=yes
21432 echo "$as_me: failed program was:" >&5
21433 sed 's/^/| /' conftest.$ac_ext >&5
21435 ac_cv_cxx_have_global_hash_set=no
21437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21439 ac_cpp='$CPP $CPPFLAGS'
21440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21445 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
21446 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
21447 HAVE_GLOBAL_HASH_SET=0
21448 if test "$ac_cv_cxx_have_global_hash_set" = yes
21450 HAVE_GLOBAL_HASH_SET=1
21453 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21454 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21455 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21456 echo $ECHO_N "(cached) $ECHO_C" >&6
21462 ac_cpp='$CXXCPP $CPPFLAGS'
21463 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21464 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21465 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21467 cat >conftest.$ac_ext <<_ACEOF
21470 cat confdefs.h >>conftest.$ac_ext
21471 cat >>conftest.$ac_ext <<_ACEOF
21472 /* end confdefs.h. */
21473 #include <iterator>
21474 #ifdef HAVE_NAMESPACES
21475 using namespace std;
21480 iterator<int,int,int> t; return 0;
21485 rm -f conftest.$ac_objext
21486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21487 (eval $ac_compile) 2>conftest.er1
21489 grep -v '^ *+' conftest.er1 >conftest.err
21491 cat conftest.err >&5
21492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493 (exit $ac_status); } &&
21494 { ac_try='test -z "$ac_cxx_werror_flag"
21495 || test ! -s conftest.err'
21496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21497 (eval $ac_try) 2>&5
21499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21500 (exit $ac_status); }; } &&
21501 { ac_try='test -s conftest.$ac_objext'
21502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21503 (eval $ac_try) 2>&5
21505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21506 (exit $ac_status); }; }; then
21507 ac_cv_cxx_have_std_iterator=yes
21509 echo "$as_me: failed program was:" >&5
21510 sed 's/^/| /' conftest.$ac_ext >&5
21512 ac_cv_cxx_have_std_iterator=no
21514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21516 ac_cpp='$CPP $CPPFLAGS'
21517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21523 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21524 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21525 HAVE_STD_ITERATOR=0
21526 if test "$ac_cv_cxx_have_std_iterator" = yes
21528 HAVE_STD_ITERATOR=1
21531 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21532 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21533 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21534 echo $ECHO_N "(cached) $ECHO_C" >&6
21540 ac_cpp='$CXXCPP $CPPFLAGS'
21541 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21542 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21543 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21545 cat >conftest.$ac_ext <<_ACEOF
21548 cat confdefs.h >>conftest.$ac_ext
21549 cat >>conftest.$ac_ext <<_ACEOF
21550 /* end confdefs.h. */
21551 #include <iterator>
21552 #ifdef HAVE_NAMESPACES
21553 using namespace std;
21558 bidirectional_iterator<int,int> t; return 0;
21563 rm -f conftest.$ac_objext
21564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21565 (eval $ac_compile) 2>conftest.er1
21567 grep -v '^ *+' conftest.er1 >conftest.err
21569 cat conftest.err >&5
21570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21571 (exit $ac_status); } &&
21572 { ac_try='test -z "$ac_cxx_werror_flag"
21573 || test ! -s conftest.err'
21574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21575 (eval $ac_try) 2>&5
21577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578 (exit $ac_status); }; } &&
21579 { ac_try='test -s conftest.$ac_objext'
21580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21581 (eval $ac_try) 2>&5
21583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21584 (exit $ac_status); }; }; then
21585 ac_cv_cxx_have_bi_iterator=yes
21587 echo "$as_me: failed program was:" >&5
21588 sed 's/^/| /' conftest.$ac_ext >&5
21590 ac_cv_cxx_have_bi_iterator=no
21592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21594 ac_cpp='$CPP $CPPFLAGS'
21595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21601 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21602 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21604 if test "$ac_cv_cxx_have_bi_iterator" = yes
21609 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21610 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21611 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21612 echo $ECHO_N "(cached) $ECHO_C" >&6
21618 ac_cpp='$CXXCPP $CPPFLAGS'
21619 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21620 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21621 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21623 cat >conftest.$ac_ext <<_ACEOF
21626 cat confdefs.h >>conftest.$ac_ext
21627 cat >>conftest.$ac_ext <<_ACEOF
21628 /* end confdefs.h. */
21629 #include <iterator>
21630 #ifdef HAVE_NAMESPACES
21631 using namespace std;
21636 forward_iterator<int,int> t; return 0;
21641 rm -f conftest.$ac_objext
21642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21643 (eval $ac_compile) 2>conftest.er1
21645 grep -v '^ *+' conftest.er1 >conftest.err
21647 cat conftest.err >&5
21648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649 (exit $ac_status); } &&
21650 { ac_try='test -z "$ac_cxx_werror_flag"
21651 || test ! -s conftest.err'
21652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21653 (eval $ac_try) 2>&5
21655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656 (exit $ac_status); }; } &&
21657 { ac_try='test -s conftest.$ac_objext'
21658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21659 (eval $ac_try) 2>&5
21661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662 (exit $ac_status); }; }; then
21663 ac_cv_cxx_have_fwd_iterator=yes
21665 echo "$as_me: failed program was:" >&5
21666 sed 's/^/| /' conftest.$ac_ext >&5
21668 ac_cv_cxx_have_fwd_iterator=no
21670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21672 ac_cpp='$CPP $CPPFLAGS'
21673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21679 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21680 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21681 HAVE_FWD_ITERATOR=0
21682 if test "$ac_cv_cxx_have_fwd_iterator" = yes
21684 HAVE_FWD_ITERATOR=1
21689 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
21690 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
21691 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
21692 echo $ECHO_N "(cached) $ECHO_C" >&6
21695 ac_cpp='$CXXCPP $CPPFLAGS'
21696 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21697 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21698 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21700 cat >conftest.$ac_ext <<_ACEOF
21703 cat confdefs.h >>conftest.$ac_ext
21704 cat >>conftest.$ac_ext <<_ACEOF
21705 /* end confdefs.h. */
21707 int foo(float f) {return isnan(f);}
21709 rm -f conftest.$ac_objext
21710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21711 (eval $ac_compile) 2>conftest.er1
21713 grep -v '^ *+' conftest.er1 >conftest.err
21715 cat conftest.err >&5
21716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21717 (exit $ac_status); } &&
21718 { ac_try='test -z "$ac_cxx_werror_flag"
21719 || test ! -s conftest.err'
21720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21721 (eval $ac_try) 2>&5
21723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724 (exit $ac_status); }; } &&
21725 { ac_try='test -s conftest.$ac_objext'
21726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21727 (eval $ac_try) 2>&5
21729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730 (exit $ac_status); }; }; then
21731 ac_cv_func_isnan_in_math_h=yes
21733 echo "$as_me: failed program was:" >&5
21734 sed 's/^/| /' conftest.$ac_ext >&5
21736 ac_cv_func_isnan_in_math_h=no
21738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21740 ac_cpp='$CPP $CPPFLAGS'
21741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21746 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
21747 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
21748 if test "$ac_cv_func_isnan_in_math_h" = "yes"
21751 cat >>confdefs.h <<\_ACEOF
21752 #define HAVE_ISNAN_IN_MATH_H 1
21756 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
21757 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
21758 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
21759 echo $ECHO_N "(cached) $ECHO_C" >&6
21762 ac_cpp='$CXXCPP $CPPFLAGS'
21763 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21764 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21765 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21767 cat >conftest.$ac_ext <<_ACEOF
21770 cat confdefs.h >>conftest.$ac_ext
21771 cat >>conftest.$ac_ext <<_ACEOF
21772 /* end confdefs.h. */
21774 int foo(float f) {return isnan(f);}
21776 rm -f conftest.$ac_objext
21777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21778 (eval $ac_compile) 2>conftest.er1
21780 grep -v '^ *+' conftest.er1 >conftest.err
21782 cat conftest.err >&5
21783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21784 (exit $ac_status); } &&
21785 { ac_try='test -z "$ac_cxx_werror_flag"
21786 || test ! -s conftest.err'
21787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21788 (eval $ac_try) 2>&5
21790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791 (exit $ac_status); }; } &&
21792 { ac_try='test -s conftest.$ac_objext'
21793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21794 (eval $ac_try) 2>&5
21796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797 (exit $ac_status); }; }; then
21798 ac_cv_func_isnan_in_cmath=yes
21800 echo "$as_me: failed program was:" >&5
21801 sed 's/^/| /' conftest.$ac_ext >&5
21803 ac_cv_func_isnan_in_cmath=no
21805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21807 ac_cpp='$CPP $CPPFLAGS'
21808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21813 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
21814 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
21815 if test "$ac_cv_func_isnan_in_cmath" = "yes"
21818 cat >>confdefs.h <<\_ACEOF
21819 #define HAVE_ISNAN_IN_CMATH 1
21823 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
21824 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
21825 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
21826 echo $ECHO_N "(cached) $ECHO_C" >&6
21829 ac_cpp='$CXXCPP $CPPFLAGS'
21830 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21831 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21832 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21834 cat >conftest.$ac_ext <<_ACEOF
21837 cat confdefs.h >>conftest.$ac_ext
21838 cat >>conftest.$ac_ext <<_ACEOF
21839 /* end confdefs.h. */
21841 using std::isnan; int foo(float f) {return isnan(f);}
21843 rm -f conftest.$ac_objext
21844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21845 (eval $ac_compile) 2>conftest.er1
21847 grep -v '^ *+' conftest.er1 >conftest.err
21849 cat conftest.err >&5
21850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21851 (exit $ac_status); } &&
21852 { ac_try='test -z "$ac_cxx_werror_flag"
21853 || test ! -s conftest.err'
21854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21855 (eval $ac_try) 2>&5
21857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21858 (exit $ac_status); }; } &&
21859 { ac_try='test -s conftest.$ac_objext'
21860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21861 (eval $ac_try) 2>&5
21863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21864 (exit $ac_status); }; }; then
21865 ac_cv_func_std_isnan_in_cmath=yes
21867 echo "$as_me: failed program was:" >&5
21868 sed 's/^/| /' conftest.$ac_ext >&5
21870 ac_cv_func_std_isnan_in_cmath=no
21872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21874 ac_cpp='$CPP $CPPFLAGS'
21875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21880 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21881 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
21882 if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
21885 cat >>confdefs.h <<\_ACEOF
21886 #define HAVE_STD_ISNAN_IN_CMATH 1
21892 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21893 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
21894 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21895 echo $ECHO_N "(cached) $ECHO_C" >&6
21898 ac_cpp='$CXXCPP $CPPFLAGS'
21899 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21900 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21901 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21903 cat >conftest.$ac_ext <<_ACEOF
21906 cat confdefs.h >>conftest.$ac_ext
21907 cat >>conftest.$ac_ext <<_ACEOF
21908 /* end confdefs.h. */
21910 int foo(float f) {return isinf(f);}
21912 rm -f conftest.$ac_objext
21913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21914 (eval $ac_compile) 2>conftest.er1
21916 grep -v '^ *+' conftest.er1 >conftest.err
21918 cat conftest.err >&5
21919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21920 (exit $ac_status); } &&
21921 { ac_try='test -z "$ac_cxx_werror_flag"
21922 || test ! -s conftest.err'
21923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21924 (eval $ac_try) 2>&5
21926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927 (exit $ac_status); }; } &&
21928 { ac_try='test -s conftest.$ac_objext'
21929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21930 (eval $ac_try) 2>&5
21932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21933 (exit $ac_status); }; }; then
21934 ac_cv_func_isinf_in_math_h=yes
21936 echo "$as_me: failed program was:" >&5
21937 sed 's/^/| /' conftest.$ac_ext >&5
21939 ac_cv_func_isinf_in_math_h=no
21941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21943 ac_cpp='$CPP $CPPFLAGS'
21944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21949 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21950 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
21951 if test "$ac_cv_func_isinf_in_math_h" = "yes"
21954 cat >>confdefs.h <<\_ACEOF
21955 #define HAVE_ISINF_IN_MATH_H 1
21959 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21960 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
21961 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21962 echo $ECHO_N "(cached) $ECHO_C" >&6
21965 ac_cpp='$CXXCPP $CPPFLAGS'
21966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21970 cat >conftest.$ac_ext <<_ACEOF
21973 cat confdefs.h >>conftest.$ac_ext
21974 cat >>conftest.$ac_ext <<_ACEOF
21975 /* end confdefs.h. */
21977 int foo(float f) {return isinf(f);}
21979 rm -f conftest.$ac_objext
21980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21981 (eval $ac_compile) 2>conftest.er1
21983 grep -v '^ *+' conftest.er1 >conftest.err
21985 cat conftest.err >&5
21986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21987 (exit $ac_status); } &&
21988 { ac_try='test -z "$ac_cxx_werror_flag"
21989 || test ! -s conftest.err'
21990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21991 (eval $ac_try) 2>&5
21993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994 (exit $ac_status); }; } &&
21995 { ac_try='test -s conftest.$ac_objext'
21996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21997 (eval $ac_try) 2>&5
21999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000 (exit $ac_status); }; }; then
22001 ac_cv_func_isinf_in_cmath=yes
22003 echo "$as_me: failed program was:" >&5
22004 sed 's/^/| /' conftest.$ac_ext >&5
22006 ac_cv_func_isinf_in_cmath=no
22008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22010 ac_cpp='$CPP $CPPFLAGS'
22011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22016 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
22017 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
22018 if test "$ac_cv_func_isinf_in_cmath" = "yes"
22021 cat >>confdefs.h <<\_ACEOF
22022 #define HAVE_ISINF_IN_CMATH 1
22026 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
22027 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
22028 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
22029 echo $ECHO_N "(cached) $ECHO_C" >&6
22032 ac_cpp='$CXXCPP $CPPFLAGS'
22033 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22034 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22035 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22037 cat >conftest.$ac_ext <<_ACEOF
22040 cat confdefs.h >>conftest.$ac_ext
22041 cat >>conftest.$ac_ext <<_ACEOF
22042 /* end confdefs.h. */
22044 using std::isinf; int foo(float f) {return isinf(f);}
22046 rm -f conftest.$ac_objext
22047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22048 (eval $ac_compile) 2>conftest.er1
22050 grep -v '^ *+' conftest.er1 >conftest.err
22052 cat conftest.err >&5
22053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054 (exit $ac_status); } &&
22055 { ac_try='test -z "$ac_cxx_werror_flag"
22056 || test ! -s conftest.err'
22057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22058 (eval $ac_try) 2>&5
22060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22061 (exit $ac_status); }; } &&
22062 { ac_try='test -s conftest.$ac_objext'
22063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22064 (eval $ac_try) 2>&5
22066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067 (exit $ac_status); }; }; then
22068 ac_cv_func_std_isinf_in_cmath=yes
22070 echo "$as_me: failed program was:" >&5
22071 sed 's/^/| /' conftest.$ac_ext >&5
22073 ac_cv_func_std_isinf_in_cmath=no
22075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22077 ac_cpp='$CPP $CPPFLAGS'
22078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22083 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
22084 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
22085 if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
22088 cat >>confdefs.h <<\_ACEOF
22089 #define HAVE_STD_ISINF_IN_CMATH 1
22093 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
22094 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
22095 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
22096 echo $ECHO_N "(cached) $ECHO_C" >&6
22099 ac_cpp='$CXXCPP $CPPFLAGS'
22100 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22101 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22102 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22104 cat >conftest.$ac_ext <<_ACEOF
22107 cat confdefs.h >>conftest.$ac_ext
22108 cat >>conftest.$ac_ext <<_ACEOF
22109 /* end confdefs.h. */
22110 #include <ieeefp.h>
22111 int foo(float f) {return finite(f);}
22113 rm -f conftest.$ac_objext
22114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22115 (eval $ac_compile) 2>conftest.er1
22117 grep -v '^ *+' conftest.er1 >conftest.err
22119 cat conftest.err >&5
22120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121 (exit $ac_status); } &&
22122 { ac_try='test -z "$ac_cxx_werror_flag"
22123 || test ! -s conftest.err'
22124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22125 (eval $ac_try) 2>&5
22127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22128 (exit $ac_status); }; } &&
22129 { ac_try='test -s conftest.$ac_objext'
22130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22131 (eval $ac_try) 2>&5
22133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134 (exit $ac_status); }; }; then
22135 ac_cv_func_finite_in_ieeefp_h=yes
22137 echo "$as_me: failed program was:" >&5
22138 sed 's/^/| /' conftest.$ac_ext >&5
22140 ac_cv_func_finite_in_ieeefp_h=no
22142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22144 ac_cpp='$CPP $CPPFLAGS'
22145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22150 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
22151 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
22152 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
22155 cat >>confdefs.h <<\_ACEOF
22156 #define HAVE_FINITE_IN_IEEEFP_H 1
22162 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22163 # for constant arguments. Useless!
22164 echo "$as_me:$LINENO: checking for working alloca.h" >&5
22165 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
22166 if test "${ac_cv_working_alloca_h+set}" = set; then
22167 echo $ECHO_N "(cached) $ECHO_C" >&6
22169 cat >conftest.$ac_ext <<_ACEOF
22172 cat confdefs.h >>conftest.$ac_ext
22173 cat >>conftest.$ac_ext <<_ACEOF
22174 /* end confdefs.h. */
22175 #include <alloca.h>
22179 char *p = (char *) alloca (2 * sizeof (int));
22184 rm -f conftest.$ac_objext conftest$ac_exeext
22185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22186 (eval $ac_link) 2>conftest.er1
22188 grep -v '^ *+' conftest.er1 >conftest.err
22190 cat conftest.err >&5
22191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22192 (exit $ac_status); } &&
22193 { ac_try='test -z "$ac_c_werror_flag"
22194 || test ! -s conftest.err'
22195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22196 (eval $ac_try) 2>&5
22198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199 (exit $ac_status); }; } &&
22200 { ac_try='test -s conftest$ac_exeext'
22201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22202 (eval $ac_try) 2>&5
22204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22205 (exit $ac_status); }; }; then
22206 ac_cv_working_alloca_h=yes
22208 echo "$as_me: failed program was:" >&5
22209 sed 's/^/| /' conftest.$ac_ext >&5
22211 ac_cv_working_alloca_h=no
22213 rm -f conftest.err conftest.$ac_objext \
22214 conftest$ac_exeext conftest.$ac_ext
22216 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
22217 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
22218 if test $ac_cv_working_alloca_h = yes; then
22220 cat >>confdefs.h <<\_ACEOF
22221 #define HAVE_ALLOCA_H 1
22226 echo "$as_me:$LINENO: checking for alloca" >&5
22227 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
22228 if test "${ac_cv_func_alloca_works+set}" = set; then
22229 echo $ECHO_N "(cached) $ECHO_C" >&6
22231 cat >conftest.$ac_ext <<_ACEOF
22234 cat confdefs.h >>conftest.$ac_ext
22235 cat >>conftest.$ac_ext <<_ACEOF
22236 /* end confdefs.h. */
22238 # define alloca __builtin_alloca
22241 # include <malloc.h>
22242 # define alloca _alloca
22245 # include <alloca.h>
22250 # ifndef alloca /* predefined by HP cc +Olibcalls */
22261 char *p = (char *) alloca (1);
22266 rm -f conftest.$ac_objext conftest$ac_exeext
22267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22268 (eval $ac_link) 2>conftest.er1
22270 grep -v '^ *+' conftest.er1 >conftest.err
22272 cat conftest.err >&5
22273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22274 (exit $ac_status); } &&
22275 { ac_try='test -z "$ac_c_werror_flag"
22276 || test ! -s conftest.err'
22277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22278 (eval $ac_try) 2>&5
22280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281 (exit $ac_status); }; } &&
22282 { ac_try='test -s conftest$ac_exeext'
22283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22284 (eval $ac_try) 2>&5
22286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22287 (exit $ac_status); }; }; then
22288 ac_cv_func_alloca_works=yes
22290 echo "$as_me: failed program was:" >&5
22291 sed 's/^/| /' conftest.$ac_ext >&5
22293 ac_cv_func_alloca_works=no
22295 rm -f conftest.err conftest.$ac_objext \
22296 conftest$ac_exeext conftest.$ac_ext
22298 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22299 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
22301 if test $ac_cv_func_alloca_works = yes; then
22303 cat >>confdefs.h <<\_ACEOF
22304 #define HAVE_ALLOCA 1
22308 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22309 # that cause trouble. Some versions do not even contain alloca or
22310 # contain a buggy version. If you still want to use their alloca,
22311 # use ar to extract alloca.o from them instead of compiling alloca.c.
22313 ALLOCA=alloca.$ac_objext
22315 cat >>confdefs.h <<\_ACEOF
22320 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22321 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
22322 if test "${ac_cv_os_cray+set}" = set; then
22323 echo $ECHO_N "(cached) $ECHO_C" >&6
22325 cat >conftest.$ac_ext <<_ACEOF
22328 cat confdefs.h >>conftest.$ac_ext
22329 cat >>conftest.$ac_ext <<_ACEOF
22330 /* end confdefs.h. */
22331 #if defined(CRAY) && ! defined(CRAY2)
22338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22339 $EGREP "webecray" >/dev/null 2>&1; then
22347 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22348 echo "${ECHO_T}$ac_cv_os_cray" >&6
22349 if test $ac_cv_os_cray = yes; then
22350 for ac_func in _getb67 GETB67 getb67; do
22351 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22352 echo "$as_me:$LINENO: checking for $ac_func" >&5
22353 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22354 if eval "test \"\${$as_ac_var+set}\" = set"; then
22355 echo $ECHO_N "(cached) $ECHO_C" >&6
22357 cat >conftest.$ac_ext <<_ACEOF
22360 cat confdefs.h >>conftest.$ac_ext
22361 cat >>conftest.$ac_ext <<_ACEOF
22362 /* end confdefs.h. */
22363 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22364 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22365 #define $ac_func innocuous_$ac_func
22367 /* System header to define __stub macros and hopefully few prototypes,
22368 which can conflict with char $ac_func (); below.
22369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22370 <limits.h> exists even on freestanding compilers. */
22373 # include <limits.h>
22375 # include <assert.h>
22380 /* Override any gcc2 internal prototype to avoid an error. */
22385 /* We use char because int might match the return type of a gcc2
22386 builtin and then its argument prototype would still apply. */
22388 /* The GNU C library defines this for functions which it implements
22389 to always fail with ENOSYS. Some functions are actually named
22390 something starting with __ and the normal name is an alias. */
22391 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22394 char (*f) () = $ac_func;
22403 return f != $ac_func;
22408 rm -f conftest.$ac_objext conftest$ac_exeext
22409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22410 (eval $ac_link) 2>conftest.er1
22412 grep -v '^ *+' conftest.er1 >conftest.err
22414 cat conftest.err >&5
22415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22416 (exit $ac_status); } &&
22417 { ac_try='test -z "$ac_c_werror_flag"
22418 || test ! -s conftest.err'
22419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22420 (eval $ac_try) 2>&5
22422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22423 (exit $ac_status); }; } &&
22424 { ac_try='test -s conftest$ac_exeext'
22425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22426 (eval $ac_try) 2>&5
22428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22429 (exit $ac_status); }; }; then
22430 eval "$as_ac_var=yes"
22432 echo "$as_me: failed program was:" >&5
22433 sed 's/^/| /' conftest.$ac_ext >&5
22435 eval "$as_ac_var=no"
22437 rm -f conftest.err conftest.$ac_objext \
22438 conftest$ac_exeext conftest.$ac_ext
22440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22441 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22442 if test `eval echo '${'$as_ac_var'}'` = yes; then
22444 cat >>confdefs.h <<_ACEOF
22445 #define CRAY_STACKSEG_END $ac_func
22454 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22455 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
22456 if test "${ac_cv_c_stack_direction+set}" = set; then
22457 echo $ECHO_N "(cached) $ECHO_C" >&6
22459 if test "$cross_compiling" = yes; then
22460 ac_cv_c_stack_direction=0
22462 cat >conftest.$ac_ext <<_ACEOF
22465 cat confdefs.h >>conftest.$ac_ext
22466 cat >>conftest.$ac_ext <<_ACEOF
22467 /* end confdefs.h. */
22469 find_stack_direction ()
22471 static char *addr = 0;
22476 return find_stack_direction ();
22479 return (&dummy > addr) ? 1 : -1;
22485 exit (find_stack_direction () < 0);
22488 rm -f conftest$ac_exeext
22489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22490 (eval $ac_link) 2>&5
22492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22493 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22495 (eval $ac_try) 2>&5
22497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498 (exit $ac_status); }; }; then
22499 ac_cv_c_stack_direction=1
22501 echo "$as_me: program exited with status $ac_status" >&5
22502 echo "$as_me: failed program was:" >&5
22503 sed 's/^/| /' conftest.$ac_ext >&5
22505 ( exit $ac_status )
22506 ac_cv_c_stack_direction=-1
22508 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22511 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22512 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
22514 cat >>confdefs.h <<_ACEOF
22515 #define STACK_DIRECTION $ac_cv_c_stack_direction
22523 for ac_header in stdlib.h unistd.h
22525 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22527 echo "$as_me:$LINENO: checking for $ac_header" >&5
22528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22529 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22530 echo $ECHO_N "(cached) $ECHO_C" >&6
22532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22533 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22535 # Is the header compilable?
22536 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22537 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22538 cat >conftest.$ac_ext <<_ACEOF
22541 cat confdefs.h >>conftest.$ac_ext
22542 cat >>conftest.$ac_ext <<_ACEOF
22543 /* end confdefs.h. */
22544 $ac_includes_default
22545 #include <$ac_header>
22547 rm -f conftest.$ac_objext
22548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22549 (eval $ac_compile) 2>conftest.er1
22551 grep -v '^ *+' conftest.er1 >conftest.err
22553 cat conftest.err >&5
22554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22555 (exit $ac_status); } &&
22556 { ac_try='test -z "$ac_c_werror_flag"
22557 || test ! -s conftest.err'
22558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22559 (eval $ac_try) 2>&5
22561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22562 (exit $ac_status); }; } &&
22563 { ac_try='test -s conftest.$ac_objext'
22564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22565 (eval $ac_try) 2>&5
22567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22568 (exit $ac_status); }; }; then
22569 ac_header_compiler=yes
22571 echo "$as_me: failed program was:" >&5
22572 sed 's/^/| /' conftest.$ac_ext >&5
22574 ac_header_compiler=no
22576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22577 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22578 echo "${ECHO_T}$ac_header_compiler" >&6
22580 # Is the header present?
22581 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22582 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22583 cat >conftest.$ac_ext <<_ACEOF
22586 cat confdefs.h >>conftest.$ac_ext
22587 cat >>conftest.$ac_ext <<_ACEOF
22588 /* end confdefs.h. */
22589 #include <$ac_header>
22591 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22592 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22594 grep -v '^ *+' conftest.er1 >conftest.err
22596 cat conftest.err >&5
22597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22598 (exit $ac_status); } >/dev/null; then
22599 if test -s conftest.err; then
22600 ac_cpp_err=$ac_c_preproc_warn_flag
22601 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22608 if test -z "$ac_cpp_err"; then
22609 ac_header_preproc=yes
22611 echo "$as_me: failed program was:" >&5
22612 sed 's/^/| /' conftest.$ac_ext >&5
22614 ac_header_preproc=no
22616 rm -f conftest.err conftest.$ac_ext
22617 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22618 echo "${ECHO_T}$ac_header_preproc" >&6
22620 # So? What about this header?
22621 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22623 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22624 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22626 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22627 ac_header_preproc=yes
22630 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22631 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22632 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22633 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22634 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22635 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22636 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22637 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22638 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22639 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22640 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22641 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22644 ## ----------------------------------- ##
22645 ## Report this to llvmbugs@cs.uiuc.edu ##
22646 ## ----------------------------------- ##
22649 sed "s/^/$as_me: WARNING: /" >&2
22652 echo "$as_me:$LINENO: checking for $ac_header" >&5
22653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22655 echo $ECHO_N "(cached) $ECHO_C" >&6
22657 eval "$as_ac_Header=\$ac_header_preproc"
22659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22660 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22663 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22664 cat >>confdefs.h <<_ACEOF
22665 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22673 for ac_func in getpagesize
22675 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22676 echo "$as_me:$LINENO: checking for $ac_func" >&5
22677 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22678 if eval "test \"\${$as_ac_var+set}\" = set"; then
22679 echo $ECHO_N "(cached) $ECHO_C" >&6
22681 cat >conftest.$ac_ext <<_ACEOF
22684 cat confdefs.h >>conftest.$ac_ext
22685 cat >>conftest.$ac_ext <<_ACEOF
22686 /* end confdefs.h. */
22687 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22689 #define $ac_func innocuous_$ac_func
22691 /* System header to define __stub macros and hopefully few prototypes,
22692 which can conflict with char $ac_func (); below.
22693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22694 <limits.h> exists even on freestanding compilers. */
22697 # include <limits.h>
22699 # include <assert.h>
22704 /* Override any gcc2 internal prototype to avoid an error. */
22709 /* We use char because int might match the return type of a gcc2
22710 builtin and then its argument prototype would still apply. */
22712 /* The GNU C library defines this for functions which it implements
22713 to always fail with ENOSYS. Some functions are actually named
22714 something starting with __ and the normal name is an alias. */
22715 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22718 char (*f) () = $ac_func;
22727 return f != $ac_func;
22732 rm -f conftest.$ac_objext conftest$ac_exeext
22733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22734 (eval $ac_link) 2>conftest.er1
22736 grep -v '^ *+' conftest.er1 >conftest.err
22738 cat conftest.err >&5
22739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22740 (exit $ac_status); } &&
22741 { ac_try='test -z "$ac_c_werror_flag"
22742 || test ! -s conftest.err'
22743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22744 (eval $ac_try) 2>&5
22746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22747 (exit $ac_status); }; } &&
22748 { ac_try='test -s conftest$ac_exeext'
22749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22750 (eval $ac_try) 2>&5
22752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22753 (exit $ac_status); }; }; then
22754 eval "$as_ac_var=yes"
22756 echo "$as_me: failed program was:" >&5
22757 sed 's/^/| /' conftest.$ac_ext >&5
22759 eval "$as_ac_var=no"
22761 rm -f conftest.err conftest.$ac_objext \
22762 conftest$ac_exeext conftest.$ac_ext
22764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22765 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22766 if test `eval echo '${'$as_ac_var'}'` = yes; then
22767 cat >>confdefs.h <<_ACEOF
22768 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22774 echo "$as_me:$LINENO: checking for working mmap" >&5
22775 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22776 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22777 echo $ECHO_N "(cached) $ECHO_C" >&6
22779 if test "$cross_compiling" = yes; then
22780 ac_cv_func_mmap_fixed_mapped=no
22782 cat >conftest.$ac_ext <<_ACEOF
22785 cat confdefs.h >>conftest.$ac_ext
22786 cat >>conftest.$ac_ext <<_ACEOF
22787 /* end confdefs.h. */
22788 $ac_includes_default
22789 /* malloc might have been renamed as rpl_malloc. */
22792 /* Thanks to Mike Haertel and Jim Avera for this test.
22793 Here is a matrix of mmap possibilities:
22794 mmap private not fixed
22795 mmap private fixed at somewhere currently unmapped
22796 mmap private fixed at somewhere already mapped
22797 mmap shared not fixed
22798 mmap shared fixed at somewhere currently unmapped
22799 mmap shared fixed at somewhere already mapped
22800 For private mappings, we should verify that changes cannot be read()
22801 back from the file, nor mmap's back from the file at a different
22802 address. (There have been systems where private was not correctly
22803 implemented like the infamous i386 svr4.0, and systems where the
22804 VM page cache was not coherent with the file system buffer cache
22805 like early versions of FreeBSD and possibly contemporary NetBSD.)
22806 For shared mappings, we should conversely verify that changes get
22807 propagated back to all the places they're supposed to be.
22809 Grep wants private fixed already mapped.
22810 The main things grep needs to know about mmap are:
22811 * does it exist and is it safe to write into the mmap'd area
22812 * how to use it (BSD variants) */
22815 #include <sys/mman.h>
22817 #if !STDC_HEADERS && !HAVE_STDLIB_H
22821 /* This mess was copied from the GNU getpagesize.h. */
22822 #if !HAVE_GETPAGESIZE
22823 /* Assume that all systems that can run configure have sys/param.h. */
22824 # if !HAVE_SYS_PARAM_H
22825 # define HAVE_SYS_PARAM_H 1
22828 # ifdef _SC_PAGESIZE
22829 # define getpagesize() sysconf(_SC_PAGESIZE)
22830 # else /* no _SC_PAGESIZE */
22831 # if HAVE_SYS_PARAM_H
22832 # include <sys/param.h>
22833 # ifdef EXEC_PAGESIZE
22834 # define getpagesize() EXEC_PAGESIZE
22835 # else /* no EXEC_PAGESIZE */
22837 # define getpagesize() NBPG * CLSIZE
22840 # endif /* no CLSIZE */
22841 # else /* no NBPG */
22843 # define getpagesize() NBPC
22844 # else /* no NBPC */
22846 # define getpagesize() PAGESIZE
22847 # endif /* PAGESIZE */
22848 # endif /* no NBPC */
22849 # endif /* no NBPG */
22850 # endif /* no EXEC_PAGESIZE */
22851 # else /* no HAVE_SYS_PARAM_H */
22852 # define getpagesize() 8192 /* punt totally */
22853 # endif /* no HAVE_SYS_PARAM_H */
22854 # endif /* no _SC_PAGESIZE */
22856 #endif /* no HAVE_GETPAGESIZE */
22861 char *data, *data2, *data3;
22865 pagesize = getpagesize ();
22867 /* First, make a file with some known garbage in it. */
22868 data = (char *) malloc (pagesize);
22871 for (i = 0; i < pagesize; ++i)
22872 *(data + i) = rand ();
22874 fd = creat ("conftest.mmap", 0600);
22877 if (write (fd, data, pagesize) != pagesize)
22881 /* Next, try to mmap the file at a fixed address which already has
22882 something else allocated at it. If we can, also make sure that
22883 we see the same garbage. */
22884 fd = open ("conftest.mmap", O_RDWR);
22887 data2 = (char *) malloc (2 * pagesize);
22890 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
22891 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22892 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22894 for (i = 0; i < pagesize; ++i)
22895 if (*(data + i) != *(data2 + i))
22898 /* Finally, make sure that changes to the mapped area do not
22899 percolate back to the file as seen by read(). (This is a bug on
22900 some variants of i386 svr4.0.) */
22901 for (i = 0; i < pagesize; ++i)
22902 *(data2 + i) = *(data2 + i) + 1;
22903 data3 = (char *) malloc (pagesize);
22906 if (read (fd, data3, pagesize) != pagesize)
22908 for (i = 0; i < pagesize; ++i)
22909 if (*(data + i) != *(data3 + i))
22915 rm -f conftest$ac_exeext
22916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22917 (eval $ac_link) 2>&5
22919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22920 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22922 (eval $ac_try) 2>&5
22924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22925 (exit $ac_status); }; }; then
22926 ac_cv_func_mmap_fixed_mapped=yes
22928 echo "$as_me: program exited with status $ac_status" >&5
22929 echo "$as_me: failed program was:" >&5
22930 sed 's/^/| /' conftest.$ac_ext >&5
22932 ( exit $ac_status )
22933 ac_cv_func_mmap_fixed_mapped=no
22935 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22938 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22939 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22940 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22942 cat >>confdefs.h <<\_ACEOF
22943 #define HAVE_MMAP 1
22947 rm -f conftest.mmap
22949 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
22951 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
22952 echo "$as_me: WARNING: mmap() required but not found" >&2;}
22954 echo "$as_me:$LINENO: checking for mmap of files" >&5
22955 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22956 if test "${ac_cv_func_mmap_file+set}" = set; then
22957 echo $ECHO_N "(cached) $ECHO_C" >&6
22962 ac_cpp='$CPP $CPPFLAGS'
22963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22967 if test "$cross_compiling" = yes; then
22968 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22969 See \`config.log' for more details." >&5
22970 echo "$as_me: error: cannot run test program while cross compiling
22971 See \`config.log' for more details." >&2;}
22972 { (exit 1); exit 1; }; }
22974 cat >conftest.$ac_ext <<_ACEOF
22977 cat confdefs.h >>conftest.$ac_ext
22978 cat >>conftest.$ac_ext <<_ACEOF
22979 /* end confdefs.h. */
22981 #ifdef HAVE_SYS_TYPES_H
22982 #include <sys/types.h>
22985 #ifdef HAVE_SYS_MMAN_H
22986 #include <sys/mman.h>
22989 #ifdef HAVE_FCNTL_H
22995 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
22997 rm -f conftest$ac_exeext
22998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22999 (eval $ac_link) 2>&5
23001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23002 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23004 (eval $ac_try) 2>&5
23006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23007 (exit $ac_status); }; }; then
23008 ac_cv_func_mmap_file=yes
23010 echo "$as_me: program exited with status $ac_status" >&5
23011 echo "$as_me: failed program was:" >&5
23012 sed 's/^/| /' conftest.$ac_ext >&5
23014 ( exit $ac_status )
23015 ac_cv_func_mmap_file=no
23017 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23020 ac_cpp='$CPP $CPPFLAGS'
23021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23027 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
23028 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
23029 if test "$ac_cv_func_mmap_file" = yes; then
23031 cat >>confdefs.h <<\_ACEOF
23032 #define HAVE_MMAP_FILE
23039 if test "$ac_cv_func_mmap_file" = "no"
23041 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
23042 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
23044 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
23045 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
23046 if test "${ac_cv_header_mmap_anon+set}" = set; then
23047 echo $ECHO_N "(cached) $ECHO_C" >&6
23052 ac_cpp='$CPP $CPPFLAGS'
23053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23057 cat >conftest.$ac_ext <<_ACEOF
23060 cat confdefs.h >>conftest.$ac_ext
23061 cat >>conftest.$ac_ext <<_ACEOF
23062 /* end confdefs.h. */
23063 #include <sys/mman.h>
23064 #include <unistd.h>
23069 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
23074 rm -f conftest.$ac_objext
23075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23076 (eval $ac_compile) 2>conftest.er1
23078 grep -v '^ *+' conftest.er1 >conftest.err
23080 cat conftest.err >&5
23081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23082 (exit $ac_status); } &&
23083 { ac_try='test -z "$ac_c_werror_flag"
23084 || test ! -s conftest.err'
23085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23086 (eval $ac_try) 2>&5
23088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23089 (exit $ac_status); }; } &&
23090 { ac_try='test -s conftest.$ac_objext'
23091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23092 (eval $ac_try) 2>&5
23094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23095 (exit $ac_status); }; }; then
23096 ac_cv_header_mmap_anon=yes
23098 echo "$as_me: failed program was:" >&5
23099 sed 's/^/| /' conftest.$ac_ext >&5
23101 ac_cv_header_mmap_anon=no
23103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23105 ac_cpp='$CPP $CPPFLAGS'
23106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23112 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
23113 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
23114 if test "$ac_cv_header_mmap_anon" = yes; then
23116 cat >>confdefs.h <<\_ACEOF
23117 #define HAVE_MMAP_ANONYMOUS
23122 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23123 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23124 if test "${ac_cv_type_signal+set}" = set; then
23125 echo $ECHO_N "(cached) $ECHO_C" >&6
23127 cat >conftest.$ac_ext <<_ACEOF
23130 cat confdefs.h >>conftest.$ac_ext
23131 cat >>conftest.$ac_ext <<_ACEOF
23132 /* end confdefs.h. */
23133 #include <sys/types.h>
23134 #include <signal.h>
23139 extern "C" void (*signal (int, void (*)(int)))(int);
23141 void (*signal ()) ();
23152 rm -f conftest.$ac_objext
23153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23154 (eval $ac_compile) 2>conftest.er1
23156 grep -v '^ *+' conftest.er1 >conftest.err
23158 cat conftest.err >&5
23159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23160 (exit $ac_status); } &&
23161 { ac_try='test -z "$ac_c_werror_flag"
23162 || test ! -s conftest.err'
23163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23164 (eval $ac_try) 2>&5
23166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23167 (exit $ac_status); }; } &&
23168 { ac_try='test -s conftest.$ac_objext'
23169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23170 (eval $ac_try) 2>&5
23172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23173 (exit $ac_status); }; }; then
23174 ac_cv_type_signal=void
23176 echo "$as_me: failed program was:" >&5
23177 sed 's/^/| /' conftest.$ac_ext >&5
23179 ac_cv_type_signal=int
23181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23183 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23184 echo "${ECHO_T}$ac_cv_type_signal" >&6
23186 cat >>confdefs.h <<_ACEOF
23187 #define RETSIGTYPE $ac_cv_type_signal
23200 for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
23202 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23203 echo "$as_me:$LINENO: checking for $ac_func" >&5
23204 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23205 if eval "test \"\${$as_ac_var+set}\" = set"; then
23206 echo $ECHO_N "(cached) $ECHO_C" >&6
23208 cat >conftest.$ac_ext <<_ACEOF
23211 cat confdefs.h >>conftest.$ac_ext
23212 cat >>conftest.$ac_ext <<_ACEOF
23213 /* end confdefs.h. */
23214 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23215 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23216 #define $ac_func innocuous_$ac_func
23218 /* System header to define __stub macros and hopefully few prototypes,
23219 which can conflict with char $ac_func (); below.
23220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23221 <limits.h> exists even on freestanding compilers. */
23224 # include <limits.h>
23226 # include <assert.h>
23231 /* Override any gcc2 internal prototype to avoid an error. */
23236 /* We use char because int might match the return type of a gcc2
23237 builtin and then its argument prototype would still apply. */
23239 /* The GNU C library defines this for functions which it implements
23240 to always fail with ENOSYS. Some functions are actually named
23241 something starting with __ and the normal name is an alias. */
23242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23245 char (*f) () = $ac_func;
23254 return f != $ac_func;
23259 rm -f conftest.$ac_objext conftest$ac_exeext
23260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23261 (eval $ac_link) 2>conftest.er1
23263 grep -v '^ *+' conftest.er1 >conftest.err
23265 cat conftest.err >&5
23266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267 (exit $ac_status); } &&
23268 { ac_try='test -z "$ac_c_werror_flag"
23269 || test ! -s conftest.err'
23270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23271 (eval $ac_try) 2>&5
23273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23274 (exit $ac_status); }; } &&
23275 { ac_try='test -s conftest$ac_exeext'
23276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23277 (eval $ac_try) 2>&5
23279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280 (exit $ac_status); }; }; then
23281 eval "$as_ac_var=yes"
23283 echo "$as_me: failed program was:" >&5
23284 sed 's/^/| /' conftest.$ac_ext >&5
23286 eval "$as_ac_var=no"
23288 rm -f conftest.err conftest.$ac_objext \
23289 conftest$ac_exeext conftest.$ac_ext
23291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23292 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23293 if test `eval echo '${'$as_ac_var'}'` = yes; then
23294 cat >>confdefs.h <<_ACEOF
23295 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23301 echo "$as_me:$LINENO: checking for mprotect" >&5
23302 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
23303 if test "${ac_cv_func_mprotect+set}" = set; then
23304 echo $ECHO_N "(cached) $ECHO_C" >&6
23306 cat >conftest.$ac_ext <<_ACEOF
23309 cat confdefs.h >>conftest.$ac_ext
23310 cat >>conftest.$ac_ext <<_ACEOF
23311 /* end confdefs.h. */
23312 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
23313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23314 #define mprotect innocuous_mprotect
23316 /* System header to define __stub macros and hopefully few prototypes,
23317 which can conflict with char mprotect (); below.
23318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23319 <limits.h> exists even on freestanding compilers. */
23322 # include <limits.h>
23324 # include <assert.h>
23329 /* Override any gcc2 internal prototype to avoid an error. */
23334 /* We use char because int might match the return type of a gcc2
23335 builtin and then its argument prototype would still apply. */
23337 /* The GNU C library defines this for functions which it implements
23338 to always fail with ENOSYS. Some functions are actually named
23339 something starting with __ and the normal name is an alias. */
23340 #if defined (__stub_mprotect) || defined (__stub___mprotect)
23343 char (*f) () = mprotect;
23352 return f != mprotect;
23357 rm -f conftest.$ac_objext conftest$ac_exeext
23358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23359 (eval $ac_link) 2>conftest.er1
23361 grep -v '^ *+' conftest.er1 >conftest.err
23363 cat conftest.err >&5
23364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23365 (exit $ac_status); } &&
23366 { ac_try='test -z "$ac_c_werror_flag"
23367 || test ! -s conftest.err'
23368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23369 (eval $ac_try) 2>&5
23371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23372 (exit $ac_status); }; } &&
23373 { ac_try='test -s conftest$ac_exeext'
23374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23375 (eval $ac_try) 2>&5
23377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23378 (exit $ac_status); }; }; then
23379 ac_cv_func_mprotect=yes
23381 echo "$as_me: failed program was:" >&5
23382 sed 's/^/| /' conftest.$ac_ext >&5
23384 ac_cv_func_mprotect=no
23386 rm -f conftest.err conftest.$ac_objext \
23387 conftest$ac_exeext conftest.$ac_ext
23389 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
23390 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
23391 if test $ac_cv_func_mprotect = yes; then
23394 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
23395 echo "$as_me: error: Function mprotect() required but not found" >&2;}
23396 { (exit 1); exit 1; }; }
23401 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
23402 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
23406 ac_cpp='$CPP $CPPFLAGS'
23407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23411 oldcflags="$CFLAGS"
23412 CFLAGS="$CFLAGS -Wl,-R."
23413 cat >conftest.$ac_ext <<_ACEOF
23414 int main() { return 0; }
23416 rm -f conftest.$ac_objext conftest$ac_exeext
23417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23418 (eval $ac_link) 2>conftest.er1
23420 grep -v '^ *+' conftest.er1 >conftest.err
23422 cat conftest.err >&5
23423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23424 (exit $ac_status); } &&
23425 { ac_try='test -z "$ac_c_werror_flag"
23426 || test ! -s conftest.err'
23427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23428 (eval $ac_try) 2>&5
23430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23431 (exit $ac_status); }; } &&
23432 { ac_try='test -s conftest$ac_exeext'
23433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23434 (eval $ac_try) 2>&5
23436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23437 (exit $ac_status); }; }; then
23438 ac_cv_link_use_r=yes
23440 echo "$as_me: failed program was:" >&5
23441 sed 's/^/| /' conftest.$ac_ext >&5
23443 ac_cv_link_use_r=no
23445 rm -f conftest.err conftest.$ac_objext \
23446 conftest$ac_exeext conftest.$ac_ext
23447 CFLAGS="$oldcflags"
23449 ac_cpp='$CPP $CPPFLAGS'
23450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23454 echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
23455 echo "${ECHO_T}$ac_cv_link_use_r" >&6
23456 if test "$ac_cv_link_use_r" = yes
23459 cat >>confdefs.h <<\_ACEOF
23460 #define HAVE_LINK_R 1
23466 # Check whether --enable-optimized or --disable-optimized was given.
23467 if test "${enable_optimized+set}" = set; then
23468 enableval="$enable_optimized"
23473 if test ${enableval} = "no"
23478 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
23482 # Check whether --enable-jit or --disable-jit was given.
23483 if test "${enable_jit+set}" = set; then
23484 enableval="$enable_jit"
23489 if test ${enableval} = "no"
23496 JIT=TARGET_HAS_JIT=1
23500 JIT=TARGET_HAS_JIT=1
23511 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
23512 if test "${with_llvmgccdir+set}" = set; then
23513 withval="$with_llvmgccdir"
23514 LLVMGCCDIR=$withval
23517 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
23518 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
23520 if test -d "$LLVMGCCDIR"
23522 if test -x "$LLVMGCCDIR/bin/gcc"
23524 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
23528 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
23529 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
23530 if test "$LLVM_GCC_CHECK" = "no"
23534 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
23535 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
23537 if test -x "$LLVM_GCC_CHECK"
23539 cp /dev/null conftest.c
23540 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
23546 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
23547 LLVMCC1=$llvmcc1path
23549 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
23550 LLVMCC1PLUS=$llvmcc1pluspath
23553 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
23554 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
23555 if test "$LLVM_GCC_SANE" = "no"
23561 # Check whether --with-papi or --without-papi was given.
23562 if test "${with_papi+set}" = set; then
23563 withval="$with_papi"
23567 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
23571 echo "$as_me:$LINENO: checking for shared library suffix" >&5
23572 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
23573 eval "SHLIBEXT=$shrext"
23574 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
23575 echo "${ECHO_T}$SHLIBEXT" >&6
23579 cat >>confdefs.h <<_ACEOF
23580 #define SHLIBEXT "$SHLIBEXT"
23584 # Translate the various configuration directories and other basic
23585 # information into substitutions that will end up in config.h.in so
23586 # that these configured values can be hard-wired into a program.
23587 eval LLVM_PREFIX="${prefix}";
23588 eval LLVM_BINDIR="${prefix}/bin";
23589 eval LLVM_LIBDIR="${prefix}/lib";
23590 eval LLVM_DATADIR="${prefix}/data";
23591 eval LLVM_DOCSDIR="${prefix}/docs";
23592 eval LLVM_ETCDIR="${prefix}/etc";
23593 eval LLVM_INCLUDEDIR="${prefix}/include";
23594 eval LLVM_INFODIR="${prefix}/info";
23595 eval LLVM_MANDIR="${prefix}/man";
23596 LLVM_CONFIGTIME=`date`
23608 cat >>confdefs.h <<_ACEOF
23609 #define LLVM_PREFIX "$LLVM_PREFIX"
23613 cat >>confdefs.h <<_ACEOF
23614 #define LLVM_BINDIR "$LLVM_BINDIR"
23618 cat >>confdefs.h <<_ACEOF
23619 #define LLVM_LIBDIR "$LLVM_LIBDIR"
23623 cat >>confdefs.h <<_ACEOF
23624 #define LLVM_DATADIR "$LLVM_DATADIR"
23628 cat >>confdefs.h <<_ACEOF
23629 #define LLVM_DATADIR "$LLVM_DOCSDIR"
23633 cat >>confdefs.h <<_ACEOF
23634 #define LLVM_ETCDIR "$LLVM_ETCDIR"
23638 cat >>confdefs.h <<_ACEOF
23639 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
23643 cat >>confdefs.h <<_ACEOF
23644 #define LLVM_INFODIR "$LLVM_INFODIR"
23648 cat >>confdefs.h <<_ACEOF
23649 #define LLVM_MANDIR "$LLVM_MANDIR"
23653 cat >>confdefs.h <<_ACEOF
23654 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
23658 cat >confcache <<\_ACEOF
23659 # This file is a shell script that caches the results of configure
23660 # tests run on this system so they can be shared between configure
23661 # scripts and configure runs, see configure's option --config-cache.
23662 # It is not useful on other systems. If it contains results you don't
23663 # want to keep, you may remove or edit it.
23665 # config.status only pays attention to the cache file if you give it
23666 # the --recheck option to rerun configure.
23668 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23669 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23670 # following values.
23674 # The following way of writing the cache mishandles newlines in values,
23675 # but we know of no workaround that is simple, portable, and efficient.
23676 # So, don't put newlines in cache variables' values.
23677 # Ultrix sh set writes to stderr and can't be redirected directly,
23678 # and sets the high bit in the cache file unless we assign to the vars.
23681 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23683 # `set' does not quote correctly, so add quotes (double-quote
23684 # substitution turns \\\\ into \\, and sed turns \\ into \).
23687 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23690 # `set' quotes correctly as required by POSIX, so do not add quotes.
23692 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23699 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23701 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23703 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23704 if test -w $cache_file; then
23705 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23706 cat confcache >$cache_file
23708 echo "not updating unwritable cache $cache_file"
23713 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23714 # Let make expand exec_prefix.
23715 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23717 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23718 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23719 # trailing colons and then remove the whole line if VPATH becomes empty
23720 # (actually we leave an empty line to preserve line numbers).
23721 if test "x$srcdir" = x.; then
23722 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23723 s/:*\$(srcdir):*/:/;
23724 s/:*\${srcdir}:*/:/;
23726 s/^\([^=]*=[ ]*\):*/\1/;
23732 DEFS=-DHAVE_CONFIG_H
23736 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23737 # 1. Remove the extension, and $U if already installed.
23738 ac_i=`echo "$ac_i" |
23739 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23741 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23742 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23744 LIBOBJS=$ac_libobjs
23746 LTLIBOBJS=$ac_ltlibobjs
23750 : ${CONFIG_STATUS=./config.status}
23751 ac_clean_files_save=$ac_clean_files
23752 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23753 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23754 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23755 cat >$CONFIG_STATUS <<_ACEOF
23757 # Generated by $as_me.
23758 # Run this file to recreate the current configuration.
23759 # Compiler output produced by configure, useful for debugging
23760 # configure, is in config.log if it exists.
23763 ac_cs_recheck=false
23765 SHELL=\${CONFIG_SHELL-$SHELL}
23768 cat >>$CONFIG_STATUS <<\_ACEOF
23769 ## --------------------- ##
23770 ## M4sh Initialization. ##
23771 ## --------------------- ##
23773 # Be Bourne compatible
23774 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23777 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23778 # is contrary to our usage. Disable this feature.
23779 alias -g '${1+"$@"}'='"$@"'
23780 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23783 DUALCASE=1; export DUALCASE # for MKS sh
23785 # Support unset when possible.
23786 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23793 # Work around bugs in pre-3.0 UWIN ksh.
23794 $as_unset ENV MAIL MAILPATH
23801 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23802 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23803 LC_TELEPHONE LC_TIME
23805 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23806 eval $as_var=C; export $as_var
23812 # Required to use basename.
23813 if expr a : '\(a\)' >/dev/null 2>&1; then
23819 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23820 as_basename=basename
23826 # Name of the executable.
23827 as_me=`$as_basename "$0" ||
23828 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23829 X"$0" : 'X\(//\)$' \| \
23830 X"$0" : 'X\(/\)$' \| \
23831 . : '\(.\)' 2>/dev/null ||
23833 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23834 /^X\/\(\/\/\)$/{ s//\1/; q; }
23835 /^X\/\(\/\).*/{ s//\1/; q; }
23839 # PATH needs CR, and LINENO needs CR and PATH.
23840 # Avoid depending upon Character Ranges.
23841 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23842 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23843 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23844 as_cr_digits='0123456789'
23845 as_cr_alnum=$as_cr_Letters$as_cr_digits
23847 # The user is always right.
23848 if test "${PATH_SEPARATOR+set}" != set; then
23849 echo "#! /bin/sh" >conf$$.sh
23850 echo "exit 0" >>conf$$.sh
23852 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23861 as_lineno_1=$LINENO
23862 as_lineno_2=$LINENO
23863 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23864 test "x$as_lineno_1" != "x$as_lineno_2" &&
23865 test "x$as_lineno_3" = "x$as_lineno_2" || {
23866 # Find who we are. Look in the path if we contain no path at all
23869 *[\\/]* ) as_myself=$0 ;;
23870 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23871 for as_dir in $PATH
23874 test -z "$as_dir" && as_dir=.
23875 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23880 # We did not find ourselves, most probably we were run as `sh COMMAND'
23881 # in which case we are not to be found in the path.
23882 if test "x$as_myself" = x; then
23885 if test ! -f "$as_myself"; then
23886 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23887 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23888 { (exit 1); exit 1; }; }
23890 case $CONFIG_SHELL in
23892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23893 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23896 test -z "$as_dir" && as_dir=.
23897 for as_base in sh bash ksh sh5; do
23900 if ("$as_dir/$as_base" -c '
23901 as_lineno_1=$LINENO
23902 as_lineno_2=$LINENO
23903 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23904 test "x$as_lineno_1" != "x$as_lineno_2" &&
23905 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23906 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23907 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23908 CONFIG_SHELL=$as_dir/$as_base
23909 export CONFIG_SHELL
23910 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23918 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23919 # uniformly replaced by the line number. The first 'sed' inserts a
23920 # line-number line before each line; the second 'sed' does the real
23921 # work. The second script uses 'N' to pair each line-number line
23922 # with the numbered line, and appends trailing '-' during
23923 # substitution so that $LINENO is not a special case at line end.
23924 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23925 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23926 sed '=' <$as_myself |
23931 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23934 s,^['$as_cr_digits']*\n,,
23935 ' >$as_me.lineno &&
23936 chmod +x $as_me.lineno ||
23937 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23938 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23939 { (exit 1); exit 1; }; }
23941 # Don't try to exec as it changes $[0], causing all sort of problems
23942 # (the dirname of $[0] is not the place where we might find the
23943 # original and so on. Autoconf is especially sensible to this).
23945 # Exit status is that of the last command.
23950 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23951 *c*,-n*) ECHO_N= ECHO_C='
23953 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23954 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23957 if expr a : '\(a\)' >/dev/null 2>&1; then
23963 rm -f conf$$ conf$$.exe conf$$.file
23965 if ln -s conf$$.file conf$$ 2>/dev/null; then
23966 # We could just check for DJGPP; but this test a) works b) is more generic
23967 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23968 if test -f conf$$.exe; then
23969 # Don't use ln at all; we don't have any links
23974 elif ln conf$$.file conf$$ 2>/dev/null; then
23979 rm -f conf$$ conf$$.exe conf$$.file
23981 if mkdir -p . 2>/dev/null; then
23984 test -d ./-p && rmdir ./-p
23988 as_executable_p="test -f"
23990 # Sed expression to map a string onto a valid CPP name.
23991 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23993 # Sed expression to map a string onto a valid variable name.
23994 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23998 # We need space, tab and new line, in precisely that order.
24008 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24009 # report actual input values of CONFIG_FILES etc. instead of their
24010 # values after options handling. Logging --version etc. is OK.
24014 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24015 ## Running $as_me. ##
24020 This file was extended by LLVM $as_me 1.4, which was
24021 generated by GNU Autoconf 2.59. Invocation command line was
24023 CONFIG_FILES = $CONFIG_FILES
24024 CONFIG_HEADERS = $CONFIG_HEADERS
24025 CONFIG_LINKS = $CONFIG_LINKS
24026 CONFIG_COMMANDS = $CONFIG_COMMANDS
24030 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24034 # Files that config.status was made for.
24035 if test -n "$ac_config_files"; then
24036 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24039 if test -n "$ac_config_headers"; then
24040 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24043 if test -n "$ac_config_links"; then
24044 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24047 if test -n "$ac_config_commands"; then
24048 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24051 cat >>$CONFIG_STATUS <<\_ACEOF
24054 \`$as_me' instantiates files from templates according to the
24055 current configuration.
24057 Usage: $0 [OPTIONS] [FILE]...
24059 -h, --help print this help, then exit
24060 -V, --version print version number, then exit
24061 -q, --quiet do not print progress messages
24062 -d, --debug don't remove temporary files
24063 --recheck update $as_me by reconfiguring in the same conditions
24064 --file=FILE[:TEMPLATE]
24065 instantiate the configuration file FILE
24066 --header=FILE[:TEMPLATE]
24067 instantiate the configuration header FILE
24069 Configuration files:
24072 Configuration headers:
24075 Configuration links:
24078 Configuration commands:
24081 Report bugs to <bug-autoconf@gnu.org>."
24084 cat >>$CONFIG_STATUS <<_ACEOF
24086 LLVM config.status 1.4
24087 configured by $0, generated by GNU Autoconf 2.59,
24088 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24090 Copyright (C) 2003 Free Software Foundation, Inc.
24091 This config.status script is free software; the Free Software Foundation
24092 gives unlimited permission to copy, distribute and modify it."
24097 cat >>$CONFIG_STATUS <<\_ACEOF
24098 # If no file are specified by the user, then we need to provide default
24099 # value. By we need to know if files were specified by the user.
24105 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24106 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24114 *) # This is not an option, so the user has probably given explicit
24117 ac_need_defaults=false;;
24121 # Handling of the options.
24123 cat >>$CONFIG_STATUS <<\_ACEOF
24124 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24126 --version | --vers* | -V )
24127 echo "$ac_cs_version"; exit 0 ;;
24129 # Conflict between --help and --header
24130 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24131 Try \`$0 --help' for more information." >&5
24132 echo "$as_me: error: ambiguous option: $1
24133 Try \`$0 --help' for more information." >&2;}
24134 { (exit 1); exit 1; }; };;
24135 --help | --hel | -h )
24136 echo "$ac_cs_usage"; exit 0 ;;
24137 --debug | --d* | -d )
24139 --file | --fil | --fi | --f )
24141 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24142 ac_need_defaults=false;;
24143 --header | --heade | --head | --hea )
24145 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24146 ac_need_defaults=false;;
24147 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24148 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24151 # This is an error.
24152 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24153 Try \`$0 --help' for more information." >&5
24154 echo "$as_me: error: unrecognized option: $1
24155 Try \`$0 --help' for more information." >&2;}
24156 { (exit 1); exit 1; }; } ;;
24158 *) ac_config_targets="$ac_config_targets $1" ;;
24164 ac_configure_extra_args=
24166 if $ac_cs_silent; then
24168 ac_configure_extra_args="$ac_configure_extra_args --silent"
24172 cat >>$CONFIG_STATUS <<_ACEOF
24173 if \$ac_cs_recheck; then
24174 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24175 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24180 cat >>$CONFIG_STATUS <<_ACEOF
24182 # INIT-COMMANDS section.
24185 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
24186 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
24187 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
24188 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
24189 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
24190 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
24191 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
24192 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
24193 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
24194 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
24195 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
24196 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
24202 cat >>$CONFIG_STATUS <<\_ACEOF
24203 for ac_config_target in $ac_config_targets
24205 case "$ac_config_target" in
24206 # Handling of arguments.
24207 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
24208 "include/llvm/Support/DataTypes.h" ) CONFIG_FILES="$CONFIG_FILES include/llvm/Support/DataTypes.h" ;;
24209 "include/llvm/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/llvm/Support/ThreadSupport.h" ;;
24210 "include/llvm/ADT/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/hash_map" ;;
24211 "include/llvm/ADT/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/hash_set" ;;
24212 "include/llvm/ADT/iterator" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/iterator" ;;
24213 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$platform_type" ;;
24214 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
24215 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
24216 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
24217 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
24218 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
24219 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
24220 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
24221 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
24222 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
24223 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
24224 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
24225 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
24226 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
24227 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24228 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24229 { (exit 1); exit 1; }; };;
24233 # If the user did not use the arguments to specify the items to instantiate,
24234 # then the envvar interface is used. Set only those that are not.
24235 # We use the long form for the default assignment because of an extremely
24236 # bizarre bug on SunOS 4.1.3.
24237 if $ac_need_defaults; then
24238 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24239 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24240 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
24241 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24244 # Have a temporary directory for convenience. Make it in the build tree
24245 # simply because there is no reason to put it here, and in addition,
24246 # creating and moving files from /tmp can sometimes cause problems.
24247 # Create a temporary directory, and hook for its removal unless debugging.
24250 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24251 trap '{ (exit 1); exit 1; }' 1 2 13 15
24254 # Create a (secure) tmp directory for tmp files.
24257 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24258 test -n "$tmp" && test -d "$tmp"
24261 tmp=./confstat$$-$RANDOM
24262 (umask 077 && mkdir $tmp)
24265 echo "$me: cannot create a temporary directory in ." >&2
24266 { (exit 1); exit 1; }
24271 cat >>$CONFIG_STATUS <<_ACEOF
24274 # CONFIG_FILES section.
24277 # No need to generate the scripts if there are no CONFIG_FILES.
24278 # This happens for instance when ./config.status config.h
24279 if test -n "\$CONFIG_FILES"; then
24280 # Protect against being on the right side of a sed subst in config.status.
24281 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24282 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24283 s,@SHELL@,$SHELL,;t t
24284 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24285 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24286 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24287 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24288 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24289 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24290 s,@exec_prefix@,$exec_prefix,;t t
24291 s,@prefix@,$prefix,;t t
24292 s,@program_transform_name@,$program_transform_name,;t t
24293 s,@bindir@,$bindir,;t t
24294 s,@sbindir@,$sbindir,;t t
24295 s,@libexecdir@,$libexecdir,;t t
24296 s,@datadir@,$datadir,;t t
24297 s,@sysconfdir@,$sysconfdir,;t t
24298 s,@sharedstatedir@,$sharedstatedir,;t t
24299 s,@localstatedir@,$localstatedir,;t t
24300 s,@libdir@,$libdir,;t t
24301 s,@includedir@,$includedir,;t t
24302 s,@oldincludedir@,$oldincludedir,;t t
24303 s,@infodir@,$infodir,;t t
24304 s,@mandir@,$mandir,;t t
24305 s,@build_alias@,$build_alias,;t t
24306 s,@host_alias@,$host_alias,;t t
24307 s,@target_alias@,$target_alias,;t t
24308 s,@DEFS@,$DEFS,;t t
24309 s,@ECHO_C@,$ECHO_C,;t t
24310 s,@ECHO_N@,$ECHO_N,;t t
24311 s,@ECHO_T@,$ECHO_T,;t t
24312 s,@LIBS@,$LIBS,;t t
24313 s,@subdirs@,$subdirs,;t t
24314 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24315 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24316 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24317 s,@build@,$build,;t t
24318 s,@build_cpu@,$build_cpu,;t t
24319 s,@build_vendor@,$build_vendor,;t t
24320 s,@build_os@,$build_os,;t t
24321 s,@host@,$host,;t t
24322 s,@host_cpu@,$host_cpu,;t t
24323 s,@host_vendor@,$host_vendor,;t t
24324 s,@host_os@,$host_os,;t t
24325 s,@target@,$target,;t t
24326 s,@target_cpu@,$target_cpu,;t t
24327 s,@target_vendor@,$target_vendor,;t t
24328 s,@target_os@,$target_os,;t t
24330 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
24331 s,@ARCH@,$ARCH,;t t
24333 s,@CXXFLAGS@,$CXXFLAGS,;t t
24334 s,@LDFLAGS@,$LDFLAGS,;t t
24335 s,@CPPFLAGS@,$CPPFLAGS,;t t
24336 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24337 s,@EXEEXT@,$EXEEXT,;t t
24338 s,@OBJEXT@,$OBJEXT,;t t
24340 s,@CFLAGS@,$CFLAGS,;t t
24341 s,@ac_ct_CC@,$ac_ct_CC,;t t
24343 s,@ifGNUmake@,$ifGNUmake,;t t
24345 s,@LEXLIB@,$LEXLIB,;t t
24346 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
24347 s,@YACC@,$YACC,;t t
24348 s,@BISON@,$BISON,;t t
24349 s,@EGREP@,$EGREP,;t t
24350 s,@LN_S@,$LN_S,;t t
24351 s,@ECHO@,$ECHO,;t t
24353 s,@ac_ct_AR@,$ac_ct_AR,;t t
24354 s,@RANLIB@,$RANLIB,;t t
24355 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24356 s,@STRIP@,$STRIP,;t t
24357 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24358 s,@CXXCPP@,$CXXCPP,;t t
24360 s,@FFLAGS@,$FFLAGS,;t t
24361 s,@ac_ct_F77@,$ac_ct_F77,;t t
24362 s,@LIBTOOL@,$LIBTOOL,;t t
24364 s,@ETAGS@,$ETAGS,;t t
24365 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
24366 s,@PYTHON@,$PYTHON,;t t
24367 s,@QMTEST@,$QMTEST,;t t
24368 s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t
24369 s,@INCLUDE_SYS_TYPES_H@,$INCLUDE_SYS_TYPES_H,;t t
24370 s,@INCLUDE_INTTYPES_H@,$INCLUDE_INTTYPES_H,;t t
24371 s,@INCLUDE_STDINT_H@,$INCLUDE_STDINT_H,;t t
24372 s,@ENDIAN@,$ENDIAN,;t t
24373 s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t
24374 s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t
24375 s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t
24376 s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t
24377 s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t
24378 s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t
24379 s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
24380 s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
24381 s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
24382 s,@ALLOCA@,$ALLOCA,;t t
24383 s,@MMAP_FILE@,$MMAP_FILE,;t t
24384 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
24386 s,@LLVMCC1@,$LLVMCC1,;t t
24387 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
24388 s,@PAPIDIR@,$PAPIDIR,;t t
24389 s,@SHLIBEXT@,$SHLIBEXT,;t t
24390 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
24391 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
24392 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
24393 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
24394 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
24395 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
24396 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
24397 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
24398 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
24399 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
24400 s,@LIBOBJS@,$LIBOBJS,;t t
24401 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24406 cat >>$CONFIG_STATUS <<\_ACEOF
24407 # Split the substitutions into bite-sized pieces for seds with
24408 # small command number limits, like on Digital OSF/1 and HP-UX.
24409 ac_max_sed_lines=48
24410 ac_sed_frag=1 # Number of current file.
24411 ac_beg=1 # First line for current file.
24412 ac_end=$ac_max_sed_lines # Line after last line for current file.
24415 while $ac_more_lines; do
24416 if test $ac_beg -gt 1; then
24417 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24419 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24421 if test ! -s $tmp/subs.frag; then
24422 ac_more_lines=false
24424 # The purpose of the label and of the branching condition is to
24425 # speed up the sed processing (if there are no `@' at all, there
24426 # is no need to browse any of the substitutions).
24427 # These are the two extra sed commands mentioned above.
24429 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24430 if test -z "$ac_sed_cmds"; then
24431 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24433 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24435 ac_sed_frag=`expr $ac_sed_frag + 1`
24437 ac_end=`expr $ac_end + $ac_max_sed_lines`
24440 if test -z "$ac_sed_cmds"; then
24443 fi # test -n "$CONFIG_FILES"
24446 cat >>$CONFIG_STATUS <<\_ACEOF
24447 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24448 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24450 - | *:- | *:-:* ) # input from stdin
24452 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24453 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24454 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24455 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24456 * ) ac_file_in=$ac_file.in ;;
24459 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24460 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24461 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24462 X"$ac_file" : 'X\(//\)[^/]' \| \
24463 X"$ac_file" : 'X\(//\)$' \| \
24464 X"$ac_file" : 'X\(/\)' \| \
24465 . : '\(.\)' 2>/dev/null ||
24467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24468 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24469 /^X\(\/\/\)$/{ s//\1/; q; }
24470 /^X\(\/\).*/{ s//\1/; q; }
24472 { if $as_mkdir_p; then
24477 while test ! -d "$as_dir"; do
24478 as_dirs="$as_dir $as_dirs"
24479 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24480 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24481 X"$as_dir" : 'X\(//\)[^/]' \| \
24482 X"$as_dir" : 'X\(//\)$' \| \
24483 X"$as_dir" : 'X\(/\)' \| \
24484 . : '\(.\)' 2>/dev/null ||
24486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24487 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24488 /^X\(\/\/\)$/{ s//\1/; q; }
24489 /^X\(\/\).*/{ s//\1/; q; }
24492 test ! -n "$as_dirs" || mkdir $as_dirs
24493 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24494 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24495 { (exit 1); exit 1; }; }; }
24499 if test "$ac_dir" != .; then
24500 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24501 # A "../" for each directory in $ac_dir_suffix.
24502 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24504 ac_dir_suffix= ac_top_builddir=
24508 .) # No --srcdir option. We are building in place.
24510 if test -z "$ac_top_builddir"; then
24513 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24515 [\\/]* | ?:[\\/]* ) # Absolute path.
24516 ac_srcdir=$srcdir$ac_dir_suffix;
24517 ac_top_srcdir=$srcdir ;;
24518 *) # Relative path.
24519 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24520 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24523 # Do not use `cd foo && pwd` to compute absolute paths, because
24524 # the directories may not exist.
24526 .) ac_abs_builddir="$ac_dir";;
24529 .) ac_abs_builddir=`pwd`;;
24530 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24531 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24534 case $ac_abs_builddir in
24535 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24537 case ${ac_top_builddir}. in
24538 .) ac_abs_top_builddir=$ac_abs_builddir;;
24539 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24540 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24543 case $ac_abs_builddir in
24544 .) ac_abs_srcdir=$ac_srcdir;;
24547 .) ac_abs_srcdir=$ac_abs_builddir;;
24548 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24549 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24552 case $ac_abs_builddir in
24553 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24555 case $ac_top_srcdir in
24556 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24557 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24558 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24564 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24565 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24568 if test x"$ac_file" != x-; then
24569 { echo "$as_me:$LINENO: creating $ac_file" >&5
24570 echo "$as_me: creating $ac_file" >&6;}
24573 # Let's still pretend it is `configure' which instantiates (i.e., don't
24574 # use $as_me), people would be surprised to read:
24575 # /* config.h. Generated by config.status. */
24576 if test x"$ac_file" = x-; then
24579 configure_input="$ac_file. "
24581 configure_input=$configure_input"Generated from `echo $ac_file_in |
24582 sed 's,.*/,,'` by configure."
24584 # First look for the input files in the build tree, otherwise in the
24586 ac_file_inputs=`IFS=:
24587 for f in $ac_file_in; do
24589 -) echo $tmp/stdin ;;
24591 # Absolute (can't be DOS-style, as IFS=:)
24592 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24593 echo "$as_me: error: cannot find input file: $f" >&2;}
24594 { (exit 1); exit 1; }; }
24597 if test -f "$f"; then
24600 elif test -f "$srcdir/$f"; then
24605 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24606 echo "$as_me: error: cannot find input file: $f" >&2;}
24607 { (exit 1); exit 1; }; }
24610 done` || { (exit 1); exit 1; }
24612 cat >>$CONFIG_STATUS <<_ACEOF
24616 cat >>$CONFIG_STATUS <<\_ACEOF
24618 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24619 s,@configure_input@,$configure_input,;t t
24620 s,@srcdir@,$ac_srcdir,;t t
24621 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24622 s,@top_srcdir@,$ac_top_srcdir,;t t
24623 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24624 s,@builddir@,$ac_builddir,;t t
24625 s,@abs_builddir@,$ac_abs_builddir,;t t
24626 s,@top_builddir@,$ac_top_builddir,;t t
24627 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24628 s,@INSTALL@,$ac_INSTALL,;t t
24629 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24631 if test x"$ac_file" != x-; then
24632 mv $tmp/out $ac_file
24640 cat >>$CONFIG_STATUS <<\_ACEOF
24643 # CONFIG_HEADER section.
24646 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24647 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24649 # ac_d sets the value in "#define NAME VALUE" lines.
24650 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24651 ac_dB='[ ].*$,\1#\2'
24654 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24655 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24656 ac_uB='$,\1#\2define\3'
24660 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24661 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24663 - | *:- | *:-:* ) # input from stdin
24665 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24666 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24667 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24668 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24669 * ) ac_file_in=$ac_file.in ;;
24672 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24673 echo "$as_me: creating $ac_file" >&6;}
24675 # First look for the input files in the build tree, otherwise in the
24677 ac_file_inputs=`IFS=:
24678 for f in $ac_file_in; do
24680 -) echo $tmp/stdin ;;
24682 # Absolute (can't be DOS-style, as IFS=:)
24683 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24684 echo "$as_me: error: cannot find input file: $f" >&2;}
24685 { (exit 1); exit 1; }; }
24686 # Do quote $f, to prevent DOS paths from being IFS'd.
24689 if test -f "$f"; then
24692 elif test -f "$srcdir/$f"; then
24697 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24698 echo "$as_me: error: cannot find input file: $f" >&2;}
24699 { (exit 1); exit 1; }; }
24702 done` || { (exit 1); exit 1; }
24703 # Remove the trailing spaces.
24704 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24708 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24709 # `conftest.undefs', that substitutes the proper values into
24710 # config.h.in to produce config.h. The first handles `#define'
24711 # templates, and the second `#undef' templates.
24712 # And first: Protect against being on the right side of a sed subst in
24713 # config.status. Protect against being in an unquoted here document
24714 # in config.status.
24715 rm -f conftest.defines conftest.undefs
24716 # Using a here document instead of a string reduces the quoting nightmare.
24717 # Putting comments in sed scripts is not portable.
24719 # `end' is used to avoid that the second main sed command (meant for
24720 # 0-ary CPP macros) applies to n-ary macro definitions.
24721 # See the Autoconf documentation for `clear'.
24722 cat >confdef2sed.sed <<\_ACEOF
24727 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24729 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24732 # If some macros were called several times there might be several times
24733 # the same #defines, which is useless. Nevertheless, we may not want to
24734 # sort them, since we want the *last* AC-DEFINE to be honored.
24735 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24736 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24737 rm -f confdef2sed.sed
24739 # This sed command replaces #undef with comments. This is necessary, for
24740 # example, in the case of _POSIX_SOURCE, which is predefined and required
24741 # on some systems where configure will not decide to define it.
24742 cat >>conftest.undefs <<\_ACEOF
24743 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24746 # Break up conftest.defines because some shells have a limit on the size
24747 # of here documents, and old seds have small limits too (100 cmds).
24748 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24749 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24750 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24751 echo ' :' >>$CONFIG_STATUS
24752 rm -f conftest.tail
24753 while grep . conftest.defines >/dev/null
24755 # Write a limited-size here document to $tmp/defines.sed.
24756 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24757 # Speed up: don't consider the non `#define' lines.
24758 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24759 # Work around the forget-to-reset-the-flag bug.
24760 echo 't clr' >>$CONFIG_STATUS
24761 echo ': clr' >>$CONFIG_STATUS
24762 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24764 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24766 mv $tmp/out $tmp/in
24768 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24769 rm -f conftest.defines
24770 mv conftest.tail conftest.defines
24772 rm -f conftest.defines
24773 echo ' fi # grep' >>$CONFIG_STATUS
24774 echo >>$CONFIG_STATUS
24776 # Break up conftest.undefs because some shells have a limit on the size
24777 # of here documents, and old seds have small limits too (100 cmds).
24778 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24779 rm -f conftest.tail
24780 while grep . conftest.undefs >/dev/null
24782 # Write a limited-size here document to $tmp/undefs.sed.
24783 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24784 # Speed up: don't consider the non `#undef'
24785 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24786 # Work around the forget-to-reset-the-flag bug.
24787 echo 't clr' >>$CONFIG_STATUS
24788 echo ': clr' >>$CONFIG_STATUS
24789 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24791 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24793 mv $tmp/out $tmp/in
24795 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24796 rm -f conftest.undefs
24797 mv conftest.tail conftest.undefs
24799 rm -f conftest.undefs
24801 cat >>$CONFIG_STATUS <<\_ACEOF
24802 # Let's still pretend it is `configure' which instantiates (i.e., don't
24803 # use $as_me), people would be surprised to read:
24804 # /* config.h. Generated by config.status. */
24805 if test x"$ac_file" = x-; then
24806 echo "/* Generated by configure. */" >$tmp/config.h
24808 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24810 cat $tmp/in >>$tmp/config.h
24812 if test x"$ac_file" != x-; then
24813 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24814 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24815 echo "$as_me: $ac_file is unchanged" >&6;}
24817 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24818 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24819 X"$ac_file" : 'X\(//\)[^/]' \| \
24820 X"$ac_file" : 'X\(//\)$' \| \
24821 X"$ac_file" : 'X\(/\)' \| \
24822 . : '\(.\)' 2>/dev/null ||
24824 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24825 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24826 /^X\(\/\/\)$/{ s//\1/; q; }
24827 /^X\(\/\).*/{ s//\1/; q; }
24829 { if $as_mkdir_p; then
24834 while test ! -d "$as_dir"; do
24835 as_dirs="$as_dir $as_dirs"
24836 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24837 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24838 X"$as_dir" : 'X\(//\)[^/]' \| \
24839 X"$as_dir" : 'X\(//\)$' \| \
24840 X"$as_dir" : 'X\(/\)' \| \
24841 . : '\(.\)' 2>/dev/null ||
24843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24844 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24845 /^X\(\/\/\)$/{ s//\1/; q; }
24846 /^X\(\/\).*/{ s//\1/; q; }
24849 test ! -n "$as_dirs" || mkdir $as_dirs
24850 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24851 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24852 { (exit 1); exit 1; }; }; }
24855 mv $tmp/config.h $ac_file
24859 rm -f $tmp/config.h
24863 cat >>$CONFIG_STATUS <<\_ACEOF
24866 # CONFIG_LINKS section.
24869 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
24870 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24871 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24873 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
24874 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
24876 if test ! -r $srcdir/$ac_source; then
24877 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
24878 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
24879 { (exit 1); exit 1; }; }
24883 # Make relative symlinks.
24884 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
24885 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24886 X"$ac_dest" : 'X\(//\)[^/]' \| \
24887 X"$ac_dest" : 'X\(//\)$' \| \
24888 X"$ac_dest" : 'X\(/\)' \| \
24889 . : '\(.\)' 2>/dev/null ||
24891 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24892 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24893 /^X\(\/\/\)$/{ s//\1/; q; }
24894 /^X\(\/\).*/{ s//\1/; q; }
24896 { if $as_mkdir_p; then
24897 mkdir -p "$ac_dest_dir"
24899 as_dir="$ac_dest_dir"
24901 while test ! -d "$as_dir"; do
24902 as_dirs="$as_dir $as_dirs"
24903 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24904 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24905 X"$as_dir" : 'X\(//\)[^/]' \| \
24906 X"$as_dir" : 'X\(//\)$' \| \
24907 X"$as_dir" : 'X\(/\)' \| \
24908 . : '\(.\)' 2>/dev/null ||
24910 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24911 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24912 /^X\(\/\/\)$/{ s//\1/; q; }
24913 /^X\(\/\).*/{ s//\1/; q; }
24916 test ! -n "$as_dirs" || mkdir $as_dirs
24917 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
24918 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
24919 { (exit 1); exit 1; }; }; }
24923 if test "$ac_dest_dir" != .; then
24924 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
24925 # A "../" for each directory in $ac_dir_suffix.
24926 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24928 ac_dir_suffix= ac_top_builddir=
24932 .) # No --srcdir option. We are building in place.
24934 if test -z "$ac_top_builddir"; then
24937 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24939 [\\/]* | ?:[\\/]* ) # Absolute path.
24940 ac_srcdir=$srcdir$ac_dir_suffix;
24941 ac_top_srcdir=$srcdir ;;
24942 *) # Relative path.
24943 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24944 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24947 # Do not use `cd foo && pwd` to compute absolute paths, because
24948 # the directories may not exist.
24950 .) ac_abs_builddir="$ac_dest_dir";;
24952 case "$ac_dest_dir" in
24953 .) ac_abs_builddir=`pwd`;;
24954 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
24955 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
24958 case $ac_abs_builddir in
24959 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24961 case ${ac_top_builddir}. in
24962 .) ac_abs_top_builddir=$ac_abs_builddir;;
24963 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24964 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24967 case $ac_abs_builddir in
24968 .) ac_abs_srcdir=$ac_srcdir;;
24971 .) ac_abs_srcdir=$ac_abs_builddir;;
24972 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24973 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24976 case $ac_abs_builddir in
24977 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24979 case $ac_top_srcdir in
24980 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24981 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24982 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24988 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
24989 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
24992 # Try a symlink, then a hard link, then a copy.
24993 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
24994 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
24995 cp -p $srcdir/$ac_source $ac_dest ||
24996 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
24997 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
24998 { (exit 1); exit 1; }; }
25001 cat >>$CONFIG_STATUS <<\_ACEOF
25004 # CONFIG_COMMANDS section.
25006 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25007 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25008 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25009 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25010 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25011 X"$ac_dest" : 'X\(//\)[^/]' \| \
25012 X"$ac_dest" : 'X\(//\)$' \| \
25013 X"$ac_dest" : 'X\(/\)' \| \
25014 . : '\(.\)' 2>/dev/null ||
25016 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25017 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25018 /^X\(\/\/\)$/{ s//\1/; q; }
25019 /^X\(\/\).*/{ s//\1/; q; }
25021 { if $as_mkdir_p; then
25026 while test ! -d "$as_dir"; do
25027 as_dirs="$as_dir $as_dirs"
25028 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25029 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25030 X"$as_dir" : 'X\(//\)[^/]' \| \
25031 X"$as_dir" : 'X\(//\)$' \| \
25032 X"$as_dir" : 'X\(/\)' \| \
25033 . : '\(.\)' 2>/dev/null ||
25035 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25036 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25037 /^X\(\/\/\)$/{ s//\1/; q; }
25038 /^X\(\/\).*/{ s//\1/; q; }
25041 test ! -n "$as_dirs" || mkdir $as_dirs
25042 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25043 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25044 { (exit 1); exit 1; }; }; }
25048 if test "$ac_dir" != .; then
25049 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25050 # A "../" for each directory in $ac_dir_suffix.
25051 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25053 ac_dir_suffix= ac_top_builddir=
25057 .) # No --srcdir option. We are building in place.
25059 if test -z "$ac_top_builddir"; then
25062 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25064 [\\/]* | ?:[\\/]* ) # Absolute path.
25065 ac_srcdir=$srcdir$ac_dir_suffix;
25066 ac_top_srcdir=$srcdir ;;
25067 *) # Relative path.
25068 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25069 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25072 # Do not use `cd foo && pwd` to compute absolute paths, because
25073 # the directories may not exist.
25075 .) ac_abs_builddir="$ac_dir";;
25078 .) ac_abs_builddir=`pwd`;;
25079 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25080 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25083 case $ac_abs_builddir in
25084 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25086 case ${ac_top_builddir}. in
25087 .) ac_abs_top_builddir=$ac_abs_builddir;;
25088 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25089 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25092 case $ac_abs_builddir in
25093 .) ac_abs_srcdir=$ac_srcdir;;
25096 .) ac_abs_srcdir=$ac_abs_builddir;;
25097 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25098 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25101 case $ac_abs_builddir in
25102 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25104 case $ac_top_srcdir in
25105 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25106 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25107 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25112 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25113 echo "$as_me: executing $ac_dest commands" >&6;}
25115 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
25116 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
25117 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
25118 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
25119 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
25120 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
25121 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
25122 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
25123 test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
25124 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
25125 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
25126 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
25131 cat >>$CONFIG_STATUS <<\_ACEOF
25133 { (exit 0); exit 0; }
25135 chmod +x $CONFIG_STATUS
25136 ac_clean_files=$ac_clean_files_save
25139 # configure is writing to config.log, and then calls config.status.
25140 # config.status does its own redirection, appending to config.log.
25141 # Unfortunately, on DOS this fails, as config.log is still kept open
25142 # by configure, so config.status won't be able to write to it; its
25143 # output is simply discarded. So we exec the FD to /dev/null,
25144 # effectively closing config.log, so it can be properly (re)opened and
25145 # appended to by config.status. When coming back to configure, we
25146 # need to make the FD available again.
25147 if test "$no_create" != yes; then
25149 ac_config_status_args=
25150 test "$silent" = yes &&
25151 ac_config_status_args="$ac_config_status_args --quiet"
25153 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25155 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25156 # would make configure fail if this is the last instruction.
25157 $ac_cs_success || { (exit 1); exit 1; }
25161 # CONFIG_SUBDIRS section.
25163 if test "$no_recursion" != yes; then
25165 # Remove --cache-file and --srcdir arguments so they do not pile up.
25166 ac_sub_configure_args=
25168 for ac_arg in $ac_configure_args; do
25169 if test -n "$ac_prev"; then
25174 -cache-file | --cache-file | --cache-fil | --cache-fi \
25175 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25176 ac_prev=cache_file ;;
25177 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25178 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25181 --config-cache | -C)
25183 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25185 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25187 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25189 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25191 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25195 # Always prepend --prefix to ensure using the same prefix
25196 # in subdir configurations.
25197 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25200 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25202 # Do not complain, so a configure script can configure whichever
25203 # parts of a large source tree are present.
25204 test -d $srcdir/$ac_dir || continue
25206 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25207 echo "$as_me: configuring in $ac_dir" >&6;}
25208 { if $as_mkdir_p; then
25213 while test ! -d "$as_dir"; do
25214 as_dirs="$as_dir $as_dirs"
25215 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25216 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25217 X"$as_dir" : 'X\(//\)[^/]' \| \
25218 X"$as_dir" : 'X\(//\)$' \| \
25219 X"$as_dir" : 'X\(/\)' \| \
25220 . : '\(.\)' 2>/dev/null ||
25222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25223 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25224 /^X\(\/\/\)$/{ s//\1/; q; }
25225 /^X\(\/\).*/{ s//\1/; q; }
25228 test ! -n "$as_dirs" || mkdir $as_dirs
25229 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25230 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25231 { (exit 1); exit 1; }; }; }
25235 if test "$ac_dir" != .; then
25236 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25237 # A "../" for each directory in $ac_dir_suffix.
25238 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25240 ac_dir_suffix= ac_top_builddir=
25244 .) # No --srcdir option. We are building in place.
25246 if test -z "$ac_top_builddir"; then
25249 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25251 [\\/]* | ?:[\\/]* ) # Absolute path.
25252 ac_srcdir=$srcdir$ac_dir_suffix;
25253 ac_top_srcdir=$srcdir ;;
25254 *) # Relative path.
25255 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25256 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25259 # Do not use `cd foo && pwd` to compute absolute paths, because
25260 # the directories may not exist.
25262 .) ac_abs_builddir="$ac_dir";;
25265 .) ac_abs_builddir=`pwd`;;
25266 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25267 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25270 case $ac_abs_builddir in
25271 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25273 case ${ac_top_builddir}. in
25274 .) ac_abs_top_builddir=$ac_abs_builddir;;
25275 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25276 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25279 case $ac_abs_builddir in
25280 .) ac_abs_srcdir=$ac_srcdir;;
25283 .) ac_abs_srcdir=$ac_abs_builddir;;
25284 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25285 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25288 case $ac_abs_builddir in
25289 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25291 case $ac_top_srcdir in
25292 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25293 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25294 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25301 # Check for guested configure; otherwise get Cygnus style configure.
25302 if test -f $ac_srcdir/configure.gnu; then
25303 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25304 elif test -f $ac_srcdir/configure; then
25305 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25306 elif test -f $ac_srcdir/configure.in; then
25307 ac_sub_configure=$ac_configure
25309 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25310 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25314 # The recursion is here.
25315 if test -n "$ac_sub_configure"; then
25316 # Make the cache file name correct relative to the subdirectory.
25317 case $cache_file in
25318 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25319 *) # Relative path.
25320 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
25323 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25324 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25325 # The eval makes quoting arguments work.
25326 eval $ac_sub_configure $ac_sub_configure_args \
25327 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25328 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25329 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25330 { (exit 1); exit 1; }; }
25338 if test $llvmgccwarn = yes
25340 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
25341 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
25342 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
25343 echo "$as_me: WARNING: ***** appear to be working." >&2;}
25344 { echo "$as_me:$LINENO: WARNING: ***** " >&5
25345 echo "$as_me: WARNING: ***** " >&2;}
25346 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
25347 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
25348 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
25349 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
25350 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
25351 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}