2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for llvm 1.6cvs.
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.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 DUALCASE=1; export DUALCASE # for MKS sh
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49 eval $as_var=C; export $as_var
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72 X"$0" : 'X\(//\)$' \| \
73 X"$0" : 'X\(/\)$' \| \
74 . : '\(.\)' 2>/dev/null ||
76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77 /^X\/\(\/\/\)$/{ s//\1/; q; }
78 /^X\/\(\/\).*/{ s//\1/; q; }
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92 echo "#! /bin/sh" >conf$$.sh
93 echo "exit 0" >>conf$$.sh
95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107 test "x$as_lineno_1" != "x$as_lineno_2" &&
108 test "x$as_lineno_3" = "x$as_lineno_2" || {
109 # Find who we are. Look in the path if we contain no path at all
112 *[\\/]* ) as_myself=$0 ;;
113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
117 test -z "$as_dir" && as_dir=.
118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123 # We did not find ourselves, most probably we were run as `sh COMMAND'
124 # in which case we are not to be found in the path.
125 if test "x$as_myself" = x; then
128 if test ! -f "$as_myself"; then
129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130 { (exit 1); exit 1; }; }
132 case $CONFIG_SHELL in
134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
138 test -z "$as_dir" && as_dir=.
139 for as_base in sh bash ksh sh5; do
142 if ("$as_dir/$as_base" -c '
145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146 test "x$as_lineno_1" != "x$as_lineno_2" &&
147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150 CONFIG_SHELL=$as_dir/$as_base
152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161 # uniformly replaced by the line number. The first 'sed' inserts a
162 # line-number line before each line; the second 'sed' does the real
163 # work. The second script uses 'N' to pair each line-number line
164 # with the numbered line, and appends trailing '-' during
165 # substitution so that $LINENO is not a special case at line end.
166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
168 sed '=' <$as_myself |
173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
176 s,^['$as_cr_digits']*\n,,
178 chmod +x $as_me.lineno ||
179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180 { (exit 1); exit 1; }; }
182 # Don't try to exec as it changes $[0], causing all sort of problems
183 # (the dirname of $[0] is not the place where we might find the
184 # original and so on. Autoconf is especially sensible to this).
186 # Exit status is that of the last command.
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192 *c*,-n*) ECHO_N= ECHO_C='
194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
198 if expr a : '\(a\)' >/dev/null 2>&1; then
204 rm -f conf$$ conf$$.exe conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207 # We could just check for DJGPP; but this test a) works b) is more generic
208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209 if test -f conf$$.exe; then
210 # Don't use ln at all; we don't have any links
215 elif ln conf$$.file conf$$ 2>/dev/null; then
220 rm -f conf$$ conf$$.exe conf$$.file
222 if mkdir -p . 2>/dev/null; then
225 test -d ./-p && rmdir ./-p
229 as_executable_p="test -f"
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
239 # We need space, tab and new line, in precisely that order.
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
254 # Remove one level of quotation (which was required for Make).
255 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260 if test "X$1" = X--no-reexec; then
261 # Discard the --no-reexec flag, and continue.
263 elif test "X$1" = X--fallback-echo; then
264 # Avoid inline document here, it may be left over
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267 # Yippee, $echo works!
270 # Restart under the correct shell.
271 exec $SHELL "$0" --no-reexec ${1+"$@"}
274 if test "X$1" = X--fallback-echo; then
275 # used as fallback echo
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
293 echo_test_string="`eval $cmd`" &&
294 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303 test "X$echo_testing_string" = "X$echo_test_string"; then
306 # The Solaris, AIX, and Digital Unix default echo programs unquote
307 # backslashes. This makes it impossible to quote backslashes using
308 # echo "$something" | sed 's/\\/\\\\/g'
310 # So, first we look for a working echo in the user's PATH.
312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313 for dir in $PATH /usr/ucb; do
315 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318 test "X$echo_testing_string" = "X$echo_test_string"; then
325 if test "X$echo" = Xecho; then
326 # We didn't find a better echo, so look for alternatives.
327 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329 test "X$echo_testing_string" = "X$echo_test_string"; then
330 # This shell has a builtin print -r that does the trick.
332 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333 test "X$CONFIG_SHELL" != X/bin/ksh; then
334 # If we have ksh, try running configure again with it.
335 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336 export ORIGINAL_CONFIG_SHELL
337 CONFIG_SHELL=/bin/ksh
339 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
343 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345 test "X$echo_testing_string" = "X$echo_test_string"; then
348 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349 test "X$echo_testing_string" = 'X\t' &&
350 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
352 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
354 SHELL="$CONFIG_SHELL"
356 echo="$CONFIG_SHELL $0 --fallback-echo"
357 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358 test "X$echo_testing_string" = 'X\t' &&
359 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360 test "X$echo_testing_string" = "X$echo_test_string"; then
361 echo="$CONFIG_SHELL $0 --fallback-echo"
363 # maybe with a smaller string...
366 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
374 if test "$prev" != 'sed 50q "$0"'; then
375 echo_test_string=`eval $prev`
376 export echo_test_string
377 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
379 # Oops. We lost completely, so just stick with echo.
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398 tagnames=${tagnames+${tagnames},}CXX
400 tagnames=${tagnames+${tagnames},}F77
403 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404 # so uname gets run too.
405 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
412 ac_default_prefix=/usr/local
413 ac_config_libobj_dir=.
418 SHELL=${CONFIG_SHELL-/bin/sh}
420 # Maximum number of lines to put in a shell here document.
421 # This variable seems obsolete. It should probably be removed, and
422 # only ac_max_sed_lines should be used.
423 : ${ac_max_here_lines=38}
425 # Identity of this package.
427 PACKAGE_TARNAME='-llvm-'
428 PACKAGE_VERSION='1.6cvs'
429 PACKAGE_STRING='llvm 1.6cvs'
430 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
432 ac_unique_file="lib/VMCore/Module.cpp"
433 ac_subdirs_all="$ac_subdirs_all projects/sample"
434 ac_subdirs_all="$ac_subdirs_all projects/Stacker"
435 ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
436 ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
437 ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
438 ac_subdirs_all="$ac_subdirs_all projects/llvm-java"
439 ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
440 ac_subdirs_all="$ac_subdirs_all projects/llvm-poolalloc"
441 # Factoring default headers for most tests.
442 ac_includes_default="\
445 # include <sys/types.h>
448 # include <sys/stat.h>
459 # if !STDC_HEADERS && HAVE_MEMORY_H
465 # include <strings.h>
468 # include <inttypes.h>
478 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 LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVM_ON_UNIX LLVM_ON_WIN32 ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ENABLE_OPTIMIZED JIT ENABLE_DOXYGEN TARGETS_TO_BUILD CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV RANLIB ac_ct_RANLIB RM SED TAR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
481 # Initialize some variables set by options.
483 ac_init_version=false
484 # The variables have the same names as the options, with
485 # dashes changed to underlines.
493 program_transform_name=s,x,x,
501 # Installation directory options.
502 # These are left unexpanded so users can "make install exec_prefix=/foo"
503 # and all the variables that are supposed to be based on exec_prefix
504 # by default will actually change.
505 # Use braces instead of parens because sh, perl, etc. also accept them.
506 bindir='${exec_prefix}/bin'
507 sbindir='${exec_prefix}/sbin'
508 libexecdir='${exec_prefix}/libexec'
509 datadir='${prefix}/share'
510 sysconfdir='${prefix}/etc'
511 sharedstatedir='${prefix}/com'
512 localstatedir='${prefix}/var'
513 libdir='${exec_prefix}/lib'
514 includedir='${prefix}/include'
515 oldincludedir='/usr/include'
516 infodir='${prefix}/info'
517 mandir='${prefix}/man'
522 # If the previous option needs an argument, assign it.
523 if test -n "$ac_prev"; then
524 eval "$ac_prev=\$ac_option"
529 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
531 # Accept the important Cygnus configure options, so we can diagnose typos.
535 -bindir | --bindir | --bindi | --bind | --bin | --bi)
537 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
540 -build | --build | --buil | --bui | --bu)
541 ac_prev=build_alias ;;
542 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
543 build_alias=$ac_optarg ;;
545 -cache-file | --cache-file | --cache-fil | --cache-fi \
546 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
547 ac_prev=cache_file ;;
548 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
549 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
550 cache_file=$ac_optarg ;;
553 cache_file=config.cache ;;
555 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
557 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
559 datadir=$ac_optarg ;;
561 -disable-* | --disable-*)
562 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
563 # Reject names that are not valid shell variable names.
564 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566 { (exit 1); exit 1; }; }
567 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 eval "enable_$ac_feature=no" ;;
570 -enable-* | --enable-*)
571 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
572 # Reject names that are not valid shell variable names.
573 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
574 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
575 { (exit 1); exit 1; }; }
576 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
578 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
581 eval "enable_$ac_feature='$ac_optarg'" ;;
583 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
584 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
585 | --exec | --exe | --ex)
586 ac_prev=exec_prefix ;;
587 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
588 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
589 | --exec=* | --exe=* | --ex=*)
590 exec_prefix=$ac_optarg ;;
592 -gas | --gas | --ga | --g)
593 # Obsolete; use --with-gas.
596 -help | --help | --hel | --he | -h)
598 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
599 ac_init_help=recursive ;;
600 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
601 ac_init_help=short ;;
603 -host | --host | --hos | --ho)
604 ac_prev=host_alias ;;
605 -host=* | --host=* | --hos=* | --ho=*)
606 host_alias=$ac_optarg ;;
608 -includedir | --includedir | --includedi | --included | --include \
609 | --includ | --inclu | --incl | --inc)
610 ac_prev=includedir ;;
611 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
612 | --includ=* | --inclu=* | --incl=* | --inc=*)
613 includedir=$ac_optarg ;;
615 -infodir | --infodir | --infodi | --infod | --info | --inf)
617 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
618 infodir=$ac_optarg ;;
620 -libdir | --libdir | --libdi | --libd)
622 -libdir=* | --libdir=* | --libdi=* | --libd=*)
625 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
626 | --libexe | --libex | --libe)
627 ac_prev=libexecdir ;;
628 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
629 | --libexe=* | --libex=* | --libe=*)
630 libexecdir=$ac_optarg ;;
632 -localstatedir | --localstatedir | --localstatedi | --localstated \
633 | --localstate | --localstat | --localsta | --localst \
634 | --locals | --local | --loca | --loc | --lo)
635 ac_prev=localstatedir ;;
636 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
637 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
638 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
639 localstatedir=$ac_optarg ;;
641 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
643 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
647 # Obsolete; use --without-fp.
650 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
651 | --no-cr | --no-c | -n)
654 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
655 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
658 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
659 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
660 | --oldin | --oldi | --old | --ol | --o)
661 ac_prev=oldincludedir ;;
662 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
663 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
664 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
665 oldincludedir=$ac_optarg ;;
667 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
669 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
672 -program-prefix | --program-prefix | --program-prefi | --program-pref \
673 | --program-pre | --program-pr | --program-p)
674 ac_prev=program_prefix ;;
675 -program-prefix=* | --program-prefix=* | --program-prefi=* \
676 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
677 program_prefix=$ac_optarg ;;
679 -program-suffix | --program-suffix | --program-suffi | --program-suff \
680 | --program-suf | --program-su | --program-s)
681 ac_prev=program_suffix ;;
682 -program-suffix=* | --program-suffix=* | --program-suffi=* \
683 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
684 program_suffix=$ac_optarg ;;
686 -program-transform-name | --program-transform-name \
687 | --program-transform-nam | --program-transform-na \
688 | --program-transform-n | --program-transform- \
689 | --program-transform | --program-transfor \
690 | --program-transfo | --program-transf \
691 | --program-trans | --program-tran \
692 | --progr-tra | --program-tr | --program-t)
693 ac_prev=program_transform_name ;;
694 -program-transform-name=* | --program-transform-name=* \
695 | --program-transform-nam=* | --program-transform-na=* \
696 | --program-transform-n=* | --program-transform-=* \
697 | --program-transform=* | --program-transfor=* \
698 | --program-transfo=* | --program-transf=* \
699 | --program-trans=* | --program-tran=* \
700 | --progr-tra=* | --program-tr=* | --program-t=*)
701 program_transform_name=$ac_optarg ;;
703 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
704 | -silent | --silent | --silen | --sile | --sil)
707 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
709 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
711 sbindir=$ac_optarg ;;
713 -sharedstatedir | --sharedstatedir | --sharedstatedi \
714 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
715 | --sharedst | --shareds | --shared | --share | --shar \
717 ac_prev=sharedstatedir ;;
718 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
719 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
720 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
722 sharedstatedir=$ac_optarg ;;
724 -site | --site | --sit)
726 -site=* | --site=* | --sit=*)
729 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
731 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
734 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
735 | --syscon | --sysco | --sysc | --sys | --sy)
736 ac_prev=sysconfdir ;;
737 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
738 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
739 sysconfdir=$ac_optarg ;;
741 -target | --target | --targe | --targ | --tar | --ta | --t)
742 ac_prev=target_alias ;;
743 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
744 target_alias=$ac_optarg ;;
746 -v | -verbose | --verbose | --verbos | --verbo | --verb)
749 -version | --version | --versio | --versi | --vers | -V)
753 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
754 # Reject names that are not valid shell variable names.
755 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
756 { echo "$as_me: error: invalid package name: $ac_package" >&2
757 { (exit 1); exit 1; }; }
758 ac_package=`echo $ac_package| sed 's/-/_/g'`
760 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
763 eval "with_$ac_package='$ac_optarg'" ;;
765 -without-* | --without-*)
766 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
767 # Reject names that are not valid shell variable names.
768 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
769 { echo "$as_me: error: invalid package name: $ac_package" >&2
770 { (exit 1); exit 1; }; }
771 ac_package=`echo $ac_package | sed 's/-/_/g'`
772 eval "with_$ac_package=no" ;;
775 # Obsolete; use --with-x.
778 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
779 | --x-incl | --x-inc | --x-in | --x-i)
780 ac_prev=x_includes ;;
781 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
782 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
783 x_includes=$ac_optarg ;;
785 -x-libraries | --x-libraries | --x-librarie | --x-librari \
786 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
787 ac_prev=x_libraries ;;
788 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
789 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
790 x_libraries=$ac_optarg ;;
792 -*) { echo "$as_me: error: unrecognized option: $ac_option
793 Try \`$0 --help' for more information." >&2
794 { (exit 1); exit 1; }; }
798 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
799 # Reject names that are not valid shell variable names.
800 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
801 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
802 { (exit 1); exit 1; }; }
803 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
804 eval "$ac_envvar='$ac_optarg'"
808 # FIXME: should be removed in autoconf 3.0.
809 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
810 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
811 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
812 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
818 if test -n "$ac_prev"; then
819 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
820 { echo "$as_me: error: missing argument to $ac_option" >&2
821 { (exit 1); exit 1; }; }
824 # Be sure to have absolute paths.
825 for ac_var in exec_prefix prefix
827 eval ac_val=$`echo $ac_var`
829 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831 { (exit 1); exit 1; }; };;
835 # Be sure to have absolute paths.
836 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
837 localstatedir libdir includedir oldincludedir infodir mandir
839 eval ac_val=$`echo $ac_var`
841 [\\/$]* | ?:[\\/]* ) ;;
842 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
843 { (exit 1); exit 1; }; };;
847 # There might be people who depend on the old broken behavior: `$host'
848 # used to hold the argument of --host etc.
849 # FIXME: To remove some day.
854 # FIXME: To remove some day.
855 if test "x$host_alias" != x; then
856 if test "x$build_alias" = x; then
857 cross_compiling=maybe
858 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
859 If a cross compiler is detected then cross compile mode will be used." >&2
860 elif test "x$build_alias" != "x$host_alias"; then
866 test -n "$host_alias" && ac_tool_prefix=$host_alias-
868 test "$silent" = yes && exec 6>/dev/null
871 # Find the source files, if location was not specified.
872 if test -z "$srcdir"; then
873 ac_srcdir_defaulted=yes
874 # Try the directory containing this script, then its parent.
875 ac_confdir=`(dirname "$0") 2>/dev/null ||
876 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
877 X"$0" : 'X\(//\)[^/]' \| \
878 X"$0" : 'X\(//\)$' \| \
879 X"$0" : 'X\(/\)' \| \
880 . : '\(.\)' 2>/dev/null ||
882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
883 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
884 /^X\(\/\/\)$/{ s//\1/; q; }
885 /^X\(\/\).*/{ s//\1/; q; }
888 if test ! -r $srcdir/$ac_unique_file; then
892 ac_srcdir_defaulted=no
894 if test ! -r $srcdir/$ac_unique_file; then
895 if test "$ac_srcdir_defaulted" = yes; then
896 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
897 { (exit 1); exit 1; }; }
899 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
900 { (exit 1); exit 1; }; }
903 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
904 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
905 { (exit 1); exit 1; }; }
906 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
907 ac_env_build_alias_set=${build_alias+set}
908 ac_env_build_alias_value=$build_alias
909 ac_cv_env_build_alias_set=${build_alias+set}
910 ac_cv_env_build_alias_value=$build_alias
911 ac_env_host_alias_set=${host_alias+set}
912 ac_env_host_alias_value=$host_alias
913 ac_cv_env_host_alias_set=${host_alias+set}
914 ac_cv_env_host_alias_value=$host_alias
915 ac_env_target_alias_set=${target_alias+set}
916 ac_env_target_alias_value=$target_alias
917 ac_cv_env_target_alias_set=${target_alias+set}
918 ac_cv_env_target_alias_value=$target_alias
919 ac_env_CC_set=${CC+set}
921 ac_cv_env_CC_set=${CC+set}
922 ac_cv_env_CC_value=$CC
923 ac_env_CFLAGS_set=${CFLAGS+set}
924 ac_env_CFLAGS_value=$CFLAGS
925 ac_cv_env_CFLAGS_set=${CFLAGS+set}
926 ac_cv_env_CFLAGS_value=$CFLAGS
927 ac_env_LDFLAGS_set=${LDFLAGS+set}
928 ac_env_LDFLAGS_value=$LDFLAGS
929 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
930 ac_cv_env_LDFLAGS_value=$LDFLAGS
931 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
932 ac_env_CPPFLAGS_value=$CPPFLAGS
933 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
934 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
935 ac_env_CPP_set=${CPP+set}
936 ac_env_CPP_value=$CPP
937 ac_cv_env_CPP_set=${CPP+set}
938 ac_cv_env_CPP_value=$CPP
939 ac_env_CXX_set=${CXX+set}
940 ac_env_CXX_value=$CXX
941 ac_cv_env_CXX_set=${CXX+set}
942 ac_cv_env_CXX_value=$CXX
943 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
944 ac_env_CXXFLAGS_value=$CXXFLAGS
945 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
946 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
947 ac_env_CXXCPP_set=${CXXCPP+set}
948 ac_env_CXXCPP_value=$CXXCPP
949 ac_cv_env_CXXCPP_set=${CXXCPP+set}
950 ac_cv_env_CXXCPP_value=$CXXCPP
951 ac_env_F77_set=${F77+set}
952 ac_env_F77_value=$F77
953 ac_cv_env_F77_set=${F77+set}
954 ac_cv_env_F77_value=$F77
955 ac_env_FFLAGS_set=${FFLAGS+set}
956 ac_env_FFLAGS_value=$FFLAGS
957 ac_cv_env_FFLAGS_set=${FFLAGS+set}
958 ac_cv_env_FFLAGS_value=$FFLAGS
961 # Report the --help message.
963 if test "$ac_init_help" = "long"; then
964 # Omit some internal or obsolete options to make the list less imposing.
965 # This message is too long to be a string in the A/UX 3.1 sh.
967 \`configure' configures llvm 1.6cvs to adapt to many kinds of systems.
969 Usage: $0 [OPTION]... [VAR=VALUE]...
971 To assign environment variables (e.g., CC, CFLAGS...), specify them as
972 VAR=VALUE. See below for descriptions of some of the useful variables.
974 Defaults for the options are specified in brackets.
977 -h, --help display this help and exit
978 --help=short display options specific to this package
979 --help=recursive display the short help of all the included packages
980 -V, --version display version information and exit
981 -q, --quiet, --silent do not print \`checking...' messages
982 --cache-file=FILE cache test results in FILE [disabled]
983 -C, --config-cache alias for \`--cache-file=config.cache'
984 -n, --no-create do not create output files
985 --srcdir=DIR find the sources in DIR [configure dir or \`..']
990 Installation directories:
991 --prefix=PREFIX install architecture-independent files in PREFIX
993 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
996 By default, \`make install' will install all the files in
997 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
998 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
999 for instance \`--prefix=\$HOME'.
1001 For better control, use the options below.
1003 Fine tuning of the installation directories:
1004 --bindir=DIR user executables [EPREFIX/bin]
1005 --sbindir=DIR system admin executables [EPREFIX/sbin]
1006 --libexecdir=DIR program executables [EPREFIX/libexec]
1007 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1008 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1009 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1010 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1011 --libdir=DIR object code libraries [EPREFIX/lib]
1012 --includedir=DIR C header files [PREFIX/include]
1013 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1014 --infodir=DIR info documentation [PREFIX/info]
1015 --mandir=DIR man documentation [PREFIX/man]
1021 --build=BUILD configure for building on BUILD [guessed]
1022 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1023 --target=TARGET configure for building compilers for TARGET [HOST]
1027 if test -n "$ac_init_help"; then
1028 case $ac_init_help in
1029 short | recursive ) echo "Configuration of llvm 1.6cvs:";;
1034 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1035 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1037 --enable-jit Enable Just In Time Compiling (default is YES)
1038 --enable-doxygen Build doxygen documentation (default is NO)
1039 --enable-target Build specific host targets:
1040 all,host-only,{target-name} (default=all)
1041 --enable-ltdl-install install libltdl
1042 --enable-shared[=PKGS]
1043 build shared libraries [default=yes]
1044 --enable-static[=PKGS]
1045 build static libraries [default=yes]
1046 --enable-fast-install[=PKGS]
1047 optimize for fast installation [default=yes]
1048 --disable-libtool-lock avoid locking (might break parallel builds)
1051 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1052 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1053 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1055 --with-tclinclude directory where tcl headers are
1056 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1057 --with-pic try to use only PIC/non-PIC objects [default=use
1060 include additional configurations [automatic]
1062 Some influential environment variables:
1063 CC C compiler command
1064 CFLAGS C compiler flags
1065 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1066 nonstandard directory <lib dir>
1067 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1068 headers in a nonstandard directory <include dir>
1070 CXX C++ compiler command
1071 CXXFLAGS C++ compiler flags
1072 CXXCPP C++ preprocessor
1073 F77 Fortran 77 compiler command
1074 FFLAGS Fortran 77 compiler flags
1076 Use these variables to override the choices made by `configure' or to help
1077 it to find libraries and programs with nonstandard names/locations.
1079 Report bugs to <llvmbugs@cs.uiuc.edu>.
1083 if test "$ac_init_help" = "recursive"; then
1084 # If there are subdirs, report their specific --help.
1086 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1087 test -d $ac_dir || continue
1090 if test "$ac_dir" != .; then
1091 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1092 # A "../" for each directory in $ac_dir_suffix.
1093 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1095 ac_dir_suffix= ac_top_builddir=
1099 .) # No --srcdir option. We are building in place.
1101 if test -z "$ac_top_builddir"; then
1104 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1106 [\\/]* | ?:[\\/]* ) # Absolute path.
1107 ac_srcdir=$srcdir$ac_dir_suffix;
1108 ac_top_srcdir=$srcdir ;;
1110 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1111 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1114 # Do not use `cd foo && pwd` to compute absolute paths, because
1115 # the directories may not exist.
1117 .) ac_abs_builddir="$ac_dir";;
1120 .) ac_abs_builddir=`pwd`;;
1121 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1122 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1125 case $ac_abs_builddir in
1126 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1128 case ${ac_top_builddir}. in
1129 .) ac_abs_top_builddir=$ac_abs_builddir;;
1130 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1131 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1134 case $ac_abs_builddir in
1135 .) ac_abs_srcdir=$ac_srcdir;;
1138 .) ac_abs_srcdir=$ac_abs_builddir;;
1139 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1140 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1143 case $ac_abs_builddir in
1144 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1146 case $ac_top_srcdir in
1147 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1148 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1149 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1154 # Check for guested configure; otherwise get Cygnus style configure.
1155 if test -f $ac_srcdir/configure.gnu; then
1157 $SHELL $ac_srcdir/configure.gnu --help=recursive
1158 elif test -f $ac_srcdir/configure; then
1160 $SHELL $ac_srcdir/configure --help=recursive
1161 elif test -f $ac_srcdir/configure.ac ||
1162 test -f $ac_srcdir/configure.in; then
1164 $ac_configure --help
1166 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1172 test -n "$ac_init_help" && exit 0
1173 if $ac_init_version; then
1175 llvm configure 1.6cvs
1176 generated by GNU Autoconf 2.59
1178 Copyright (C) 2003 Free Software Foundation, Inc.
1179 This configure script is free software; the Free Software Foundation
1180 gives unlimited permission to copy, distribute and modify it.
1188 This file contains any messages produced by compilers while
1189 running configure, to aid debugging if configure makes a mistake.
1191 It was created by llvm $as_me 1.6cvs, which was
1192 generated by GNU Autoconf 2.59. Invocation command line was
1203 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1204 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1205 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1206 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1207 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1209 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1210 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1212 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1213 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1214 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1215 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1216 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1217 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1218 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1226 test -z "$as_dir" && as_dir=.
1227 echo "PATH: $as_dir"
1242 # Keep a trace of the command line.
1243 # Strip out --no-create and --no-recursion so they do not pile up.
1244 # Strip out --silent because we don't want to record it for future runs.
1245 # Also quote any args containing shell meta-characters.
1246 # Make two passes to allow for proper duplicate-argument suppression.
1251 ac_must_keep_next=false
1257 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1258 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1259 | -silent | --silent | --silen | --sile | --sil)
1261 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1262 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1265 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1267 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1268 if test $ac_must_keep_next = true; then
1269 ac_must_keep_next=false # Got value, back to normal.
1272 *=* | --config-cache | -C | -disable-* | --disable-* \
1273 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1274 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1275 | -with-* | --with-* | -without-* | --without-* | --x)
1276 case "$ac_configure_args0 " in
1277 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1280 -* ) ac_must_keep_next=true ;;
1283 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1284 # Get rid of the leading space.
1290 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1291 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1293 # When interrupted or exit'd, cleanup temporary files, and complete
1294 # config.log. We remove comments because anyway the quotes in there
1295 # would cause problems or look ugly.
1296 # WARNING: Be sure not to use single quotes in there, as some shells,
1297 # such as our DU 5.0 friend, will then `close' the trap.
1298 trap 'exit_status=$?
1299 # Save into config.log some information that might help in debugging.
1304 ## ---------------- ##
1305 ## Cache variables. ##
1306 ## ---------------- ##
1309 # The following way of writing the cache mishandles newlines in values,
1312 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1315 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1316 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1320 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1327 ## ----------------- ##
1328 ## Output variables. ##
1329 ## ----------------- ##
1332 for ac_var in $ac_subst_vars
1334 eval ac_val=$`echo $ac_var`
1335 echo "$ac_var='"'"'$ac_val'"'"'"
1339 if test -n "$ac_subst_files"; then
1346 for ac_var in $ac_subst_files
1348 eval ac_val=$`echo $ac_var`
1349 echo "$ac_var='"'"'$ac_val'"'"'"
1354 if test -s confdefs.h; then
1361 sed "/^$/d" confdefs.h | sort
1364 test "$ac_signal" != 0 &&
1365 echo "$as_me: caught signal $ac_signal"
1366 echo "$as_me: exit $exit_status"
1368 rm -f core *.core &&
1369 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1372 for ac_signal in 1 2 13 15; do
1373 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1377 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1378 rm -rf conftest* confdefs.h
1379 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1382 # Predefined preprocessor variables.
1384 cat >>confdefs.h <<_ACEOF
1385 #define PACKAGE_NAME "$PACKAGE_NAME"
1389 cat >>confdefs.h <<_ACEOF
1390 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1394 cat >>confdefs.h <<_ACEOF
1395 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1399 cat >>confdefs.h <<_ACEOF
1400 #define PACKAGE_STRING "$PACKAGE_STRING"
1404 cat >>confdefs.h <<_ACEOF
1405 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1409 # Let the site file select an alternate cache file if it wants to.
1410 # Prefer explicitly selected file to automatically selected ones.
1411 if test -z "$CONFIG_SITE"; then
1412 if test "x$prefix" != xNONE; then
1413 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1415 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1418 for ac_site_file in $CONFIG_SITE; do
1419 if test -r "$ac_site_file"; then
1420 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1421 echo "$as_me: loading site script $ac_site_file" >&6;}
1422 sed 's/^/| /' "$ac_site_file" >&5
1427 if test -r "$cache_file"; then
1428 # Some versions of bash will fail to source /dev/null (special
1429 # files actually), so we avoid doing that.
1430 if test -f "$cache_file"; then
1431 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1432 echo "$as_me: loading cache $cache_file" >&6;}
1434 [\\/]* | ?:[\\/]* ) . $cache_file;;
1435 *) . ./$cache_file;;
1439 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1440 echo "$as_me: creating cache $cache_file" >&6;}
1444 # Check that the precious variables saved in the cache have kept the same
1446 ac_cache_corrupted=false
1447 for ac_var in `(set) 2>&1 |
1448 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1449 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1450 eval ac_new_set=\$ac_env_${ac_var}_set
1451 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1452 eval ac_new_val="\$ac_env_${ac_var}_value"
1453 case $ac_old_set,$ac_new_set in
1455 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1456 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1457 ac_cache_corrupted=: ;;
1459 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1460 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1461 ac_cache_corrupted=: ;;
1464 if test "x$ac_old_val" != "x$ac_new_val"; then
1465 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1466 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1467 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1468 echo "$as_me: former value: $ac_old_val" >&2;}
1469 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1470 echo "$as_me: current value: $ac_new_val" >&2;}
1471 ac_cache_corrupted=:
1474 # Pass precious variables to config.status.
1475 if test "$ac_new_set" = set; then
1477 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1478 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1479 *) ac_arg=$ac_var=$ac_new_val ;;
1481 case " $ac_configure_args " in
1482 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1483 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1487 if $ac_cache_corrupted; then
1488 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1489 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1490 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1491 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1492 { (exit 1); exit 1; }; }
1496 ac_cpp='$CPP $CPPFLAGS'
1497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1528 LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
1537 for ac_dir in autoconf $srcdir/autoconf; do
1538 if test -f $ac_dir/install-sh; then
1540 ac_install_sh="$ac_aux_dir/install-sh -c"
1542 elif test -f $ac_dir/install.sh; then
1544 ac_install_sh="$ac_aux_dir/install.sh -c"
1546 elif test -f $ac_dir/shtool; then
1548 ac_install_sh="$ac_aux_dir/shtool install -c"
1552 if test -z "$ac_aux_dir"; then
1553 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1554 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1555 { (exit 1); exit 1; }; }
1557 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1558 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1559 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1562 if test ${srcdir} != "." ; then
1563 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1564 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1565 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1566 { (exit 1); exit 1; }; }
1570 for i in `ls ${srcdir}/projects`
1572 if test -d ${srcdir}/projects/${i} ; then
1577 subdirs="$subdirs projects/sample"
1581 subdirs="$subdirs projects/Stacker"
1585 subdirs="$subdirs projects/llvm-test"
1589 subdirs="$subdirs projects/llvm-reopt"
1593 subdirs="$subdirs projects/llvm-gcc"
1597 subdirs="$subdirs projects/llvm-java"
1601 subdirs="$subdirs projects/llvm-tv"
1605 subdirs="$subdirs projects/llvm-poolalloc"
1608 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1609 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1616 # Make sure we can run config.sub.
1617 $ac_config_sub sun4 >/dev/null 2>&1 ||
1618 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1619 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1620 { (exit 1); exit 1; }; }
1622 echo "$as_me:$LINENO: checking build system type" >&5
1623 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1624 if test "${ac_cv_build+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1627 ac_cv_build_alias=$build_alias
1628 test -z "$ac_cv_build_alias" &&
1629 ac_cv_build_alias=`$ac_config_guess`
1630 test -z "$ac_cv_build_alias" &&
1631 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1632 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1633 { (exit 1); exit 1; }; }
1634 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1635 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1636 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1637 { (exit 1); exit 1; }; }
1640 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1641 echo "${ECHO_T}$ac_cv_build" >&6
1643 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1644 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1645 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1648 echo "$as_me:$LINENO: checking host system type" >&5
1649 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1650 if test "${ac_cv_host+set}" = set; then
1651 echo $ECHO_N "(cached) $ECHO_C" >&6
1653 ac_cv_host_alias=$host_alias
1654 test -z "$ac_cv_host_alias" &&
1655 ac_cv_host_alias=$ac_cv_build_alias
1656 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1657 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1658 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1659 { (exit 1); exit 1; }; }
1662 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1663 echo "${ECHO_T}$ac_cv_host" >&6
1665 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1666 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1667 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1670 echo "$as_me:$LINENO: checking target system type" >&5
1671 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1672 if test "${ac_cv_target+set}" = set; then
1673 echo $ECHO_N "(cached) $ECHO_C" >&6
1675 ac_cv_target_alias=$target_alias
1676 test "x$ac_cv_target_alias" = "x" &&
1677 ac_cv_target_alias=$ac_cv_host_alias
1678 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1679 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1680 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1681 { (exit 1); exit 1; }; }
1684 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1685 echo "${ECHO_T}$ac_cv_target" >&6
1686 target=$ac_cv_target
1687 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1688 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1689 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1692 # The aliases save the names the user supplied, while $host etc.
1693 # will get canonicalized.
1694 test -n "$target_alias" &&
1695 test "$program_prefix$program_suffix$program_transform_name" = \
1697 program_prefix=${target_alias}-
1699 echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1700 echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1701 if test "${llvm_cv_os_type+set}" = set; then
1702 echo $ECHO_N "(cached) $ECHO_C" >&6
1706 llvm_cv_os_type="AIX"
1707 llvm_cv_platform_type="Unix" ;;
1709 llvm_cv_os_type="Cygwin"
1710 llvm_cv_platform_type="Unix" ;;
1712 llvm_cv_os_type="Darwin"
1713 llvm_cv_platform_type="Unix" ;;
1715 llvm_cv_os_type="FreeBSD"
1716 llvm_cv_platform_type="Unix" ;;
1718 llvm_cv_os_type="HP-UX"
1719 llvm_cv_platform_type="Unix" ;;
1721 llvm_cv_os_type="Interix"
1722 llvm_cv_platform_type="Unix" ;;
1724 llvm_cv_os_type="Linux"
1725 llvm_cv_platform_type="Unix" ;;
1727 llvm_cv_os_type="SunOS"
1728 llvm_cv_platform_type="Unix" ;;
1730 llvm_cv_os_type="Win32"
1731 llvm_cv_platform_type="Win32" ;;
1733 llvm_cv_os_type="MingW"
1734 llvm_cv_platform_type="Win32" ;;
1736 llvm_cv_os_type="Unknown"
1737 llvm_cv_platform_type="Unknown" ;;
1740 echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1741 echo "${ECHO_T}$llvm_cv_os_type" >&6
1743 if test "$llvm_cv_os_type" = "Unknown" ; then
1744 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1745 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
1746 { (exit 1); exit 1; }; }
1752 case $llvm_cv_platform_type in
1755 cat >>confdefs.h <<\_ACEOF
1756 #define LLVM_ON_UNIX 1
1766 cat >>confdefs.h <<\_ACEOF
1767 #define LLVM_ON_WIN32 1
1777 echo "$as_me:$LINENO: checking target architecture" >&5
1778 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1779 if test "${llvm_cv_target_arch+set}" = set; then
1780 echo $ECHO_N "(cached) $ECHO_C" >&6
1783 i?86-*) llvm_cv_target_arch="x86" ;;
1784 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
1785 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1786 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
1787 alpha*-*) llvm_cv_target_arch="Alpha" ;;
1788 ia64-*) llvm_cv_target_arch="IA64" ;;
1789 *) llvm_cv_target_arch="Unknown" ;;
1792 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1793 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1795 if test "$llvm_cv_target_arch" = "Unknown" ; then
1796 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1797 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1800 ARCH=$llvm_cv_target_arch
1804 ac_cpp='$CPP $CPPFLAGS'
1805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1808 if test -n "$ac_tool_prefix"; then
1809 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1810 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1811 echo "$as_me:$LINENO: checking for $ac_word" >&5
1812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1813 if test "${ac_cv_prog_CC+set}" = set; then
1814 echo $ECHO_N "(cached) $ECHO_C" >&6
1816 if test -n "$CC"; then
1817 ac_cv_prog_CC="$CC" # Let the user override the test.
1819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1823 test -z "$as_dir" && as_dir=.
1824 for ac_exec_ext in '' $ac_executable_extensions; do
1825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1826 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1836 if test -n "$CC"; then
1837 echo "$as_me:$LINENO: result: $CC" >&5
1838 echo "${ECHO_T}$CC" >&6
1840 echo "$as_me:$LINENO: result: no" >&5
1841 echo "${ECHO_T}no" >&6
1845 if test -z "$ac_cv_prog_CC"; then
1847 # Extract the first word of "gcc", so it can be a program name with args.
1848 set dummy gcc; ac_word=$2
1849 echo "$as_me:$LINENO: checking for $ac_word" >&5
1850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1851 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1852 echo $ECHO_N "(cached) $ECHO_C" >&6
1854 if test -n "$ac_ct_CC"; then
1855 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1861 test -z "$as_dir" && as_dir=.
1862 for ac_exec_ext in '' $ac_executable_extensions; do
1863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1864 ac_cv_prog_ac_ct_CC="gcc"
1865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1873 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1874 if test -n "$ac_ct_CC"; then
1875 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1876 echo "${ECHO_T}$ac_ct_CC" >&6
1878 echo "$as_me:$LINENO: result: no" >&5
1879 echo "${ECHO_T}no" >&6
1887 if test -z "$CC"; then
1888 if test -n "$ac_tool_prefix"; then
1889 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1890 set dummy ${ac_tool_prefix}cc; ac_word=$2
1891 echo "$as_me:$LINENO: checking for $ac_word" >&5
1892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1893 if test "${ac_cv_prog_CC+set}" = set; then
1894 echo $ECHO_N "(cached) $ECHO_C" >&6
1896 if test -n "$CC"; then
1897 ac_cv_prog_CC="$CC" # Let the user override the test.
1899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1903 test -z "$as_dir" && as_dir=.
1904 for ac_exec_ext in '' $ac_executable_extensions; do
1905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1906 ac_cv_prog_CC="${ac_tool_prefix}cc"
1907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1916 if test -n "$CC"; then
1917 echo "$as_me:$LINENO: result: $CC" >&5
1918 echo "${ECHO_T}$CC" >&6
1920 echo "$as_me:$LINENO: result: no" >&5
1921 echo "${ECHO_T}no" >&6
1925 if test -z "$ac_cv_prog_CC"; then
1927 # Extract the first word of "cc", so it can be a program name with args.
1928 set dummy cc; ac_word=$2
1929 echo "$as_me:$LINENO: checking for $ac_word" >&5
1930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1931 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1932 echo $ECHO_N "(cached) $ECHO_C" >&6
1934 if test -n "$ac_ct_CC"; then
1935 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1941 test -z "$as_dir" && as_dir=.
1942 for ac_exec_ext in '' $ac_executable_extensions; do
1943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1944 ac_cv_prog_ac_ct_CC="cc"
1945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1953 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1954 if test -n "$ac_ct_CC"; then
1955 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1956 echo "${ECHO_T}$ac_ct_CC" >&6
1958 echo "$as_me:$LINENO: result: no" >&5
1959 echo "${ECHO_T}no" >&6
1968 if test -z "$CC"; then
1969 # Extract the first word of "cc", so it can be a program name with args.
1970 set dummy cc; ac_word=$2
1971 echo "$as_me:$LINENO: checking for $ac_word" >&5
1972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1973 if test "${ac_cv_prog_CC+set}" = set; then
1974 echo $ECHO_N "(cached) $ECHO_C" >&6
1976 if test -n "$CC"; then
1977 ac_cv_prog_CC="$CC" # Let the user override the test.
1980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984 test -z "$as_dir" && as_dir=.
1985 for ac_exec_ext in '' $ac_executable_extensions; do
1986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1987 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1988 ac_prog_rejected=yes
1992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1998 if test $ac_prog_rejected = yes; then
1999 # We found a bogon in the path, so make sure we never use it.
2000 set dummy $ac_cv_prog_CC
2002 if test $# != 0; then
2003 # We chose a different compiler from the bogus one.
2004 # However, it has the same basename, so the bogon will be chosen
2005 # first if we set CC to just the basename; use the full file name.
2007 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2013 if test -n "$CC"; then
2014 echo "$as_me:$LINENO: result: $CC" >&5
2015 echo "${ECHO_T}$CC" >&6
2017 echo "$as_me:$LINENO: result: no" >&5
2018 echo "${ECHO_T}no" >&6
2022 if test -z "$CC"; then
2023 if test -n "$ac_tool_prefix"; then
2026 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2027 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2028 echo "$as_me:$LINENO: checking for $ac_word" >&5
2029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2030 if test "${ac_cv_prog_CC+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2033 if test -n "$CC"; then
2034 ac_cv_prog_CC="$CC" # Let the user override the test.
2036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2040 test -z "$as_dir" && as_dir=.
2041 for ac_exec_ext in '' $ac_executable_extensions; do
2042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2043 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2053 if test -n "$CC"; then
2054 echo "$as_me:$LINENO: result: $CC" >&5
2055 echo "${ECHO_T}$CC" >&6
2057 echo "$as_me:$LINENO: result: no" >&5
2058 echo "${ECHO_T}no" >&6
2061 test -n "$CC" && break
2064 if test -z "$CC"; then
2068 # Extract the first word of "$ac_prog", so it can be a program name with args.
2069 set dummy $ac_prog; ac_word=$2
2070 echo "$as_me:$LINENO: checking for $ac_word" >&5
2071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2072 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2075 if test -n "$ac_ct_CC"; then
2076 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2082 test -z "$as_dir" && as_dir=.
2083 for ac_exec_ext in '' $ac_executable_extensions; do
2084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2085 ac_cv_prog_ac_ct_CC="$ac_prog"
2086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2094 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2095 if test -n "$ac_ct_CC"; then
2096 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2097 echo "${ECHO_T}$ac_ct_CC" >&6
2099 echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6
2103 test -n "$ac_ct_CC" && break
2112 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2113 See \`config.log' for more details." >&5
2114 echo "$as_me: error: no acceptable C compiler found in \$PATH
2115 See \`config.log' for more details." >&2;}
2116 { (exit 1); exit 1; }; }
2118 # Provide some information about the compiler.
2119 echo "$as_me:$LINENO:" \
2120 "checking for C compiler version" >&5
2121 ac_compiler=`set X $ac_compile; echo $2`
2122 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2123 (eval $ac_compiler --version </dev/null >&5) 2>&5
2125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126 (exit $ac_status); }
2127 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2128 (eval $ac_compiler -v </dev/null >&5) 2>&5
2130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131 (exit $ac_status); }
2132 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2133 (eval $ac_compiler -V </dev/null >&5) 2>&5
2135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136 (exit $ac_status); }
2138 cat >conftest.$ac_ext <<_ACEOF
2141 cat confdefs.h >>conftest.$ac_ext
2142 cat >>conftest.$ac_ext <<_ACEOF
2143 /* end confdefs.h. */
2153 ac_clean_files_save=$ac_clean_files
2154 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2155 # Try to create an executable without -o first, disregard a.out.
2156 # It will help us diagnose broken compilers, and finding out an intuition
2158 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2159 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2160 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2161 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2162 (eval $ac_link_default) 2>&5
2164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165 (exit $ac_status); }; then
2166 # Find the output, starting from the most likely. This scheme is
2167 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2170 # Be careful to initialize this variable, since it used to be cached.
2171 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2173 # b.out is created by i960 compilers.
2174 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2176 test -f "$ac_file" || continue
2178 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2181 # This is the source file.
2184 # We found the default executable, but exeext='' is most
2188 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2189 # FIXME: I believe we export ac_cv_exeext for Libtool,
2190 # but it would be cool to find out if it's true. Does anybody
2191 # maintain Libtool? --akim.
2199 echo "$as_me: failed program was:" >&5
2200 sed 's/^/| /' conftest.$ac_ext >&5
2202 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2203 See \`config.log' for more details." >&5
2204 echo "$as_me: error: C compiler cannot create executables
2205 See \`config.log' for more details." >&2;}
2206 { (exit 77); exit 77; }; }
2209 ac_exeext=$ac_cv_exeext
2210 echo "$as_me:$LINENO: result: $ac_file" >&5
2211 echo "${ECHO_T}$ac_file" >&6
2213 # Check the compiler produces executables we can run. If not, either
2214 # the compiler is broken, or we cross compile.
2215 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2216 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2217 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2218 # If not cross compiling, check that we can run a simple program.
2219 if test "$cross_compiling" != yes; then
2220 if { ac_try='./$ac_file'
2221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225 (exit $ac_status); }; }; then
2228 if test "$cross_compiling" = maybe; then
2231 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2232 If you meant to cross compile, use \`--host'.
2233 See \`config.log' for more details." >&5
2234 echo "$as_me: error: cannot run C compiled programs.
2235 If you meant to cross compile, use \`--host'.
2236 See \`config.log' for more details." >&2;}
2237 { (exit 1); exit 1; }; }
2241 echo "$as_me:$LINENO: result: yes" >&5
2242 echo "${ECHO_T}yes" >&6
2244 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2245 ac_clean_files=$ac_clean_files_save
2246 # Check the compiler produces executables we can run. If not, either
2247 # the compiler is broken, or we cross compile.
2248 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2249 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2250 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2251 echo "${ECHO_T}$cross_compiling" >&6
2253 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2254 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2256 (eval $ac_link) 2>&5
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); }; then
2260 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2261 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2262 # work properly (i.e., refer to `conftest.exe'), while it won't with
2264 for ac_file in conftest.exe conftest conftest.*; do
2265 test -f "$ac_file" || continue
2267 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2268 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2275 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2276 See \`config.log' for more details." >&5
2277 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2278 See \`config.log' for more details." >&2;}
2279 { (exit 1); exit 1; }; }
2282 rm -f conftest$ac_cv_exeext
2283 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2284 echo "${ECHO_T}$ac_cv_exeext" >&6
2286 rm -f conftest.$ac_ext
2287 EXEEXT=$ac_cv_exeext
2289 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2290 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2291 if test "${ac_cv_objext+set}" = set; then
2292 echo $ECHO_N "(cached) $ECHO_C" >&6
2294 cat >conftest.$ac_ext <<_ACEOF
2297 cat confdefs.h >>conftest.$ac_ext
2298 cat >>conftest.$ac_ext <<_ACEOF
2299 /* end confdefs.h. */
2309 rm -f conftest.o conftest.obj
2310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2311 (eval $ac_compile) 2>&5
2313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314 (exit $ac_status); }; then
2315 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2317 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2318 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2323 echo "$as_me: failed program was:" >&5
2324 sed 's/^/| /' conftest.$ac_ext >&5
2326 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2327 See \`config.log' for more details." >&5
2328 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2329 See \`config.log' for more details." >&2;}
2330 { (exit 1); exit 1; }; }
2333 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2335 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2336 echo "${ECHO_T}$ac_cv_objext" >&6
2337 OBJEXT=$ac_cv_objext
2339 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2340 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2341 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2342 echo $ECHO_N "(cached) $ECHO_C" >&6
2344 cat >conftest.$ac_ext <<_ACEOF
2347 cat confdefs.h >>conftest.$ac_ext
2348 cat >>conftest.$ac_ext <<_ACEOF
2349 /* end confdefs.h. */
2362 rm -f conftest.$ac_objext
2363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2364 (eval $ac_compile) 2>conftest.er1
2366 grep -v '^ *+' conftest.er1 >conftest.err
2368 cat conftest.err >&5
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); } &&
2371 { ac_try='test -z "$ac_c_werror_flag"
2372 || test ! -s conftest.err'
2373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); }; } &&
2378 { ac_try='test -s conftest.$ac_objext'
2379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); }; }; then
2386 echo "$as_me: failed program was:" >&5
2387 sed 's/^/| /' conftest.$ac_ext >&5
2391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2392 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2395 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2396 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2397 GCC=`test $ac_compiler_gnu = yes && echo yes`
2398 ac_test_CFLAGS=${CFLAGS+set}
2399 ac_save_CFLAGS=$CFLAGS
2401 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2402 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2403 if test "${ac_cv_prog_cc_g+set}" = set; then
2404 echo $ECHO_N "(cached) $ECHO_C" >&6
2406 cat >conftest.$ac_ext <<_ACEOF
2409 cat confdefs.h >>conftest.$ac_ext
2410 cat >>conftest.$ac_ext <<_ACEOF
2411 /* end confdefs.h. */
2421 rm -f conftest.$ac_objext
2422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2423 (eval $ac_compile) 2>conftest.er1
2425 grep -v '^ *+' conftest.er1 >conftest.err
2427 cat conftest.err >&5
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); } &&
2430 { ac_try='test -z "$ac_c_werror_flag"
2431 || test ! -s conftest.err'
2432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); }; } &&
2437 { ac_try='test -s conftest.$ac_objext'
2438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); }; }; then
2445 echo "$as_me: failed program was:" >&5
2446 sed 's/^/| /' conftest.$ac_ext >&5
2450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2452 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2453 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2454 if test "$ac_test_CFLAGS" = set; then
2455 CFLAGS=$ac_save_CFLAGS
2456 elif test $ac_cv_prog_cc_g = yes; then
2457 if test "$GCC" = yes; then
2463 if test "$GCC" = yes; then
2469 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2470 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2471 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2472 echo $ECHO_N "(cached) $ECHO_C" >&6
2474 ac_cv_prog_cc_stdc=no
2476 cat >conftest.$ac_ext <<_ACEOF
2479 cat confdefs.h >>conftest.$ac_ext
2480 cat >>conftest.$ac_ext <<_ACEOF
2481 /* end confdefs.h. */
2484 #include <sys/types.h>
2485 #include <sys/stat.h>
2486 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2487 struct buf { int x; };
2488 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2489 static char *e (p, i)
2495 static char *f (char * (*g) (char **, int), char **p, ...)
2500 s = g (p, va_arg (v,int));
2505 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2506 function prototypes and stuff, but not '\xHH' hex character constants.
2507 These don't provoke an error unfortunately, instead are silently treated
2508 as 'x'. The following induces an error, until -std1 is added to get
2509 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2510 array size at least. It's necessary to write '\x00'==0 to get something
2511 that's true only with -std1. */
2512 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2514 int test (int i, double x);
2515 struct s1 {int (*f) (int a);};
2516 struct s2 {int (*f) (double a);};
2517 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2523 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2528 # Don't try gcc -ansi; that turns off useful extensions and
2529 # breaks some systems' header files.
2530 # AIX -qlanglvl=ansi
2531 # Ultrix and OSF/1 -std1
2532 # HP-UX 10.20 and later -Ae
2533 # HP-UX older versions -Aa -D_HPUX_SOURCE
2534 # SVR4 -Xc -D__EXTENSIONS__
2535 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2537 CC="$ac_save_CC $ac_arg"
2538 rm -f conftest.$ac_objext
2539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2540 (eval $ac_compile) 2>conftest.er1
2542 grep -v '^ *+' conftest.er1 >conftest.err
2544 cat conftest.err >&5
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); } &&
2547 { ac_try='test -z "$ac_c_werror_flag"
2548 || test ! -s conftest.err'
2549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); }; } &&
2554 { ac_try='test -s conftest.$ac_objext'
2555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }; }; then
2560 ac_cv_prog_cc_stdc=$ac_arg
2563 echo "$as_me: failed program was:" >&5
2564 sed 's/^/| /' conftest.$ac_ext >&5
2567 rm -f conftest.err conftest.$ac_objext
2569 rm -f conftest.$ac_ext conftest.$ac_objext
2574 case "x$ac_cv_prog_cc_stdc" in
2576 echo "$as_me:$LINENO: result: none needed" >&5
2577 echo "${ECHO_T}none needed" >&6 ;;
2579 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2580 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2581 CC="$CC $ac_cv_prog_cc_stdc" ;;
2584 # Some people use a C++ compiler to compile C. Since we use `exit',
2585 # in C++ we need to declare it. In case someone uses the same compiler
2586 # for both compiling C and C++ we need to have the C++ compiler decide
2587 # the declaration of exit, since it's the most demanding environment.
2588 cat >conftest.$ac_ext <<_ACEOF
2593 rm -f conftest.$ac_objext
2594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2595 (eval $ac_compile) 2>conftest.er1
2597 grep -v '^ *+' conftest.er1 >conftest.err
2599 cat conftest.err >&5
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); } &&
2602 { ac_try='test -z "$ac_c_werror_flag"
2603 || test ! -s conftest.err'
2604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); }; } &&
2609 { ac_try='test -s conftest.$ac_objext'
2610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; }; then
2615 for ac_declaration in \
2617 'extern "C" void std::exit (int) throw (); using std::exit;' \
2618 'extern "C" void std::exit (int); using std::exit;' \
2619 'extern "C" void exit (int) throw ();' \
2620 'extern "C" void exit (int);' \
2623 cat >conftest.$ac_ext <<_ACEOF
2626 cat confdefs.h >>conftest.$ac_ext
2627 cat >>conftest.$ac_ext <<_ACEOF
2628 /* end confdefs.h. */
2639 rm -f conftest.$ac_objext
2640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2641 (eval $ac_compile) 2>conftest.er1
2643 grep -v '^ *+' conftest.er1 >conftest.err
2645 cat conftest.err >&5
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); } &&
2648 { ac_try='test -z "$ac_c_werror_flag"
2649 || test ! -s conftest.err'
2650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); }; } &&
2655 { ac_try='test -s conftest.$ac_objext'
2656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); }; }; then
2663 echo "$as_me: failed program was:" >&5
2664 sed 's/^/| /' conftest.$ac_ext >&5
2668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2669 cat >conftest.$ac_ext <<_ACEOF
2672 cat confdefs.h >>conftest.$ac_ext
2673 cat >>conftest.$ac_ext <<_ACEOF
2674 /* end confdefs.h. */
2684 rm -f conftest.$ac_objext
2685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2686 (eval $ac_compile) 2>conftest.er1
2688 grep -v '^ *+' conftest.er1 >conftest.err
2690 cat conftest.err >&5
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); } &&
2693 { ac_try='test -z "$ac_c_werror_flag"
2694 || test ! -s conftest.err'
2695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); }; } &&
2700 { ac_try='test -s conftest.$ac_objext'
2701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); }; }; then
2708 echo "$as_me: failed program was:" >&5
2709 sed 's/^/| /' conftest.$ac_ext >&5
2712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2715 if test -n "$ac_declaration"; then
2716 echo '#ifdef __cplusplus' >>confdefs.h
2717 echo $ac_declaration >>confdefs.h
2718 echo '#endif' >>confdefs.h
2722 echo "$as_me: failed program was:" >&5
2723 sed 's/^/| /' conftest.$ac_ext >&5
2726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2728 ac_cpp='$CPP $CPPFLAGS'
2729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2734 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2735 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2736 if test "${ac_cv_c_bigendian+set}" = set; then
2737 echo $ECHO_N "(cached) $ECHO_C" >&6
2739 # See if sys/param.h defines the BYTE_ORDER macro.
2740 cat >conftest.$ac_ext <<_ACEOF
2743 cat confdefs.h >>conftest.$ac_ext
2744 cat >>conftest.$ac_ext <<_ACEOF
2745 /* end confdefs.h. */
2746 #include <sys/types.h>
2747 #include <sys/param.h>
2752 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2760 rm -f conftest.$ac_objext
2761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2762 (eval $ac_compile) 2>conftest.er1
2764 grep -v '^ *+' conftest.er1 >conftest.err
2766 cat conftest.err >&5
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); } &&
2769 { ac_try='test -z "$ac_c_werror_flag"
2770 || test ! -s conftest.err'
2771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); }; } &&
2776 { ac_try='test -s conftest.$ac_objext'
2777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); }; }; then
2782 # It does; now see whether it defined to BIG_ENDIAN or not.
2783 cat >conftest.$ac_ext <<_ACEOF
2786 cat confdefs.h >>conftest.$ac_ext
2787 cat >>conftest.$ac_ext <<_ACEOF
2788 /* end confdefs.h. */
2789 #include <sys/types.h>
2790 #include <sys/param.h>
2795 #if BYTE_ORDER != BIG_ENDIAN
2803 rm -f conftest.$ac_objext
2804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2805 (eval $ac_compile) 2>conftest.er1
2807 grep -v '^ *+' conftest.er1 >conftest.err
2809 cat conftest.err >&5
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); } &&
2812 { ac_try='test -z "$ac_c_werror_flag"
2813 || test ! -s conftest.err'
2814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); }; } &&
2819 { ac_try='test -s conftest.$ac_objext'
2820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); }; }; then
2825 ac_cv_c_bigendian=yes
2827 echo "$as_me: failed program was:" >&5
2828 sed 's/^/| /' conftest.$ac_ext >&5
2830 ac_cv_c_bigendian=no
2832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2834 echo "$as_me: failed program was:" >&5
2835 sed 's/^/| /' conftest.$ac_ext >&5
2837 # It does not; compile a test program.
2838 if test "$cross_compiling" = yes; then
2839 # try to guess the endianness by grepping values into an object file
2840 ac_cv_c_bigendian=unknown
2841 cat >conftest.$ac_ext <<_ACEOF
2844 cat confdefs.h >>conftest.$ac_ext
2845 cat >>conftest.$ac_ext <<_ACEOF
2846 /* end confdefs.h. */
2847 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2848 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2849 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2850 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2851 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2852 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2856 _ascii (); _ebcdic ();
2861 rm -f conftest.$ac_objext
2862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2863 (eval $ac_compile) 2>conftest.er1
2865 grep -v '^ *+' conftest.er1 >conftest.err
2867 cat conftest.err >&5
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); } &&
2870 { ac_try='test -z "$ac_c_werror_flag"
2871 || test ! -s conftest.err'
2872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); }; } &&
2877 { ac_try='test -s conftest.$ac_objext'
2878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }; }; then
2883 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2884 ac_cv_c_bigendian=yes
2886 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2887 if test "$ac_cv_c_bigendian" = unknown; then
2888 ac_cv_c_bigendian=no
2890 # finding both strings is unlikely to happen, but who knows?
2891 ac_cv_c_bigendian=unknown
2895 echo "$as_me: failed program was:" >&5
2896 sed 's/^/| /' conftest.$ac_ext >&5
2899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2901 cat >conftest.$ac_ext <<_ACEOF
2904 cat confdefs.h >>conftest.$ac_ext
2905 cat >>conftest.$ac_ext <<_ACEOF
2906 /* end confdefs.h. */
2910 /* Are we little or big endian? From Harbison&Steele. */
2914 char c[sizeof (long)];
2917 exit (u.c[sizeof (long) - 1] == 1);
2920 rm -f conftest$ac_exeext
2921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2922 (eval $ac_link) 2>&5
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }; }; then
2931 ac_cv_c_bigendian=no
2933 echo "$as_me: program exited with status $ac_status" >&5
2934 echo "$as_me: failed program was:" >&5
2935 sed 's/^/| /' conftest.$ac_ext >&5
2938 ac_cv_c_bigendian=yes
2940 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2945 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2946 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2947 case $ac_cv_c_bigendian in
2955 { { echo "$as_me:$LINENO: error: unknown endianness
2956 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2957 echo "$as_me: error: unknown endianness
2958 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2959 { (exit 1); exit 1; }; } ;;
2964 # Check whether --enable-optimized or --disable-optimized was given.
2965 if test "${enable_optimized+set}" = set; then
2966 enableval="$enable_optimized"
2971 if test ${enableval} = "no" ; then
2975 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2979 # Check whether --enable-jit or --disable-jit was given.
2980 if test "${enable_jit+set}" = set; then
2981 enableval="$enable_jit"
2986 if test ${enableval} = "no"
2991 case "$llvm_cv_target_arch" in
2992 x86) JIT=TARGET_HAS_JIT=1
2994 Sparc) JIT=TARGET_HAS_JIT=1
2996 PowerPC) JIT=TARGET_HAS_JIT=1
3009 # Check whether --enable-doxygen or --disable-doxygen was given.
3010 if test "${enable_doxygen+set}" = set; then
3011 enableval="$enable_doxygen"
3016 case "$enableval" in
3017 yes) ENABLE_DOXYGEN=1
3019 no) ENABLE_DOXYGEN=0
3021 default) ENABLE_DOXYGEN=0
3023 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3024 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3025 { (exit 1); exit 1; }; } ;;
3029 # Check whether --enable-targets or --disable-targets was given.
3030 if test "${enable_targets+set}" = set; then
3031 enableval="$enable_targets"
3036 case "$enableval" in
3037 all) TARGETS_TO_BUILD="X86 SparcV8 SparcV9 PowerPC Alpha IA64 Skeleton" ;;
3039 case "$llvm_cv_target_arch" in
3040 x86) TARGETS_TO_BUILD="X86" ;;
3041 x86_64) TARGETS_TO_BUILD="X86" ;;
3042 Sparc) TARGETS_TO_BUILD="SparcV8 SparcV9" ;;
3043 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3044 Alpha) TARGETS_TO_BUILD="Alpha" ;;
3045 IA64) TARGETS_TO_BUILD="IA64" ;;
3046 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
3047 echo "$as_me: error: Can not set target to build" >&2;}
3048 { (exit 1); exit 1; }; } ;;
3051 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3053 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3054 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3055 sparc) TARGETS_TO_BUILD="SparcV8 SparcV9 $TARGETS_TO_BUILD" ;;
3056 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3057 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3058 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
3059 skeleton)TARGETS_TO_BUILD="Skeleton $TARGETS_TO_BUILD";;
3060 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3061 echo "$as_me: error: Unrecognized target $a_target" >&2;}
3062 { (exit 1); exit 1; }; } ;;
3067 TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
3068 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3072 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3073 if test "${with_llvmgccdir+set}" = set; then
3074 withval="$with_llvmgccdir"
3080 default) WITH_LLVMGCCDIR=default ;;
3081 /*) WITH_LLVMGCCDIR=$withval ;;
3082 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3083 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3084 { (exit 1); exit 1; }; } ;;
3090 ac_cpp='$CPP $CPPFLAGS'
3091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3094 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3095 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3096 # On Suns, sometimes $CPP names a directory.
3097 if test -n "$CPP" && test -d "$CPP"; then
3100 if test -z "$CPP"; then
3101 if test "${ac_cv_prog_CPP+set}" = set; then
3102 echo $ECHO_N "(cached) $ECHO_C" >&6
3104 # Double quotes because CPP needs to be expanded
3105 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
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
3212 echo "$as_me:$LINENO: result: $CPP" >&5
3213 echo "${ECHO_T}$CPP" >&6
3215 for ac_c_preproc_warn_flag in '' yes
3217 # Use a header file that comes with gcc, so configuring glibc
3218 # with a fresh cross-compiler works.
3219 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3220 # <limits.h> exists even on freestanding compilers.
3221 # On the NeXT, cc -E runs the code through the compiler's parser,
3222 # not just through cpp. "Syntax error" is here to catch this case.
3223 cat >conftest.$ac_ext <<_ACEOF
3226 cat confdefs.h >>conftest.$ac_ext
3227 cat >>conftest.$ac_ext <<_ACEOF
3228 /* end confdefs.h. */
3230 # include <limits.h>
3232 # include <assert.h>
3236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3237 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3239 grep -v '^ *+' conftest.er1 >conftest.err
3241 cat conftest.err >&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); } >/dev/null; then
3244 if test -s conftest.err; then
3245 ac_cpp_err=$ac_c_preproc_warn_flag
3246 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3253 if test -z "$ac_cpp_err"; then
3256 echo "$as_me: failed program was:" >&5
3257 sed 's/^/| /' conftest.$ac_ext >&5
3259 # Broken: fails on valid input.
3262 rm -f conftest.err conftest.$ac_ext
3264 # OK, works on sane cases. Now check whether non-existent headers
3265 # can be detected and how.
3266 cat >conftest.$ac_ext <<_ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h. */
3272 #include <ac_nonexistent.h>
3274 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3275 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3277 grep -v '^ *+' conftest.er1 >conftest.err
3279 cat conftest.err >&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); } >/dev/null; then
3282 if test -s conftest.err; then
3283 ac_cpp_err=$ac_c_preproc_warn_flag
3284 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3291 if test -z "$ac_cpp_err"; then
3292 # Broken: success on invalid input.
3295 echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3298 # Passes both tests.
3302 rm -f conftest.err conftest.$ac_ext
3305 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3306 rm -f conftest.err conftest.$ac_ext
3307 if $ac_preproc_ok; then
3310 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3311 See \`config.log' for more details." >&5
3312 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3313 See \`config.log' for more details." >&2;}
3314 { (exit 1); exit 1; }; }
3318 ac_cpp='$CPP $CPPFLAGS'
3319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3324 ac_cpp='$CPP $CPPFLAGS'
3325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3328 if test -n "$ac_tool_prefix"; then
3331 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3332 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3333 echo "$as_me:$LINENO: checking for $ac_word" >&5
3334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3335 if test "${ac_cv_prog_CC+set}" = set; then
3336 echo $ECHO_N "(cached) $ECHO_C" >&6
3338 if test -n "$CC"; then
3339 ac_cv_prog_CC="$CC" # Let the user override the test.
3341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3345 test -z "$as_dir" && as_dir=.
3346 for ac_exec_ext in '' $ac_executable_extensions; do
3347 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3348 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3358 if test -n "$CC"; then
3359 echo "$as_me:$LINENO: result: $CC" >&5
3360 echo "${ECHO_T}$CC" >&6
3362 echo "$as_me:$LINENO: result: no" >&5
3363 echo "${ECHO_T}no" >&6
3366 test -n "$CC" && break
3369 if test -z "$CC"; then
3373 # Extract the first word of "$ac_prog", so it can be a program name with args.
3374 set dummy $ac_prog; ac_word=$2
3375 echo "$as_me:$LINENO: checking for $ac_word" >&5
3376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3377 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3380 if test -n "$ac_ct_CC"; then
3381 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387 test -z "$as_dir" && as_dir=.
3388 for ac_exec_ext in '' $ac_executable_extensions; do
3389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3390 ac_cv_prog_ac_ct_CC="$ac_prog"
3391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3399 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3400 if test -n "$ac_ct_CC"; then
3401 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3402 echo "${ECHO_T}$ac_ct_CC" >&6
3404 echo "$as_me:$LINENO: result: no" >&5
3405 echo "${ECHO_T}no" >&6
3408 test -n "$ac_ct_CC" && break
3415 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3416 See \`config.log' for more details." >&5
3417 echo "$as_me: error: no acceptable C compiler found in \$PATH
3418 See \`config.log' for more details." >&2;}
3419 { (exit 1); exit 1; }; }
3421 # Provide some information about the compiler.
3422 echo "$as_me:$LINENO:" \
3423 "checking for C compiler version" >&5
3424 ac_compiler=`set X $ac_compile; echo $2`
3425 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3426 (eval $ac_compiler --version </dev/null >&5) 2>&5
3428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429 (exit $ac_status); }
3430 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3431 (eval $ac_compiler -v </dev/null >&5) 2>&5
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); }
3435 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3436 (eval $ac_compiler -V </dev/null >&5) 2>&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); }
3441 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3442 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3443 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3446 cat >conftest.$ac_ext <<_ACEOF
3449 cat confdefs.h >>conftest.$ac_ext
3450 cat >>conftest.$ac_ext <<_ACEOF
3451 /* end confdefs.h. */
3464 rm -f conftest.$ac_objext
3465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3466 (eval $ac_compile) 2>conftest.er1
3468 grep -v '^ *+' conftest.er1 >conftest.err
3470 cat conftest.err >&5
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); } &&
3473 { ac_try='test -z "$ac_c_werror_flag"
3474 || test ! -s conftest.err'
3475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); }; } &&
3480 { ac_try='test -s conftest.$ac_objext'
3481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); }; }; then
3488 echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.$ac_ext >&5
3493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3494 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3497 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3498 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3499 GCC=`test $ac_compiler_gnu = yes && echo yes`
3500 ac_test_CFLAGS=${CFLAGS+set}
3501 ac_save_CFLAGS=$CFLAGS
3503 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3504 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3505 if test "${ac_cv_prog_cc_g+set}" = set; then
3506 echo $ECHO_N "(cached) $ECHO_C" >&6
3508 cat >conftest.$ac_ext <<_ACEOF
3511 cat confdefs.h >>conftest.$ac_ext
3512 cat >>conftest.$ac_ext <<_ACEOF
3513 /* end confdefs.h. */
3523 rm -f conftest.$ac_objext
3524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3525 (eval $ac_compile) 2>conftest.er1
3527 grep -v '^ *+' conftest.er1 >conftest.err
3529 cat conftest.err >&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } &&
3532 { ac_try='test -z "$ac_c_werror_flag"
3533 || test ! -s conftest.err'
3534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); }; } &&
3539 { ac_try='test -s conftest.$ac_objext'
3540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); }; }; then
3547 echo "$as_me: failed program was:" >&5
3548 sed 's/^/| /' conftest.$ac_ext >&5
3552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3554 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3555 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3556 if test "$ac_test_CFLAGS" = set; then
3557 CFLAGS=$ac_save_CFLAGS
3558 elif test $ac_cv_prog_cc_g = yes; then
3559 if test "$GCC" = yes; then
3565 if test "$GCC" = yes; then
3571 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3572 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3573 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3574 echo $ECHO_N "(cached) $ECHO_C" >&6
3576 ac_cv_prog_cc_stdc=no
3578 cat >conftest.$ac_ext <<_ACEOF
3581 cat confdefs.h >>conftest.$ac_ext
3582 cat >>conftest.$ac_ext <<_ACEOF
3583 /* end confdefs.h. */
3586 #include <sys/types.h>
3587 #include <sys/stat.h>
3588 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3589 struct buf { int x; };
3590 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3591 static char *e (p, i)
3597 static char *f (char * (*g) (char **, int), char **p, ...)
3602 s = g (p, va_arg (v,int));
3607 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3608 function prototypes and stuff, but not '\xHH' hex character constants.
3609 These don't provoke an error unfortunately, instead are silently treated
3610 as 'x'. The following induces an error, until -std1 is added to get
3611 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3612 array size at least. It's necessary to write '\x00'==0 to get something
3613 that's true only with -std1. */
3614 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3616 int test (int i, double x);
3617 struct s1 {int (*f) (int a);};
3618 struct s2 {int (*f) (double a);};
3619 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3625 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3630 # Don't try gcc -ansi; that turns off useful extensions and
3631 # breaks some systems' header files.
3632 # AIX -qlanglvl=ansi
3633 # Ultrix and OSF/1 -std1
3634 # HP-UX 10.20 and later -Ae
3635 # HP-UX older versions -Aa -D_HPUX_SOURCE
3636 # SVR4 -Xc -D__EXTENSIONS__
3637 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3639 CC="$ac_save_CC $ac_arg"
3640 rm -f conftest.$ac_objext
3641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3642 (eval $ac_compile) 2>conftest.er1
3644 grep -v '^ *+' conftest.er1 >conftest.err
3646 cat conftest.err >&5
3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); } &&
3649 { ac_try='test -z "$ac_c_werror_flag"
3650 || test ! -s conftest.err'
3651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); }; } &&
3656 { ac_try='test -s conftest.$ac_objext'
3657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); }; }; then
3662 ac_cv_prog_cc_stdc=$ac_arg
3665 echo "$as_me: failed program was:" >&5
3666 sed 's/^/| /' conftest.$ac_ext >&5
3669 rm -f conftest.err conftest.$ac_objext
3671 rm -f conftest.$ac_ext conftest.$ac_objext
3676 case "x$ac_cv_prog_cc_stdc" in
3678 echo "$as_me:$LINENO: result: none needed" >&5
3679 echo "${ECHO_T}none needed" >&6 ;;
3681 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3682 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3683 CC="$CC $ac_cv_prog_cc_stdc" ;;
3686 # Some people use a C++ compiler to compile C. Since we use `exit',
3687 # in C++ we need to declare it. In case someone uses the same compiler
3688 # for both compiling C and C++ we need to have the C++ compiler decide
3689 # the declaration of exit, since it's the most demanding environment.
3690 cat >conftest.$ac_ext <<_ACEOF
3695 rm -f conftest.$ac_objext
3696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3697 (eval $ac_compile) 2>conftest.er1
3699 grep -v '^ *+' conftest.er1 >conftest.err
3701 cat conftest.err >&5
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); } &&
3704 { ac_try='test -z "$ac_c_werror_flag"
3705 || test ! -s conftest.err'
3706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); }; } &&
3711 { ac_try='test -s conftest.$ac_objext'
3712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); }; }; then
3717 for ac_declaration in \
3719 'extern "C" void std::exit (int) throw (); using std::exit;' \
3720 'extern "C" void std::exit (int); using std::exit;' \
3721 'extern "C" void exit (int) throw ();' \
3722 'extern "C" void exit (int);' \
3725 cat >conftest.$ac_ext <<_ACEOF
3728 cat confdefs.h >>conftest.$ac_ext
3729 cat >>conftest.$ac_ext <<_ACEOF
3730 /* end confdefs.h. */
3741 rm -f conftest.$ac_objext
3742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3743 (eval $ac_compile) 2>conftest.er1
3745 grep -v '^ *+' conftest.er1 >conftest.err
3747 cat conftest.err >&5
3748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749 (exit $ac_status); } &&
3750 { ac_try='test -z "$ac_c_werror_flag"
3751 || test ! -s conftest.err'
3752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756 (exit $ac_status); }; } &&
3757 { ac_try='test -s conftest.$ac_objext'
3758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); }; }; then
3765 echo "$as_me: failed program was:" >&5
3766 sed 's/^/| /' conftest.$ac_ext >&5
3770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3771 cat >conftest.$ac_ext <<_ACEOF
3774 cat confdefs.h >>conftest.$ac_ext
3775 cat >>conftest.$ac_ext <<_ACEOF
3776 /* end confdefs.h. */
3786 rm -f conftest.$ac_objext
3787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3788 (eval $ac_compile) 2>conftest.er1
3790 grep -v '^ *+' conftest.er1 >conftest.err
3792 cat conftest.err >&5
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); } &&
3795 { ac_try='test -z "$ac_c_werror_flag"
3796 || test ! -s conftest.err'
3797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); }; } &&
3802 { ac_try='test -s conftest.$ac_objext'
3803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); }; }; then
3810 echo "$as_me: failed program was:" >&5
3811 sed 's/^/| /' conftest.$ac_ext >&5
3814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3817 if test -n "$ac_declaration"; then
3818 echo '#ifdef __cplusplus' >>confdefs.h
3819 echo $ac_declaration >>confdefs.h
3820 echo '#endif' >>confdefs.h
3824 echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3830 ac_cpp='$CPP $CPPFLAGS'
3831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3836 ac_cpp='$CXXCPP $CPPFLAGS'
3837 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3838 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3839 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3840 if test -n "$ac_tool_prefix"; then
3841 for ac_prog in $CCC g++
3843 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3844 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3845 echo "$as_me:$LINENO: checking for $ac_word" >&5
3846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3847 if test "${ac_cv_prog_CXX+set}" = set; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3850 if test -n "$CXX"; then
3851 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3857 test -z "$as_dir" && as_dir=.
3858 for ac_exec_ext in '' $ac_executable_extensions; do
3859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3860 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3870 if test -n "$CXX"; then
3871 echo "$as_me:$LINENO: result: $CXX" >&5
3872 echo "${ECHO_T}$CXX" >&6
3874 echo "$as_me:$LINENO: result: no" >&5
3875 echo "${ECHO_T}no" >&6
3878 test -n "$CXX" && break
3881 if test -z "$CXX"; then
3883 for ac_prog in $CCC g++
3885 # Extract the first word of "$ac_prog", so it can be a program name with args.
3886 set dummy $ac_prog; ac_word=$2
3887 echo "$as_me:$LINENO: checking for $ac_word" >&5
3888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3889 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3890 echo $ECHO_N "(cached) $ECHO_C" >&6
3892 if test -n "$ac_ct_CXX"; then
3893 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899 test -z "$as_dir" && as_dir=.
3900 for ac_exec_ext in '' $ac_executable_extensions; do
3901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3902 ac_cv_prog_ac_ct_CXX="$ac_prog"
3903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3911 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3912 if test -n "$ac_ct_CXX"; then
3913 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3914 echo "${ECHO_T}$ac_ct_CXX" >&6
3916 echo "$as_me:$LINENO: result: no" >&5
3917 echo "${ECHO_T}no" >&6
3920 test -n "$ac_ct_CXX" && break
3922 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3928 # Provide some information about the compiler.
3929 echo "$as_me:$LINENO:" \
3930 "checking for C++ compiler version" >&5
3931 ac_compiler=`set X $ac_compile; echo $2`
3932 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3933 (eval $ac_compiler --version </dev/null >&5) 2>&5
3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); }
3937 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3938 (eval $ac_compiler -v </dev/null >&5) 2>&5
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); }
3942 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3943 (eval $ac_compiler -V </dev/null >&5) 2>&5
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); }
3948 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3949 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3950 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3951 echo $ECHO_N "(cached) $ECHO_C" >&6
3953 cat >conftest.$ac_ext <<_ACEOF
3956 cat confdefs.h >>conftest.$ac_ext
3957 cat >>conftest.$ac_ext <<_ACEOF
3958 /* end confdefs.h. */
3971 rm -f conftest.$ac_objext
3972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3973 (eval $ac_compile) 2>conftest.er1
3975 grep -v '^ *+' conftest.er1 >conftest.err
3977 cat conftest.err >&5
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); } &&
3980 { ac_try='test -z "$ac_cxx_werror_flag"
3981 || test ! -s conftest.err'
3982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); }; } &&
3987 { ac_try='test -s conftest.$ac_objext'
3988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); }; }; then
3995 echo "$as_me: failed program was:" >&5
3996 sed 's/^/| /' conftest.$ac_ext >&5
4000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4001 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4004 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4005 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4006 GXX=`test $ac_compiler_gnu = yes && echo yes`
4007 ac_test_CXXFLAGS=${CXXFLAGS+set}
4008 ac_save_CXXFLAGS=$CXXFLAGS
4010 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4011 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4012 if test "${ac_cv_prog_cxx_g+set}" = set; then
4013 echo $ECHO_N "(cached) $ECHO_C" >&6
4015 cat >conftest.$ac_ext <<_ACEOF
4018 cat confdefs.h >>conftest.$ac_ext
4019 cat >>conftest.$ac_ext <<_ACEOF
4020 /* end confdefs.h. */
4030 rm -f conftest.$ac_objext
4031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4032 (eval $ac_compile) 2>conftest.er1
4034 grep -v '^ *+' conftest.er1 >conftest.err
4036 cat conftest.err >&5
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); } &&
4039 { ac_try='test -z "$ac_cxx_werror_flag"
4040 || test ! -s conftest.err'
4041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); }; } &&
4046 { ac_try='test -s conftest.$ac_objext'
4047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); }; }; then
4052 ac_cv_prog_cxx_g=yes
4054 echo "$as_me: failed program was:" >&5
4055 sed 's/^/| /' conftest.$ac_ext >&5
4059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4061 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4062 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4063 if test "$ac_test_CXXFLAGS" = set; then
4064 CXXFLAGS=$ac_save_CXXFLAGS
4065 elif test $ac_cv_prog_cxx_g = yes; then
4066 if test "$GXX" = yes; then
4072 if test "$GXX" = yes; then
4078 for ac_declaration in \
4080 'extern "C" void std::exit (int) throw (); using std::exit;' \
4081 'extern "C" void std::exit (int); using std::exit;' \
4082 'extern "C" void exit (int) throw ();' \
4083 'extern "C" void exit (int);' \
4086 cat >conftest.$ac_ext <<_ACEOF
4089 cat confdefs.h >>conftest.$ac_ext
4090 cat >>conftest.$ac_ext <<_ACEOF
4091 /* end confdefs.h. */
4102 rm -f conftest.$ac_objext
4103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4104 (eval $ac_compile) 2>conftest.er1
4106 grep -v '^ *+' conftest.er1 >conftest.err
4108 cat conftest.err >&5
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); } &&
4111 { ac_try='test -z "$ac_cxx_werror_flag"
4112 || test ! -s conftest.err'
4113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); }; } &&
4118 { ac_try='test -s conftest.$ac_objext'
4119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); }; }; then
4126 echo "$as_me: failed program was:" >&5
4127 sed 's/^/| /' conftest.$ac_ext >&5
4131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4132 cat >conftest.$ac_ext <<_ACEOF
4135 cat confdefs.h >>conftest.$ac_ext
4136 cat >>conftest.$ac_ext <<_ACEOF
4137 /* end confdefs.h. */
4147 rm -f conftest.$ac_objext
4148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4149 (eval $ac_compile) 2>conftest.er1
4151 grep -v '^ *+' conftest.er1 >conftest.err
4153 cat conftest.err >&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); } &&
4156 { ac_try='test -z "$ac_cxx_werror_flag"
4157 || test ! -s conftest.err'
4158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); }; } &&
4163 { ac_try='test -s conftest.$ac_objext'
4164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); }; }; then
4171 echo "$as_me: failed program was:" >&5
4172 sed 's/^/| /' conftest.$ac_ext >&5
4175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4178 if test -n "$ac_declaration"; then
4179 echo '#ifdef __cplusplus' >>confdefs.h
4180 echo $ac_declaration >>confdefs.h
4181 echo '#endif' >>confdefs.h
4185 ac_cpp='$CPP $CPPFLAGS'
4186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4190 echo "$as_me:$LINENO: checking " >&5
4191 echo $ECHO_N "checking ... $ECHO_C" >&6
4192 if test "${ac_cv_has_flex+set}" = set; then
4193 echo $ECHO_N "(cached) $ECHO_C" >&6
4195 for ac_prog in flex lex
4197 # Extract the first word of "$ac_prog", so it can be a program name with args.
4198 set dummy $ac_prog; ac_word=$2
4199 echo "$as_me:$LINENO: checking for $ac_word" >&5
4200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4201 if test "${ac_cv_prog_LEX+set}" = set; then
4202 echo $ECHO_N "(cached) $ECHO_C" >&6
4204 if test -n "$LEX"; then
4205 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4211 test -z "$as_dir" && as_dir=.
4212 for ac_exec_ext in '' $ac_executable_extensions; do
4213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4214 ac_cv_prog_LEX="$ac_prog"
4215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4224 if test -n "$LEX"; then
4225 echo "$as_me:$LINENO: result: $LEX" >&5
4226 echo "${ECHO_T}$LEX" >&6
4228 echo "$as_me:$LINENO: result: no" >&5
4229 echo "${ECHO_T}no" >&6
4232 test -n "$LEX" && break
4234 test -n "$LEX" || LEX=":"
4236 if test -z "$LEXLIB"
4238 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4239 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4240 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4241 echo $ECHO_N "(cached) $ECHO_C" >&6
4243 ac_check_lib_save_LIBS=$LIBS
4245 cat >conftest.$ac_ext <<_ACEOF
4248 cat confdefs.h >>conftest.$ac_ext
4249 cat >>conftest.$ac_ext <<_ACEOF
4250 /* end confdefs.h. */
4252 /* Override any gcc2 internal prototype to avoid an error. */
4256 /* We use char because int might match the return type of a gcc2
4257 builtin and then its argument prototype would still apply. */
4267 rm -f conftest.$ac_objext conftest$ac_exeext
4268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4269 (eval $ac_link) 2>conftest.er1
4271 grep -v '^ *+' conftest.er1 >conftest.err
4273 cat conftest.err >&5
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); } &&
4276 { ac_try='test -z "$ac_c_werror_flag"
4277 || test ! -s conftest.err'
4278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); }; } &&
4283 { ac_try='test -s conftest$ac_exeext'
4284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); }; }; then
4289 ac_cv_lib_fl_yywrap=yes
4291 echo "$as_me: failed program was:" >&5
4292 sed 's/^/| /' conftest.$ac_ext >&5
4294 ac_cv_lib_fl_yywrap=no
4296 rm -f conftest.err conftest.$ac_objext \
4297 conftest$ac_exeext conftest.$ac_ext
4298 LIBS=$ac_check_lib_save_LIBS
4300 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4301 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4302 if test $ac_cv_lib_fl_yywrap = yes; then
4305 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4306 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4307 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
4310 ac_check_lib_save_LIBS=$LIBS
4312 cat >conftest.$ac_ext <<_ACEOF
4315 cat confdefs.h >>conftest.$ac_ext
4316 cat >>conftest.$ac_ext <<_ACEOF
4317 /* end confdefs.h. */
4319 /* Override any gcc2 internal prototype to avoid an error. */
4323 /* We use char because int might match the return type of a gcc2
4324 builtin and then its argument prototype would still apply. */
4334 rm -f conftest.$ac_objext conftest$ac_exeext
4335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4336 (eval $ac_link) 2>conftest.er1
4338 grep -v '^ *+' conftest.er1 >conftest.err
4340 cat conftest.err >&5
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); } &&
4343 { ac_try='test -z "$ac_c_werror_flag"
4344 || test ! -s conftest.err'
4345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); }; } &&
4350 { ac_try='test -s conftest$ac_exeext'
4351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); }; }; then
4356 ac_cv_lib_l_yywrap=yes
4358 echo "$as_me: failed program was:" >&5
4359 sed 's/^/| /' conftest.$ac_ext >&5
4361 ac_cv_lib_l_yywrap=no
4363 rm -f conftest.err conftest.$ac_objext \
4364 conftest$ac_exeext conftest.$ac_ext
4365 LIBS=$ac_check_lib_save_LIBS
4367 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4368 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4369 if test $ac_cv_lib_l_yywrap = yes; then
4377 if test "x$LEX" != "x:"; then
4378 echo "$as_me:$LINENO: checking lex output file root" >&5
4379 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4380 if test "${ac_cv_prog_lex_root+set}" = set; then
4381 echo $ECHO_N "(cached) $ECHO_C" >&6
4383 # The minimal lex program is just a single line: %%. But some broken lexes
4384 # (Solaris, I think it was) want two %% lines, so accommodate them.
4385 cat >conftest.l <<_ACEOF
4389 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4390 (eval $LEX conftest.l) 2>&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); }
4394 if test -f lex.yy.c; then
4395 ac_cv_prog_lex_root=lex.yy
4396 elif test -f lexyy.c; then
4397 ac_cv_prog_lex_root=lexyy
4399 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4400 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4401 { (exit 1); exit 1; }; }
4404 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4405 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4407 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4409 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4410 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4411 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4412 echo $ECHO_N "(cached) $ECHO_C" >&6
4414 # POSIX says lex can declare yytext either as a pointer or an array; the
4415 # default is implementation-dependent. Figure out which it is, since
4416 # not all implementations provide the %pointer and %array declarations.
4417 ac_cv_prog_lex_yytext_pointer=no
4418 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4420 LIBS="$LIBS $LEXLIB"
4421 cat >conftest.$ac_ext <<_ACEOF
4422 `cat $LEX_OUTPUT_ROOT.c`
4424 rm -f conftest.$ac_objext conftest$ac_exeext
4425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4426 (eval $ac_link) 2>conftest.er1
4428 grep -v '^ *+' conftest.er1 >conftest.err
4430 cat conftest.err >&5
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); } &&
4433 { ac_try='test -z "$ac_c_werror_flag"
4434 || test ! -s conftest.err'
4435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); }; } &&
4440 { ac_try='test -s conftest$ac_exeext'
4441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); }; }; then
4446 ac_cv_prog_lex_yytext_pointer=yes
4448 echo "$as_me: failed program was:" >&5
4449 sed 's/^/| /' conftest.$ac_ext >&5
4452 rm -f conftest.err conftest.$ac_objext \
4453 conftest$ac_exeext conftest.$ac_ext
4455 rm -f "${LEX_OUTPUT_ROOT}.c"
4458 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4459 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4460 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4462 cat >>confdefs.h <<\_ACEOF
4463 #define YYTEXT_POINTER 1
4471 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4472 echo "${ECHO_T}$ac_cv_has_flex" >&6
4473 if test "$LEX" != "flex"; then
4474 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4475 echo "$as_me: error: flex not found but required" >&2;}
4476 { (exit 1); exit 1; }; }
4482 echo "$as_me:$LINENO: checking " >&5
4483 echo $ECHO_N "checking ... $ECHO_C" >&6
4484 if test "${llvm_cv_has_bison+set}" = set; then
4485 echo $ECHO_N "(cached) $ECHO_C" >&6
4487 for ac_prog in 'bison -y' byacc
4489 # Extract the first word of "$ac_prog", so it can be a program name with args.
4490 set dummy $ac_prog; ac_word=$2
4491 echo "$as_me:$LINENO: checking for $ac_word" >&5
4492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4493 if test "${ac_cv_prog_YACC+set}" = set; then
4494 echo $ECHO_N "(cached) $ECHO_C" >&6
4496 if test -n "$YACC"; then
4497 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503 test -z "$as_dir" && as_dir=.
4504 for ac_exec_ext in '' $ac_executable_extensions; do
4505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4506 ac_cv_prog_YACC="$ac_prog"
4507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4515 YACC=$ac_cv_prog_YACC
4516 if test -n "$YACC"; then
4517 echo "$as_me:$LINENO: result: $YACC" >&5
4518 echo "${ECHO_T}$YACC" >&6
4520 echo "$as_me:$LINENO: result: no" >&5
4521 echo "${ECHO_T}no" >&6
4524 test -n "$YACC" && break
4526 test -n "$YACC" || YACC="yacc"
4529 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4530 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4531 if test "$YACC" != "bison -y"; then
4532 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4533 echo "$as_me: error: bison not found but required" >&2;}
4534 { (exit 1); exit 1; }; }
4540 echo "$as_me:$LINENO: checking for GNU make" >&5
4541 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4542 if test "${llvm_cv_gnu_make_command+set}" = set; then
4543 echo $ECHO_N "(cached) $ECHO_C" >&6
4545 llvm_cv_gnu_make_command=''
4546 for a in "$MAKE" make gmake gnumake ; do
4547 if test -z "$a" ; then continue ; fi ;
4548 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4550 llvm_cv_gnu_make_command=$a ;
4555 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4556 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4557 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4561 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4562 echo "${ECHO_T}\"Not found\"" >&6;
4566 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4567 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4569 if test "$LN_S" = "ln -s"; then
4570 echo "$as_me:$LINENO: result: yes" >&5
4571 echo "${ECHO_T}yes" >&6
4573 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4574 echo "${ECHO_T}no, using $LN_S" >&6
4577 # Extract the first word of "cmp", so it can be a program name with args.
4578 set dummy cmp; ac_word=$2
4579 echo "$as_me:$LINENO: checking for $ac_word" >&5
4580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4581 if test "${ac_cv_path_CMP+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4586 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593 test -z "$as_dir" && as_dir=.
4594 for ac_exec_ext in '' $ac_executable_extensions; do
4595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4596 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4603 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4609 if test -n "$CMP"; then
4610 echo "$as_me:$LINENO: result: $CMP" >&5
4611 echo "${ECHO_T}$CMP" >&6
4613 echo "$as_me:$LINENO: result: no" >&5
4614 echo "${ECHO_T}no" >&6
4617 # Extract the first word of "cp", so it can be a program name with args.
4618 set dummy cp; ac_word=$2
4619 echo "$as_me:$LINENO: checking for $ac_word" >&5
4620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4621 if test "${ac_cv_path_CP+set}" = set; then
4622 echo $ECHO_N "(cached) $ECHO_C" >&6
4626 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633 test -z "$as_dir" && as_dir=.
4634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4636 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4643 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4649 if test -n "$CP"; then
4650 echo "$as_me:$LINENO: result: $CP" >&5
4651 echo "${ECHO_T}$CP" >&6
4653 echo "$as_me:$LINENO: result: no" >&5
4654 echo "${ECHO_T}no" >&6
4657 # Extract the first word of "date", so it can be a program name with args.
4658 set dummy date; ac_word=$2
4659 echo "$as_me:$LINENO: checking for $ac_word" >&5
4660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4661 if test "${ac_cv_path_DATE+set}" = set; then
4662 echo $ECHO_N "(cached) $ECHO_C" >&6
4666 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673 test -z "$as_dir" && as_dir=.
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4676 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4683 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4687 DATE=$ac_cv_path_DATE
4689 if test -n "$DATE"; then
4690 echo "$as_me:$LINENO: result: $DATE" >&5
4691 echo "${ECHO_T}$DATE" >&6
4693 echo "$as_me:$LINENO: result: no" >&5
4694 echo "${ECHO_T}no" >&6
4697 # Extract the first word of "find", so it can be a program name with args.
4698 set dummy find; ac_word=$2
4699 echo "$as_me:$LINENO: checking for $ac_word" >&5
4700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4701 if test "${ac_cv_path_FIND+set}" = set; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
4706 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713 test -z "$as_dir" && as_dir=.
4714 for ac_exec_ext in '' $ac_executable_extensions; do
4715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4716 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4723 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4727 FIND=$ac_cv_path_FIND
4729 if test -n "$FIND"; then
4730 echo "$as_me:$LINENO: result: $FIND" >&5
4731 echo "${ECHO_T}$FIND" >&6
4733 echo "$as_me:$LINENO: result: no" >&5
4734 echo "${ECHO_T}no" >&6
4737 # Extract the first word of "grep", so it can be a program name with args.
4738 set dummy grep; ac_word=$2
4739 echo "$as_me:$LINENO: checking for $ac_word" >&5
4740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4741 if test "${ac_cv_path_GREP+set}" = set; then
4742 echo $ECHO_N "(cached) $ECHO_C" >&6
4746 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4756 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4763 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4767 GREP=$ac_cv_path_GREP
4769 if test -n "$GREP"; then
4770 echo "$as_me:$LINENO: result: $GREP" >&5
4771 echo "${ECHO_T}$GREP" >&6
4773 echo "$as_me:$LINENO: result: no" >&5
4774 echo "${ECHO_T}no" >&6
4777 # Extract the first word of "mkdir", so it can be a program name with args.
4778 set dummy mkdir; ac_word=$2
4779 echo "$as_me:$LINENO: checking for $ac_word" >&5
4780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4781 if test "${ac_cv_path_MKDIR+set}" = set; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4786 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793 test -z "$as_dir" && as_dir=.
4794 for ac_exec_ext in '' $ac_executable_extensions; do
4795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4796 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4803 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4807 MKDIR=$ac_cv_path_MKDIR
4809 if test -n "$MKDIR"; then
4810 echo "$as_me:$LINENO: result: $MKDIR" >&5
4811 echo "${ECHO_T}$MKDIR" >&6
4813 echo "$as_me:$LINENO: result: no" >&5
4814 echo "${ECHO_T}no" >&6
4817 # Extract the first word of "mv", so it can be a program name with args.
4818 set dummy mv; ac_word=$2
4819 echo "$as_me:$LINENO: checking for $ac_word" >&5
4820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4821 if test "${ac_cv_path_MV+set}" = set; then
4822 echo $ECHO_N "(cached) $ECHO_C" >&6
4826 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833 test -z "$as_dir" && as_dir=.
4834 for ac_exec_ext in '' $ac_executable_extensions; do
4835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4836 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4843 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4849 if test -n "$MV"; then
4850 echo "$as_me:$LINENO: result: $MV" >&5
4851 echo "${ECHO_T}$MV" >&6
4853 echo "$as_me:$LINENO: result: no" >&5
4854 echo "${ECHO_T}no" >&6
4857 if test -n "$ac_tool_prefix"; then
4858 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4859 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4860 echo "$as_me:$LINENO: checking for $ac_word" >&5
4861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4862 if test "${ac_cv_prog_RANLIB+set}" = set; then
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4865 if test -n "$RANLIB"; then
4866 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4872 test -z "$as_dir" && as_dir=.
4873 for ac_exec_ext in '' $ac_executable_extensions; do
4874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4875 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4884 RANLIB=$ac_cv_prog_RANLIB
4885 if test -n "$RANLIB"; then
4886 echo "$as_me:$LINENO: result: $RANLIB" >&5
4887 echo "${ECHO_T}$RANLIB" >&6
4889 echo "$as_me:$LINENO: result: no" >&5
4890 echo "${ECHO_T}no" >&6
4894 if test -z "$ac_cv_prog_RANLIB"; then
4895 ac_ct_RANLIB=$RANLIB
4896 # Extract the first word of "ranlib", so it can be a program name with args.
4897 set dummy ranlib; ac_word=$2
4898 echo "$as_me:$LINENO: checking for $ac_word" >&5
4899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4900 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4901 echo $ECHO_N "(cached) $ECHO_C" >&6
4903 if test -n "$ac_ct_RANLIB"; then
4904 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910 test -z "$as_dir" && as_dir=.
4911 for ac_exec_ext in '' $ac_executable_extensions; do
4912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4913 ac_cv_prog_ac_ct_RANLIB="ranlib"
4914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4920 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4923 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4924 if test -n "$ac_ct_RANLIB"; then
4925 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4926 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4928 echo "$as_me:$LINENO: result: no" >&5
4929 echo "${ECHO_T}no" >&6
4932 RANLIB=$ac_ct_RANLIB
4934 RANLIB="$ac_cv_prog_RANLIB"
4937 # Extract the first word of "rm", so it can be a program name with args.
4938 set dummy rm; ac_word=$2
4939 echo "$as_me:$LINENO: checking for $ac_word" >&5
4940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4941 if test "${ac_cv_path_RM+set}" = set; then
4942 echo $ECHO_N "(cached) $ECHO_C" >&6
4946 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953 test -z "$as_dir" && as_dir=.
4954 for ac_exec_ext in '' $ac_executable_extensions; do
4955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4956 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4963 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4969 if test -n "$RM"; then
4970 echo "$as_me:$LINENO: result: $RM" >&5
4971 echo "${ECHO_T}$RM" >&6
4973 echo "$as_me:$LINENO: result: no" >&5
4974 echo "${ECHO_T}no" >&6
4977 # Extract the first word of "sed", so it can be a program name with args.
4978 set dummy sed; ac_word=$2
4979 echo "$as_me:$LINENO: checking for $ac_word" >&5
4980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4981 if test "${ac_cv_path_SED+set}" = set; then
4982 echo $ECHO_N "(cached) $ECHO_C" >&6
4986 ac_cv_path_SED="$SED" # Let the user override the test with a path.
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_path_SED="$as_dir/$ac_word$ac_exec_ext"
4997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5003 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5009 if test -n "$SED"; then
5010 echo "$as_me:$LINENO: result: $SED" >&5
5011 echo "${ECHO_T}$SED" >&6
5013 echo "$as_me:$LINENO: result: no" >&5
5014 echo "${ECHO_T}no" >&6
5017 # Extract the first word of "tar", so it can be a program name with args.
5018 set dummy tar; ac_word=$2
5019 echo "$as_me:$LINENO: checking for $ac_word" >&5
5020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5021 if test "${ac_cv_path_TAR+set}" = set; then
5022 echo $ECHO_N "(cached) $ECHO_C" >&6
5026 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033 test -z "$as_dir" && as_dir=.
5034 for ac_exec_ext in '' $ac_executable_extensions; do
5035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5036 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5043 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5049 if test -n "$TAR"; then
5050 echo "$as_me:$LINENO: result: $TAR" >&5
5051 echo "${ECHO_T}$TAR" >&6
5053 echo "$as_me:$LINENO: result: no" >&5
5054 echo "${ECHO_T}no" >&6
5058 # Find a good install program. We prefer a C program (faster),
5059 # so one script is as good as another. But avoid the broken or
5060 # incompatible versions:
5061 # SysV /etc/install, /usr/sbin/install
5062 # SunOS /usr/etc/install
5063 # IRIX /sbin/install
5065 # AmigaOS /C/install, which installs bootblocks on floppy discs
5066 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5067 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5068 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5069 # OS/2's system install, which has a completely different semantic
5070 # ./install, which can be erroneously created by make from ./install.sh.
5071 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5072 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5073 if test -z "$INSTALL"; then
5074 if test "${ac_cv_path_install+set}" = set; then
5075 echo $ECHO_N "(cached) $ECHO_C" >&6
5077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5081 test -z "$as_dir" && as_dir=.
5082 # Account for people who put trailing slashes in PATH elements.
5084 ./ | .// | /cC/* | \
5085 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5086 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5089 # OSF1 and SCO ODT 3.0 have their own names for install.
5090 # Don't use installbsd from OSF since it installs stuff as root
5092 for ac_prog in ginstall scoinst install; do
5093 for ac_exec_ext in '' $ac_executable_extensions; do
5094 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5095 if test $ac_prog = install &&
5096 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5097 # AIX install. It has an incompatible calling convention.
5099 elif test $ac_prog = install &&
5100 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5101 # program-specific install script used by HP pwplus--don't use.
5104 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5116 if test "${ac_cv_path_install+set}" = set; then
5117 INSTALL=$ac_cv_path_install
5119 # As a last resort, use the slow shell script. We don't cache a
5120 # path for INSTALL within a source directory, because that will
5121 # break other packages using the cache if that directory is
5122 # removed, or if the path is relative.
5123 INSTALL=$ac_install_sh
5126 echo "$as_me:$LINENO: result: $INSTALL" >&5
5127 echo "${ECHO_T}$INSTALL" >&6
5129 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5130 # It thinks the first close brace ends the variable substitution.
5131 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5133 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5135 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5138 # Extract the first word of "bzip2", so it can be a program name with args.
5139 set dummy bzip2; ac_word=$2
5140 echo "$as_me:$LINENO: checking for $ac_word" >&5
5141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5142 if test "${ac_cv_path_BZIP2+set}" = set; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5147 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154 test -z "$as_dir" && as_dir=.
5155 for ac_exec_ext in '' $ac_executable_extensions; do
5156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5157 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5164 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5168 BZIP2=$ac_cv_path_BZIP2
5170 if test -n "$BZIP2"; then
5171 echo "$as_me:$LINENO: result: $BZIP2" >&5
5172 echo "${ECHO_T}$BZIP2" >&6
5174 echo "$as_me:$LINENO: result: no" >&5
5175 echo "${ECHO_T}no" >&6
5178 # Extract the first word of "dot", so it can be a program name with args.
5179 set dummy dot; ac_word=$2
5180 echo "$as_me:$LINENO: checking for $ac_word" >&5
5181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5182 if test "${ac_cv_path_DOT+set}" = set; then
5183 echo $ECHO_N "(cached) $ECHO_C" >&6
5187 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 test -z "$as_dir" && as_dir=.
5195 for ac_exec_ext in '' $ac_executable_extensions; do
5196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5197 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5204 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5210 if test -n "$DOT"; then
5211 echo "$as_me:$LINENO: result: $DOT" >&5
5212 echo "${ECHO_T}$DOT" >&6
5214 echo "$as_me:$LINENO: result: no" >&5
5215 echo "${ECHO_T}no" >&6
5218 # Extract the first word of "doxygen", so it can be a program name with args.
5219 set dummy doxygen; ac_word=$2
5220 echo "$as_me:$LINENO: checking for $ac_word" >&5
5221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5222 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5227 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234 test -z "$as_dir" && as_dir=.
5235 for ac_exec_ext in '' $ac_executable_extensions; do
5236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5237 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5244 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5248 DOXYGEN=$ac_cv_path_DOXYGEN
5250 if test -n "$DOXYGEN"; then
5251 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5252 echo "${ECHO_T}$DOXYGEN" >&6
5254 echo "$as_me:$LINENO: result: no" >&5
5255 echo "${ECHO_T}no" >&6
5258 # Extract the first word of "etags", so it can be a program name with args.
5259 set dummy etags; ac_word=$2
5260 echo "$as_me:$LINENO: checking for $ac_word" >&5
5261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5262 if test "${ac_cv_path_ETAGS+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5267 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274 test -z "$as_dir" && as_dir=.
5275 for ac_exec_ext in '' $ac_executable_extensions; do
5276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5277 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5284 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5288 ETAGS=$ac_cv_path_ETAGS
5290 if test -n "$ETAGS"; then
5291 echo "$as_me:$LINENO: result: $ETAGS" >&5
5292 echo "${ECHO_T}$ETAGS" >&6
5294 echo "$as_me:$LINENO: result: no" >&5
5295 echo "${ECHO_T}no" >&6
5298 # Extract the first word of "groff", so it can be a program name with args.
5299 set dummy groff; ac_word=$2
5300 echo "$as_me:$LINENO: checking for $ac_word" >&5
5301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5302 if test "${ac_cv_path_GROFF+set}" = set; then
5303 echo $ECHO_N "(cached) $ECHO_C" >&6
5307 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5314 test -z "$as_dir" && as_dir=.
5315 for ac_exec_ext in '' $ac_executable_extensions; do
5316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5317 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5324 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5328 GROFF=$ac_cv_path_GROFF
5330 if test -n "$GROFF"; then
5331 echo "$as_me:$LINENO: result: $GROFF" >&5
5332 echo "${ECHO_T}$GROFF" >&6
5334 echo "$as_me:$LINENO: result: no" >&5
5335 echo "${ECHO_T}no" >&6
5338 # Extract the first word of "gzip", so it can be a program name with args.
5339 set dummy gzip; ac_word=$2
5340 echo "$as_me:$LINENO: checking for $ac_word" >&5
5341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5342 if test "${ac_cv_path_GZIP+set}" = set; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5347 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354 test -z "$as_dir" && as_dir=.
5355 for ac_exec_ext in '' $ac_executable_extensions; do
5356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5357 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5364 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5368 GZIP=$ac_cv_path_GZIP
5370 if test -n "$GZIP"; then
5371 echo "$as_me:$LINENO: result: $GZIP" >&5
5372 echo "${ECHO_T}$GZIP" >&6
5374 echo "$as_me:$LINENO: result: no" >&5
5375 echo "${ECHO_T}no" >&6
5378 # Extract the first word of "pod2html", so it can be a program name with args.
5379 set dummy pod2html; ac_word=$2
5380 echo "$as_me:$LINENO: checking for $ac_word" >&5
5381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5382 if test "${ac_cv_path_POD2HTML+set}" = set; then
5383 echo $ECHO_N "(cached) $ECHO_C" >&6
5387 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394 test -z "$as_dir" && as_dir=.
5395 for ac_exec_ext in '' $ac_executable_extensions; do
5396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5397 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5404 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5408 POD2HTML=$ac_cv_path_POD2HTML
5410 if test -n "$POD2HTML"; then
5411 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5412 echo "${ECHO_T}$POD2HTML" >&6
5414 echo "$as_me:$LINENO: result: no" >&5
5415 echo "${ECHO_T}no" >&6
5418 # Extract the first word of "pod2man", so it can be a program name with args.
5419 set dummy pod2man; ac_word=$2
5420 echo "$as_me:$LINENO: checking for $ac_word" >&5
5421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5422 if test "${ac_cv_path_POD2MAN+set}" = set; then
5423 echo $ECHO_N "(cached) $ECHO_C" >&6
5427 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434 test -z "$as_dir" && as_dir=.
5435 for ac_exec_ext in '' $ac_executable_extensions; do
5436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5437 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5444 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5448 POD2MAN=$ac_cv_path_POD2MAN
5450 if test -n "$POD2MAN"; then
5451 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5452 echo "${ECHO_T}$POD2MAN" >&6
5454 echo "$as_me:$LINENO: result: no" >&5
5455 echo "${ECHO_T}no" >&6
5458 # Extract the first word of "runtest", so it can be a program name with args.
5459 set dummy runtest; ac_word=$2
5460 echo "$as_me:$LINENO: checking for $ac_word" >&5
5461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5462 if test "${ac_cv_path_RUNTEST+set}" = set; then
5463 echo $ECHO_N "(cached) $ECHO_C" >&6
5467 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474 test -z "$as_dir" && as_dir=.
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5477 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5484 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5488 RUNTEST=$ac_cv_path_RUNTEST
5490 if test -n "$RUNTEST"; then
5491 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5492 echo "${ECHO_T}$RUNTEST" >&6
5494 echo "$as_me:$LINENO: result: no" >&5
5495 echo "${ECHO_T}no" >&6
5500 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5501 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5503 # Check whether --with-tclinclude or --without-tclinclude was given.
5504 if test "${with_tclinclude+set}" = set; then
5505 withval="$with_tclinclude"
5506 with_tclinclude=${withval}
5510 if test "${ac_cv_path_tclsh+set}" = set; then
5511 echo $ECHO_N "(cached) $ECHO_C" >&6
5514 if test x"${with_tclinclude}" != x ; then
5515 if test -f ${with_tclinclude}/tclsh ; then
5516 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5517 elif test -f ${with_tclinclude}/src/tclsh ; then
5518 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5520 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5521 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5522 { (exit 1); exit 1; }; }
5526 if test x"${ac_cv_path_tclsh}" = x ; then
5527 echo "$as_me:$LINENO: result: none" >&5
5528 echo "${ECHO_T}none" >&6
5529 for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
5531 # Extract the first word of "$ac_prog", so it can be a program name with args.
5532 set dummy $ac_prog; ac_word=$2
5533 echo "$as_me:$LINENO: checking for $ac_word" >&5
5534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5535 if test "${ac_cv_path_TCLSH+set}" = set; then
5536 echo $ECHO_N "(cached) $ECHO_C" >&6
5540 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5547 test -z "$as_dir" && as_dir=.
5548 for ac_exec_ext in '' $ac_executable_extensions; do
5549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5550 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5560 TCLSH=$ac_cv_path_TCLSH
5562 if test -n "$TCLSH"; then
5563 echo "$as_me:$LINENO: result: $TCLSH" >&5
5564 echo "${ECHO_T}$TCLSH" >&6
5566 echo "$as_me:$LINENO: result: no" >&5
5567 echo "${ECHO_T}no" >&6
5570 test -n "$TCLSH" && break
5573 if test x"${TCLSH}" = x ; then
5574 ac_cv_path_tclsh='';
5576 ac_cv_path_tclsh="${TCLSH}";
5579 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5580 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5581 TCLSH="${ac_cv_path_tclsh}"
5587 # Extract the first word of "zip", so it can be a program name with args.
5588 set dummy zip; ac_word=$2
5589 echo "$as_me:$LINENO: checking for $ac_word" >&5
5590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5591 if test "${ac_cv_path_ZIP+set}" = set; then
5592 echo $ECHO_N "(cached) $ECHO_C" >&6
5596 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5603 test -z "$as_dir" && as_dir=.
5604 for ac_exec_ext in '' $ac_executable_extensions; do
5605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5606 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5613 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5619 if test -n "$ZIP"; then
5620 echo "$as_me:$LINENO: result: $ZIP" >&5
5621 echo "${ECHO_T}$ZIP" >&6
5623 echo "$as_me:$LINENO: result: no" >&5
5624 echo "${ECHO_T}no" >&6
5628 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5629 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5630 if test "${llvm_cv_link_use_r+set}" = set; then
5631 echo $ECHO_N "(cached) $ECHO_C" >&6
5634 ac_cpp='$CPP $CPPFLAGS'
5635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5640 CFLAGS="$CFLAGS -Wl,-R."
5641 cat >conftest.$ac_ext <<_ACEOF
5644 cat confdefs.h >>conftest.$ac_ext
5645 cat >>conftest.$ac_ext <<_ACEOF
5646 /* end confdefs.h. */
5651 int main() { return 0; }
5656 rm -f conftest.$ac_objext conftest$ac_exeext
5657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5658 (eval $ac_link) 2>conftest.er1
5660 grep -v '^ *+' conftest.er1 >conftest.err
5662 cat conftest.err >&5
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); } &&
5665 { ac_try='test -z "$ac_c_werror_flag"
5666 || test ! -s conftest.err'
5667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); }; } &&
5672 { ac_try='test -s conftest$ac_exeext'
5673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); }; }; then
5678 llvm_cv_link_use_r=yes
5680 echo "$as_me: failed program was:" >&5
5681 sed 's/^/| /' conftest.$ac_ext >&5
5683 llvm_cv_link_use_r=no
5685 rm -f conftest.err conftest.$ac_objext \
5686 conftest$ac_exeext conftest.$ac_ext
5689 ac_cpp='$CPP $CPPFLAGS'
5690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5696 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5697 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5698 if test "$llvm_cv_link_use_r" = yes ; then
5700 cat >>confdefs.h <<\_ACEOF
5701 #define HAVE_LINK_R 1
5709 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5710 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5711 if test "${ac_cv_c_const+set}" = set; then
5712 echo $ECHO_N "(cached) $ECHO_C" >&6
5714 cat >conftest.$ac_ext <<_ACEOF
5717 cat confdefs.h >>conftest.$ac_ext
5718 cat >>conftest.$ac_ext <<_ACEOF
5719 /* end confdefs.h. */
5724 /* FIXME: Include the comments suggested by Paul. */
5726 /* Ultrix mips cc rejects this. */
5727 typedef int charset[2];
5729 /* SunOS 4.1.1 cc rejects this. */
5730 char const *const *ccp;
5732 /* NEC SVR4.0.2 mips cc rejects this. */
5733 struct point {int x, y;};
5734 static struct point const zero = {0,0};
5735 /* AIX XL C 1.02.0.0 rejects this.
5736 It does not let you subtract one const X* pointer from another in
5737 an arm of an if-expression whose if-part is not a constant
5739 const char *g = "string";
5740 ccp = &g + (g ? g-g : 0);
5741 /* HPUX 7.0 cc rejects these. */
5744 ccp = (char const *const *) p;
5745 { /* SCO 3.2v4 cc rejects this. */
5747 char const *s = 0 ? (char *) 0 : (char const *) 0;
5751 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5753 const int *foo = &x[0];
5756 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5757 typedef const int *iptr;
5761 { /* AIX XL C 1.02.0.0 rejects this saying
5762 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5763 struct s { int j; const int *ap[3]; };
5764 struct s *b; b->j = 5;
5766 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5775 rm -f conftest.$ac_objext
5776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5777 (eval $ac_compile) 2>conftest.er1
5779 grep -v '^ *+' conftest.er1 >conftest.err
5781 cat conftest.err >&5
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); } &&
5784 { ac_try='test -z "$ac_c_werror_flag"
5785 || test ! -s conftest.err'
5786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); }; } &&
5791 { ac_try='test -s conftest.$ac_objext'
5792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); }; }; then
5799 echo "$as_me: failed program was:" >&5
5800 sed 's/^/| /' conftest.$ac_ext >&5
5804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5806 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5807 echo "${ECHO_T}$ac_cv_c_const" >&6
5808 if test $ac_cv_c_const = no; then
5810 cat >>confdefs.h <<\_ACEOF
5817 echo "$as_me:$LINENO: checking for egrep" >&5
5818 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5819 if test "${ac_cv_prog_egrep+set}" = set; then
5820 echo $ECHO_N "(cached) $ECHO_C" >&6
5822 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5823 then ac_cv_prog_egrep='grep -E'
5824 else ac_cv_prog_egrep='egrep'
5827 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5828 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5829 EGREP=$ac_cv_prog_egrep
5832 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5833 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5834 if test "${ac_cv_header_stdc+set}" = set; then
5835 echo $ECHO_N "(cached) $ECHO_C" >&6
5837 cat >conftest.$ac_ext <<_ACEOF
5840 cat confdefs.h >>conftest.$ac_ext
5841 cat >>conftest.$ac_ext <<_ACEOF
5842 /* end confdefs.h. */
5856 rm -f conftest.$ac_objext
5857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5858 (eval $ac_compile) 2>conftest.er1
5860 grep -v '^ *+' conftest.er1 >conftest.err
5862 cat conftest.err >&5
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); } &&
5865 { ac_try='test -z "$ac_c_werror_flag"
5866 || test ! -s conftest.err'
5867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); }; } &&
5872 { ac_try='test -s conftest.$ac_objext'
5873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); }; }; then
5878 ac_cv_header_stdc=yes
5880 echo "$as_me: failed program was:" >&5
5881 sed 's/^/| /' conftest.$ac_ext >&5
5883 ac_cv_header_stdc=no
5885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5887 if test $ac_cv_header_stdc = yes; then
5888 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5889 cat >conftest.$ac_ext <<_ACEOF
5892 cat confdefs.h >>conftest.$ac_ext
5893 cat >>conftest.$ac_ext <<_ACEOF
5894 /* end confdefs.h. */
5898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5899 $EGREP "memchr" >/dev/null 2>&1; then
5902 ac_cv_header_stdc=no
5908 if test $ac_cv_header_stdc = yes; then
5909 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5910 cat >conftest.$ac_ext <<_ACEOF
5913 cat confdefs.h >>conftest.$ac_ext
5914 cat >>conftest.$ac_ext <<_ACEOF
5915 /* end confdefs.h. */
5919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5920 $EGREP "free" >/dev/null 2>&1; then
5923 ac_cv_header_stdc=no
5929 if test $ac_cv_header_stdc = yes; then
5930 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5931 if test "$cross_compiling" = yes; then
5934 cat >conftest.$ac_ext <<_ACEOF
5937 cat confdefs.h >>conftest.$ac_ext
5938 cat >>conftest.$ac_ext <<_ACEOF
5939 /* end confdefs.h. */
5941 #if ((' ' & 0x0FF) == 0x020)
5942 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5943 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5945 # define ISLOWER(c) \
5946 (('a' <= (c) && (c) <= 'i') \
5947 || ('j' <= (c) && (c) <= 'r') \
5948 || ('s' <= (c) && (c) <= 'z'))
5949 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5952 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5957 for (i = 0; i < 256; i++)
5958 if (XOR (islower (i), ISLOWER (i))
5959 || toupper (i) != TOUPPER (i))
5964 rm -f conftest$ac_exeext
5965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5966 (eval $ac_link) 2>&5
5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); }; }; then
5977 echo "$as_me: program exited with status $ac_status" >&5
5978 echo "$as_me: failed program was:" >&5
5979 sed 's/^/| /' conftest.$ac_ext >&5
5982 ac_cv_header_stdc=no
5984 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5988 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5989 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5990 if test $ac_cv_header_stdc = yes; then
5992 cat >>confdefs.h <<\_ACEOF
5993 #define STDC_HEADERS 1
6004 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6005 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6006 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6007 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6008 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6009 echo $ECHO_N "(cached) $ECHO_C" >&6
6011 cat >conftest.$ac_ext <<_ACEOF
6014 cat confdefs.h >>conftest.$ac_ext
6015 cat >>conftest.$ac_ext <<_ACEOF
6016 /* end confdefs.h. */
6017 #include <sys/types.h>
6029 rm -f conftest.$ac_objext
6030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6031 (eval $ac_compile) 2>conftest.er1
6033 grep -v '^ *+' conftest.er1 >conftest.err
6035 cat conftest.err >&5
6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); } &&
6038 { ac_try='test -z "$ac_c_werror_flag"
6039 || test ! -s conftest.err'
6040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); }; } &&
6045 { ac_try='test -s conftest.$ac_objext'
6046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); }; }; then
6051 eval "$as_ac_Header=yes"
6053 echo "$as_me: failed program was:" >&5
6054 sed 's/^/| /' conftest.$ac_ext >&5
6056 eval "$as_ac_Header=no"
6058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6061 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6063 cat >>confdefs.h <<_ACEOF
6064 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6067 ac_header_dirent=$ac_hdr; break
6071 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6072 if test $ac_header_dirent = dirent.h; then
6073 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6074 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6075 if test "${ac_cv_search_opendir+set}" = set; then
6076 echo $ECHO_N "(cached) $ECHO_C" >&6
6078 ac_func_search_save_LIBS=$LIBS
6079 ac_cv_search_opendir=no
6080 cat >conftest.$ac_ext <<_ACEOF
6083 cat confdefs.h >>conftest.$ac_ext
6084 cat >>conftest.$ac_ext <<_ACEOF
6085 /* end confdefs.h. */
6087 /* Override any gcc2 internal prototype to avoid an error. */
6091 /* We use char because int might match the return type of a gcc2
6092 builtin and then its argument prototype would still apply. */
6102 rm -f conftest.$ac_objext conftest$ac_exeext
6103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6104 (eval $ac_link) 2>conftest.er1
6106 grep -v '^ *+' conftest.er1 >conftest.err
6108 cat conftest.err >&5
6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); } &&
6111 { ac_try='test -z "$ac_c_werror_flag"
6112 || test ! -s conftest.err'
6113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); }; } &&
6118 { ac_try='test -s conftest$ac_exeext'
6119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); }; }; then
6124 ac_cv_search_opendir="none required"
6126 echo "$as_me: failed program was:" >&5
6127 sed 's/^/| /' conftest.$ac_ext >&5
6130 rm -f conftest.err conftest.$ac_objext \
6131 conftest$ac_exeext conftest.$ac_ext
6132 if test "$ac_cv_search_opendir" = no; then
6133 for ac_lib in dir; do
6134 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6135 cat >conftest.$ac_ext <<_ACEOF
6138 cat confdefs.h >>conftest.$ac_ext
6139 cat >>conftest.$ac_ext <<_ACEOF
6140 /* end confdefs.h. */
6142 /* Override any gcc2 internal prototype to avoid an error. */
6146 /* We use char because int might match the return type of a gcc2
6147 builtin and then its argument prototype would still apply. */
6157 rm -f conftest.$ac_objext conftest$ac_exeext
6158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6159 (eval $ac_link) 2>conftest.er1
6161 grep -v '^ *+' conftest.er1 >conftest.err
6163 cat conftest.err >&5
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); } &&
6166 { ac_try='test -z "$ac_c_werror_flag"
6167 || test ! -s conftest.err'
6168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); }; } &&
6173 { ac_try='test -s conftest$ac_exeext'
6174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); }; }; then
6179 ac_cv_search_opendir="-l$ac_lib"
6182 echo "$as_me: failed program was:" >&5
6183 sed 's/^/| /' conftest.$ac_ext >&5
6186 rm -f conftest.err conftest.$ac_objext \
6187 conftest$ac_exeext conftest.$ac_ext
6190 LIBS=$ac_func_search_save_LIBS
6192 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6193 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6194 if test "$ac_cv_search_opendir" != no; then
6195 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6200 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6201 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6202 if test "${ac_cv_search_opendir+set}" = set; then
6203 echo $ECHO_N "(cached) $ECHO_C" >&6
6205 ac_func_search_save_LIBS=$LIBS
6206 ac_cv_search_opendir=no
6207 cat >conftest.$ac_ext <<_ACEOF
6210 cat confdefs.h >>conftest.$ac_ext
6211 cat >>conftest.$ac_ext <<_ACEOF
6212 /* end confdefs.h. */
6214 /* Override any gcc2 internal prototype to avoid an error. */
6218 /* We use char because int might match the return type of a gcc2
6219 builtin and then its argument prototype would still apply. */
6229 rm -f conftest.$ac_objext conftest$ac_exeext
6230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6231 (eval $ac_link) 2>conftest.er1
6233 grep -v '^ *+' conftest.er1 >conftest.err
6235 cat conftest.err >&5
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); } &&
6238 { ac_try='test -z "$ac_c_werror_flag"
6239 || test ! -s conftest.err'
6240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); }; } &&
6245 { ac_try='test -s conftest$ac_exeext'
6246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); }; }; then
6251 ac_cv_search_opendir="none required"
6253 echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6257 rm -f conftest.err conftest.$ac_objext \
6258 conftest$ac_exeext conftest.$ac_ext
6259 if test "$ac_cv_search_opendir" = no; then
6261 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6262 cat >conftest.$ac_ext <<_ACEOF
6265 cat confdefs.h >>conftest.$ac_ext
6266 cat >>conftest.$ac_ext <<_ACEOF
6267 /* end confdefs.h. */
6269 /* Override any gcc2 internal prototype to avoid an error. */
6273 /* We use char because int might match the return type of a gcc2
6274 builtin and then its argument prototype would still apply. */
6284 rm -f conftest.$ac_objext conftest$ac_exeext
6285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6286 (eval $ac_link) 2>conftest.er1
6288 grep -v '^ *+' conftest.er1 >conftest.err
6290 cat conftest.err >&5
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); } &&
6293 { ac_try='test -z "$ac_c_werror_flag"
6294 || test ! -s conftest.err'
6295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); }; } &&
6300 { ac_try='test -s conftest$ac_exeext'
6301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305 (exit $ac_status); }; }; then
6306 ac_cv_search_opendir="-l$ac_lib"
6309 echo "$as_me: failed program was:" >&5
6310 sed 's/^/| /' conftest.$ac_ext >&5
6313 rm -f conftest.err conftest.$ac_objext \
6314 conftest$ac_exeext conftest.$ac_ext
6317 LIBS=$ac_func_search_save_LIBS
6319 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6320 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6321 if test "$ac_cv_search_opendir" != no; then
6322 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6328 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6338 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6339 inttypes.h stdint.h unistd.h
6341 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6342 echo "$as_me:$LINENO: checking for $ac_header" >&5
6343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6345 echo $ECHO_N "(cached) $ECHO_C" >&6
6347 cat >conftest.$ac_ext <<_ACEOF
6350 cat confdefs.h >>conftest.$ac_ext
6351 cat >>conftest.$ac_ext <<_ACEOF
6352 /* end confdefs.h. */
6353 $ac_includes_default
6355 #include <$ac_header>
6357 rm -f conftest.$ac_objext
6358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6359 (eval $ac_compile) 2>conftest.er1
6361 grep -v '^ *+' conftest.er1 >conftest.err
6363 cat conftest.err >&5
6364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365 (exit $ac_status); } &&
6366 { ac_try='test -z "$ac_c_werror_flag"
6367 || test ! -s conftest.err'
6368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); }; } &&
6373 { ac_try='test -s conftest.$ac_objext'
6374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378 (exit $ac_status); }; }; then
6379 eval "$as_ac_Header=yes"
6381 echo "$as_me: failed program was:" >&5
6382 sed 's/^/| /' conftest.$ac_ext >&5
6384 eval "$as_ac_Header=no"
6386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6390 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6391 cat >>confdefs.h <<_ACEOF
6392 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6401 for ac_header in dlfcn.h
6403 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6404 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6405 echo "$as_me:$LINENO: checking for $ac_header" >&5
6406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6408 echo $ECHO_N "(cached) $ECHO_C" >&6
6410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6411 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6413 # Is the header compilable?
6414 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6415 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6416 cat >conftest.$ac_ext <<_ACEOF
6419 cat confdefs.h >>conftest.$ac_ext
6420 cat >>conftest.$ac_ext <<_ACEOF
6421 /* end confdefs.h. */
6422 $ac_includes_default
6423 #include <$ac_header>
6425 rm -f conftest.$ac_objext
6426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6427 (eval $ac_compile) 2>conftest.er1
6429 grep -v '^ *+' conftest.er1 >conftest.err
6431 cat conftest.err >&5
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); } &&
6434 { ac_try='test -z "$ac_c_werror_flag"
6435 || test ! -s conftest.err'
6436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); }; } &&
6441 { ac_try='test -s conftest.$ac_objext'
6442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); }; }; then
6447 ac_header_compiler=yes
6449 echo "$as_me: failed program was:" >&5
6450 sed 's/^/| /' conftest.$ac_ext >&5
6452 ac_header_compiler=no
6454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6455 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6456 echo "${ECHO_T}$ac_header_compiler" >&6
6458 # Is the header present?
6459 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6460 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6461 cat >conftest.$ac_ext <<_ACEOF
6464 cat confdefs.h >>conftest.$ac_ext
6465 cat >>conftest.$ac_ext <<_ACEOF
6466 /* end confdefs.h. */
6467 #include <$ac_header>
6469 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6470 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6472 grep -v '^ *+' conftest.er1 >conftest.err
6474 cat conftest.err >&5
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); } >/dev/null; then
6477 if test -s conftest.err; then
6478 ac_cpp_err=$ac_c_preproc_warn_flag
6479 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6486 if test -z "$ac_cpp_err"; then
6487 ac_header_preproc=yes
6489 echo "$as_me: failed program was:" >&5
6490 sed 's/^/| /' conftest.$ac_ext >&5
6492 ac_header_preproc=no
6494 rm -f conftest.err conftest.$ac_ext
6495 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6496 echo "${ECHO_T}$ac_header_preproc" >&6
6498 # So? What about this header?
6499 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6501 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6502 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6504 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6505 ac_header_preproc=yes
6508 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6509 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6510 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6511 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6512 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6513 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6514 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6515 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6517 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6518 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6519 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6522 ## ----------------------------------- ##
6523 ## Report this to llvmbugs@cs.uiuc.edu ##
6524 ## ----------------------------------- ##
6527 sed "s/^/$as_me: WARNING: /" >&2
6530 echo "$as_me:$LINENO: checking for $ac_header" >&5
6531 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6532 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6533 echo $ECHO_N "(cached) $ECHO_C" >&6
6535 eval "$as_ac_Header=\$ac_header_preproc"
6537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6538 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6541 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6542 cat >>confdefs.h <<_ACEOF
6543 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6550 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6551 if test "${enable_ltdl_install+set}" = set; then
6552 enableval="$enable_ltdl_install"
6558 if test x"${enable_ltdl_install-no}" != xno; then
6560 INSTALL_LTDL_FALSE='#'
6562 INSTALL_LTDL_TRUE='#'
6568 if test x"${enable_ltdl_convenience-no}" != xno; then
6569 CONVENIENCE_LTDL_TRUE=
6570 CONVENIENCE_LTDL_FALSE='#'
6572 CONVENIENCE_LTDL_TRUE='#'
6573 CONVENIENCE_LTDL_FALSE=
6577 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6578 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6580 libname_spec='lib$name'
6588 shlibpath_overrides_runpath=unknown
6590 dynamic_linker="$host_os ld.so"
6591 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6592 if test "$GCC" = yes; then
6593 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6594 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6595 # if the path contains ";" then we assume it to be the separator
6596 # otherwise default to the standard path separator (i.e. ":") - it is
6597 # assumed that no part of a normal pathname contains ";" but that should
6598 # okay in the real world where ";" in dirpaths is itself problematic.
6599 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6601 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6604 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6606 need_lib_prefix=unknown
6607 hardcode_into_libs=no
6609 # when you set need_version to no, make sure it does not cause -set_version
6610 # flags to be left without arguments
6611 need_version=unknown
6616 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6617 shlibpath_var=LIBPATH
6619 # AIX 3 has no versioning support, so we append a major version to the name.
6620 soname_spec='${libname}${release}${shared_ext}$major'
6627 hardcode_into_libs=yes
6628 if test "$host_cpu" = ia64; then
6629 # AIX 5 supports IA64
6630 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6631 shlibpath_var=LD_LIBRARY_PATH
6633 # With GCC up to 2.95.x, collect2 would create an import file
6634 # for dependence libraries. The import file would start with
6635 # the line `#! .'. This would cause the generated library to
6636 # depend on `.', always an invalid library. This was fixed in
6637 # development snapshots of GCC prior to 3.0.
6639 aix4 | aix4.[01] | aix4.[01].*)
6640 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6642 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6649 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6650 # soname into executable. Probably we can add versioning support to
6651 # collect2, so additional links can be useful in future.
6652 if test "$aix_use_runtimelinking" = yes; then
6653 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6654 # instead of lib<name>.a to let people know that these are not
6655 # typical AIX shared libraries.
6656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6658 # We preserve .a as extension for shared libraries through AIX4.2
6659 # and later when we are not doing run time linking.
6660 library_names_spec='${libname}${release}.a $libname.a'
6661 soname_spec='${libname}${release}${shared_ext}$major'
6663 shlibpath_var=LIBPATH
6668 library_names_spec='$libname.ixlibrary $libname.a'
6669 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6670 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'
6674 library_names_spec='${libname}${shared_ext}'
6675 dynamic_linker="$host_os ld.so"
6676 shlibpath_var=LIBRARY_PATH
6682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6683 soname_spec='${libname}${release}${shared_ext}$major'
6684 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6685 shlibpath_var=LD_LIBRARY_PATH
6686 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6687 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6688 # the default ld.so.conf also contains /usr/contrib/lib and
6689 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6690 # libtool to hard-code these into programs
6693 cygwin* | mingw* | pw32*)
6694 version_type=windows
6699 case $GCC,$host_os in
6700 yes,cygwin* | yes,mingw* | yes,pw32*)
6701 library_names_spec='$libname.dll.a'
6702 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6703 postinstall_cmds='base_file=`basename \${file}`~
6704 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6705 dldir=$destdir/`dirname \$dlpath`~
6706 test -d \$dldir || mkdir -p \$dldir~
6707 $install_prog $dir/$dlname \$dldir/$dlname'
6708 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6709 dlpath=$dir/\$dldll~
6711 shlibpath_overrides_runpath=yes
6715 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6716 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6717 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6720 # MinGW DLLs use traditional 'lib' prefix
6721 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6722 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6723 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6724 # It is most probably a Windows format PATH printed by
6725 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6726 # path with ; separators, and with drive letters. We can handle the
6727 # drive letters (cygwin fileutils understands them), so leave them,
6728 # especially as we might pass files found there to a mingw objdump,
6729 # which wouldn't understand a cygwinified path. Ahh.
6730 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6732 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6736 # pw32 DLLs use 'pw' prefix rather than 'lib'
6737 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6743 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6746 dynamic_linker='Win32 ld.exe'
6747 # FIXME: first we should search . and the directory the executable is in
6751 darwin* | rhapsody*)
6752 dynamic_linker="$host_os dyld"
6756 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6757 soname_spec='${libname}${release}${major}$shared_ext'
6758 shlibpath_overrides_runpath=yes
6759 shlibpath_var=DYLD_LIBRARY_PATH
6760 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6761 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6762 if test "$GCC" = yes; then
6763 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"`
6765 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6767 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6775 soname_spec='${libname}${release}${shared_ext}$major'
6776 shlibpath_var=LD_LIBRARY_PATH
6787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6788 soname_spec='${libname}${release}${shared_ext}$major'
6789 shlibpath_var=LD_LIBRARY_PATH
6790 shlibpath_overrides_runpath=no
6791 hardcode_into_libs=yes
6792 dynamic_linker='GNU ld.so'
6796 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6797 version_type=freebsd-$objformat
6798 case $version_type in
6800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6805 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6809 shlibpath_var=LD_LIBRARY_PATH
6812 shlibpath_overrides_runpath=yes
6814 freebsd3.01* | freebsdelf3.01*)
6815 shlibpath_overrides_runpath=yes
6816 hardcode_into_libs=yes
6819 shlibpath_overrides_runpath=no
6820 hardcode_into_libs=yes
6829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6830 soname_spec='${libname}${release}${shared_ext}$major'
6831 shlibpath_var=LD_LIBRARY_PATH
6832 hardcode_into_libs=yes
6835 hpux9* | hpux10* | hpux11*)
6836 # Give a soname corresponding to the major version so that dld.sl refuses to
6837 # link against other versions.
6844 hardcode_into_libs=yes
6845 dynamic_linker="$host_os dld.so"
6846 shlibpath_var=LD_LIBRARY_PATH
6847 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6849 soname_spec='${libname}${release}${shared_ext}$major'
6850 if test "X$HPUX_IA64_MODE" = X32; then
6851 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6853 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6855 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6859 hardcode_into_libs=yes
6860 dynamic_linker="$host_os dld.sl"
6861 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6862 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6864 soname_spec='${libname}${release}${shared_ext}$major'
6865 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6866 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6870 dynamic_linker="$host_os dld.sl"
6871 shlibpath_var=SHLIB_PATH
6872 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6874 soname_spec='${libname}${release}${shared_ext}$major'
6877 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6878 postinstall_cmds='chmod 555 $lib'
6881 irix5* | irix6* | nonstopux*)
6883 nonstopux*) version_type=nonstopux ;;
6885 if test "$lt_cv_prog_gnu_ld" = yes; then
6893 soname_spec='${libname}${release}${shared_ext}$major'
6894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6896 irix5* | nonstopux*)
6900 case $LD in # libtool.m4 will add one of these switches to LD
6901 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6902 libsuff= shlibsuff= libmagic=32-bit;;
6903 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6904 libsuff=32 shlibsuff=N32 libmagic=N32;;
6905 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6906 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6907 *) libsuff= shlibsuff= libmagic=never-match;;
6911 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6912 shlibpath_overrides_runpath=no
6913 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6914 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6915 hardcode_into_libs=yes
6918 # No shared lib support for Linux oldld, aout, or coff.
6919 linux*oldld* | linux*aout* | linux*coff*)
6923 # This must be Linux ELF.
6928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6929 soname_spec='${libname}${release}${shared_ext}$major'
6930 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6931 shlibpath_var=LD_LIBRARY_PATH
6932 shlibpath_overrides_runpath=no
6933 # This implies no fast_install, which is unacceptable.
6934 # Some rework will be needed to allow for fast_install
6935 # before this can be enabled.
6936 hardcode_into_libs=yes
6938 # Append ld.so.conf contents to the search path
6939 if test -f /etc/ld.so.conf; then
6940 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6941 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6944 # We used to test for /lib/ld.so.1 and disable shared libraries on
6945 # powerpc, because MkLinux only supported shared libraries with the
6946 # GNU dynamic linker. Since this was broken with cross compilers,
6947 # most powerpc-linux boxes support dynamic linking these days and
6948 # people can always --disable-shared, the test was removed, and we
6949 # assume the GNU/Linux dynamic linker is in use.
6950 dynamic_linker='GNU/Linux ld.so'
6957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6958 soname_spec='${libname}${release}${shared_ext}$major'
6959 shlibpath_var=LD_LIBRARY_PATH
6960 shlibpath_overrides_runpath=no
6961 hardcode_into_libs=yes
6962 dynamic_linker='GNU ld.so'
6969 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6971 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6972 dynamic_linker='NetBSD (a.out) ld.so'
6974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6975 soname_spec='${libname}${release}${shared_ext}$major'
6976 dynamic_linker='NetBSD ld.elf_so'
6978 shlibpath_var=LD_LIBRARY_PATH
6979 shlibpath_overrides_runpath=yes
6980 hardcode_into_libs=yes
6985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6986 shlibpath_var=LD_LIBRARY_PATH
6987 shlibpath_overrides_runpath=yes
6994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6995 soname_spec='${libname}${release}${shared_ext}$major'
6996 shlibpath_var=LD_LIBRARY_PATH
6997 shlibpath_overrides_runpath=yes
7004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7005 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7006 shlibpath_var=LD_LIBRARY_PATH
7007 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7009 openbsd2.[89] | openbsd2.[89].*)
7010 shlibpath_overrides_runpath=no
7013 shlibpath_overrides_runpath=yes
7017 shlibpath_overrides_runpath=yes
7022 libname_spec='$name'
7025 library_names_spec='$libname${shared_ext} $libname.a'
7026 dynamic_linker='OS/2 ld.exe'
7027 shlibpath_var=LIBPATH
7030 osf3* | osf4* | osf5*)
7034 soname_spec='${libname}${release}${shared_ext}$major'
7035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7036 shlibpath_var=LD_LIBRARY_PATH
7037 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7038 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7043 soname_spec='${libname}${release}${shared_ext}$major'
7044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7045 shlibpath_var=LD_LIBRARY_PATH
7052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7053 soname_spec='${libname}${release}${shared_ext}$major'
7054 shlibpath_var=LD_LIBRARY_PATH
7055 shlibpath_overrides_runpath=yes
7056 hardcode_into_libs=yes
7057 # ldd complains unless libraries are executable
7058 postinstall_cmds='chmod +x $lib'
7063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7064 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7065 shlibpath_var=LD_LIBRARY_PATH
7066 shlibpath_overrides_runpath=yes
7067 if test "$with_gnu_ld" = yes; then
7073 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7076 soname_spec='${libname}${release}${shared_ext}$major'
7077 shlibpath_var=LD_LIBRARY_PATH
7078 case $host_vendor in
7080 shlibpath_overrides_runpath=no
7082 export_dynamic_flag_spec='${wl}-Blargedynsym'
7083 runpath_var=LD_RUN_PATH
7091 shlibpath_overrides_runpath=no
7092 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7098 if test -d /usr/nec ;then
7100 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7101 soname_spec='$libname${shared_ext}.$major'
7102 shlibpath_var=LD_LIBRARY_PATH
7108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7109 soname_spec='${libname}${release}${shared_ext}$major'
7110 shlibpath_var=LD_LIBRARY_PATH
7117 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7118 echo "${ECHO_T}$dynamic_linker" >&6
7119 test "$dynamic_linker" = no && can_build_shared=no
7122 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7123 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7124 if test "${libltdl_cv_shlibext+set}" = set; then
7125 echo $ECHO_N "(cached) $ECHO_C" >&6
7129 eval libltdl_cv_shlibext=$shrext_cmds
7132 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7133 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7134 if test -n "$libltdl_cv_shlibext"; then
7136 cat >>confdefs.h <<_ACEOF
7137 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7143 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7144 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7145 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7146 echo $ECHO_N "(cached) $ECHO_C" >&6
7148 libltdl_cv_shlibpath_var="$shlibpath_var"
7150 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7151 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7152 if test -n "$libltdl_cv_shlibpath_var"; then
7154 cat >>confdefs.h <<_ACEOF
7155 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7161 echo "$as_me:$LINENO: checking for the default library search path" >&5
7162 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7163 if test "${libltdl_cv_sys_search_path+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7166 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7168 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7169 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7170 if test -n "$libltdl_cv_sys_search_path"; then
7172 for dir in $libltdl_cv_sys_search_path; do
7173 if test -z "$sys_search_path"; then
7174 sys_search_path="$dir"
7176 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7180 cat >>confdefs.h <<_ACEOF
7181 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7186 echo "$as_me:$LINENO: checking for objdir" >&5
7187 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7188 if test "${libltdl_cv_objdir+set}" = set; then
7189 echo $ECHO_N "(cached) $ECHO_C" >&6
7191 libltdl_cv_objdir="$objdir"
7192 if test -n "$objdir"; then
7195 rm -f .libs 2>/dev/null
7196 mkdir .libs 2>/dev/null
7197 if test -d .libs; then
7198 libltdl_cv_objdir=.libs
7200 # MS-DOS does not allow filenames that begin with a dot.
7201 libltdl_cv_objdir=_libs
7203 rmdir .libs 2>/dev/null
7207 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7208 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7210 cat >>confdefs.h <<_ACEOF
7211 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7215 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7216 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7217 if test "${lt_cv_path_NM+set}" = set; then
7218 echo $ECHO_N "(cached) $ECHO_C" >&6
7220 if test -n "$NM"; then
7221 # Let the user override the test.
7224 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7225 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7227 test -z "$ac_dir" && ac_dir=.
7228 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7229 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7230 # Check to see if the nm accepts a BSD-compat flag.
7231 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7232 # nm: unknown option "B" ignored
7233 # Tru64's nm complains that /dev/null is an invalid object file
7234 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7235 */dev/null* | *'Invalid file or object type'*)
7236 lt_cv_path_NM="$tmp_nm -B"
7240 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7242 lt_cv_path_NM="$tmp_nm -p"
7246 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7247 continue # so that we can try to find one that supports BSD flags
7254 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7257 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7258 echo "${ECHO_T}$lt_cv_path_NM" >&6
7265 # Check for command to grab the raw symbol name followed by C symbol from nm.
7266 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7267 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7268 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7269 echo $ECHO_N "(cached) $ECHO_C" >&6
7272 # These are sane defaults that work on at least a few old systems.
7273 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7275 # Character class describing NM global symbol codes.
7276 symcode='[BCDEGRST]'
7278 # Regexp to match symbols that can be accessed directly from C.
7279 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7281 # Transform the above into a raw symbol and a C symbol.
7282 symxfrm='\1 \2\3 \3'
7284 # Transform an extracted symbol line into a proper C declaration
7285 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7287 # Transform an extracted symbol line into symbol name and symbol address
7288 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'"
7290 # Define system-specific variables.
7295 cygwin* | mingw* | pw32*)
7296 symcode='[ABCDGISTW]'
7298 hpux*) # Its linker distinguishes data from code symbols
7299 if test "$host_cpu" = ia64; then
7300 symcode='[ABCDEGRST]'
7302 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7303 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'"
7306 if test "$host_cpu" = ia64; then
7307 symcode='[ABCDGIRSTW]'
7308 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7309 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'"
7313 symcode='[BCDEGRST]'
7316 symcode='[BCDEGQRST]'
7326 # Handle CRLF in mingw tool chain
7330 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7334 # If we're using GNU nm, then use its standard symbol codes.
7335 case `$NM -V 2>&1` in
7336 *GNU* | *'with BFD'*)
7337 symcode='[ABCDGIRSTW]' ;;
7340 # Try without a prefix undercore, then with it.
7341 for ac_symprfx in "" "_"; do
7343 # Write the raw and C identifiers.
7344 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7346 # Check to see that the pipe works correctly.
7350 cat > conftest.$ac_ext <<EOF
7355 void nm_test_func(){}
7359 int main(){nm_test_var='a';nm_test_func();return(0);}
7362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7363 (eval $ac_compile) 2>&5
7365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366 (exit $ac_status); }; then
7367 # Now try to grab the symbols.
7369 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7370 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7373 (exit $ac_status); } && test -s "$nlist"; then
7374 # Try sorting and uniquifying the output.
7375 if sort "$nlist" | uniq > "$nlist"T; then
7376 mv -f "$nlist"T "$nlist"
7381 # Make sure that we snagged all the symbols we need.
7382 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7383 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7384 cat <<EOF > conftest.$ac_ext
7390 # Now generate the symbol file.
7391 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7393 cat <<EOF >> conftest.$ac_ext
7394 #if defined (__STDC__) && __STDC__
7395 # define lt_ptr_t void *
7397 # define lt_ptr_t char *
7401 /* The mapping between symbol names and symbols. */
7406 lt_preloaded_symbols[] =
7409 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7410 cat <<\EOF >> conftest.$ac_ext
7418 # Now try linking the two files.
7419 mv conftest.$ac_objext conftstm.$ac_objext
7420 lt_save_LIBS="$LIBS"
7421 lt_save_CFLAGS="$CFLAGS"
7422 LIBS="conftstm.$ac_objext"
7423 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7425 (eval $ac_link) 2>&5
7427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7431 LIBS="$lt_save_LIBS"
7432 CFLAGS="$lt_save_CFLAGS"
7434 echo "cannot find nm_test_func in $nlist" >&5
7437 echo "cannot find nm_test_var in $nlist" >&5
7440 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7443 echo "$progname: failed program was:" >&5
7444 cat conftest.$ac_ext >&5
7446 rm -f conftest* conftst*
7448 # Do not use the global_symbol_pipe unless it works.
7449 if test "$pipe_works" = yes; then
7452 lt_cv_sys_global_symbol_pipe=
7458 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7459 lt_cv_sys_global_symbol_to_cdecl=
7461 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7462 echo "$as_me:$LINENO: result: failed" >&5
7463 echo "${ECHO_T}failed" >&6
7465 echo "$as_me:$LINENO: result: ok" >&5
7466 echo "${ECHO_T}ok" >&6
7470 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7471 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7472 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7473 echo $ECHO_N "(cached) $ECHO_C" >&6
7475 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7476 libltdl_cv_preloaded_symbols=yes
7478 libltdl_cv_preloaded_symbols=no
7482 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7483 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7484 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7486 cat >>confdefs.h <<\_ACEOF
7487 #define HAVE_PRELOADED_SYMBOLS 1
7495 ac_cpp='$CPP $CPPFLAGS'
7496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7501 echo "$as_me:$LINENO: checking for shl_load" >&5
7502 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7503 if test "${ac_cv_func_shl_load+set}" = set; then
7504 echo $ECHO_N "(cached) $ECHO_C" >&6
7506 cat >conftest.$ac_ext <<_ACEOF
7509 cat confdefs.h >>conftest.$ac_ext
7510 cat >>conftest.$ac_ext <<_ACEOF
7511 /* end confdefs.h. */
7512 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7513 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7514 #define shl_load innocuous_shl_load
7516 /* System header to define __stub macros and hopefully few prototypes,
7517 which can conflict with char shl_load (); below.
7518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7519 <limits.h> exists even on freestanding compilers. */
7522 # include <limits.h>
7524 # include <assert.h>
7529 /* Override any gcc2 internal prototype to avoid an error. */
7534 /* We use char because int might match the return type of a gcc2
7535 builtin and then its argument prototype would still apply. */
7537 /* The GNU C library defines this for functions which it implements
7538 to always fail with ENOSYS. Some functions are actually named
7539 something starting with __ and the normal name is an alias. */
7540 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7543 char (*f) () = shl_load;
7552 return f != shl_load;
7557 rm -f conftest.$ac_objext conftest$ac_exeext
7558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7559 (eval $ac_link) 2>conftest.er1
7561 grep -v '^ *+' conftest.er1 >conftest.err
7563 cat conftest.err >&5
7564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); } &&
7566 { ac_try='test -z "$ac_c_werror_flag"
7567 || test ! -s conftest.err'
7568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572 (exit $ac_status); }; } &&
7573 { ac_try='test -s conftest$ac_exeext'
7574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); }; }; then
7579 ac_cv_func_shl_load=yes
7581 echo "$as_me: failed program was:" >&5
7582 sed 's/^/| /' conftest.$ac_ext >&5
7584 ac_cv_func_shl_load=no
7586 rm -f conftest.err conftest.$ac_objext \
7587 conftest$ac_exeext conftest.$ac_ext
7589 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7590 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7591 if test $ac_cv_func_shl_load = yes; then
7593 cat >>confdefs.h <<\_ACEOF
7594 #define HAVE_SHL_LOAD 1
7598 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7599 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7600 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7601 echo $ECHO_N "(cached) $ECHO_C" >&6
7603 ac_check_lib_save_LIBS=$LIBS
7605 cat >conftest.$ac_ext <<_ACEOF
7608 cat confdefs.h >>conftest.$ac_ext
7609 cat >>conftest.$ac_ext <<_ACEOF
7610 /* end confdefs.h. */
7612 /* Override any gcc2 internal prototype to avoid an error. */
7616 /* We use char because int might match the return type of a gcc2
7617 builtin and then its argument prototype would still apply. */
7627 rm -f conftest.$ac_objext conftest$ac_exeext
7628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7629 (eval $ac_link) 2>conftest.er1
7631 grep -v '^ *+' conftest.er1 >conftest.err
7633 cat conftest.err >&5
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); } &&
7636 { ac_try='test -z "$ac_c_werror_flag"
7637 || test ! -s conftest.err'
7638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); }; } &&
7643 { ac_try='test -s conftest$ac_exeext'
7644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648 (exit $ac_status); }; }; then
7649 ac_cv_lib_dld_shl_load=yes
7651 echo "$as_me: failed program was:" >&5
7652 sed 's/^/| /' conftest.$ac_ext >&5
7654 ac_cv_lib_dld_shl_load=no
7656 rm -f conftest.err conftest.$ac_objext \
7657 conftest$ac_exeext conftest.$ac_ext
7658 LIBS=$ac_check_lib_save_LIBS
7660 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7661 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7662 if test $ac_cv_lib_dld_shl_load = yes; then
7664 cat >>confdefs.h <<\_ACEOF
7665 #define HAVE_SHL_LOAD 1
7668 LIBADD_DL="$LIBADD_DL -ldld"
7670 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7671 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7672 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7673 echo $ECHO_N "(cached) $ECHO_C" >&6
7675 ac_check_lib_save_LIBS=$LIBS
7677 cat >conftest.$ac_ext <<_ACEOF
7680 cat confdefs.h >>conftest.$ac_ext
7681 cat >>conftest.$ac_ext <<_ACEOF
7682 /* end confdefs.h. */
7684 /* Override any gcc2 internal prototype to avoid an error. */
7688 /* We use char because int might match the return type of a gcc2
7689 builtin and then its argument prototype would still apply. */
7699 rm -f conftest.$ac_objext conftest$ac_exeext
7700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7701 (eval $ac_link) 2>conftest.er1
7703 grep -v '^ *+' conftest.er1 >conftest.err
7705 cat conftest.err >&5
7706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707 (exit $ac_status); } &&
7708 { ac_try='test -z "$ac_c_werror_flag"
7709 || test ! -s conftest.err'
7710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); }; } &&
7715 { ac_try='test -s conftest$ac_exeext'
7716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720 (exit $ac_status); }; }; then
7721 ac_cv_lib_dl_dlopen=yes
7723 echo "$as_me: failed program was:" >&5
7724 sed 's/^/| /' conftest.$ac_ext >&5
7726 ac_cv_lib_dl_dlopen=no
7728 rm -f conftest.err conftest.$ac_objext \
7729 conftest$ac_exeext conftest.$ac_ext
7730 LIBS=$ac_check_lib_save_LIBS
7732 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7733 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7734 if test $ac_cv_lib_dl_dlopen = yes; then
7736 cat >>confdefs.h <<\_ACEOF
7737 #define HAVE_LIBDL 1
7740 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7742 cat >conftest.$ac_ext <<_ACEOF
7745 cat confdefs.h >>conftest.$ac_ext
7746 cat >>conftest.$ac_ext <<_ACEOF
7747 /* end confdefs.h. */
7760 rm -f conftest.$ac_objext conftest$ac_exeext
7761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7762 (eval $ac_link) 2>conftest.er1
7764 grep -v '^ *+' conftest.er1 >conftest.err
7766 cat conftest.err >&5
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); } &&
7769 { ac_try='test -z "$ac_c_werror_flag"
7770 || test ! -s conftest.err'
7771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775 (exit $ac_status); }; } &&
7776 { ac_try='test -s conftest$ac_exeext'
7777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); }; }; then
7783 cat >>confdefs.h <<\_ACEOF
7784 #define HAVE_LIBDL 1
7786 libltdl_cv_func_dlopen="yes"
7788 echo "$as_me: failed program was:" >&5
7789 sed 's/^/| /' conftest.$ac_ext >&5
7791 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7792 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7793 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7794 echo $ECHO_N "(cached) $ECHO_C" >&6
7796 ac_check_lib_save_LIBS=$LIBS
7798 cat >conftest.$ac_ext <<_ACEOF
7801 cat confdefs.h >>conftest.$ac_ext
7802 cat >>conftest.$ac_ext <<_ACEOF
7803 /* end confdefs.h. */
7805 /* Override any gcc2 internal prototype to avoid an error. */
7809 /* We use char because int might match the return type of a gcc2
7810 builtin and then its argument prototype would still apply. */
7820 rm -f conftest.$ac_objext conftest$ac_exeext
7821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7822 (eval $ac_link) 2>conftest.er1
7824 grep -v '^ *+' conftest.er1 >conftest.err
7826 cat conftest.err >&5
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); } &&
7829 { ac_try='test -z "$ac_c_werror_flag"
7830 || test ! -s conftest.err'
7831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); }; } &&
7836 { ac_try='test -s conftest$ac_exeext'
7837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); }; }; then
7842 ac_cv_lib_svld_dlopen=yes
7844 echo "$as_me: failed program was:" >&5
7845 sed 's/^/| /' conftest.$ac_ext >&5
7847 ac_cv_lib_svld_dlopen=no
7849 rm -f conftest.err conftest.$ac_objext \
7850 conftest$ac_exeext conftest.$ac_ext
7851 LIBS=$ac_check_lib_save_LIBS
7853 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7854 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7855 if test $ac_cv_lib_svld_dlopen = yes; then
7857 cat >>confdefs.h <<\_ACEOF
7858 #define HAVE_LIBDL 1
7861 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7863 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7864 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7865 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7866 echo $ECHO_N "(cached) $ECHO_C" >&6
7868 ac_check_lib_save_LIBS=$LIBS
7870 cat >conftest.$ac_ext <<_ACEOF
7873 cat confdefs.h >>conftest.$ac_ext
7874 cat >>conftest.$ac_ext <<_ACEOF
7875 /* end confdefs.h. */
7877 /* Override any gcc2 internal prototype to avoid an error. */
7881 /* We use char because int might match the return type of a gcc2
7882 builtin and then its argument prototype would still apply. */
7892 rm -f conftest.$ac_objext conftest$ac_exeext
7893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7894 (eval $ac_link) 2>conftest.er1
7896 grep -v '^ *+' conftest.er1 >conftest.err
7898 cat conftest.err >&5
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); } &&
7901 { ac_try='test -z "$ac_c_werror_flag"
7902 || test ! -s conftest.err'
7903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); }; } &&
7908 { ac_try='test -s conftest$ac_exeext'
7909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); }; }; then
7914 ac_cv_lib_dld_dld_link=yes
7916 echo "$as_me: failed program was:" >&5
7917 sed 's/^/| /' conftest.$ac_ext >&5
7919 ac_cv_lib_dld_dld_link=no
7921 rm -f conftest.err conftest.$ac_objext \
7922 conftest$ac_exeext conftest.$ac_ext
7923 LIBS=$ac_check_lib_save_LIBS
7925 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7926 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7927 if test $ac_cv_lib_dld_dld_link = yes; then
7929 cat >>confdefs.h <<\_ACEOF
7933 LIBADD_DL="$LIBADD_DL -ldld"
7935 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7936 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7937 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7938 echo $ECHO_N "(cached) $ECHO_C" >&6
7940 cat >conftest.$ac_ext <<_ACEOF
7943 cat confdefs.h >>conftest.$ac_ext
7944 cat >>conftest.$ac_ext <<_ACEOF
7945 /* end confdefs.h. */
7946 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7948 #define _dyld_func_lookup innocuous__dyld_func_lookup
7950 /* System header to define __stub macros and hopefully few prototypes,
7951 which can conflict with char _dyld_func_lookup (); below.
7952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7953 <limits.h> exists even on freestanding compilers. */
7956 # include <limits.h>
7958 # include <assert.h>
7961 #undef _dyld_func_lookup
7963 /* Override any gcc2 internal prototype to avoid an error. */
7968 /* We use char because int might match the return type of a gcc2
7969 builtin and then its argument prototype would still apply. */
7970 char _dyld_func_lookup ();
7971 /* The GNU C library defines this for functions which it implements
7972 to always fail with ENOSYS. Some functions are actually named
7973 something starting with __ and the normal name is an alias. */
7974 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
7977 char (*f) () = _dyld_func_lookup;
7986 return f != _dyld_func_lookup;
7991 rm -f conftest.$ac_objext conftest$ac_exeext
7992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7993 (eval $ac_link) 2>conftest.er1
7995 grep -v '^ *+' conftest.er1 >conftest.err
7997 cat conftest.err >&5
7998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999 (exit $ac_status); } &&
8000 { ac_try='test -z "$ac_c_werror_flag"
8001 || test ! -s conftest.err'
8002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); }; } &&
8007 { ac_try='test -s conftest$ac_exeext'
8008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); }; }; then
8013 ac_cv_func__dyld_func_lookup=yes
8015 echo "$as_me: failed program was:" >&5
8016 sed 's/^/| /' conftest.$ac_ext >&5
8018 ac_cv_func__dyld_func_lookup=no
8020 rm -f conftest.err conftest.$ac_objext \
8021 conftest$ac_exeext conftest.$ac_ext
8023 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8024 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8025 if test $ac_cv_func__dyld_func_lookup = yes; then
8027 cat >>confdefs.h <<\_ACEOF
8041 rm -f conftest.err conftest.$ac_objext \
8042 conftest$ac_exeext conftest.$ac_ext
8053 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8055 lt_save_LIBS="$LIBS"
8056 LIBS="$LIBS $LIBADD_DL"
8058 for ac_func in dlerror
8060 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8061 echo "$as_me:$LINENO: checking for $ac_func" >&5
8062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8063 if eval "test \"\${$as_ac_var+set}\" = set"; then
8064 echo $ECHO_N "(cached) $ECHO_C" >&6
8066 cat >conftest.$ac_ext <<_ACEOF
8069 cat confdefs.h >>conftest.$ac_ext
8070 cat >>conftest.$ac_ext <<_ACEOF
8071 /* end confdefs.h. */
8072 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8074 #define $ac_func innocuous_$ac_func
8076 /* System header to define __stub macros and hopefully few prototypes,
8077 which can conflict with char $ac_func (); below.
8078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8079 <limits.h> exists even on freestanding compilers. */
8082 # include <limits.h>
8084 # include <assert.h>
8089 /* Override any gcc2 internal prototype to avoid an error. */
8094 /* We use char because int might match the return type of a gcc2
8095 builtin and then its argument prototype would still apply. */
8097 /* The GNU C library defines this for functions which it implements
8098 to always fail with ENOSYS. Some functions are actually named
8099 something starting with __ and the normal name is an alias. */
8100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8103 char (*f) () = $ac_func;
8112 return f != $ac_func;
8117 rm -f conftest.$ac_objext conftest$ac_exeext
8118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8119 (eval $ac_link) 2>conftest.er1
8121 grep -v '^ *+' conftest.er1 >conftest.err
8123 cat conftest.err >&5
8124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 (exit $ac_status); } &&
8126 { ac_try='test -z "$ac_c_werror_flag"
8127 || test ! -s conftest.err'
8128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); }; } &&
8133 { ac_try='test -s conftest$ac_exeext'
8134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); }; }; then
8139 eval "$as_ac_var=yes"
8141 echo "$as_me: failed program was:" >&5
8142 sed 's/^/| /' conftest.$ac_ext >&5
8144 eval "$as_ac_var=no"
8146 rm -f conftest.err conftest.$ac_objext \
8147 conftest$ac_exeext conftest.$ac_ext
8149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8150 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8151 if test `eval echo '${'$as_ac_var'}'` = yes; then
8152 cat >>confdefs.h <<_ACEOF
8153 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8159 LIBS="$lt_save_LIBS"
8162 ac_cpp='$CPP $CPPFLAGS'
8163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8169 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8170 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8171 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8172 echo $ECHO_N "(cached) $ECHO_C" >&6
8174 ac_cv_sys_symbol_underscore=no
8175 cat > conftest.$ac_ext <<EOF
8176 void nm_test_func(){}
8177 int main(){nm_test_func;return 0;}
8179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8180 (eval $ac_compile) 2>&5
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); }; then
8184 # Now try to grab the symbols.
8185 ac_nlist=conftest.nm
8186 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8187 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); } && test -s "$ac_nlist"; then
8191 # See whether the symbols have a leading underscore.
8192 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8193 ac_cv_sys_symbol_underscore=yes
8195 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8198 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8202 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8205 echo "configure: failed program was:" >&5
8211 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8212 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8215 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8216 if test x"$libltdl_cv_func_dlopen" = xyes ||
8217 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8218 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8219 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8220 if test "${libltdl_cv_need_uscore+set}" = set; then
8221 echo $ECHO_N "(cached) $ECHO_C" >&6
8223 libltdl_cv_need_uscore=unknown
8225 LIBS="$LIBS $LIBADD_DL"
8226 if test "$cross_compiling" = yes; then :
8227 libltdl_cv_need_uscore=cross
8229 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8230 lt_status=$lt_dlunknown
8231 cat > conftest.$ac_ext <<EOF
8232 #line 8232 "configure"
8233 #include "confdefs.h"
8242 # define LT_DLGLOBAL RTLD_GLOBAL
8245 # define LT_DLGLOBAL DL_GLOBAL
8247 # define LT_DLGLOBAL 0
8251 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8252 find out it does not work in some platform. */
8253 #ifndef LT_DLLAZY_OR_NOW
8255 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8258 # define LT_DLLAZY_OR_NOW DL_LAZY
8261 # define LT_DLLAZY_OR_NOW RTLD_NOW
8264 # define LT_DLLAZY_OR_NOW DL_NOW
8266 # define LT_DLLAZY_OR_NOW 0
8274 extern "C" void exit (int);
8277 void fnord() { int i=42;}
8280 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8281 int status = $lt_dlunknown;
8285 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8286 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8287 /* dlclose (self); */
8293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8294 (eval $ac_link) 2>&5
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8298 (./conftest; exit; ) 2>/dev/null
8301 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8302 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8306 # compilation failed
8315 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8316 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8320 if test x"$libltdl_cv_need_uscore" = xyes; then
8322 cat >>confdefs.h <<\_ACEOF
8323 #define NEED_USCORE 1
8329 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8330 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8331 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8332 echo $ECHO_N "(cached) $ECHO_C" >&6
8334 # PORTME does your system automatically load deplibs for dlopen?
8335 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8336 # For now, we just catch OSes we know something about -- in the
8337 # future, we'll try test this programmatically.
8338 libltdl_cv_sys_dlopen_deplibs=unknown
8340 aix3*|aix4.1.*|aix4.2.*)
8341 # Unknown whether this is true for these versions of AIX, but
8342 # we want this `case' here to explicitly catch those versions.
8343 libltdl_cv_sys_dlopen_deplibs=unknown
8346 libltdl_cv_sys_dlopen_deplibs=yes
8349 # Assuming the user has installed a libdl from somewhere, this is true
8350 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8351 libltdl_cv_sys_dlopen_deplibs=yes
8353 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8354 # GNU and its variants, using gnu ld.so (Glibc)
8355 libltdl_cv_sys_dlopen_deplibs=yes
8358 libltdl_cv_sys_dlopen_deplibs=yes
8360 irix[12345]*|irix6.[01]*)
8361 # Catch all versions of IRIX before 6.2, and indicate that we don't
8362 # know how it worked for any of those versions.
8363 libltdl_cv_sys_dlopen_deplibs=unknown
8366 # The case above catches anything before 6.2, and it's known that
8367 # at 6.2 and later dlopen does load deplibs.
8368 libltdl_cv_sys_dlopen_deplibs=yes
8371 libltdl_cv_sys_dlopen_deplibs=yes
8374 libltdl_cv_sys_dlopen_deplibs=yes
8377 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8378 # it did *not* use an RPATH in a shared library to find objects the
8379 # library depends on, so we explictly say `no'.
8380 libltdl_cv_sys_dlopen_deplibs=no
8382 osf5.0|osf5.0a|osf5.1)
8383 # dlopen *does* load deplibs and with the right loader patch applied
8384 # it even uses RPATH in a shared library to search for shared objects
8385 # that the library depends on, but there's no easy way to know if that
8386 # patch is installed. Since this is the case, all we can really
8387 # say is unknown -- it depends on the patch being installed. If
8388 # it is, this changes to `yes'. Without it, it would be `no'.
8389 libltdl_cv_sys_dlopen_deplibs=unknown
8392 # the two cases above should catch all versions of osf <= 5.1. Read
8393 # the comments above for what we know about them.
8394 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8395 # is used to find them so we can finally say `yes'.
8396 libltdl_cv_sys_dlopen_deplibs=yes
8399 libltdl_cv_sys_dlopen_deplibs=yes
8404 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8405 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8406 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8408 cat >>confdefs.h <<\_ACEOF
8409 #define LTDL_DLOPEN_DEPLIBS 1
8415 for ac_header in argz.h
8417 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8419 echo "$as_me:$LINENO: checking for $ac_header" >&5
8420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8422 echo $ECHO_N "(cached) $ECHO_C" >&6
8424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8427 # Is the header compilable?
8428 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8429 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8430 cat >conftest.$ac_ext <<_ACEOF
8433 cat confdefs.h >>conftest.$ac_ext
8434 cat >>conftest.$ac_ext <<_ACEOF
8435 /* end confdefs.h. */
8436 $ac_includes_default
8437 #include <$ac_header>
8439 rm -f conftest.$ac_objext
8440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8441 (eval $ac_compile) 2>conftest.er1
8443 grep -v '^ *+' conftest.er1 >conftest.err
8445 cat conftest.err >&5
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); } &&
8448 { ac_try='test -z "$ac_c_werror_flag"
8449 || test ! -s conftest.err'
8450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); }; } &&
8455 { ac_try='test -s conftest.$ac_objext'
8456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); }; }; then
8461 ac_header_compiler=yes
8463 echo "$as_me: failed program was:" >&5
8464 sed 's/^/| /' conftest.$ac_ext >&5
8466 ac_header_compiler=no
8468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8469 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8470 echo "${ECHO_T}$ac_header_compiler" >&6
8472 # Is the header present?
8473 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8474 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8475 cat >conftest.$ac_ext <<_ACEOF
8478 cat confdefs.h >>conftest.$ac_ext
8479 cat >>conftest.$ac_ext <<_ACEOF
8480 /* end confdefs.h. */
8481 #include <$ac_header>
8483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8484 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8486 grep -v '^ *+' conftest.er1 >conftest.err
8488 cat conftest.err >&5
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); } >/dev/null; then
8491 if test -s conftest.err; then
8492 ac_cpp_err=$ac_c_preproc_warn_flag
8493 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8500 if test -z "$ac_cpp_err"; then
8501 ac_header_preproc=yes
8503 echo "$as_me: failed program was:" >&5
8504 sed 's/^/| /' conftest.$ac_ext >&5
8506 ac_header_preproc=no
8508 rm -f conftest.err conftest.$ac_ext
8509 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8510 echo "${ECHO_T}$ac_header_preproc" >&6
8512 # So? What about this header?
8513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8515 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8516 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8518 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8519 ac_header_preproc=yes
8522 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8523 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8524 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8525 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8526 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8527 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8528 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8529 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8532 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8533 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8536 ## ----------------------------------- ##
8537 ## Report this to llvmbugs@cs.uiuc.edu ##
8538 ## ----------------------------------- ##
8541 sed "s/^/$as_me: WARNING: /" >&2
8544 echo "$as_me:$LINENO: checking for $ac_header" >&5
8545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8547 echo $ECHO_N "(cached) $ECHO_C" >&6
8549 eval "$as_ac_Header=\$ac_header_preproc"
8551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8556 cat >>confdefs.h <<_ACEOF
8557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8565 echo "$as_me:$LINENO: checking for error_t" >&5
8566 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8567 if test "${ac_cv_type_error_t+set}" = set; then
8568 echo $ECHO_N "(cached) $ECHO_C" >&6
8570 cat >conftest.$ac_ext <<_ACEOF
8573 cat confdefs.h >>conftest.$ac_ext
8574 cat >>conftest.$ac_ext <<_ACEOF
8575 /* end confdefs.h. */
8585 if (sizeof (error_t))
8591 rm -f conftest.$ac_objext
8592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8593 (eval $ac_compile) 2>conftest.er1
8595 grep -v '^ *+' conftest.er1 >conftest.err
8597 cat conftest.err >&5
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); } &&
8600 { ac_try='test -z "$ac_c_werror_flag"
8601 || test ! -s conftest.err'
8602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); }; } &&
8607 { ac_try='test -s conftest.$ac_objext'
8608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); }; }; then
8613 ac_cv_type_error_t=yes
8615 echo "$as_me: failed program was:" >&5
8616 sed 's/^/| /' conftest.$ac_ext >&5
8618 ac_cv_type_error_t=no
8620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8622 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8623 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8624 if test $ac_cv_type_error_t = yes; then
8626 cat >>confdefs.h <<_ACEOF
8627 #define HAVE_ERROR_T 1
8633 cat >>confdefs.h <<\_ACEOF
8645 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8647 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8648 echo "$as_me:$LINENO: checking for $ac_func" >&5
8649 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8650 if eval "test \"\${$as_ac_var+set}\" = set"; then
8651 echo $ECHO_N "(cached) $ECHO_C" >&6
8653 cat >conftest.$ac_ext <<_ACEOF
8656 cat confdefs.h >>conftest.$ac_ext
8657 cat >>conftest.$ac_ext <<_ACEOF
8658 /* end confdefs.h. */
8659 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8661 #define $ac_func innocuous_$ac_func
8663 /* System header to define __stub macros and hopefully few prototypes,
8664 which can conflict with char $ac_func (); below.
8665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8666 <limits.h> exists even on freestanding compilers. */
8669 # include <limits.h>
8671 # include <assert.h>
8676 /* Override any gcc2 internal prototype to avoid an error. */
8681 /* We use char because int might match the return type of a gcc2
8682 builtin and then its argument prototype would still apply. */
8684 /* The GNU C library defines this for functions which it implements
8685 to always fail with ENOSYS. Some functions are actually named
8686 something starting with __ and the normal name is an alias. */
8687 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8690 char (*f) () = $ac_func;
8699 return f != $ac_func;
8704 rm -f conftest.$ac_objext conftest$ac_exeext
8705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8706 (eval $ac_link) 2>conftest.er1
8708 grep -v '^ *+' conftest.er1 >conftest.err
8710 cat conftest.err >&5
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); } &&
8713 { ac_try='test -z "$ac_c_werror_flag"
8714 || test ! -s conftest.err'
8715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); }; } &&
8720 { ac_try='test -s conftest$ac_exeext'
8721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); }; }; then
8726 eval "$as_ac_var=yes"
8728 echo "$as_me: failed program was:" >&5
8729 sed 's/^/| /' conftest.$ac_ext >&5
8731 eval "$as_ac_var=no"
8733 rm -f conftest.err conftest.$ac_objext \
8734 conftest$ac_exeext conftest.$ac_ext
8736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8737 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8738 if test `eval echo '${'$as_ac_var'}'` = yes; then
8739 cat >>confdefs.h <<_ACEOF
8740 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8773 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8776 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8778 echo "$as_me:$LINENO: checking for $ac_header" >&5
8779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8781 echo $ECHO_N "(cached) $ECHO_C" >&6
8783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8784 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8786 # Is the header compilable?
8787 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8788 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8789 cat >conftest.$ac_ext <<_ACEOF
8792 cat confdefs.h >>conftest.$ac_ext
8793 cat >>conftest.$ac_ext <<_ACEOF
8794 /* end confdefs.h. */
8795 $ac_includes_default
8796 #include <$ac_header>
8798 rm -f conftest.$ac_objext
8799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8800 (eval $ac_compile) 2>conftest.er1
8802 grep -v '^ *+' conftest.er1 >conftest.err
8804 cat conftest.err >&5
8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); } &&
8807 { ac_try='test -z "$ac_c_werror_flag"
8808 || test ! -s conftest.err'
8809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813 (exit $ac_status); }; } &&
8814 { ac_try='test -s conftest.$ac_objext'
8815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); }; }; then
8820 ac_header_compiler=yes
8822 echo "$as_me: failed program was:" >&5
8823 sed 's/^/| /' conftest.$ac_ext >&5
8825 ac_header_compiler=no
8827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8828 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8829 echo "${ECHO_T}$ac_header_compiler" >&6
8831 # Is the header present?
8832 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8833 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8834 cat >conftest.$ac_ext <<_ACEOF
8837 cat confdefs.h >>conftest.$ac_ext
8838 cat >>conftest.$ac_ext <<_ACEOF
8839 /* end confdefs.h. */
8840 #include <$ac_header>
8842 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8843 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8845 grep -v '^ *+' conftest.er1 >conftest.err
8847 cat conftest.err >&5
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 (exit $ac_status); } >/dev/null; then
8850 if test -s conftest.err; then
8851 ac_cpp_err=$ac_c_preproc_warn_flag
8852 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8859 if test -z "$ac_cpp_err"; then
8860 ac_header_preproc=yes
8862 echo "$as_me: failed program was:" >&5
8863 sed 's/^/| /' conftest.$ac_ext >&5
8865 ac_header_preproc=no
8867 rm -f conftest.err conftest.$ac_ext
8868 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8869 echo "${ECHO_T}$ac_header_preproc" >&6
8871 # So? What about this header?
8872 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8874 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8875 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8876 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8877 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8878 ac_header_preproc=yes
8881 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8882 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8883 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8884 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8885 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8886 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8887 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8888 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8890 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8891 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8892 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8895 ## ----------------------------------- ##
8896 ## Report this to llvmbugs@cs.uiuc.edu ##
8897 ## ----------------------------------- ##
8900 sed "s/^/$as_me: WARNING: /" >&2
8903 echo "$as_me:$LINENO: checking for $ac_header" >&5
8904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8906 echo $ECHO_N "(cached) $ECHO_C" >&6
8908 eval "$as_ac_Header=\$ac_header_preproc"
8910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8911 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8914 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8915 cat >>confdefs.h <<_ACEOF
8916 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8927 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8929 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8931 echo "$as_me:$LINENO: checking for $ac_header" >&5
8932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8934 echo $ECHO_N "(cached) $ECHO_C" >&6
8936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8939 # Is the header compilable?
8940 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8941 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8942 cat >conftest.$ac_ext <<_ACEOF
8945 cat confdefs.h >>conftest.$ac_ext
8946 cat >>conftest.$ac_ext <<_ACEOF
8947 /* end confdefs.h. */
8948 $ac_includes_default
8949 #include <$ac_header>
8951 rm -f conftest.$ac_objext
8952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8953 (eval $ac_compile) 2>conftest.er1
8955 grep -v '^ *+' conftest.er1 >conftest.err
8957 cat conftest.err >&5
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); } &&
8960 { ac_try='test -z "$ac_c_werror_flag"
8961 || test ! -s conftest.err'
8962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); }; } &&
8967 { ac_try='test -s conftest.$ac_objext'
8968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972 (exit $ac_status); }; }; then
8973 ac_header_compiler=yes
8975 echo "$as_me: failed program was:" >&5
8976 sed 's/^/| /' conftest.$ac_ext >&5
8978 ac_header_compiler=no
8980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8981 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8982 echo "${ECHO_T}$ac_header_compiler" >&6
8984 # Is the header present?
8985 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8986 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8987 cat >conftest.$ac_ext <<_ACEOF
8990 cat confdefs.h >>conftest.$ac_ext
8991 cat >>conftest.$ac_ext <<_ACEOF
8992 /* end confdefs.h. */
8993 #include <$ac_header>
8995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8996 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8998 grep -v '^ *+' conftest.er1 >conftest.err
9000 cat conftest.err >&5
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); } >/dev/null; then
9003 if test -s conftest.err; then
9004 ac_cpp_err=$ac_c_preproc_warn_flag
9005 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9012 if test -z "$ac_cpp_err"; then
9013 ac_header_preproc=yes
9015 echo "$as_me: failed program was:" >&5
9016 sed 's/^/| /' conftest.$ac_ext >&5
9018 ac_header_preproc=no
9020 rm -f conftest.err conftest.$ac_ext
9021 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9022 echo "${ECHO_T}$ac_header_preproc" >&6
9024 # So? What about this header?
9025 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9027 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9028 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9030 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9031 ac_header_preproc=yes
9034 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9035 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9036 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9037 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9038 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9039 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9040 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9041 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9043 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9044 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9045 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9048 ## ----------------------------------- ##
9049 ## Report this to llvmbugs@cs.uiuc.edu ##
9050 ## ----------------------------------- ##
9053 sed "s/^/$as_me: WARNING: /" >&2
9056 echo "$as_me:$LINENO: checking for $ac_header" >&5
9057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9059 echo $ECHO_N "(cached) $ECHO_C" >&6
9061 eval "$as_ac_Header=\$ac_header_preproc"
9063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9068 cat >>confdefs.h <<_ACEOF
9069 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9078 for ac_header in string.h strings.h
9080 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9082 echo "$as_me:$LINENO: checking for $ac_header" >&5
9083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9085 echo $ECHO_N "(cached) $ECHO_C" >&6
9087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9088 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9090 # Is the header compilable?
9091 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9092 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9093 cat >conftest.$ac_ext <<_ACEOF
9096 cat confdefs.h >>conftest.$ac_ext
9097 cat >>conftest.$ac_ext <<_ACEOF
9098 /* end confdefs.h. */
9099 $ac_includes_default
9100 #include <$ac_header>
9102 rm -f conftest.$ac_objext
9103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9104 (eval $ac_compile) 2>conftest.er1
9106 grep -v '^ *+' conftest.er1 >conftest.err
9108 cat conftest.err >&5
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); } &&
9111 { ac_try='test -z "$ac_c_werror_flag"
9112 || test ! -s conftest.err'
9113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); }; } &&
9118 { ac_try='test -s conftest.$ac_objext'
9119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); }; }; then
9124 ac_header_compiler=yes
9126 echo "$as_me: failed program was:" >&5
9127 sed 's/^/| /' conftest.$ac_ext >&5
9129 ac_header_compiler=no
9131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9132 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9133 echo "${ECHO_T}$ac_header_compiler" >&6
9135 # Is the header present?
9136 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9137 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9138 cat >conftest.$ac_ext <<_ACEOF
9141 cat confdefs.h >>conftest.$ac_ext
9142 cat >>conftest.$ac_ext <<_ACEOF
9143 /* end confdefs.h. */
9144 #include <$ac_header>
9146 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9147 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9149 grep -v '^ *+' conftest.er1 >conftest.err
9151 cat conftest.err >&5
9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153 (exit $ac_status); } >/dev/null; then
9154 if test -s conftest.err; then
9155 ac_cpp_err=$ac_c_preproc_warn_flag
9156 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9163 if test -z "$ac_cpp_err"; then
9164 ac_header_preproc=yes
9166 echo "$as_me: failed program was:" >&5
9167 sed 's/^/| /' conftest.$ac_ext >&5
9169 ac_header_preproc=no
9171 rm -f conftest.err conftest.$ac_ext
9172 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9173 echo "${ECHO_T}$ac_header_preproc" >&6
9175 # So? What about this header?
9176 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9178 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9179 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9181 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9182 ac_header_preproc=yes
9185 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9186 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9187 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9188 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9189 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9190 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9191 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9192 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9195 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9196 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9199 ## ----------------------------------- ##
9200 ## Report this to llvmbugs@cs.uiuc.edu ##
9201 ## ----------------------------------- ##
9204 sed "s/^/$as_me: WARNING: /" >&2
9207 echo "$as_me:$LINENO: checking for $ac_header" >&5
9208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9210 echo $ECHO_N "(cached) $ECHO_C" >&6
9212 eval "$as_ac_Header=\$ac_header_preproc"
9214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9215 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9218 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9219 cat >>confdefs.h <<_ACEOF
9220 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9230 for ac_func in strchr index
9232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9233 echo "$as_me:$LINENO: checking for $ac_func" >&5
9234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9235 if eval "test \"\${$as_ac_var+set}\" = set"; then
9236 echo $ECHO_N "(cached) $ECHO_C" >&6
9238 cat >conftest.$ac_ext <<_ACEOF
9241 cat confdefs.h >>conftest.$ac_ext
9242 cat >>conftest.$ac_ext <<_ACEOF
9243 /* end confdefs.h. */
9244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9246 #define $ac_func innocuous_$ac_func
9248 /* System header to define __stub macros and hopefully few prototypes,
9249 which can conflict with char $ac_func (); below.
9250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9251 <limits.h> exists even on freestanding compilers. */
9254 # include <limits.h>
9256 # include <assert.h>
9261 /* Override any gcc2 internal prototype to avoid an error. */
9266 /* We use char because int might match the return type of a gcc2
9267 builtin and then its argument prototype would still apply. */
9269 /* The GNU C library defines this for functions which it implements
9270 to always fail with ENOSYS. Some functions are actually named
9271 something starting with __ and the normal name is an alias. */
9272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9275 char (*f) () = $ac_func;
9284 return f != $ac_func;
9289 rm -f conftest.$ac_objext conftest$ac_exeext
9290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9291 (eval $ac_link) 2>conftest.er1
9293 grep -v '^ *+' conftest.er1 >conftest.err
9295 cat conftest.err >&5
9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 (exit $ac_status); } &&
9298 { ac_try='test -z "$ac_c_werror_flag"
9299 || test ! -s conftest.err'
9300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304 (exit $ac_status); }; } &&
9305 { ac_try='test -s conftest$ac_exeext'
9306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); }; }; then
9311 eval "$as_ac_var=yes"
9313 echo "$as_me: failed program was:" >&5
9314 sed 's/^/| /' conftest.$ac_ext >&5
9316 eval "$as_ac_var=no"
9318 rm -f conftest.err conftest.$ac_objext \
9319 conftest$ac_exeext conftest.$ac_ext
9321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9322 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9323 if test `eval echo '${'$as_ac_var'}'` = yes; then
9324 cat >>confdefs.h <<_ACEOF
9325 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9333 for ac_func in strrchr rindex
9335 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9336 echo "$as_me:$LINENO: checking for $ac_func" >&5
9337 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9338 if eval "test \"\${$as_ac_var+set}\" = set"; then
9339 echo $ECHO_N "(cached) $ECHO_C" >&6
9341 cat >conftest.$ac_ext <<_ACEOF
9344 cat confdefs.h >>conftest.$ac_ext
9345 cat >>conftest.$ac_ext <<_ACEOF
9346 /* end confdefs.h. */
9347 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9349 #define $ac_func innocuous_$ac_func
9351 /* System header to define __stub macros and hopefully few prototypes,
9352 which can conflict with char $ac_func (); below.
9353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9354 <limits.h> exists even on freestanding compilers. */
9357 # include <limits.h>
9359 # include <assert.h>
9364 /* Override any gcc2 internal prototype to avoid an error. */
9369 /* We use char because int might match the return type of a gcc2
9370 builtin and then its argument prototype would still apply. */
9372 /* The GNU C library defines this for functions which it implements
9373 to always fail with ENOSYS. Some functions are actually named
9374 something starting with __ and the normal name is an alias. */
9375 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9378 char (*f) () = $ac_func;
9387 return f != $ac_func;
9392 rm -f conftest.$ac_objext conftest$ac_exeext
9393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9394 (eval $ac_link) 2>conftest.er1
9396 grep -v '^ *+' conftest.er1 >conftest.err
9398 cat conftest.err >&5
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); } &&
9401 { ac_try='test -z "$ac_c_werror_flag"
9402 || test ! -s conftest.err'
9403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); }; } &&
9408 { ac_try='test -s conftest$ac_exeext'
9409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); }; }; then
9414 eval "$as_ac_var=yes"
9416 echo "$as_me: failed program was:" >&5
9417 sed 's/^/| /' conftest.$ac_ext >&5
9419 eval "$as_ac_var=no"
9421 rm -f conftest.err conftest.$ac_objext \
9422 conftest$ac_exeext conftest.$ac_ext
9424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9425 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9426 if test `eval echo '${'$as_ac_var'}'` = yes; then
9427 cat >>confdefs.h <<_ACEOF
9428 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9436 for ac_func in memcpy bcopy
9438 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9439 echo "$as_me:$LINENO: checking for $ac_func" >&5
9440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9441 if eval "test \"\${$as_ac_var+set}\" = set"; then
9442 echo $ECHO_N "(cached) $ECHO_C" >&6
9444 cat >conftest.$ac_ext <<_ACEOF
9447 cat confdefs.h >>conftest.$ac_ext
9448 cat >>conftest.$ac_ext <<_ACEOF
9449 /* end confdefs.h. */
9450 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9452 #define $ac_func innocuous_$ac_func
9454 /* System header to define __stub macros and hopefully few prototypes,
9455 which can conflict with char $ac_func (); below.
9456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9457 <limits.h> exists even on freestanding compilers. */
9460 # include <limits.h>
9462 # include <assert.h>
9467 /* Override any gcc2 internal prototype to avoid an error. */
9472 /* We use char because int might match the return type of a gcc2
9473 builtin and then its argument prototype would still apply. */
9475 /* The GNU C library defines this for functions which it implements
9476 to always fail with ENOSYS. Some functions are actually named
9477 something starting with __ and the normal name is an alias. */
9478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9481 char (*f) () = $ac_func;
9490 return f != $ac_func;
9495 rm -f conftest.$ac_objext conftest$ac_exeext
9496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9497 (eval $ac_link) 2>conftest.er1
9499 grep -v '^ *+' conftest.er1 >conftest.err
9501 cat conftest.err >&5
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); } &&
9504 { ac_try='test -z "$ac_c_werror_flag"
9505 || test ! -s conftest.err'
9506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); }; } &&
9511 { ac_try='test -s conftest$ac_exeext'
9512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); }; }; then
9517 eval "$as_ac_var=yes"
9519 echo "$as_me: failed program was:" >&5
9520 sed 's/^/| /' conftest.$ac_ext >&5
9522 eval "$as_ac_var=no"
9524 rm -f conftest.err conftest.$ac_objext \
9525 conftest$ac_exeext conftest.$ac_ext
9527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9528 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9529 if test `eval echo '${'$as_ac_var'}'` = yes; then
9530 cat >>confdefs.h <<_ACEOF
9531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9539 for ac_func in memmove strcmp
9541 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9542 echo "$as_me:$LINENO: checking for $ac_func" >&5
9543 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9544 if eval "test \"\${$as_ac_var+set}\" = set"; then
9545 echo $ECHO_N "(cached) $ECHO_C" >&6
9547 cat >conftest.$ac_ext <<_ACEOF
9550 cat confdefs.h >>conftest.$ac_ext
9551 cat >>conftest.$ac_ext <<_ACEOF
9552 /* end confdefs.h. */
9553 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9554 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9555 #define $ac_func innocuous_$ac_func
9557 /* System header to define __stub macros and hopefully few prototypes,
9558 which can conflict with char $ac_func (); below.
9559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9560 <limits.h> exists even on freestanding compilers. */
9563 # include <limits.h>
9565 # include <assert.h>
9570 /* Override any gcc2 internal prototype to avoid an error. */
9575 /* We use char because int might match the return type of a gcc2
9576 builtin and then its argument prototype would still apply. */
9578 /* The GNU C library defines this for functions which it implements
9579 to always fail with ENOSYS. Some functions are actually named
9580 something starting with __ and the normal name is an alias. */
9581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9584 char (*f) () = $ac_func;
9593 return f != $ac_func;
9598 rm -f conftest.$ac_objext conftest$ac_exeext
9599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9600 (eval $ac_link) 2>conftest.er1
9602 grep -v '^ *+' conftest.er1 >conftest.err
9604 cat conftest.err >&5
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); } &&
9607 { ac_try='test -z "$ac_c_werror_flag"
9608 || test ! -s conftest.err'
9609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 (exit $ac_status); }; } &&
9614 { ac_try='test -s conftest$ac_exeext'
9615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); }; }; then
9620 eval "$as_ac_var=yes"
9622 echo "$as_me: failed program was:" >&5
9623 sed 's/^/| /' conftest.$ac_ext >&5
9625 eval "$as_ac_var=no"
9627 rm -f conftest.err conftest.$ac_objext \
9628 conftest$ac_exeext conftest.$ac_ext
9630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9631 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9632 if test `eval echo '${'$as_ac_var'}'` = yes; then
9633 cat >>confdefs.h <<_ACEOF
9634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9643 for ac_func in closedir opendir readdir
9645 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9646 echo "$as_me:$LINENO: checking for $ac_func" >&5
9647 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9648 if eval "test \"\${$as_ac_var+set}\" = set"; then
9649 echo $ECHO_N "(cached) $ECHO_C" >&6
9651 cat >conftest.$ac_ext <<_ACEOF
9654 cat confdefs.h >>conftest.$ac_ext
9655 cat >>conftest.$ac_ext <<_ACEOF
9656 /* end confdefs.h. */
9657 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9659 #define $ac_func innocuous_$ac_func
9661 /* System header to define __stub macros and hopefully few prototypes,
9662 which can conflict with char $ac_func (); below.
9663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9664 <limits.h> exists even on freestanding compilers. */
9667 # include <limits.h>
9669 # include <assert.h>
9674 /* Override any gcc2 internal prototype to avoid an error. */
9679 /* We use char because int might match the return type of a gcc2
9680 builtin and then its argument prototype would still apply. */
9682 /* The GNU C library defines this for functions which it implements
9683 to always fail with ENOSYS. Some functions are actually named
9684 something starting with __ and the normal name is an alias. */
9685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9688 char (*f) () = $ac_func;
9697 return f != $ac_func;
9702 rm -f conftest.$ac_objext conftest$ac_exeext
9703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9704 (eval $ac_link) 2>conftest.er1
9706 grep -v '^ *+' conftest.er1 >conftest.err
9708 cat conftest.err >&5
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); } &&
9711 { ac_try='test -z "$ac_c_werror_flag"
9712 || test ! -s conftest.err'
9713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717 (exit $ac_status); }; } &&
9718 { ac_try='test -s conftest$ac_exeext'
9719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); }; }; then
9724 eval "$as_ac_var=yes"
9726 echo "$as_me: failed program was:" >&5
9727 sed 's/^/| /' conftest.$ac_ext >&5
9729 eval "$as_ac_var=no"
9731 rm -f conftest.err conftest.$ac_objext \
9732 conftest$ac_exeext conftest.$ac_ext
9734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9735 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9736 if test `eval echo '${'$as_ac_var'}'` = yes; then
9737 cat >>confdefs.h <<_ACEOF
9738 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9745 # Check whether --enable-shared or --disable-shared was given.
9746 if test "${enable_shared+set}" = set; then
9747 enableval="$enable_shared"
9748 p=${PACKAGE-default}
9750 yes) enable_shared=yes ;;
9751 no) enable_shared=no ;;
9754 # Look at the argument we got. We use all the common list separators.
9755 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9756 for pkg in $enableval; do
9758 if test "X$pkg" = "X$p"; then
9769 # Check whether --enable-static or --disable-static was given.
9770 if test "${enable_static+set}" = set; then
9771 enableval="$enable_static"
9772 p=${PACKAGE-default}
9774 yes) enable_static=yes ;;
9775 no) enable_static=no ;;
9778 # Look at the argument we got. We use all the common list separators.
9779 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9780 for pkg in $enableval; do
9782 if test "X$pkg" = "X$p"; then
9793 # Check whether --enable-fast-install or --disable-fast-install was given.
9794 if test "${enable_fast_install+set}" = set; then
9795 enableval="$enable_fast_install"
9796 p=${PACKAGE-default}
9798 yes) enable_fast_install=yes ;;
9799 no) enable_fast_install=no ;;
9801 enable_fast_install=no
9802 # Look at the argument we got. We use all the common list separators.
9803 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9804 for pkg in $enableval; do
9806 if test "X$pkg" = "X$p"; then
9807 enable_fast_install=yes
9814 enable_fast_install=yes
9817 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9818 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9819 if test "${lt_cv_path_SED+set}" = set; then
9820 echo $ECHO_N "(cached) $ECHO_C" >&6
9822 # Loop through the user's path and test for sed and gsed.
9823 # Then use that list of sed's as ones to test for truncation.
9824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9828 test -z "$as_dir" && as_dir=.
9829 for lt_ac_prog in sed gsed; do
9830 for ac_exec_ext in '' $ac_executable_extensions; do
9831 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9832 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9839 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9840 # along with /bin/sed that truncates output.
9841 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9842 test ! -f $lt_ac_sed && break
9843 cat /dev/null > conftest.in
9845 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9846 # Check for GNU sed and select it if it is found.
9847 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9848 lt_cv_path_SED=$lt_ac_sed
9852 cat conftest.in conftest.in >conftest.tmp
9853 mv conftest.tmp conftest.in
9854 cp conftest.in conftest.nl
9856 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9857 cmp -s conftest.out conftest.nl || break
9858 # 10000 chars as input seems more than enough
9859 test $lt_ac_count -gt 10 && break
9860 lt_ac_count=`expr $lt_ac_count + 1`
9861 if test $lt_ac_count -gt $lt_ac_max; then
9862 lt_ac_max=$lt_ac_count
9863 lt_cv_path_SED=$lt_ac_sed
9871 echo "$as_me:$LINENO: result: $SED" >&5
9872 echo "${ECHO_T}$SED" >&6
9875 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9876 if test "${with_gnu_ld+set}" = set; then
9877 withval="$with_gnu_ld"
9878 test "$withval" = no || with_gnu_ld=yes
9883 if test "$GCC" = yes; then
9884 # Check if gcc -print-prog-name=ld gives a path.
9885 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9886 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9889 # gcc leaves a trailing carriage return which upsets mingw
9890 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9892 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9895 # Accept absolute paths.
9897 re_direlt='/[^/][^/]*/\.\./'
9898 # Canonicalize the pathname of ld
9899 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9900 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9901 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9903 test -z "$LD" && LD="$ac_prog"
9906 # If it fails, then pretend we aren't using GCC.
9910 # If it is relative, then search for the first ld in PATH.
9914 elif test "$with_gnu_ld" = yes; then
9915 echo "$as_me:$LINENO: checking for GNU ld" >&5
9916 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9918 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9919 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9921 if test "${lt_cv_path_LD+set}" = set; then
9922 echo $ECHO_N "(cached) $ECHO_C" >&6
9924 if test -z "$LD"; then
9925 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9926 for ac_dir in $PATH; do
9928 test -z "$ac_dir" && ac_dir=.
9929 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9930 lt_cv_path_LD="$ac_dir/$ac_prog"
9931 # Check to see if the program is GNU ld. I'd rather use --version,
9932 # but apparently some GNU ld's only accept -v.
9933 # Break only if it was the GNU/non-GNU ld that we prefer.
9934 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9935 *GNU* | *'with BFD'*)
9936 test "$with_gnu_ld" != no && break
9939 test "$with_gnu_ld" != yes && break
9946 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9951 if test -n "$LD"; then
9952 echo "$as_me:$LINENO: result: $LD" >&5
9953 echo "${ECHO_T}$LD" >&6
9955 echo "$as_me:$LINENO: result: no" >&5
9956 echo "${ECHO_T}no" >&6
9958 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9959 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9960 { (exit 1); exit 1; }; }
9961 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9962 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9963 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9964 echo $ECHO_N "(cached) $ECHO_C" >&6
9966 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9967 case `$LD -v 2>&1 </dev/null` in
9968 *GNU* | *'with BFD'*)
9969 lt_cv_prog_gnu_ld=yes
9972 lt_cv_prog_gnu_ld=no
9976 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9977 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9978 with_gnu_ld=$lt_cv_prog_gnu_ld
9981 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9982 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9983 if test "${lt_cv_ld_reload_flag+set}" = set; then
9984 echo $ECHO_N "(cached) $ECHO_C" >&6
9986 lt_cv_ld_reload_flag='-r'
9988 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9989 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9990 reload_flag=$lt_cv_ld_reload_flag
9991 case $reload_flag in
9993 *) reload_flag=" $reload_flag" ;;
9995 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9998 if test "$GCC" = yes; then
9999 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10001 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10006 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10007 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10008 if test "${lt_cv_deplibs_check_method+set}" = set; then
10009 echo $ECHO_N "(cached) $ECHO_C" >&6
10011 lt_cv_file_magic_cmd='$MAGIC_CMD'
10012 lt_cv_file_magic_test_file=
10013 lt_cv_deplibs_check_method='unknown'
10014 # Need to set the preceding variable on all platforms that support
10015 # interlibrary dependencies.
10016 # 'none' -- dependencies not supported.
10017 # `unknown' -- same as none, but documents that we really don't know.
10018 # 'pass_all' -- all dependencies passed with no checks.
10019 # 'test_compile' -- check by making test program.
10020 # 'file_magic [[regex]]' -- check by looking for files in library path
10021 # which responds to the $file_magic_cmd with a given extended regex.
10022 # If you have `file' or equivalent on your system and you're not sure
10023 # whether `pass_all' will *always* work, you probably want this one.
10027 lt_cv_deplibs_check_method=pass_all
10031 lt_cv_deplibs_check_method=pass_all
10035 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10036 lt_cv_file_magic_cmd='/usr/bin/file -L'
10037 lt_cv_file_magic_test_file=/shlib/libc.so
10041 # func_win32_libid is a shell function defined in ltmain.sh
10042 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10043 lt_cv_file_magic_cmd='func_win32_libid'
10047 # Base MSYS/MinGW do not provide the 'file' command needed by
10048 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10049 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10050 lt_cv_file_magic_cmd='$OBJDUMP -f'
10053 darwin* | rhapsody*)
10054 lt_cv_deplibs_check_method=pass_all
10057 freebsd* | kfreebsd*-gnu)
10058 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10061 # Not sure whether the presence of OpenBSD here was a mistake.
10062 # Let's accept both of them until this is cleared up.
10063 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10064 lt_cv_file_magic_cmd=/usr/bin/file
10065 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10069 lt_cv_deplibs_check_method=pass_all
10074 lt_cv_deplibs_check_method=pass_all
10077 hpux10.20* | hpux11*)
10078 lt_cv_file_magic_cmd=/usr/bin/file
10079 case "$host_cpu" in
10081 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10082 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10085 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]'
10086 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10089 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10090 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10095 irix5* | irix6* | nonstopux*)
10097 *-32|*"-32 ") libmagic=32-bit;;
10098 *-n32|*"-n32 ") libmagic=N32;;
10099 *-64|*"-64 ") libmagic=64-bit;;
10100 *) libmagic=never-match;;
10102 lt_cv_deplibs_check_method=pass_all
10105 # This must be Linux ELF.
10107 lt_cv_deplibs_check_method=pass_all
10111 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10112 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10114 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10119 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10120 lt_cv_file_magic_cmd=/usr/bin/file
10121 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10125 lt_cv_deplibs_check_method=unknown
10129 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10130 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10132 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10136 osf3* | osf4* | osf5*)
10137 lt_cv_deplibs_check_method=pass_all
10141 lt_cv_deplibs_check_method=pass_all
10145 lt_cv_deplibs_check_method=pass_all
10148 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10149 case $host_vendor in
10151 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]'
10152 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10155 lt_cv_deplibs_check_method=pass_all
10158 lt_cv_file_magic_cmd='/bin/file'
10159 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10162 lt_cv_file_magic_cmd='/bin/file'
10163 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10164 lt_cv_file_magic_test_file=/lib/libc.so
10167 lt_cv_deplibs_check_method=pass_all
10172 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10173 lt_cv_deplibs_check_method=pass_all
10178 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10179 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10180 file_magic_cmd=$lt_cv_file_magic_cmd
10181 deplibs_check_method=$lt_cv_deplibs_check_method
10182 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10186 # If no C compiler was specified, use CC.
10189 # Allow CC to be a program name with arguments.
10192 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10193 if test "${enable_libtool_lock+set}" = set; then
10194 enableval="$enable_libtool_lock"
10197 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10199 # Some flags need to be propagated to the compiler or linker for good
10203 # Find out which ABI we are using.
10204 echo 'int i;' > conftest.$ac_ext
10205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10206 (eval $ac_compile) 2>&5
10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); }; then
10210 case `/usr/bin/file conftest.$ac_objext` in
10212 HPUX_IA64_MODE="32"
10215 HPUX_IA64_MODE="64"
10222 # Find out which ABI we are using.
10223 echo '#line 10223 "configure"' > conftest.$ac_ext
10224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10225 (eval $ac_compile) 2>&5
10227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228 (exit $ac_status); }; then
10229 if test "$lt_cv_prog_gnu_ld" = yes; then
10230 case `/usr/bin/file conftest.$ac_objext` in
10232 LD="${LD-ld} -melf32bsmip"
10235 LD="${LD-ld} -melf32bmipn32"
10238 LD="${LD-ld} -melf64bmip"
10242 case `/usr/bin/file conftest.$ac_objext` in
10258 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10259 # Find out which ABI we are using.
10260 echo 'int i;' > conftest.$ac_ext
10261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10262 (eval $ac_compile) 2>&5
10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); }; then
10266 case "`/usr/bin/file conftest.o`" in
10270 LD="${LD-ld} -m elf_i386"
10272 ppc64-*linux*|powerpc64-*linux*)
10273 LD="${LD-ld} -m elf32ppclinux"
10276 LD="${LD-ld} -m elf_s390"
10279 LD="${LD-ld} -m elf32_sparc"
10286 LD="${LD-ld} -m elf_x86_64"
10288 ppc*-*linux*|powerpc*-*linux*)
10289 LD="${LD-ld} -m elf64ppc"
10292 LD="${LD-ld} -m elf64_s390"
10295 LD="${LD-ld} -m elf64_sparc"
10305 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10306 SAVE_CFLAGS="$CFLAGS"
10307 CFLAGS="$CFLAGS -belf"
10308 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10309 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10310 if test "${lt_cv_cc_needs_belf+set}" = set; then
10311 echo $ECHO_N "(cached) $ECHO_C" >&6
10314 ac_cpp='$CPP $CPPFLAGS'
10315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10319 cat >conftest.$ac_ext <<_ACEOF
10322 cat confdefs.h >>conftest.$ac_ext
10323 cat >>conftest.$ac_ext <<_ACEOF
10324 /* end confdefs.h. */
10327 rm -f conftest.$ac_objext conftest$ac_exeext
10328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10329 (eval $ac_link) 2>conftest.er1
10331 grep -v '^ *+' conftest.er1 >conftest.err
10333 cat conftest.err >&5
10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335 (exit $ac_status); } &&
10336 { ac_try='test -z "$ac_c_werror_flag"
10337 || test ! -s conftest.err'
10338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10339 (eval $ac_try) 2>&5
10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342 (exit $ac_status); }; } &&
10343 { ac_try='test -s conftest$ac_exeext'
10344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10345 (eval $ac_try) 2>&5
10347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348 (exit $ac_status); }; }; then
10349 lt_cv_cc_needs_belf=yes
10351 echo "$as_me: failed program was:" >&5
10352 sed 's/^/| /' conftest.$ac_ext >&5
10354 lt_cv_cc_needs_belf=no
10356 rm -f conftest.err conftest.$ac_objext \
10357 conftest$ac_exeext conftest.$ac_ext
10359 ac_cpp='$CPP $CPPFLAGS'
10360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10365 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10366 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10367 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10368 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10369 CFLAGS="$SAVE_CFLAGS"
10375 need_locks="$enable_libtool_lock"
10380 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10381 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10382 (test "X$CXX" != "Xg++"))) ; then
10384 ac_cpp='$CXXCPP $CPPFLAGS'
10385 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10386 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10387 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10388 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10389 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10390 if test -z "$CXXCPP"; then
10391 if test "${ac_cv_prog_CXXCPP+set}" = set; then
10392 echo $ECHO_N "(cached) $ECHO_C" >&6
10394 # Double quotes because CXXCPP needs to be expanded
10395 for CXXCPP in "$CXX -E" "/lib/cpp"
10397 ac_preproc_ok=false
10398 for ac_cxx_preproc_warn_flag in '' yes
10400 # Use a header file that comes with gcc, so configuring glibc
10401 # with a fresh cross-compiler works.
10402 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10403 # <limits.h> exists even on freestanding compilers.
10404 # On the NeXT, cc -E runs the code through the compiler's parser,
10405 # not just through cpp. "Syntax error" is here to catch this case.
10406 cat >conftest.$ac_ext <<_ACEOF
10409 cat confdefs.h >>conftest.$ac_ext
10410 cat >>conftest.$ac_ext <<_ACEOF
10411 /* end confdefs.h. */
10413 # include <limits.h>
10415 # include <assert.h>
10419 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10420 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10422 grep -v '^ *+' conftest.er1 >conftest.err
10424 cat conftest.err >&5
10425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426 (exit $ac_status); } >/dev/null; then
10427 if test -s conftest.err; then
10428 ac_cpp_err=$ac_cxx_preproc_warn_flag
10429 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10436 if test -z "$ac_cpp_err"; then
10439 echo "$as_me: failed program was:" >&5
10440 sed 's/^/| /' conftest.$ac_ext >&5
10442 # Broken: fails on valid input.
10445 rm -f conftest.err conftest.$ac_ext
10447 # OK, works on sane cases. Now check whether non-existent headers
10448 # can be detected and how.
10449 cat >conftest.$ac_ext <<_ACEOF
10452 cat confdefs.h >>conftest.$ac_ext
10453 cat >>conftest.$ac_ext <<_ACEOF
10454 /* end confdefs.h. */
10455 #include <ac_nonexistent.h>
10457 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10458 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10460 grep -v '^ *+' conftest.er1 >conftest.err
10462 cat conftest.err >&5
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); } >/dev/null; then
10465 if test -s conftest.err; then
10466 ac_cpp_err=$ac_cxx_preproc_warn_flag
10467 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10474 if test -z "$ac_cpp_err"; then
10475 # Broken: success on invalid input.
10478 echo "$as_me: failed program was:" >&5
10479 sed 's/^/| /' conftest.$ac_ext >&5
10481 # Passes both tests.
10485 rm -f conftest.err conftest.$ac_ext
10488 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10489 rm -f conftest.err conftest.$ac_ext
10490 if $ac_preproc_ok; then
10495 ac_cv_prog_CXXCPP=$CXXCPP
10498 CXXCPP=$ac_cv_prog_CXXCPP
10500 ac_cv_prog_CXXCPP=$CXXCPP
10502 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10503 echo "${ECHO_T}$CXXCPP" >&6
10504 ac_preproc_ok=false
10505 for ac_cxx_preproc_warn_flag in '' yes
10507 # Use a header file that comes with gcc, so configuring glibc
10508 # with a fresh cross-compiler works.
10509 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10510 # <limits.h> exists even on freestanding compilers.
10511 # On the NeXT, cc -E runs the code through the compiler's parser,
10512 # not just through cpp. "Syntax error" is here to catch this case.
10513 cat >conftest.$ac_ext <<_ACEOF
10516 cat confdefs.h >>conftest.$ac_ext
10517 cat >>conftest.$ac_ext <<_ACEOF
10518 /* end confdefs.h. */
10520 # include <limits.h>
10522 # include <assert.h>
10526 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10527 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10529 grep -v '^ *+' conftest.er1 >conftest.err
10531 cat conftest.err >&5
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); } >/dev/null; then
10534 if test -s conftest.err; then
10535 ac_cpp_err=$ac_cxx_preproc_warn_flag
10536 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10543 if test -z "$ac_cpp_err"; then
10546 echo "$as_me: failed program was:" >&5
10547 sed 's/^/| /' conftest.$ac_ext >&5
10549 # Broken: fails on valid input.
10552 rm -f conftest.err conftest.$ac_ext
10554 # OK, works on sane cases. Now check whether non-existent headers
10555 # can be detected and how.
10556 cat >conftest.$ac_ext <<_ACEOF
10559 cat confdefs.h >>conftest.$ac_ext
10560 cat >>conftest.$ac_ext <<_ACEOF
10561 /* end confdefs.h. */
10562 #include <ac_nonexistent.h>
10564 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10565 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10567 grep -v '^ *+' conftest.er1 >conftest.err
10569 cat conftest.err >&5
10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); } >/dev/null; then
10572 if test -s conftest.err; then
10573 ac_cpp_err=$ac_cxx_preproc_warn_flag
10574 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10581 if test -z "$ac_cpp_err"; then
10582 # Broken: success on invalid input.
10585 echo "$as_me: failed program was:" >&5
10586 sed 's/^/| /' conftest.$ac_ext >&5
10588 # Passes both tests.
10592 rm -f conftest.err conftest.$ac_ext
10595 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10596 rm -f conftest.err conftest.$ac_ext
10597 if $ac_preproc_ok; then
10600 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10601 See \`config.log' for more details." >&5
10602 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10603 See \`config.log' for more details." >&2;}
10604 { (exit 1); exit 1; }; }
10608 ac_cpp='$CXXCPP $CPPFLAGS'
10609 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10610 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10611 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10617 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10618 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10619 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10620 if test -n "$ac_tool_prefix"; then
10621 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10623 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10624 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10625 echo "$as_me:$LINENO: checking for $ac_word" >&5
10626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10627 if test "${ac_cv_prog_F77+set}" = set; then
10628 echo $ECHO_N "(cached) $ECHO_C" >&6
10630 if test -n "$F77"; then
10631 ac_cv_prog_F77="$F77" # Let the user override the test.
10633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10634 for as_dir in $PATH
10637 test -z "$as_dir" && as_dir=.
10638 for ac_exec_ext in '' $ac_executable_extensions; do
10639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10640 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10649 F77=$ac_cv_prog_F77
10650 if test -n "$F77"; then
10651 echo "$as_me:$LINENO: result: $F77" >&5
10652 echo "${ECHO_T}$F77" >&6
10654 echo "$as_me:$LINENO: result: no" >&5
10655 echo "${ECHO_T}no" >&6
10658 test -n "$F77" && break
10661 if test -z "$F77"; then
10663 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10665 # Extract the first word of "$ac_prog", so it can be a program name with args.
10666 set dummy $ac_prog; ac_word=$2
10667 echo "$as_me:$LINENO: checking for $ac_word" >&5
10668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10669 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10670 echo $ECHO_N "(cached) $ECHO_C" >&6
10672 if test -n "$ac_ct_F77"; then
10673 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10676 for as_dir in $PATH
10679 test -z "$as_dir" && as_dir=.
10680 for ac_exec_ext in '' $ac_executable_extensions; do
10681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10682 ac_cv_prog_ac_ct_F77="$ac_prog"
10683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10691 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10692 if test -n "$ac_ct_F77"; then
10693 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10694 echo "${ECHO_T}$ac_ct_F77" >&6
10696 echo "$as_me:$LINENO: result: no" >&5
10697 echo "${ECHO_T}no" >&6
10700 test -n "$ac_ct_F77" && break
10707 # Provide some information about the compiler.
10708 echo "$as_me:10708:" \
10709 "checking for Fortran 77 compiler version" >&5
10710 ac_compiler=`set X $ac_compile; echo $2`
10711 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10712 (eval $ac_compiler --version </dev/null >&5) 2>&5
10714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715 (exit $ac_status); }
10716 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10717 (eval $ac_compiler -v </dev/null >&5) 2>&5
10719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720 (exit $ac_status); }
10721 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10722 (eval $ac_compiler -V </dev/null >&5) 2>&5
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); }
10728 # If we don't use `.F' as extension, the preprocessor is not run on the
10729 # input file. (Note that this only needs to work for GNU compilers.)
10730 ac_save_ext=$ac_ext
10732 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10733 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10734 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10735 echo $ECHO_N "(cached) $ECHO_C" >&6
10737 cat >conftest.$ac_ext <<_ACEOF
10745 rm -f conftest.$ac_objext
10746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10747 (eval $ac_compile) 2>conftest.er1
10749 grep -v '^ *+' conftest.er1 >conftest.err
10751 cat conftest.err >&5
10752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753 (exit $ac_status); } &&
10754 { ac_try='test -z "$ac_f77_werror_flag"
10755 || test ! -s conftest.err'
10756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10757 (eval $ac_try) 2>&5
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); }; } &&
10761 { ac_try='test -s conftest.$ac_objext'
10762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10763 (eval $ac_try) 2>&5
10765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766 (exit $ac_status); }; }; then
10767 ac_compiler_gnu=yes
10769 echo "$as_me: failed program was:" >&5
10770 sed 's/^/| /' conftest.$ac_ext >&5
10774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10775 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10778 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10779 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10780 ac_ext=$ac_save_ext
10781 ac_test_FFLAGS=${FFLAGS+set}
10782 ac_save_FFLAGS=$FFLAGS
10784 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10785 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10786 if test "${ac_cv_prog_f77_g+set}" = set; then
10787 echo $ECHO_N "(cached) $ECHO_C" >&6
10790 cat >conftest.$ac_ext <<_ACEOF
10795 rm -f conftest.$ac_objext
10796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10797 (eval $ac_compile) 2>conftest.er1
10799 grep -v '^ *+' conftest.er1 >conftest.err
10801 cat conftest.err >&5
10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); } &&
10804 { ac_try='test -z "$ac_f77_werror_flag"
10805 || test ! -s conftest.err'
10806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10807 (eval $ac_try) 2>&5
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); }; } &&
10811 { ac_try='test -s conftest.$ac_objext'
10812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10813 (eval $ac_try) 2>&5
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); }; }; then
10817 ac_cv_prog_f77_g=yes
10819 echo "$as_me: failed program was:" >&5
10820 sed 's/^/| /' conftest.$ac_ext >&5
10822 ac_cv_prog_f77_g=no
10824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10827 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10828 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10829 if test "$ac_test_FFLAGS" = set; then
10830 FFLAGS=$ac_save_FFLAGS
10831 elif test $ac_cv_prog_f77_g = yes; then
10832 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10838 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10845 G77=`test $ac_compiler_gnu = yes && echo yes`
10847 ac_cpp='$CPP $CPPFLAGS'
10848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10854 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10856 # find the maximum length of command line arguments
10857 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10858 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10859 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10860 echo $ECHO_N "(cached) $ECHO_C" >&6
10867 # On DJGPP, this test can blow up pretty badly due to problems in libc
10868 # (any single argument exceeding 2000 bytes causes a buffer overrun
10869 # during glob expansion). Even if it were fixed, the result of this
10870 # check would be larger than it should be.
10871 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10875 # Under GNU Hurd, this test is not required because there is
10876 # no limit to the length of command line arguments.
10877 # Libtool will interpret -1 as no limit whatsoever
10878 lt_cv_sys_max_cmd_len=-1;
10882 # On Win9x/ME, this test blows up -- it succeeds, but takes
10883 # about 5 minutes as the teststring grows exponentially.
10884 # Worse, since 9x/ME are not pre-emptively multitasking,
10885 # you end up with a "frozen" computer, even though with patience
10886 # the test eventually succeeds (with a max line length of 256k).
10887 # Instead, let's just punt: use the minimum linelength reported by
10888 # all of the supported platforms: 8192 (on NT/2K/XP).
10889 lt_cv_sys_max_cmd_len=8192;
10893 # On AmigaOS with pdksh, this test takes hours, literally.
10894 # So we just punt and use a minimum line length of 8192.
10895 lt_cv_sys_max_cmd_len=8192;
10898 netbsd* | freebsd* | openbsd* | darwin* )
10899 # This has been around since 386BSD, at least. Likely further.
10900 if test -x /sbin/sysctl; then
10901 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10902 elif test -x /usr/sbin/sysctl; then
10903 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10905 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10907 # And add a safety zone
10908 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10912 # If test is not a shell built-in, we'll probably end up computing a
10913 # maximum length that is only half of the actual maximum length, but
10915 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10916 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10917 = "XX$teststring") >/dev/null 2>&1 &&
10918 new_result=`expr "X$teststring" : ".*" 2>&1` &&
10919 lt_cv_sys_max_cmd_len=$new_result &&
10920 test $i != 17 # 1/2 MB should be enough
10923 teststring=$teststring$teststring
10926 # Add a significant safety factor because C++ compilers can tack on massive
10927 # amounts of additional arguments before passing them to the linker.
10928 # It appears as though 1/2 is a usable value.
10929 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10935 if test -n $lt_cv_sys_max_cmd_len ; then
10936 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10937 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10939 echo "$as_me:$LINENO: result: none" >&5
10940 echo "${ECHO_T}none" >&6
10946 # Check for command to grab the raw symbol name followed by C symbol from nm.
10947 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10948 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10949 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10950 echo $ECHO_N "(cached) $ECHO_C" >&6
10953 # These are sane defaults that work on at least a few old systems.
10954 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10956 # Character class describing NM global symbol codes.
10957 symcode='[BCDEGRST]'
10959 # Regexp to match symbols that can be accessed directly from C.
10960 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10962 # Transform the above into a raw symbol and a C symbol.
10963 symxfrm='\1 \2\3 \3'
10965 # Transform an extracted symbol line into a proper C declaration
10966 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10968 # Transform an extracted symbol line into symbol name and symbol address
10969 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'"
10971 # Define system-specific variables.
10976 cygwin* | mingw* | pw32*)
10977 symcode='[ABCDGISTW]'
10979 hpux*) # Its linker distinguishes data from code symbols
10980 if test "$host_cpu" = ia64; then
10981 symcode='[ABCDEGRST]'
10983 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10984 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'"
10987 if test "$host_cpu" = ia64; then
10988 symcode='[ABCDGIRSTW]'
10989 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10990 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'"
10993 irix* | nonstopux*)
10994 symcode='[BCDEGRST]'
10997 symcode='[BCDEGQRST]'
11007 # Handle CRLF in mingw tool chain
11011 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11015 # If we're using GNU nm, then use its standard symbol codes.
11016 case `$NM -V 2>&1` in
11017 *GNU* | *'with BFD'*)
11018 symcode='[ABCDGIRSTW]' ;;
11021 # Try without a prefix undercore, then with it.
11022 for ac_symprfx in "" "_"; do
11024 # Write the raw and C identifiers.
11025 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11027 # Check to see that the pipe works correctly.
11031 cat > conftest.$ac_ext <<EOF
11036 void nm_test_func(){}
11040 int main(){nm_test_var='a';nm_test_func();return(0);}
11043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11044 (eval $ac_compile) 2>&5
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); }; then
11048 # Now try to grab the symbols.
11050 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11051 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); } && test -s "$nlist"; then
11055 # Try sorting and uniquifying the output.
11056 if sort "$nlist" | uniq > "$nlist"T; then
11057 mv -f "$nlist"T "$nlist"
11062 # Make sure that we snagged all the symbols we need.
11063 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11064 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11065 cat <<EOF > conftest.$ac_ext
11071 # Now generate the symbol file.
11072 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11074 cat <<EOF >> conftest.$ac_ext
11075 #if defined (__STDC__) && __STDC__
11076 # define lt_ptr_t void *
11078 # define lt_ptr_t char *
11082 /* The mapping between symbol names and symbols. */
11087 lt_preloaded_symbols[] =
11090 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11091 cat <<\EOF >> conftest.$ac_ext
11099 # Now try linking the two files.
11100 mv conftest.$ac_objext conftstm.$ac_objext
11101 lt_save_LIBS="$LIBS"
11102 lt_save_CFLAGS="$CFLAGS"
11103 LIBS="conftstm.$ac_objext"
11104 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11106 (eval $ac_link) 2>&5
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11112 LIBS="$lt_save_LIBS"
11113 CFLAGS="$lt_save_CFLAGS"
11115 echo "cannot find nm_test_func in $nlist" >&5
11118 echo "cannot find nm_test_var in $nlist" >&5
11121 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11124 echo "$progname: failed program was:" >&5
11125 cat conftest.$ac_ext >&5
11127 rm -f conftest* conftst*
11129 # Do not use the global_symbol_pipe unless it works.
11130 if test "$pipe_works" = yes; then
11133 lt_cv_sys_global_symbol_pipe=
11139 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11140 lt_cv_sys_global_symbol_to_cdecl=
11142 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11143 echo "$as_me:$LINENO: result: failed" >&5
11144 echo "${ECHO_T}failed" >&6
11146 echo "$as_me:$LINENO: result: ok" >&5
11147 echo "${ECHO_T}ok" >&6
11150 echo "$as_me:$LINENO: checking for objdir" >&5
11151 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11152 if test "${lt_cv_objdir+set}" = set; then
11153 echo $ECHO_N "(cached) $ECHO_C" >&6
11155 rm -f .libs 2>/dev/null
11156 mkdir .libs 2>/dev/null
11157 if test -d .libs; then
11160 # MS-DOS does not allow filenames that begin with a dot.
11163 rmdir .libs 2>/dev/null
11165 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11166 echo "${ECHO_T}$lt_cv_objdir" >&6
11167 objdir=$lt_cv_objdir
11175 # AIX sometimes has problems with the GCC collect2 program. For some
11176 # reason, if we set the COLLECT_NAMES environment variable, the problems
11177 # vanish in a puff of smoke.
11178 if test "X${COLLECT_NAMES+set}" != Xset; then
11180 export COLLECT_NAMES
11185 # Sed substitution that helps us do robust quoting. It backslashifies
11186 # metacharacters that are still active within double-quoted strings.
11187 Xsed='sed -e s/^X//'
11188 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11190 # Same as above, but do not quote variable references.
11191 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11193 # Sed substitution to delay expansion of an escaped shell variable in a
11194 # double_quote_subst'ed string.
11195 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11197 # Sed substitution to avoid accidental globbing in evaled expressions
11198 no_glob_subst='s/\*/\\\*/g'
11203 # Global variables:
11204 default_ofile=mklib
11205 can_build_shared=yes
11207 # All known linkers require a `.a' archive for static linking (except M$VC,
11208 # which needs '.lib').
11210 ltmain="$ac_aux_dir/ltmain.sh"
11211 ofile="$default_ofile"
11212 with_gnu_ld="$lt_cv_prog_gnu_ld"
11214 if test -n "$ac_tool_prefix"; then
11215 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11216 set dummy ${ac_tool_prefix}ar; ac_word=$2
11217 echo "$as_me:$LINENO: checking for $ac_word" >&5
11218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11219 if test "${ac_cv_prog_AR+set}" = set; then
11220 echo $ECHO_N "(cached) $ECHO_C" >&6
11222 if test -n "$AR"; then
11223 ac_cv_prog_AR="$AR" # Let the user override the test.
11225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11226 for as_dir in $PATH
11229 test -z "$as_dir" && as_dir=.
11230 for ac_exec_ext in '' $ac_executable_extensions; do
11231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11232 ac_cv_prog_AR="${ac_tool_prefix}ar"
11233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11242 if test -n "$AR"; then
11243 echo "$as_me:$LINENO: result: $AR" >&5
11244 echo "${ECHO_T}$AR" >&6
11246 echo "$as_me:$LINENO: result: no" >&5
11247 echo "${ECHO_T}no" >&6
11251 if test -z "$ac_cv_prog_AR"; then
11253 # Extract the first word of "ar", so it can be a program name with args.
11254 set dummy ar; ac_word=$2
11255 echo "$as_me:$LINENO: checking for $ac_word" >&5
11256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11257 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11258 echo $ECHO_N "(cached) $ECHO_C" >&6
11260 if test -n "$ac_ct_AR"; then
11261 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11264 for as_dir in $PATH
11267 test -z "$as_dir" && as_dir=.
11268 for ac_exec_ext in '' $ac_executable_extensions; do
11269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11270 ac_cv_prog_ac_ct_AR="ar"
11271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11277 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11280 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11281 if test -n "$ac_ct_AR"; then
11282 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11283 echo "${ECHO_T}$ac_ct_AR" >&6
11285 echo "$as_me:$LINENO: result: no" >&5
11286 echo "${ECHO_T}no" >&6
11291 AR="$ac_cv_prog_AR"
11294 if test -n "$ac_tool_prefix"; then
11295 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11296 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11297 echo "$as_me:$LINENO: checking for $ac_word" >&5
11298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11299 if test "${ac_cv_prog_RANLIB+set}" = set; then
11300 echo $ECHO_N "(cached) $ECHO_C" >&6
11302 if test -n "$RANLIB"; then
11303 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11306 for as_dir in $PATH
11309 test -z "$as_dir" && as_dir=.
11310 for ac_exec_ext in '' $ac_executable_extensions; do
11311 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11312 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11321 RANLIB=$ac_cv_prog_RANLIB
11322 if test -n "$RANLIB"; then
11323 echo "$as_me:$LINENO: result: $RANLIB" >&5
11324 echo "${ECHO_T}$RANLIB" >&6
11326 echo "$as_me:$LINENO: result: no" >&5
11327 echo "${ECHO_T}no" >&6
11331 if test -z "$ac_cv_prog_RANLIB"; then
11332 ac_ct_RANLIB=$RANLIB
11333 # Extract the first word of "ranlib", so it can be a program name with args.
11334 set dummy ranlib; ac_word=$2
11335 echo "$as_me:$LINENO: checking for $ac_word" >&5
11336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11337 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11338 echo $ECHO_N "(cached) $ECHO_C" >&6
11340 if test -n "$ac_ct_RANLIB"; then
11341 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11344 for as_dir in $PATH
11347 test -z "$as_dir" && as_dir=.
11348 for ac_exec_ext in '' $ac_executable_extensions; do
11349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11350 ac_cv_prog_ac_ct_RANLIB="ranlib"
11351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11357 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11360 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11361 if test -n "$ac_ct_RANLIB"; then
11362 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11363 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11365 echo "$as_me:$LINENO: result: no" >&5
11366 echo "${ECHO_T}no" >&6
11369 RANLIB=$ac_ct_RANLIB
11371 RANLIB="$ac_cv_prog_RANLIB"
11374 if test -n "$ac_tool_prefix"; then
11375 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11376 set dummy ${ac_tool_prefix}strip; ac_word=$2
11377 echo "$as_me:$LINENO: checking for $ac_word" >&5
11378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11379 if test "${ac_cv_prog_STRIP+set}" = set; then
11380 echo $ECHO_N "(cached) $ECHO_C" >&6
11382 if test -n "$STRIP"; then
11383 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11386 for as_dir in $PATH
11389 test -z "$as_dir" && as_dir=.
11390 for ac_exec_ext in '' $ac_executable_extensions; do
11391 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11392 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11401 STRIP=$ac_cv_prog_STRIP
11402 if test -n "$STRIP"; then
11403 echo "$as_me:$LINENO: result: $STRIP" >&5
11404 echo "${ECHO_T}$STRIP" >&6
11406 echo "$as_me:$LINENO: result: no" >&5
11407 echo "${ECHO_T}no" >&6
11411 if test -z "$ac_cv_prog_STRIP"; then
11413 # Extract the first word of "strip", so it can be a program name with args.
11414 set dummy strip; ac_word=$2
11415 echo "$as_me:$LINENO: checking for $ac_word" >&5
11416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11417 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11418 echo $ECHO_N "(cached) $ECHO_C" >&6
11420 if test -n "$ac_ct_STRIP"; then
11421 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11424 for as_dir in $PATH
11427 test -z "$as_dir" && as_dir=.
11428 for ac_exec_ext in '' $ac_executable_extensions; do
11429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11430 ac_cv_prog_ac_ct_STRIP="strip"
11431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11437 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11440 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11441 if test -n "$ac_ct_STRIP"; then
11442 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11443 echo "${ECHO_T}$ac_ct_STRIP" >&6
11445 echo "$as_me:$LINENO: result: no" >&5
11446 echo "${ECHO_T}no" >&6
11451 STRIP="$ac_cv_prog_STRIP"
11456 old_CFLAGS="$CFLAGS"
11458 # Set sane defaults for various variables
11459 test -z "$AR" && AR=ar
11460 test -z "$AR_FLAGS" && AR_FLAGS=cru
11461 test -z "$AS" && AS=as
11462 test -z "$CC" && CC=cc
11463 test -z "$LTCC" && LTCC=$CC
11464 test -z "$DLLTOOL" && DLLTOOL=dlltool
11465 test -z "$LD" && LD=ld
11466 test -z "$LN_S" && LN_S="ln -s"
11467 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11468 test -z "$NM" && NM=nm
11469 test -z "$SED" && SED=sed
11470 test -z "$OBJDUMP" && OBJDUMP=objdump
11471 test -z "$RANLIB" && RANLIB=:
11472 test -z "$STRIP" && STRIP=:
11473 test -z "$ac_objext" && ac_objext=o
11475 # Determine commands to create old-style static archives.
11476 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11477 old_postinstall_cmds='chmod 644 $oldlib'
11478 old_postuninstall_cmds=
11480 if test -n "$RANLIB"; then
11483 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11486 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11489 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11492 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11494 # Only perform the check for file, if the check method requires it
11495 case $deplibs_check_method in
11497 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11498 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11499 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11500 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11501 echo $ECHO_N "(cached) $ECHO_C" >&6
11505 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11508 lt_save_MAGIC_CMD="$MAGIC_CMD"
11509 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11510 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11511 for ac_dir in $ac_dummy; do
11513 test -z "$ac_dir" && ac_dir=.
11514 if test -f $ac_dir/${ac_tool_prefix}file; then
11515 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11516 if test -n "$file_magic_test_file"; then
11517 case $deplibs_check_method in
11519 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11520 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11521 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11522 $EGREP "$file_magic_regex" > /dev/null; then
11527 *** Warning: the command libtool uses to detect shared libraries,
11528 *** $file_magic_cmd, produces output that libtool cannot recognize.
11529 *** The result is that libtool may fail to recognize shared libraries
11530 *** as such. This will affect the creation of libtool libraries that
11531 *** depend on shared libraries, but programs linked with such libtool
11532 *** libraries will work regardless of this problem. Nevertheless, you
11533 *** may want to report the problem to your system manager and/or to
11534 *** bug-libtool@gnu.org
11544 MAGIC_CMD="$lt_save_MAGIC_CMD"
11549 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11550 if test -n "$MAGIC_CMD"; then
11551 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11552 echo "${ECHO_T}$MAGIC_CMD" >&6
11554 echo "$as_me:$LINENO: result: no" >&5
11555 echo "${ECHO_T}no" >&6
11558 if test -z "$lt_cv_path_MAGIC_CMD"; then
11559 if test -n "$ac_tool_prefix"; then
11560 echo "$as_me:$LINENO: checking for file" >&5
11561 echo $ECHO_N "checking for file... $ECHO_C" >&6
11562 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11563 echo $ECHO_N "(cached) $ECHO_C" >&6
11567 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11570 lt_save_MAGIC_CMD="$MAGIC_CMD"
11571 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11572 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11573 for ac_dir in $ac_dummy; do
11575 test -z "$ac_dir" && ac_dir=.
11576 if test -f $ac_dir/file; then
11577 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11578 if test -n "$file_magic_test_file"; then
11579 case $deplibs_check_method in
11581 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11582 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11583 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11584 $EGREP "$file_magic_regex" > /dev/null; then
11589 *** Warning: the command libtool uses to detect shared libraries,
11590 *** $file_magic_cmd, produces output that libtool cannot recognize.
11591 *** The result is that libtool may fail to recognize shared libraries
11592 *** as such. This will affect the creation of libtool libraries that
11593 *** depend on shared libraries, but programs linked with such libtool
11594 *** libraries will work regardless of this problem. Nevertheless, you
11595 *** may want to report the problem to your system manager and/or to
11596 *** bug-libtool@gnu.org
11606 MAGIC_CMD="$lt_save_MAGIC_CMD"
11611 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11612 if test -n "$MAGIC_CMD"; then
11613 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11614 echo "${ECHO_T}$MAGIC_CMD" >&6
11616 echo "$as_me:$LINENO: result: no" >&5
11617 echo "${ECHO_T}no" >&6
11630 enable_win32_dll=no
11632 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11633 if test "${enable_libtool_lock+set}" = set; then
11634 enableval="$enable_libtool_lock"
11637 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11640 # Check whether --with-pic or --without-pic was given.
11641 if test "${with_pic+set}" = set; then
11642 withval="$with_pic"
11643 pic_mode="$withval"
11647 test -z "$pic_mode" && pic_mode=default
11649 # Use C for the default configuration in the libtool script
11653 ac_cpp='$CPP $CPPFLAGS'
11654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11659 # Source file extension for C test sources.
11662 # Object file extension for compiled C test sources.
11666 # Code to be used in simple compile tests
11667 lt_simple_compile_test_code="int some_variable = 0;\n"
11669 # Code to be used in simple link tests
11670 lt_simple_link_test_code='int main(){return(0);}\n'
11673 # If no C compiler was specified, use CC.
11676 # Allow CC to be a program name with arguments.
11681 # Check for any special shared library compilation flags.
11684 if test "$GCC" = no; then
11687 lt_prog_cc_shlib='-belf'
11691 if test -n "$lt_prog_cc_shlib"; then
11692 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11693 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11694 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11696 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11697 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11698 lt_cv_prog_cc_can_build_shared=no
11704 # Check to make sure the static flag actually works.
11706 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11707 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11708 if test "${lt_prog_compiler_static_works+set}" = set; then
11709 echo $ECHO_N "(cached) $ECHO_C" >&6
11711 lt_prog_compiler_static_works=no
11712 save_LDFLAGS="$LDFLAGS"
11713 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11714 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11715 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11716 # The compiler can only warn and ignore the option if not recognized
11717 # So say no if there are warnings
11718 if test -s conftest.err; then
11719 # Append any errors to the config.log.
11720 cat conftest.err 1>&5
11722 lt_prog_compiler_static_works=yes
11726 LDFLAGS="$save_LDFLAGS"
11729 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11730 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11732 if test x"$lt_prog_compiler_static_works" = xyes; then
11735 lt_prog_compiler_static=
11741 lt_prog_compiler_no_builtin_flag=
11743 if test "$GCC" = yes; then
11744 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11747 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11748 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11749 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11750 echo $ECHO_N "(cached) $ECHO_C" >&6
11752 lt_cv_prog_compiler_rtti_exceptions=no
11753 ac_outfile=conftest.$ac_objext
11754 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11755 lt_compiler_flag="-fno-rtti -fno-exceptions"
11756 # Insert the option either (1) after the last *FLAGS variable, or
11757 # (2) before a word containing "conftest.", or (3) at the end.
11758 # Note that $ac_compile itself does not contain backslashes and begins
11759 # with a dollar sign (not a hyphen), so the echo should work correctly.
11760 # The option is referenced via a variable to avoid confusing sed.
11761 lt_compile=`echo "$ac_compile" | $SED \
11762 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11763 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11764 -e 's:$: $lt_compiler_flag:'`
11765 (eval echo "\"\$as_me:11765: $lt_compile\"" >&5)
11766 (eval "$lt_compile" 2>conftest.err)
11768 cat conftest.err >&5
11769 echo "$as_me:11769: \$? = $ac_status" >&5
11770 if (exit $ac_status) && test -s "$ac_outfile"; then
11771 # The compiler can only warn and ignore the option if not recognized
11772 # So say no if there are warnings
11773 if test ! -s conftest.err; then
11774 lt_cv_prog_compiler_rtti_exceptions=yes
11780 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11781 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11783 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11784 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11791 lt_prog_compiler_wl=
11792 lt_prog_compiler_pic=
11793 lt_prog_compiler_static=
11795 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11796 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11798 if test "$GCC" = yes; then
11799 lt_prog_compiler_wl='-Wl,'
11800 lt_prog_compiler_static='-static'
11804 # All AIX code is PIC.
11805 if test "$host_cpu" = ia64; then
11806 # AIX 5 now supports IA64 processor
11807 lt_prog_compiler_static='-Bstatic'
11812 # FIXME: we need at least 68020 code to build shared libraries, but
11813 # adding the `-m68020' flag to GCC prevents building anything better,
11815 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11818 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11819 # PIC is the default for these OSes.
11822 mingw* | pw32* | os2*)
11823 # This hack is so that the source file can tell whether it is being
11824 # built for inclusion in a dll (and should export symbols for example).
11825 lt_prog_compiler_pic='-DDLL_EXPORT'
11828 darwin* | rhapsody*)
11829 # PIC is the default on this platform
11830 # Common symbols not allowed in MH_DYLIB files
11831 lt_prog_compiler_pic='-fno-common'
11835 # Just because we use GCC doesn't mean we suddenly get shared libraries
11836 # on systems that don't support them.
11837 lt_prog_compiler_can_build_shared=no
11842 if test -d /usr/nec; then
11843 lt_prog_compiler_pic=-Kconform_pic
11848 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11849 # not for PA HP-UX.
11850 case "$host_cpu" in
11855 lt_prog_compiler_pic='-fPIC'
11861 lt_prog_compiler_pic='-fPIC'
11865 # PORTME Check for flag to pass linker flags through the system compiler.
11868 lt_prog_compiler_wl='-Wl,'
11869 if test "$host_cpu" = ia64; then
11870 # AIX 5 now supports IA64 processor
11871 lt_prog_compiler_static='-Bstatic'
11873 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11877 # PIC is the default on this platform
11878 # Common symbols not allowed in MH_DYLIB files
11879 case "$cc_basename" in
11881 lt_prog_compiler_pic='-qnocommon'
11882 lt_prog_compiler_wl='-Wl,'
11887 mingw* | pw32* | os2*)
11888 # This hack is so that the source file can tell whether it is being
11889 # built for inclusion in a dll (and should export symbols for example).
11890 lt_prog_compiler_pic='-DDLL_EXPORT'
11893 hpux9* | hpux10* | hpux11*)
11894 lt_prog_compiler_wl='-Wl,'
11895 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11896 # not for PA HP-UX.
11897 case "$host_cpu" in
11902 lt_prog_compiler_pic='+Z'
11905 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11906 lt_prog_compiler_static='${wl}-a ${wl}archive'
11909 irix5* | irix6* | nonstopux*)
11910 lt_prog_compiler_wl='-Wl,'
11911 # PIC (with -KPIC) is the default.
11912 lt_prog_compiler_static='-non_shared'
11916 lt_prog_compiler_pic='-KPIC'
11917 lt_prog_compiler_static='-Bstatic'
11923 lt_prog_compiler_wl='-Wl,'
11924 lt_prog_compiler_pic='-KPIC'
11925 lt_prog_compiler_static='-static'
11928 lt_prog_compiler_wl='-Wl,'
11929 # All Alpha code is PIC.
11930 lt_prog_compiler_static='-non_shared'
11935 osf3* | osf4* | osf5*)
11936 lt_prog_compiler_wl='-Wl,'
11937 # All OSF/1 code is PIC.
11938 lt_prog_compiler_static='-non_shared'
11942 lt_prog_compiler_pic='-Kpic'
11943 lt_prog_compiler_static='-dn'
11947 lt_prog_compiler_wl='-Wl,'
11948 lt_prog_compiler_pic='-KPIC'
11949 lt_prog_compiler_static='-Bstatic'
11953 lt_prog_compiler_wl='-Qoption ld '
11954 lt_prog_compiler_pic='-PIC'
11955 lt_prog_compiler_static='-Bstatic'
11958 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11959 lt_prog_compiler_wl='-Wl,'
11960 lt_prog_compiler_pic='-KPIC'
11961 lt_prog_compiler_static='-Bstatic'
11965 if test -d /usr/nec ;then
11966 lt_prog_compiler_pic='-Kconform_pic'
11967 lt_prog_compiler_static='-Bstatic'
11972 lt_prog_compiler_pic='-pic'
11973 lt_prog_compiler_static='-Bstatic'
11977 lt_prog_compiler_can_build_shared=no
11982 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11983 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
11986 # Check to make sure the PIC flag actually works.
11988 if test -n "$lt_prog_compiler_pic"; then
11990 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11991 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
11992 if test "${lt_prog_compiler_pic_works+set}" = set; then
11993 echo $ECHO_N "(cached) $ECHO_C" >&6
11995 lt_prog_compiler_pic_works=no
11996 ac_outfile=conftest.$ac_objext
11997 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11998 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11999 # Insert the option either (1) after the last *FLAGS variable, or
12000 # (2) before a word containing "conftest.", or (3) at the end.
12001 # Note that $ac_compile itself does not contain backslashes and begins
12002 # with a dollar sign (not a hyphen), so the echo should work correctly.
12003 # The option is referenced via a variable to avoid confusing sed.
12004 lt_compile=`echo "$ac_compile" | $SED \
12005 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12006 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12007 -e 's:$: $lt_compiler_flag:'`
12008 (eval echo "\"\$as_me:12008: $lt_compile\"" >&5)
12009 (eval "$lt_compile" 2>conftest.err)
12011 cat conftest.err >&5
12012 echo "$as_me:12012: \$? = $ac_status" >&5
12013 if (exit $ac_status) && test -s "$ac_outfile"; then
12014 # The compiler can only warn and ignore the option if not recognized
12015 # So say no if there are warnings
12016 if test ! -s conftest.err; then
12017 lt_prog_compiler_pic_works=yes
12023 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12024 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12026 if test x"$lt_prog_compiler_pic_works" = xyes; then
12027 case $lt_prog_compiler_pic in
12029 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12032 lt_prog_compiler_pic=
12033 lt_prog_compiler_can_build_shared=no
12038 # For platforms which do not support PIC, -DPIC is meaningless:
12040 lt_prog_compiler_pic=
12043 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12047 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12048 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12049 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12050 echo $ECHO_N "(cached) $ECHO_C" >&6
12052 lt_cv_prog_compiler_c_o=no
12053 $rm -r conftest 2>/dev/null
12057 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12059 lt_compiler_flag="-o out/conftest2.$ac_objext"
12060 # Insert the option either (1) after the last *FLAGS variable, or
12061 # (2) before a word containing "conftest.", or (3) at the end.
12062 # Note that $ac_compile itself does not contain backslashes and begins
12063 # with a dollar sign (not a hyphen), so the echo should work correctly.
12064 lt_compile=`echo "$ac_compile" | $SED \
12065 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12066 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12067 -e 's:$: $lt_compiler_flag:'`
12068 (eval echo "\"\$as_me:12068: $lt_compile\"" >&5)
12069 (eval "$lt_compile" 2>out/conftest.err)
12071 cat out/conftest.err >&5
12072 echo "$as_me:12072: \$? = $ac_status" >&5
12073 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12075 # The compiler can only warn and ignore the option if not recognized
12076 # So say no if there are warnings
12077 if test ! -s out/conftest.err; then
12078 lt_cv_prog_compiler_c_o=yes
12083 # SGI C++ compiler will create directory out/ii_files/ for
12084 # template instantiation
12085 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12086 $rm out/* && rmdir out
12092 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12093 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12096 hard_links="nottested"
12097 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12098 # do not overwrite the value of need_locks provided by the user
12099 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12100 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12103 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12105 ln conftest.a conftest.b 2>&5 || hard_links=no
12106 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12107 echo "$as_me:$LINENO: result: $hard_links" >&5
12108 echo "${ECHO_T}$hard_links" >&6
12109 if test "$hard_links" = no; then
12110 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12111 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12118 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12119 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12122 allow_undefined_flag=
12123 enable_shared_with_static_runtimes=no
12125 archive_expsym_cmds=
12126 old_archive_From_new_cmds=
12127 old_archive_from_expsyms_cmds=
12128 export_dynamic_flag_spec=
12129 whole_archive_flag_spec=
12130 thread_safe_flag_spec=
12131 hardcode_libdir_flag_spec=
12132 hardcode_libdir_flag_spec_ld=
12133 hardcode_libdir_separator=
12135 hardcode_minus_L=no
12136 hardcode_shlibpath_var=unsupported
12137 link_all_deplibs=unknown
12138 hardcode_automatic=no
12140 module_expsym_cmds=
12141 always_export_symbols=no
12142 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12143 # include_expsyms should be a list of space-separated symbols to be *always*
12144 # included in the symbol list
12146 # exclude_expsyms can be an extended regexp of symbols to exclude
12147 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12148 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12149 # as well as any symbol that contains `d'.
12150 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12151 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12152 # platforms (ab)use it in PIC code, but their linkers get confused if
12153 # the symbol is explicitly referenced. Since portable code cannot
12154 # rely on this symbol name, it's probably fine to never include it in
12155 # preloaded symbol tables.
12156 extract_expsyms_cmds=
12159 cygwin* | mingw* | pw32*)
12160 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12161 # When not using gcc, we currently assume that we are using
12162 # Microsoft Visual C++.
12163 if test "$GCC" != yes; then
12173 if test "$with_gnu_ld" = yes; then
12174 # If archive_cmds runs LD, not CC, wlarc should be empty
12177 # See if GNU ld supports shared libraries.
12179 aix3* | aix4* | aix5*)
12180 # On AIX/PPC, the GNU linker is very broken
12181 if test "$host_cpu" != ia64; then
12185 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12186 *** to be unable to reliably create shared libraries on AIX.
12187 *** Therefore, libtool is disabling shared libraries support. If you
12188 *** really care for shared libraries, you may want to modify your PATH
12189 *** so that a non-GNU linker is found, and then restart.
12196 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)'
12197 hardcode_libdir_flag_spec='-L$libdir'
12198 hardcode_minus_L=yes
12200 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12201 # that the semantics of dynamic libraries on AmigaOS, at least up
12202 # to version 4, is to share data among multiple programs linked
12203 # with the same dynamic library. Since this doesn't match the
12204 # behavior of shared libraries on other platforms, we can't use
12210 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12211 allow_undefined_flag=unsupported
12212 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12213 # support --undefined. This deserves some investigation. FIXME
12214 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12220 cygwin* | mingw* | pw32*)
12221 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12222 # as there is no search path for DLLs.
12223 hardcode_libdir_flag_spec='-L$libdir'
12224 allow_undefined_flag=unsupported
12225 always_export_symbols=no
12226 enable_shared_with_static_runtimes=yes
12227 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12229 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12230 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12231 # If the export-symbols file already is a .def file (1st line
12232 # is EXPORTS), use it as is; otherwise, prepend...
12233 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12234 cp $export_symbols $output_objdir/$soname.def;
12236 echo EXPORTS > $output_objdir/$soname.def;
12237 cat $export_symbols >> $output_objdir/$soname.def;
12239 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12246 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12247 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12250 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12251 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12256 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12260 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12261 *** create shared libraries on Solaris systems. Therefore, libtool
12262 *** is disabling shared libraries support. We urge you to upgrade GNU
12263 *** binutils to release 2.9.1 or newer. Another option is to modify
12264 *** your PATH or compiler configuration so that the native linker is
12265 *** used, and then restart.
12268 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12269 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12270 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12277 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12279 hardcode_direct=yes
12280 hardcode_shlibpath_var=no
12284 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12285 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12286 archive_cmds="$tmp_archive_cmds"
12287 supports_anon_versioning=no
12288 case `$LD -v 2>/dev/null` in
12289 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12290 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12291 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12292 *\ 2.11.*) ;; # other 2.11 versions
12293 *) supports_anon_versioning=yes ;;
12295 if test $supports_anon_versioning = yes; then
12296 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12297 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12298 $echo "local: *; };" >> $output_objdir/$libname.ver~
12299 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12301 archive_expsym_cmds="$tmp_archive_cmds"
12309 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12310 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12311 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12318 if test "$ld_shlibs" = yes; then
12319 runpath_var=LD_RUN_PATH
12320 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12321 export_dynamic_flag_spec='${wl}--export-dynamic'
12322 # ancient GNU ld didn't support --whole-archive et. al.
12323 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12324 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12326 whole_archive_flag_spec=
12330 # PORTME fill in a description of your system's linker (not GNU ld)
12333 allow_undefined_flag=unsupported
12334 always_export_symbols=yes
12335 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'
12336 # Note: this linker hardcodes the directories in LIBPATH if there
12337 # are no directories specified by -L.
12338 hardcode_minus_L=yes
12339 if test "$GCC" = yes && test -z "$link_static_flag"; then
12340 # Neither direct hardcoding nor static linking is supported with a
12342 hardcode_direct=unsupported
12347 if test "$host_cpu" = ia64; then
12348 # On IA64, the linker does run time linking by default, so we don't
12349 # have to do anything special.
12350 aix_use_runtimelinking=no
12351 exp_sym_flag='-Bexport'
12354 # If we're using GNU nm, then we don't want the "-C" option.
12355 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12356 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12357 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'
12359 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'
12361 aix_use_runtimelinking=no
12363 # Test if we are trying to use run time linking or normal
12364 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12365 # need to do runtime linking.
12366 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12367 for ld_flag in $LDFLAGS; do
12368 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12369 aix_use_runtimelinking=yes
12375 exp_sym_flag='-bexport'
12376 no_entry_flag='-bnoentry'
12379 # When large executables or shared objects are built, AIX ld can
12380 # have problems creating the table of contents. If linking a library
12381 # or program results in "error TOC overflow" add -mminimal-toc to
12382 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12383 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12386 hardcode_direct=yes
12387 hardcode_libdir_separator=':'
12388 link_all_deplibs=yes
12390 if test "$GCC" = yes; then
12391 case $host_os in aix4.012|aix4.012.*)
12392 # We only want to do this on AIX 4.2 and lower, the check
12393 # below for broken collect2 doesn't work under 4.3+
12394 collect2name=`${CC} -print-prog-name=collect2`
12395 if test -f "$collect2name" && \
12396 strings "$collect2name" | grep resolve_lib_name >/dev/null
12398 # We have reworked collect2
12399 hardcode_direct=yes
12401 # We have old collect2
12402 hardcode_direct=unsupported
12403 # It fails to find uninstalled libraries when the uninstalled
12404 # path is not listed in the libpath. Setting hardcode_minus_L
12405 # to unsupported forces relinking
12406 hardcode_minus_L=yes
12407 hardcode_libdir_flag_spec='-L$libdir'
12408 hardcode_libdir_separator=
12411 shared_flag='-shared'
12414 if test "$host_cpu" = ia64; then
12415 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12416 # chokes on -Wl,-G. The following line is correct:
12419 if test "$aix_use_runtimelinking" = yes; then
12420 shared_flag='${wl}-G'
12422 shared_flag='${wl}-bM:SRE'
12427 # It seems that -bexpall does not export symbols beginning with
12428 # underscore (_), so it is better to generate a list of symbols to export.
12429 always_export_symbols=yes
12430 if test "$aix_use_runtimelinking" = yes; then
12431 # Warning - without using the other runtime loading flags (-brtl),
12432 # -berok will link without error, but may produce a broken library.
12433 allow_undefined_flag='-berok'
12434 # Determine the default libpath from the value encoded in an empty executable.
12435 cat >conftest.$ac_ext <<_ACEOF
12438 cat confdefs.h >>conftest.$ac_ext
12439 cat >>conftest.$ac_ext <<_ACEOF
12440 /* end confdefs.h. */
12450 rm -f conftest.$ac_objext conftest$ac_exeext
12451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12452 (eval $ac_link) 2>conftest.er1
12454 grep -v '^ *+' conftest.er1 >conftest.err
12456 cat conftest.err >&5
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); } &&
12459 { ac_try='test -z "$ac_c_werror_flag"
12460 || test ! -s conftest.err'
12461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12462 (eval $ac_try) 2>&5
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); }; } &&
12466 { ac_try='test -s conftest$ac_exeext'
12467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12468 (eval $ac_try) 2>&5
12470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471 (exit $ac_status); }; }; then
12473 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12475 # Check for a 64-bit object if we didn't find anything.
12476 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; }
12479 echo "$as_me: failed program was:" >&5
12480 sed 's/^/| /' conftest.$ac_ext >&5
12483 rm -f conftest.err conftest.$ac_objext \
12484 conftest$ac_exeext conftest.$ac_ext
12485 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12487 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12488 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"
12490 if test "$host_cpu" = ia64; then
12491 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12492 allow_undefined_flag="-z nodefs"
12493 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"
12495 # Determine the default libpath from the value encoded in an empty executable.
12496 cat >conftest.$ac_ext <<_ACEOF
12499 cat confdefs.h >>conftest.$ac_ext
12500 cat >>conftest.$ac_ext <<_ACEOF
12501 /* end confdefs.h. */
12511 rm -f conftest.$ac_objext conftest$ac_exeext
12512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12513 (eval $ac_link) 2>conftest.er1
12515 grep -v '^ *+' conftest.er1 >conftest.err
12517 cat conftest.err >&5
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); } &&
12520 { ac_try='test -z "$ac_c_werror_flag"
12521 || test ! -s conftest.err'
12522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12523 (eval $ac_try) 2>&5
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); }; } &&
12527 { ac_try='test -s conftest$ac_exeext'
12528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12529 (eval $ac_try) 2>&5
12531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532 (exit $ac_status); }; }; then
12534 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12536 # Check for a 64-bit object if we didn't find anything.
12537 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; }
12540 echo "$as_me: failed program was:" >&5
12541 sed 's/^/| /' conftest.$ac_ext >&5
12544 rm -f conftest.err conftest.$ac_objext \
12545 conftest$ac_exeext conftest.$ac_ext
12546 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12548 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12549 # Warning - without using the other run time loading flags,
12550 # -berok will link without error, but may produce a broken library.
12551 no_undefined_flag=' ${wl}-bernotok'
12552 allow_undefined_flag=' ${wl}-berok'
12553 # -bexpall does not export symbols beginning with underscore (_)
12554 always_export_symbols=yes
12555 # Exported symbols can be pulled into shared objects from archives
12556 whole_archive_flag_spec=' '
12557 archive_cmds_need_lc=yes
12558 # This is similar to how AIX traditionally builds it's shared libraries.
12559 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'
12565 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)'
12566 hardcode_libdir_flag_spec='-L$libdir'
12567 hardcode_minus_L=yes
12568 # see comment about different semantics on the GNU ld section
12573 export_dynamic_flag_spec=-rdynamic
12576 cygwin* | mingw* | pw32*)
12577 # When not using gcc, we currently assume that we are using
12578 # Microsoft Visual C++.
12579 # hardcode_libdir_flag_spec is actually meaningless, as there is
12580 # no search path for DLLs.
12581 hardcode_libdir_flag_spec=' '
12582 allow_undefined_flag=unsupported
12583 # Tell ltmain to make .lib files, not .a files.
12585 # Tell ltmain to make .dll files, not .so files.
12587 # FIXME: Setting linknames here is a bad hack.
12588 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12589 # The linker will automatically build a .lib file if we build a DLL.
12590 old_archive_From_new_cmds='true'
12591 # FIXME: Should let the user specify the lib program.
12592 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12593 fix_srcfile_path='`cygpath -w "$srcfile"`'
12594 enable_shared_with_static_runtimes=yes
12597 darwin* | rhapsody*)
12599 rhapsody* | darwin1.[012])
12600 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12603 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12604 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12606 case ${MACOSX_DEPLOYMENT_TARGET} in
12608 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12611 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12617 archive_cmds_need_lc=no
12619 hardcode_automatic=yes
12620 hardcode_shlibpath_var=unsupported
12621 whole_archive_flag_spec=''
12622 link_all_deplibs=yes
12623 if test "$GCC" = yes ; then
12624 output_verbose_link_cmd='echo'
12625 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12626 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12627 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12628 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}'
12629 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12631 case "$cc_basename" in
12633 output_verbose_link_cmd='echo'
12634 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12635 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12636 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12637 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12638 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12648 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12649 hardcode_libdir_flag_spec='-L$libdir'
12650 hardcode_shlibpath_var=no
12657 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12658 # support. Future versions do this automatically, but an explicit c++rt0.o
12659 # does not break anything, and helps significantly (at the cost of a little
12662 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12663 hardcode_libdir_flag_spec='-R$libdir'
12664 hardcode_direct=yes
12665 hardcode_shlibpath_var=no
12668 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12670 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12671 hardcode_direct=yes
12672 hardcode_minus_L=yes
12673 hardcode_shlibpath_var=no
12676 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12677 freebsd* | kfreebsd*-gnu)
12678 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12679 hardcode_libdir_flag_spec='-R$libdir'
12680 hardcode_direct=yes
12681 hardcode_shlibpath_var=no
12685 if test "$GCC" = yes; then
12686 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'
12688 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'
12690 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12691 hardcode_libdir_separator=:
12692 hardcode_direct=yes
12694 # hardcode_minus_L: Not really in the search PATH,
12695 # but as the default location of the library.
12696 hardcode_minus_L=yes
12697 export_dynamic_flag_spec='${wl}-E'
12701 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12702 case "$host_cpu" in
12704 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12707 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12711 case "$host_cpu" in
12713 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12716 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12720 if test "$with_gnu_ld" = no; then
12721 case "$host_cpu" in
12723 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12724 hardcode_libdir_flag_spec_ld='+b $libdir'
12725 hardcode_libdir_separator=:
12727 hardcode_shlibpath_var=no
12730 hardcode_libdir_flag_spec='-L$libdir'
12732 hardcode_shlibpath_var=no
12734 # hardcode_minus_L: Not really in the search PATH,
12735 # but as the default location of the library.
12736 hardcode_minus_L=yes
12739 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12740 hardcode_libdir_separator=:
12741 hardcode_direct=yes
12742 export_dynamic_flag_spec='${wl}-E'
12744 # hardcode_minus_L: Not really in the search PATH,
12745 # but as the default location of the library.
12746 hardcode_minus_L=yes
12752 irix5* | irix6* | nonstopux*)
12753 if test "$GCC" = yes; then
12754 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'
12756 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'
12757 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12759 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12760 hardcode_libdir_separator=:
12761 link_all_deplibs=yes
12765 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12766 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12768 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12770 hardcode_libdir_flag_spec='-R$libdir'
12771 hardcode_direct=yes
12772 hardcode_shlibpath_var=no
12776 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12777 hardcode_direct=yes
12778 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12779 hardcode_libdir_separator=:
12780 hardcode_shlibpath_var=no
12784 hardcode_direct=yes
12785 hardcode_shlibpath_var=no
12786 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12787 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12788 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12789 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12790 export_dynamic_flag_spec='${wl}-E'
12793 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12794 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12795 hardcode_libdir_flag_spec='-R$libdir'
12798 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12799 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12806 hardcode_libdir_flag_spec='-L$libdir'
12807 hardcode_minus_L=yes
12808 allow_undefined_flag=unsupported
12809 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'
12810 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12814 if test "$GCC" = yes; then
12815 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12816 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'
12818 allow_undefined_flag=' -expect_unresolved \*'
12819 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'
12821 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12822 hardcode_libdir_separator=:
12825 osf4* | osf5*) # as osf3* with the addition of -msym flag
12826 if test "$GCC" = yes; then
12827 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12828 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'
12829 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12831 allow_undefined_flag=' -expect_unresolved \*'
12832 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'
12833 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12834 $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'
12836 # Both c and cxx compiler support -rpath directly
12837 hardcode_libdir_flag_spec='-rpath $libdir'
12839 hardcode_libdir_separator=:
12843 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12844 hardcode_shlibpath_var=no
12845 export_dynamic_flag_spec='${wl}-Bexport'
12846 runpath_var=LD_RUN_PATH
12847 hardcode_runpath_var=yes
12851 no_undefined_flag=' -z text'
12852 if test "$GCC" = yes; then
12853 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12854 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12855 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12857 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12858 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12859 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12861 hardcode_libdir_flag_spec='-R$libdir'
12862 hardcode_shlibpath_var=no
12864 solaris2.[0-5] | solaris2.[0-5].*) ;;
12865 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12866 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12868 link_all_deplibs=yes
12872 if test "x$host_vendor" = xsequent; then
12873 # Use $CC to link under sequent, because it throws in some extra .o
12874 # files that make .init and .fini sections work.
12875 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12877 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12879 hardcode_libdir_flag_spec='-L$libdir'
12880 hardcode_direct=yes
12881 hardcode_minus_L=yes
12882 hardcode_shlibpath_var=no
12886 case $host_vendor in
12888 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12889 hardcode_direct=yes # is this really true???
12892 ## LD is ld it makes a PLAMLIB
12893 ## CC just makes a GrossModule.
12894 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12895 reload_cmds='$CC -r -o $output$reload_objs'
12899 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12900 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12903 runpath_var='LD_RUN_PATH'
12904 hardcode_shlibpath_var=no
12908 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12909 hardcode_shlibpath_var=no
12910 export_dynamic_flag_spec='-Bexport'
12914 if test -d /usr/nec; then
12915 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12916 hardcode_shlibpath_var=no
12917 runpath_var=LD_RUN_PATH
12918 hardcode_runpath_var=yes
12924 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12925 hardcode_direct=yes
12926 hardcode_minus_L=no
12927 hardcode_shlibpath_var=no
12928 hardcode_runpath_var=yes
12929 runpath_var=LD_RUN_PATH
12932 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12933 no_undefined_flag='${wl}-z ${wl}text'
12934 if test "$GCC" = yes; then
12935 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12937 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12939 runpath_var='LD_RUN_PATH'
12940 hardcode_shlibpath_var=no
12944 no_undefined_flag=' -z text'
12945 # $CC -shared without GNU ld will not create a library from C++
12946 # object files and a static libstdc++, better avoid it by now
12947 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12948 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12949 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12950 hardcode_libdir_flag_spec=
12951 hardcode_shlibpath_var=no
12952 runpath_var='LD_RUN_PATH'
12956 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12957 hardcode_libdir_flag_spec='-L$libdir'
12958 hardcode_shlibpath_var=no
12967 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12968 echo "${ECHO_T}$ld_shlibs" >&6
12969 test "$ld_shlibs" = no && can_build_shared=no
12971 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12972 if test "$GCC" = yes; then
12973 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12977 # Do we need to explicitly link libc?
12979 case "x$archive_cmds_need_lc" in
12981 # Assume -lc should be added
12982 archive_cmds_need_lc=yes
12984 if test "$enable_shared" = yes && test "$GCC" = yes; then
12985 case $archive_cmds in
12987 # FIXME: we may have to deal with multi-command sequences.
12990 # Test whether the compiler implicitly links with -lc since on some
12991 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12992 # to ld, don't add -lc before -lgcc.
12993 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12994 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12996 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12999 (eval $ac_compile) 2>&5
13001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002 (exit $ac_status); } 2>conftest.err; then
13005 libobjs=conftest.$ac_objext
13007 wl=$lt_prog_compiler_wl
13013 lt_save_allow_undefined_flag=$allow_undefined_flag
13014 allow_undefined_flag=
13015 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13016 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); }
13021 archive_cmds_need_lc=no
13023 archive_cmds_need_lc=yes
13025 allow_undefined_flag=$lt_save_allow_undefined_flag
13027 cat conftest.err 1>&5
13030 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13031 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13038 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13039 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13040 library_names_spec=
13041 libname_spec='lib$name'
13045 postuninstall_cmds=
13049 shlibpath_overrides_runpath=unknown
13051 dynamic_linker="$host_os ld.so"
13052 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13053 if test "$GCC" = yes; then
13054 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13055 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13056 # if the path contains ";" then we assume it to be the separator
13057 # otherwise default to the standard path separator (i.e. ":") - it is
13058 # assumed that no part of a normal pathname contains ";" but that should
13059 # okay in the real world where ";" in dirpaths is itself problematic.
13060 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13062 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13065 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13067 need_lib_prefix=unknown
13068 hardcode_into_libs=no
13070 # when you set need_version to no, make sure it does not cause -set_version
13071 # flags to be left without arguments
13072 need_version=unknown
13077 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13078 shlibpath_var=LIBPATH
13080 # AIX 3 has no versioning support, so we append a major version to the name.
13081 soname_spec='${libname}${release}${shared_ext}$major'
13088 hardcode_into_libs=yes
13089 if test "$host_cpu" = ia64; then
13090 # AIX 5 supports IA64
13091 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13092 shlibpath_var=LD_LIBRARY_PATH
13094 # With GCC up to 2.95.x, collect2 would create an import file
13095 # for dependence libraries. The import file would start with
13096 # the line `#! .'. This would cause the generated library to
13097 # depend on `.', always an invalid library. This was fixed in
13098 # development snapshots of GCC prior to 3.0.
13100 aix4 | aix4.[01] | aix4.[01].*)
13101 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13103 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13106 can_build_shared=no
13110 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13111 # soname into executable. Probably we can add versioning support to
13112 # collect2, so additional links can be useful in future.
13113 if test "$aix_use_runtimelinking" = yes; then
13114 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13115 # instead of lib<name>.a to let people know that these are not
13116 # typical AIX shared libraries.
13117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13119 # We preserve .a as extension for shared libraries through AIX4.2
13120 # and later when we are not doing run time linking.
13121 library_names_spec='${libname}${release}.a $libname.a'
13122 soname_spec='${libname}${release}${shared_ext}$major'
13124 shlibpath_var=LIBPATH
13129 library_names_spec='$libname.ixlibrary $libname.a'
13130 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13131 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'
13135 library_names_spec='${libname}${shared_ext}'
13136 dynamic_linker="$host_os ld.so"
13137 shlibpath_var=LIBRARY_PATH
13143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13144 soname_spec='${libname}${release}${shared_ext}$major'
13145 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13146 shlibpath_var=LD_LIBRARY_PATH
13147 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13148 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13149 # the default ld.so.conf also contains /usr/contrib/lib and
13150 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13151 # libtool to hard-code these into programs
13154 cygwin* | mingw* | pw32*)
13155 version_type=windows
13160 case $GCC,$host_os in
13161 yes,cygwin* | yes,mingw* | yes,pw32*)
13162 library_names_spec='$libname.dll.a'
13163 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13164 postinstall_cmds='base_file=`basename \${file}`~
13165 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13166 dldir=$destdir/`dirname \$dlpath`~
13167 test -d \$dldir || mkdir -p \$dldir~
13168 $install_prog $dir/$dlname \$dldir/$dlname'
13169 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13170 dlpath=$dir/\$dldll~
13172 shlibpath_overrides_runpath=yes
13176 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13177 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13178 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13181 # MinGW DLLs use traditional 'lib' prefix
13182 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13183 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13184 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13185 # It is most probably a Windows format PATH printed by
13186 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13187 # path with ; separators, and with drive letters. We can handle the
13188 # drive letters (cygwin fileutils understands them), so leave them,
13189 # especially as we might pass files found there to a mingw objdump,
13190 # which wouldn't understand a cygwinified path. Ahh.
13191 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13193 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13197 # pw32 DLLs use 'pw' prefix rather than 'lib'
13198 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13204 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13207 dynamic_linker='Win32 ld.exe'
13208 # FIXME: first we should search . and the directory the executable is in
13212 darwin* | rhapsody*)
13213 dynamic_linker="$host_os dyld"
13214 version_type=darwin
13217 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13218 soname_spec='${libname}${release}${major}$shared_ext'
13219 shlibpath_overrides_runpath=yes
13220 shlibpath_var=DYLD_LIBRARY_PATH
13221 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13222 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13223 if test "$GCC" = yes; then
13224 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"`
13226 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13228 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13236 soname_spec='${libname}${release}${shared_ext}$major'
13237 shlibpath_var=LD_LIBRARY_PATH
13248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13249 soname_spec='${libname}${release}${shared_ext}$major'
13250 shlibpath_var=LD_LIBRARY_PATH
13251 shlibpath_overrides_runpath=no
13252 hardcode_into_libs=yes
13253 dynamic_linker='GNU ld.so'
13257 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13258 version_type=freebsd-$objformat
13259 case $version_type in
13261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13266 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13270 shlibpath_var=LD_LIBRARY_PATH
13273 shlibpath_overrides_runpath=yes
13275 freebsd3.01* | freebsdelf3.01*)
13276 shlibpath_overrides_runpath=yes
13277 hardcode_into_libs=yes
13280 shlibpath_overrides_runpath=no
13281 hardcode_into_libs=yes
13290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13291 soname_spec='${libname}${release}${shared_ext}$major'
13292 shlibpath_var=LD_LIBRARY_PATH
13293 hardcode_into_libs=yes
13296 hpux9* | hpux10* | hpux11*)
13297 # Give a soname corresponding to the major version so that dld.sl refuses to
13298 # link against other versions.
13302 case "$host_cpu" in
13305 hardcode_into_libs=yes
13306 dynamic_linker="$host_os dld.so"
13307 shlibpath_var=LD_LIBRARY_PATH
13308 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13310 soname_spec='${libname}${release}${shared_ext}$major'
13311 if test "X$HPUX_IA64_MODE" = X32; then
13312 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13314 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13316 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13320 hardcode_into_libs=yes
13321 dynamic_linker="$host_os dld.sl"
13322 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13323 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13325 soname_spec='${libname}${release}${shared_ext}$major'
13326 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13327 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13331 dynamic_linker="$host_os dld.sl"
13332 shlibpath_var=SHLIB_PATH
13333 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13335 soname_spec='${libname}${release}${shared_ext}$major'
13338 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13339 postinstall_cmds='chmod 555 $lib'
13342 irix5* | irix6* | nonstopux*)
13344 nonstopux*) version_type=nonstopux ;;
13346 if test "$lt_cv_prog_gnu_ld" = yes; then
13354 soname_spec='${libname}${release}${shared_ext}$major'
13355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13357 irix5* | nonstopux*)
13358 libsuff= shlibsuff=
13361 case $LD in # libtool.m4 will add one of these switches to LD
13362 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13363 libsuff= shlibsuff= libmagic=32-bit;;
13364 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13365 libsuff=32 shlibsuff=N32 libmagic=N32;;
13366 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13367 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13368 *) libsuff= shlibsuff= libmagic=never-match;;
13372 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13373 shlibpath_overrides_runpath=no
13374 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13375 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13376 hardcode_into_libs=yes
13379 # No shared lib support for Linux oldld, aout, or coff.
13380 linux*oldld* | linux*aout* | linux*coff*)
13384 # This must be Linux ELF.
13389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13390 soname_spec='${libname}${release}${shared_ext}$major'
13391 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13392 shlibpath_var=LD_LIBRARY_PATH
13393 shlibpath_overrides_runpath=no
13394 # This implies no fast_install, which is unacceptable.
13395 # Some rework will be needed to allow for fast_install
13396 # before this can be enabled.
13397 hardcode_into_libs=yes
13399 # Append ld.so.conf contents to the search path
13400 if test -f /etc/ld.so.conf; then
13401 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13402 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13405 # We used to test for /lib/ld.so.1 and disable shared libraries on
13406 # powerpc, because MkLinux only supported shared libraries with the
13407 # GNU dynamic linker. Since this was broken with cross compilers,
13408 # most powerpc-linux boxes support dynamic linking these days and
13409 # people can always --disable-shared, the test was removed, and we
13410 # assume the GNU/Linux dynamic linker is in use.
13411 dynamic_linker='GNU/Linux ld.so'
13418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13419 soname_spec='${libname}${release}${shared_ext}$major'
13420 shlibpath_var=LD_LIBRARY_PATH
13421 shlibpath_overrides_runpath=no
13422 hardcode_into_libs=yes
13423 dynamic_linker='GNU ld.so'
13430 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13432 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13433 dynamic_linker='NetBSD (a.out) ld.so'
13435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13436 soname_spec='${libname}${release}${shared_ext}$major'
13437 dynamic_linker='NetBSD ld.elf_so'
13439 shlibpath_var=LD_LIBRARY_PATH
13440 shlibpath_overrides_runpath=yes
13441 hardcode_into_libs=yes
13446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13447 shlibpath_var=LD_LIBRARY_PATH
13448 shlibpath_overrides_runpath=yes
13455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13456 soname_spec='${libname}${release}${shared_ext}$major'
13457 shlibpath_var=LD_LIBRARY_PATH
13458 shlibpath_overrides_runpath=yes
13465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13466 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13467 shlibpath_var=LD_LIBRARY_PATH
13468 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13470 openbsd2.[89] | openbsd2.[89].*)
13471 shlibpath_overrides_runpath=no
13474 shlibpath_overrides_runpath=yes
13478 shlibpath_overrides_runpath=yes
13483 libname_spec='$name'
13486 library_names_spec='$libname${shared_ext} $libname.a'
13487 dynamic_linker='OS/2 ld.exe'
13488 shlibpath_var=LIBPATH
13491 osf3* | osf4* | osf5*)
13495 soname_spec='${libname}${release}${shared_ext}$major'
13496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13497 shlibpath_var=LD_LIBRARY_PATH
13498 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13499 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13504 soname_spec='${libname}${release}${shared_ext}$major'
13505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13506 shlibpath_var=LD_LIBRARY_PATH
13513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13514 soname_spec='${libname}${release}${shared_ext}$major'
13515 shlibpath_var=LD_LIBRARY_PATH
13516 shlibpath_overrides_runpath=yes
13517 hardcode_into_libs=yes
13518 # ldd complains unless libraries are executable
13519 postinstall_cmds='chmod +x $lib'
13524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13525 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13526 shlibpath_var=LD_LIBRARY_PATH
13527 shlibpath_overrides_runpath=yes
13528 if test "$with_gnu_ld" = yes; then
13534 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13537 soname_spec='${libname}${release}${shared_ext}$major'
13538 shlibpath_var=LD_LIBRARY_PATH
13539 case $host_vendor in
13541 shlibpath_overrides_runpath=no
13543 export_dynamic_flag_spec='${wl}-Blargedynsym'
13544 runpath_var=LD_RUN_PATH
13552 shlibpath_overrides_runpath=no
13553 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13559 if test -d /usr/nec ;then
13561 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13562 soname_spec='$libname${shared_ext}.$major'
13563 shlibpath_var=LD_LIBRARY_PATH
13569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13570 soname_spec='${libname}${release}${shared_ext}$major'
13571 shlibpath_var=LD_LIBRARY_PATH
13578 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13579 echo "${ECHO_T}$dynamic_linker" >&6
13580 test "$dynamic_linker" = no && can_build_shared=no
13582 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13583 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13585 if test -n "$hardcode_libdir_flag_spec" || \
13586 test -n "$runpath_var" || \
13587 test "X$hardcode_automatic" = "Xyes" ; then
13589 # We can hardcode non-existant directories.
13590 if test "$hardcode_direct" != no &&
13591 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13592 # have to relink, otherwise we might link with an installed library
13593 # when we should be linking with a yet-to-be-installed one
13594 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13595 test "$hardcode_minus_L" != no; then
13596 # Linking always hardcodes the temporary library directory.
13597 hardcode_action=relink
13599 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13600 hardcode_action=immediate
13603 # We cannot hardcode anything, or else we can only hardcode existing
13605 hardcode_action=unsupported
13607 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13608 echo "${ECHO_T}$hardcode_action" >&6
13610 if test "$hardcode_action" = relink; then
13611 # Fast installation is not supported
13612 enable_fast_install=no
13613 elif test "$shlibpath_overrides_runpath" = yes ||
13614 test "$enable_shared" = no; then
13615 # Fast installation is not necessary
13616 enable_fast_install=needless
13621 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13622 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13623 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13624 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13625 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13626 echo "$as_me:$LINENO: result: yes" >&5
13627 echo "${ECHO_T}yes" >&6
13629 # FIXME - insert some real tests, host_os isn't really good enough
13632 if test -n "$STRIP" ; then
13633 striplib="$STRIP -x"
13634 echo "$as_me:$LINENO: result: yes" >&5
13635 echo "${ECHO_T}yes" >&6
13637 echo "$as_me:$LINENO: result: no" >&5
13638 echo "${ECHO_T}no" >&6
13642 echo "$as_me:$LINENO: result: no" >&5
13643 echo "${ECHO_T}no" >&6
13648 if test "x$enable_dlopen" != xyes; then
13649 enable_dlopen=unknown
13650 enable_dlopen_self=unknown
13651 enable_dlopen_self_static=unknown
13658 lt_cv_dlopen="load_add_on"
13660 lt_cv_dlopen_self=yes
13664 lt_cv_dlopen="LoadLibrary"
13669 lt_cv_dlopen="dlopen"
13674 # if libdl is installed we need to link against it
13675 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13676 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13677 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13678 echo $ECHO_N "(cached) $ECHO_C" >&6
13680 ac_check_lib_save_LIBS=$LIBS
13682 cat >conftest.$ac_ext <<_ACEOF
13685 cat confdefs.h >>conftest.$ac_ext
13686 cat >>conftest.$ac_ext <<_ACEOF
13687 /* end confdefs.h. */
13689 /* Override any gcc2 internal prototype to avoid an error. */
13693 /* We use char because int might match the return type of a gcc2
13694 builtin and then its argument prototype would still apply. */
13704 rm -f conftest.$ac_objext conftest$ac_exeext
13705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13706 (eval $ac_link) 2>conftest.er1
13708 grep -v '^ *+' conftest.er1 >conftest.err
13710 cat conftest.err >&5
13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); } &&
13713 { ac_try='test -z "$ac_c_werror_flag"
13714 || test ! -s conftest.err'
13715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13716 (eval $ac_try) 2>&5
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); }; } &&
13720 { ac_try='test -s conftest$ac_exeext'
13721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13722 (eval $ac_try) 2>&5
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); }; }; then
13726 ac_cv_lib_dl_dlopen=yes
13728 echo "$as_me: failed program was:" >&5
13729 sed 's/^/| /' conftest.$ac_ext >&5
13731 ac_cv_lib_dl_dlopen=no
13733 rm -f conftest.err conftest.$ac_objext \
13734 conftest$ac_exeext conftest.$ac_ext
13735 LIBS=$ac_check_lib_save_LIBS
13737 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13738 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13739 if test $ac_cv_lib_dl_dlopen = yes; then
13740 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13743 lt_cv_dlopen="dyld"
13745 lt_cv_dlopen_self=yes
13752 echo "$as_me:$LINENO: checking for shl_load" >&5
13753 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13754 if test "${ac_cv_func_shl_load+set}" = set; then
13755 echo $ECHO_N "(cached) $ECHO_C" >&6
13757 cat >conftest.$ac_ext <<_ACEOF
13760 cat confdefs.h >>conftest.$ac_ext
13761 cat >>conftest.$ac_ext <<_ACEOF
13762 /* end confdefs.h. */
13763 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13765 #define shl_load innocuous_shl_load
13767 /* System header to define __stub macros and hopefully few prototypes,
13768 which can conflict with char shl_load (); below.
13769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13770 <limits.h> exists even on freestanding compilers. */
13773 # include <limits.h>
13775 # include <assert.h>
13780 /* Override any gcc2 internal prototype to avoid an error. */
13785 /* We use char because int might match the return type of a gcc2
13786 builtin and then its argument prototype would still apply. */
13788 /* The GNU C library defines this for functions which it implements
13789 to always fail with ENOSYS. Some functions are actually named
13790 something starting with __ and the normal name is an alias. */
13791 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13794 char (*f) () = shl_load;
13803 return f != shl_load;
13808 rm -f conftest.$ac_objext conftest$ac_exeext
13809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13810 (eval $ac_link) 2>conftest.er1
13812 grep -v '^ *+' conftest.er1 >conftest.err
13814 cat conftest.err >&5
13815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); } &&
13817 { ac_try='test -z "$ac_c_werror_flag"
13818 || test ! -s conftest.err'
13819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13820 (eval $ac_try) 2>&5
13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823 (exit $ac_status); }; } &&
13824 { ac_try='test -s conftest$ac_exeext'
13825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13826 (eval $ac_try) 2>&5
13828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829 (exit $ac_status); }; }; then
13830 ac_cv_func_shl_load=yes
13832 echo "$as_me: failed program was:" >&5
13833 sed 's/^/| /' conftest.$ac_ext >&5
13835 ac_cv_func_shl_load=no
13837 rm -f conftest.err conftest.$ac_objext \
13838 conftest$ac_exeext conftest.$ac_ext
13840 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13841 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13842 if test $ac_cv_func_shl_load = yes; then
13843 lt_cv_dlopen="shl_load"
13845 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13846 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13847 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13848 echo $ECHO_N "(cached) $ECHO_C" >&6
13850 ac_check_lib_save_LIBS=$LIBS
13852 cat >conftest.$ac_ext <<_ACEOF
13855 cat confdefs.h >>conftest.$ac_ext
13856 cat >>conftest.$ac_ext <<_ACEOF
13857 /* end confdefs.h. */
13859 /* Override any gcc2 internal prototype to avoid an error. */
13863 /* We use char because int might match the return type of a gcc2
13864 builtin and then its argument prototype would still apply. */
13874 rm -f conftest.$ac_objext conftest$ac_exeext
13875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13876 (eval $ac_link) 2>conftest.er1
13878 grep -v '^ *+' conftest.er1 >conftest.err
13880 cat conftest.err >&5
13881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882 (exit $ac_status); } &&
13883 { ac_try='test -z "$ac_c_werror_flag"
13884 || test ! -s conftest.err'
13885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13886 (eval $ac_try) 2>&5
13888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889 (exit $ac_status); }; } &&
13890 { ac_try='test -s conftest$ac_exeext'
13891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13892 (eval $ac_try) 2>&5
13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); }; }; then
13896 ac_cv_lib_dld_shl_load=yes
13898 echo "$as_me: failed program was:" >&5
13899 sed 's/^/| /' conftest.$ac_ext >&5
13901 ac_cv_lib_dld_shl_load=no
13903 rm -f conftest.err conftest.$ac_objext \
13904 conftest$ac_exeext conftest.$ac_ext
13905 LIBS=$ac_check_lib_save_LIBS
13907 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13908 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13909 if test $ac_cv_lib_dld_shl_load = yes; then
13910 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13912 echo "$as_me:$LINENO: checking for dlopen" >&5
13913 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13914 if test "${ac_cv_func_dlopen+set}" = set; then
13915 echo $ECHO_N "(cached) $ECHO_C" >&6
13917 cat >conftest.$ac_ext <<_ACEOF
13920 cat confdefs.h >>conftest.$ac_ext
13921 cat >>conftest.$ac_ext <<_ACEOF
13922 /* end confdefs.h. */
13923 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13925 #define dlopen innocuous_dlopen
13927 /* System header to define __stub macros and hopefully few prototypes,
13928 which can conflict with char dlopen (); below.
13929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13930 <limits.h> exists even on freestanding compilers. */
13933 # include <limits.h>
13935 # include <assert.h>
13940 /* Override any gcc2 internal prototype to avoid an error. */
13945 /* We use char because int might match the return type of a gcc2
13946 builtin and then its argument prototype would still apply. */
13948 /* The GNU C library defines this for functions which it implements
13949 to always fail with ENOSYS. Some functions are actually named
13950 something starting with __ and the normal name is an alias. */
13951 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13954 char (*f) () = dlopen;
13963 return f != dlopen;
13968 rm -f conftest.$ac_objext conftest$ac_exeext
13969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13970 (eval $ac_link) 2>conftest.er1
13972 grep -v '^ *+' conftest.er1 >conftest.err
13974 cat conftest.err >&5
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); } &&
13977 { ac_try='test -z "$ac_c_werror_flag"
13978 || test ! -s conftest.err'
13979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13980 (eval $ac_try) 2>&5
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); }; } &&
13984 { ac_try='test -s conftest$ac_exeext'
13985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13986 (eval $ac_try) 2>&5
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); }; }; then
13990 ac_cv_func_dlopen=yes
13992 echo "$as_me: failed program was:" >&5
13993 sed 's/^/| /' conftest.$ac_ext >&5
13995 ac_cv_func_dlopen=no
13997 rm -f conftest.err conftest.$ac_objext \
13998 conftest$ac_exeext conftest.$ac_ext
14000 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14001 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14002 if test $ac_cv_func_dlopen = yes; then
14003 lt_cv_dlopen="dlopen"
14005 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14006 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14007 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14008 echo $ECHO_N "(cached) $ECHO_C" >&6
14010 ac_check_lib_save_LIBS=$LIBS
14012 cat >conftest.$ac_ext <<_ACEOF
14015 cat confdefs.h >>conftest.$ac_ext
14016 cat >>conftest.$ac_ext <<_ACEOF
14017 /* end confdefs.h. */
14019 /* Override any gcc2 internal prototype to avoid an error. */
14023 /* We use char because int might match the return type of a gcc2
14024 builtin and then its argument prototype would still apply. */
14034 rm -f conftest.$ac_objext conftest$ac_exeext
14035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14036 (eval $ac_link) 2>conftest.er1
14038 grep -v '^ *+' conftest.er1 >conftest.err
14040 cat conftest.err >&5
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); } &&
14043 { ac_try='test -z "$ac_c_werror_flag"
14044 || test ! -s conftest.err'
14045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14046 (eval $ac_try) 2>&5
14048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 (exit $ac_status); }; } &&
14050 { ac_try='test -s conftest$ac_exeext'
14051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14052 (eval $ac_try) 2>&5
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); }; }; then
14056 ac_cv_lib_dl_dlopen=yes
14058 echo "$as_me: failed program was:" >&5
14059 sed 's/^/| /' conftest.$ac_ext >&5
14061 ac_cv_lib_dl_dlopen=no
14063 rm -f conftest.err conftest.$ac_objext \
14064 conftest$ac_exeext conftest.$ac_ext
14065 LIBS=$ac_check_lib_save_LIBS
14067 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14068 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14069 if test $ac_cv_lib_dl_dlopen = yes; then
14070 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14072 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14073 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14074 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14075 echo $ECHO_N "(cached) $ECHO_C" >&6
14077 ac_check_lib_save_LIBS=$LIBS
14078 LIBS="-lsvld $LIBS"
14079 cat >conftest.$ac_ext <<_ACEOF
14082 cat confdefs.h >>conftest.$ac_ext
14083 cat >>conftest.$ac_ext <<_ACEOF
14084 /* end confdefs.h. */
14086 /* Override any gcc2 internal prototype to avoid an error. */
14090 /* We use char because int might match the return type of a gcc2
14091 builtin and then its argument prototype would still apply. */
14101 rm -f conftest.$ac_objext conftest$ac_exeext
14102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14103 (eval $ac_link) 2>conftest.er1
14105 grep -v '^ *+' conftest.er1 >conftest.err
14107 cat conftest.err >&5
14108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); } &&
14110 { ac_try='test -z "$ac_c_werror_flag"
14111 || test ! -s conftest.err'
14112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14113 (eval $ac_try) 2>&5
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); }; } &&
14117 { ac_try='test -s conftest$ac_exeext'
14118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14119 (eval $ac_try) 2>&5
14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); }; }; then
14123 ac_cv_lib_svld_dlopen=yes
14125 echo "$as_me: failed program was:" >&5
14126 sed 's/^/| /' conftest.$ac_ext >&5
14128 ac_cv_lib_svld_dlopen=no
14130 rm -f conftest.err conftest.$ac_objext \
14131 conftest$ac_exeext conftest.$ac_ext
14132 LIBS=$ac_check_lib_save_LIBS
14134 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14135 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14136 if test $ac_cv_lib_svld_dlopen = yes; then
14137 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14139 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14140 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14141 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14142 echo $ECHO_N "(cached) $ECHO_C" >&6
14144 ac_check_lib_save_LIBS=$LIBS
14146 cat >conftest.$ac_ext <<_ACEOF
14149 cat confdefs.h >>conftest.$ac_ext
14150 cat >>conftest.$ac_ext <<_ACEOF
14151 /* end confdefs.h. */
14153 /* Override any gcc2 internal prototype to avoid an error. */
14157 /* We use char because int might match the return type of a gcc2
14158 builtin and then its argument prototype would still apply. */
14168 rm -f conftest.$ac_objext conftest$ac_exeext
14169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14170 (eval $ac_link) 2>conftest.er1
14172 grep -v '^ *+' conftest.er1 >conftest.err
14174 cat conftest.err >&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); } &&
14177 { ac_try='test -z "$ac_c_werror_flag"
14178 || test ! -s conftest.err'
14179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14180 (eval $ac_try) 2>&5
14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183 (exit $ac_status); }; } &&
14184 { ac_try='test -s conftest$ac_exeext'
14185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14186 (eval $ac_try) 2>&5
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); }; }; then
14190 ac_cv_lib_dld_dld_link=yes
14192 echo "$as_me: failed program was:" >&5
14193 sed 's/^/| /' conftest.$ac_ext >&5
14195 ac_cv_lib_dld_dld_link=no
14197 rm -f conftest.err conftest.$ac_objext \
14198 conftest$ac_exeext conftest.$ac_ext
14199 LIBS=$ac_check_lib_save_LIBS
14201 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14202 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14203 if test $ac_cv_lib_dld_dld_link = yes; then
14204 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14225 if test "x$lt_cv_dlopen" != xno; then
14231 case $lt_cv_dlopen in
14233 save_CPPFLAGS="$CPPFLAGS"
14234 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14236 save_LDFLAGS="$LDFLAGS"
14237 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14240 LIBS="$lt_cv_dlopen_libs $LIBS"
14242 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14243 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14244 if test "${lt_cv_dlopen_self+set}" = set; then
14245 echo $ECHO_N "(cached) $ECHO_C" >&6
14247 if test "$cross_compiling" = yes; then :
14248 lt_cv_dlopen_self=cross
14250 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14251 lt_status=$lt_dlunknown
14252 cat > conftest.$ac_ext <<EOF
14253 #line 14253 "configure"
14254 #include "confdefs.h"
14263 # define LT_DLGLOBAL RTLD_GLOBAL
14266 # define LT_DLGLOBAL DL_GLOBAL
14268 # define LT_DLGLOBAL 0
14272 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14273 find out it does not work in some platform. */
14274 #ifndef LT_DLLAZY_OR_NOW
14276 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14279 # define LT_DLLAZY_OR_NOW DL_LAZY
14282 # define LT_DLLAZY_OR_NOW RTLD_NOW
14285 # define LT_DLLAZY_OR_NOW DL_NOW
14287 # define LT_DLLAZY_OR_NOW 0
14295 extern "C" void exit (int);
14298 void fnord() { int i=42;}
14301 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14302 int status = $lt_dlunknown;
14306 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14307 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14308 /* dlclose (self); */
14314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14315 (eval $ac_link) 2>&5
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14319 (./conftest; exit; ) 2>/dev/null
14321 case x$lt_status in
14322 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14323 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14324 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14327 # compilation failed
14328 lt_cv_dlopen_self=no
14335 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14336 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14338 if test "x$lt_cv_dlopen_self" = xyes; then
14339 LDFLAGS="$LDFLAGS $link_static_flag"
14340 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14341 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14342 if test "${lt_cv_dlopen_self_static+set}" = set; then
14343 echo $ECHO_N "(cached) $ECHO_C" >&6
14345 if test "$cross_compiling" = yes; then :
14346 lt_cv_dlopen_self_static=cross
14348 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14349 lt_status=$lt_dlunknown
14350 cat > conftest.$ac_ext <<EOF
14351 #line 14351 "configure"
14352 #include "confdefs.h"
14361 # define LT_DLGLOBAL RTLD_GLOBAL
14364 # define LT_DLGLOBAL DL_GLOBAL
14366 # define LT_DLGLOBAL 0
14370 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14371 find out it does not work in some platform. */
14372 #ifndef LT_DLLAZY_OR_NOW
14374 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14377 # define LT_DLLAZY_OR_NOW DL_LAZY
14380 # define LT_DLLAZY_OR_NOW RTLD_NOW
14383 # define LT_DLLAZY_OR_NOW DL_NOW
14385 # define LT_DLLAZY_OR_NOW 0
14393 extern "C" void exit (int);
14396 void fnord() { int i=42;}
14399 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14400 int status = $lt_dlunknown;
14404 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14405 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14406 /* dlclose (self); */
14412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14413 (eval $ac_link) 2>&5
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14417 (./conftest; exit; ) 2>/dev/null
14419 case x$lt_status in
14420 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14421 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14422 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14425 # compilation failed
14426 lt_cv_dlopen_self_static=no
14433 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14434 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14437 CPPFLAGS="$save_CPPFLAGS"
14438 LDFLAGS="$save_LDFLAGS"
14443 case $lt_cv_dlopen_self in
14444 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14445 *) enable_dlopen_self=unknown ;;
14448 case $lt_cv_dlopen_self_static in
14449 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14450 *) enable_dlopen_self_static=unknown ;;
14455 # Report which librarie types wil actually be built
14456 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14457 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14458 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14459 echo "${ECHO_T}$can_build_shared" >&6
14461 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14462 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14463 test "$can_build_shared" = "no" && enable_shared=no
14465 # On AIX, shared libraries and static libraries use the same namespace, and
14466 # are all built from PIC.
14469 test "$enable_shared" = yes && enable_static=no
14470 if test -n "$RANLIB"; then
14471 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14472 postinstall_cmds='$RANLIB $lib'
14477 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14478 test "$enable_shared" = yes && enable_static=no
14482 echo "$as_me:$LINENO: result: $enable_shared" >&5
14483 echo "${ECHO_T}$enable_shared" >&6
14485 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14486 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14487 # Make sure either enable_shared or enable_static is yes.
14488 test "$enable_shared" = yes || enable_static=yes
14489 echo "$as_me:$LINENO: result: $enable_static" >&5
14490 echo "${ECHO_T}$enable_static" >&6
14492 # The else clause should only fire when bootstrapping the
14493 # libtool distribution, otherwise you forgot to ship ltmain.sh
14494 # with your package, and you will get complaints that there are
14495 # no rules to generate ltmain.sh.
14496 if test -f "$ltmain"; then
14497 # See if we are running on zsh, and set the options which allow our commands through
14498 # without removal of \ escapes.
14499 if test -n "${ZSH_VERSION+set}" ; then
14500 setopt NO_GLOB_SUBST
14502 # Now quote all the things that may contain metacharacters while being
14503 # careful not to overquote the AC_SUBSTed values. We take copies of the
14504 # variables and quote the copies for generation of the libtool script.
14505 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14507 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14508 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14509 deplibs_check_method reload_flag reload_cmds need_locks \
14510 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14511 lt_cv_sys_global_symbol_to_c_name_address \
14512 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14513 old_postinstall_cmds old_postuninstall_cmds \
14517 lt_prog_compiler_wl \
14518 lt_prog_compiler_pic \
14519 lt_prog_compiler_static \
14520 lt_prog_compiler_no_builtin_flag \
14521 export_dynamic_flag_spec \
14522 thread_safe_flag_spec \
14523 whole_archive_flag_spec \
14524 enable_shared_with_static_runtimes \
14526 old_archive_from_new_cmds \
14531 compiler_lib_search_path \
14533 archive_expsym_cmds \
14535 postuninstall_cmds \
14536 old_archive_from_expsyms_cmds \
14537 allow_undefined_flag \
14538 no_undefined_flag \
14539 export_symbols_cmds \
14540 hardcode_libdir_flag_spec \
14541 hardcode_libdir_flag_spec_ld \
14542 hardcode_libdir_separator \
14543 hardcode_automatic \
14545 module_expsym_cmds \
14546 lt_cv_prog_compiler_c_o \
14548 include_expsyms; do
14551 old_archive_cmds | \
14552 old_archive_from_new_cmds | \
14554 archive_expsym_cmds | \
14556 module_expsym_cmds | \
14557 old_archive_from_expsyms_cmds | \
14558 export_symbols_cmds | \
14559 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14560 postinstall_cmds | postuninstall_cmds | \
14561 old_postinstall_cmds | old_postuninstall_cmds | \
14562 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14563 # Double-quote double-evaled strings.
14564 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14567 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14573 *'\$0 --fallback-echo"')
14574 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14578 cfgfile="${ofile}T"
14579 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14581 { echo "$as_me:$LINENO: creating $ofile" >&5
14582 echo "$as_me: creating $ofile" >&6;}
14584 cat <<__EOF__ >> "$cfgfile"
14587 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14588 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14589 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14591 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14592 # Free Software Foundation, Inc.
14594 # This file is part of GNU Libtool:
14595 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14597 # This program is free software; you can redistribute it and/or modify
14598 # it under the terms of the GNU General Public License as published by
14599 # the Free Software Foundation; either version 2 of the License, or
14600 # (at your option) any later version.
14602 # This program is distributed in the hope that it will be useful, but
14603 # WITHOUT ANY WARRANTY; without even the implied warranty of
14604 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14605 # General Public License for more details.
14607 # You should have received a copy of the GNU General Public License
14608 # along with this program; if not, write to the Free Software
14609 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14611 # As a special exception to the GNU General Public License, if you
14612 # distribute this file as part of a program that contains a
14613 # configuration script generated by Autoconf, you may include it under
14614 # the same distribution terms that you use for the rest of that program.
14616 # A sed program that does not truncate output.
14619 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14620 Xsed="$SED -e s/^X//"
14622 # The HP-UX ksh and POSIX shell print the target directory to stdout
14623 # if CDPATH is set.
14624 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14626 # The names of the tagged configurations supported by this script.
14629 # ### BEGIN LIBTOOL CONFIG
14631 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14633 # Shell to use when invoking shell scripts.
14636 # Whether or not to build shared libraries.
14637 build_libtool_libs=$enable_shared
14639 # Whether or not to build static libraries.
14640 build_old_libs=$enable_static
14642 # Whether or not to add -lc for building shared libraries.
14643 build_libtool_need_lc=$archive_cmds_need_lc
14645 # Whether or not to disallow shared libs when runtime libs are static
14646 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14648 # Whether or not to optimize for fast installation.
14649 fast_install=$enable_fast_install
14652 host_alias=$host_alias
14655 # An echo program that does not interpret backslashes.
14660 AR_FLAGS=$lt_AR_FLAGS
14665 # A language-specific compiler.
14668 # Is the compiler the GNU C compiler?
14674 # The linker used to build libraries.
14677 # Whether we need hard or soft links.
14680 # A BSD-compatible nm program.
14683 # A symbol stripping program
14686 # Used to examine libraries when file_magic_cmd begins "file"
14687 MAGIC_CMD=$MAGIC_CMD
14689 # Used on cygwin: DLL creation program.
14692 # Used on cygwin: object dumper.
14695 # Used on cygwin: assembler.
14698 # The name of the directory that contains temporary libtool files.
14701 # How to create reloadable object files.
14702 reload_flag=$lt_reload_flag
14703 reload_cmds=$lt_reload_cmds
14705 # How to pass a linker flag through the compiler.
14706 wl=$lt_lt_prog_compiler_wl
14708 # Object file suffix (normally "o").
14709 objext="$ac_objext"
14711 # Old archive suffix (normally "a").
14714 # Shared library suffix (normally ".so").
14715 shrext_cmds='$shrext_cmds'
14717 # Executable file suffix (normally "").
14720 # Additional compiler flags for building library objects.
14721 pic_flag=$lt_lt_prog_compiler_pic
14724 # What is the maximum length of a command?
14725 max_cmd_len=$lt_cv_sys_max_cmd_len
14727 # Does compiler simultaneously support -c and -o options?
14728 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14730 # Must we lock files when doing compilation ?
14731 need_locks=$lt_need_locks
14733 # Do we need the lib prefix for modules?
14734 need_lib_prefix=$need_lib_prefix
14736 # Do we need a version for libraries?
14737 need_version=$need_version
14739 # Whether dlopen is supported.
14740 dlopen_support=$enable_dlopen
14742 # Whether dlopen of programs is supported.
14743 dlopen_self=$enable_dlopen_self
14745 # Whether dlopen of statically linked programs is supported.
14746 dlopen_self_static=$enable_dlopen_self_static
14748 # Compiler flag to prevent dynamic linking.
14749 link_static_flag=$lt_lt_prog_compiler_static
14751 # Compiler flag to turn off builtin functions.
14752 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14754 # Compiler flag to allow reflexive dlopens.
14755 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14757 # Compiler flag to generate shared objects directly from archives.
14758 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14760 # Compiler flag to generate thread-safe objects.
14761 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14763 # Library versioning type.
14764 version_type=$version_type
14766 # Format of library name prefix.
14767 libname_spec=$lt_libname_spec
14769 # List of archive names. First name is the real one, the rest are links.
14770 # The last name is the one that the linker finds with -lNAME.
14771 library_names_spec=$lt_library_names_spec
14773 # The coded name of the library, if different from the real name.
14774 soname_spec=$lt_soname_spec
14776 # Commands used to build and install an old-style archive.
14778 old_archive_cmds=$lt_old_archive_cmds
14779 old_postinstall_cmds=$lt_old_postinstall_cmds
14780 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14782 # Create an old-style archive from a shared archive.
14783 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14785 # Create a temporary old-style archive to link instead of a shared archive.
14786 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14788 # Commands used to build and install a shared archive.
14789 archive_cmds=$lt_archive_cmds
14790 archive_expsym_cmds=$lt_archive_expsym_cmds
14791 postinstall_cmds=$lt_postinstall_cmds
14792 postuninstall_cmds=$lt_postuninstall_cmds
14794 # Commands used to build a loadable module (assumed same as above if empty)
14795 module_cmds=$lt_module_cmds
14796 module_expsym_cmds=$lt_module_expsym_cmds
14798 # Commands to strip libraries.
14799 old_striplib=$lt_old_striplib
14800 striplib=$lt_striplib
14802 # Dependencies to place before the objects being linked to create a
14804 predep_objects=$lt_predep_objects
14806 # Dependencies to place after the objects being linked to create a
14808 postdep_objects=$lt_postdep_objects
14810 # Dependencies to place before the objects being linked to create a
14812 predeps=$lt_predeps
14814 # Dependencies to place after the objects being linked to create a
14816 postdeps=$lt_postdeps
14818 # The library search path used internally by the compiler when linking
14819 # a shared library.
14820 compiler_lib_search_path=$lt_compiler_lib_search_path
14822 # Method to check whether dependent libraries are shared objects.
14823 deplibs_check_method=$lt_deplibs_check_method
14825 # Command to use when deplibs_check_method == file_magic.
14826 file_magic_cmd=$lt_file_magic_cmd
14828 # Flag that allows shared libraries with undefined symbols to be built.
14829 allow_undefined_flag=$lt_allow_undefined_flag
14831 # Flag that forces no undefined symbols.
14832 no_undefined_flag=$lt_no_undefined_flag
14834 # Commands used to finish a libtool library installation in a directory.
14835 finish_cmds=$lt_finish_cmds
14837 # Same as above, but a single script fragment to be evaled but not shown.
14838 finish_eval=$lt_finish_eval
14840 # Take the output of nm and produce a listing of raw symbols and C names.
14841 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14843 # Transform the output of nm in a proper C declaration
14844 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14846 # Transform the output of nm in a C name address pair
14847 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14849 # This is the shared library runtime path variable.
14850 runpath_var=$runpath_var
14852 # This is the shared library path variable.
14853 shlibpath_var=$shlibpath_var
14855 # Is shlibpath searched before the hard-coded library search path?
14856 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14858 # How to hardcode a shared library path into an executable.
14859 hardcode_action=$hardcode_action
14861 # Whether we should hardcode library paths into libraries.
14862 hardcode_into_libs=$hardcode_into_libs
14864 # Flag to hardcode \$libdir into a binary during linking.
14865 # This must work even if \$libdir does not exist.
14866 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14868 # If ld is used when linking, flag to hardcode \$libdir into
14869 # a binary during linking. This must work even if \$libdir does
14871 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14873 # Whether we need a single -rpath flag with a separated argument.
14874 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14876 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14877 # resulting binary.
14878 hardcode_direct=$hardcode_direct
14880 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14881 # resulting binary.
14882 hardcode_minus_L=$hardcode_minus_L
14884 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14885 # the resulting binary.
14886 hardcode_shlibpath_var=$hardcode_shlibpath_var
14888 # Set to yes if building a shared library automatically hardcodes DIR into the library
14889 # and all subsequent libraries and executables linked against it.
14890 hardcode_automatic=$hardcode_automatic
14892 # Variables whose values should be saved in libtool wrapper scripts and
14893 # restored at relink time.
14894 variables_saved_for_relink="$variables_saved_for_relink"
14896 # Whether libtool must link a program against all its dependency libraries.
14897 link_all_deplibs=$link_all_deplibs
14899 # Compile-time system search path for libraries
14900 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14902 # Run-time system search path for libraries
14903 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14905 # Fix the shell variable \$srcfile for the compiler.
14906 fix_srcfile_path="$fix_srcfile_path"
14908 # Set to yes if exported symbols are required.
14909 always_export_symbols=$always_export_symbols
14911 # The commands to list exported symbols.
14912 export_symbols_cmds=$lt_export_symbols_cmds
14914 # The commands to extract the exported symbol list from a shared archive.
14915 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14917 # Symbols that should not be listed in the preloaded symbols.
14918 exclude_expsyms=$lt_exclude_expsyms
14920 # Symbols that must always be exported.
14921 include_expsyms=$lt_include_expsyms
14923 # ### END LIBTOOL CONFIG
14930 cat <<\EOF >> "$cfgfile"
14932 # AIX sometimes has problems with the GCC collect2 program. For some
14933 # reason, if we set the COLLECT_NAMES environment variable, the problems
14934 # vanish in a puff of smoke.
14935 if test "X${COLLECT_NAMES+set}" != Xset; then
14937 export COLLECT_NAMES
14943 # We use sed instead of cat because bash on DJGPP gets confused if
14944 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14945 # text mode, it properly converts lines to CR/LF. This bash problem
14946 # is reportedly fixed, but why not run on old versions too?
14947 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
14949 mv -f "$cfgfile" "$ofile" || \
14950 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14954 # If there is no Makefile yet, we rely on a make rule to execute
14955 # `config.status --recheck' to rerun these tests and create the
14956 # libtool script then.
14957 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14958 if test -f "$ltmain_in"; then
14959 test -f Makefile && make "$ltmain"
14965 ac_cpp='$CPP $CPPFLAGS'
14966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14973 # Check whether --with-tags or --without-tags was given.
14974 if test "${with_tags+set}" = set; then
14975 withval="$with_tags"
14976 tagnames="$withval"
14979 if test -f "$ltmain" && test -n "$tagnames"; then
14980 if test ! -f "${ofile}"; then
14981 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14982 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14985 if test -z "$LTCC"; then
14986 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14987 if test -z "$LTCC"; then
14988 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14989 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14991 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14992 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14996 # Extract list of available tagged configurations in $ofile.
14997 # Note that this assumes the entire list is on one line.
14998 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15000 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15001 for tagname in $tagnames; do
15003 # Check whether tagname contains only valid characters
15004 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15006 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15007 echo "$as_me: error: invalid tag name: $tagname" >&2;}
15008 { (exit 1); exit 1; }; }
15012 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15014 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15015 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15016 { (exit 1); exit 1; }; }
15019 # Update the list of available tags.
15020 if test -n "$tagname"; then
15021 echo appending configuration tag "$tagname" to $ofile
15025 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15026 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15027 (test "X$CXX" != "Xg++"))) ; then
15029 ac_cpp='$CXXCPP $CPPFLAGS'
15030 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15031 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15032 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15037 archive_cmds_need_lc_CXX=no
15038 allow_undefined_flag_CXX=
15039 always_export_symbols_CXX=no
15040 archive_expsym_cmds_CXX=
15041 export_dynamic_flag_spec_CXX=
15042 hardcode_direct_CXX=no
15043 hardcode_libdir_flag_spec_CXX=
15044 hardcode_libdir_flag_spec_ld_CXX=
15045 hardcode_libdir_separator_CXX=
15046 hardcode_minus_L_CXX=no
15047 hardcode_automatic_CXX=no
15049 module_expsym_cmds_CXX=
15050 link_all_deplibs_CXX=unknown
15051 old_archive_cmds_CXX=$old_archive_cmds
15052 no_undefined_flag_CXX=
15053 whole_archive_flag_spec_CXX=
15054 enable_shared_with_static_runtimes_CXX=no
15056 # Dependencies to place before and after the object being linked:
15057 predep_objects_CXX=
15058 postdep_objects_CXX=
15061 compiler_lib_search_path_CXX=
15063 # Source file extension for C++ test sources.
15066 # Object file extension for compiled C++ test sources.
15070 # Code to be used in simple compile tests
15071 lt_simple_compile_test_code="int some_variable = 0;\n"
15073 # Code to be used in simple link tests
15074 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15076 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15078 # If no C compiler was specified, use CC.
15081 # Allow CC to be a program name with arguments.
15085 # Allow CC to be a program name with arguments.
15090 lt_save_with_gnu_ld=$with_gnu_ld
15091 lt_save_path_LD=$lt_cv_path_LD
15092 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15093 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15095 unset lt_cv_prog_gnu_ld
15097 if test -n "${lt_cv_path_LDCXX+set}"; then
15098 lt_cv_path_LD=$lt_cv_path_LDCXX
15100 unset lt_cv_path_LD
15102 test -z "${LDCXX+set}" || LD=$LDCXX
15106 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15108 # We don't want -fno-exception wen compiling C++ code, so set the
15109 # no_builtin_flag separately
15110 if test "$GXX" = yes; then
15111 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15113 lt_prog_compiler_no_builtin_flag_CXX=
15116 if test "$GXX" = yes; then
15117 # Set up default GNU C++ configuration
15120 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15121 if test "${with_gnu_ld+set}" = set; then
15122 withval="$with_gnu_ld"
15123 test "$withval" = no || with_gnu_ld=yes
15128 if test "$GCC" = yes; then
15129 # Check if gcc -print-prog-name=ld gives a path.
15130 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15131 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15134 # gcc leaves a trailing carriage return which upsets mingw
15135 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15137 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15140 # Accept absolute paths.
15142 re_direlt='/[^/][^/]*/\.\./'
15143 # Canonicalize the pathname of ld
15144 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15145 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15146 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15148 test -z "$LD" && LD="$ac_prog"
15151 # If it fails, then pretend we aren't using GCC.
15155 # If it is relative, then search for the first ld in PATH.
15156 with_gnu_ld=unknown
15159 elif test "$with_gnu_ld" = yes; then
15160 echo "$as_me:$LINENO: checking for GNU ld" >&5
15161 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15163 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15164 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15166 if test "${lt_cv_path_LD+set}" = set; then
15167 echo $ECHO_N "(cached) $ECHO_C" >&6
15169 if test -z "$LD"; then
15170 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15171 for ac_dir in $PATH; do
15173 test -z "$ac_dir" && ac_dir=.
15174 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15175 lt_cv_path_LD="$ac_dir/$ac_prog"
15176 # Check to see if the program is GNU ld. I'd rather use --version,
15177 # but apparently some GNU ld's only accept -v.
15178 # Break only if it was the GNU/non-GNU ld that we prefer.
15179 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15180 *GNU* | *'with BFD'*)
15181 test "$with_gnu_ld" != no && break
15184 test "$with_gnu_ld" != yes && break
15191 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15195 LD="$lt_cv_path_LD"
15196 if test -n "$LD"; then
15197 echo "$as_me:$LINENO: result: $LD" >&5
15198 echo "${ECHO_T}$LD" >&6
15200 echo "$as_me:$LINENO: result: no" >&5
15201 echo "${ECHO_T}no" >&6
15203 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15204 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15205 { (exit 1); exit 1; }; }
15206 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15207 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15208 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15209 echo $ECHO_N "(cached) $ECHO_C" >&6
15211 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15212 case `$LD -v 2>&1 </dev/null` in
15213 *GNU* | *'with BFD'*)
15214 lt_cv_prog_gnu_ld=yes
15217 lt_cv_prog_gnu_ld=no
15221 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15222 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15223 with_gnu_ld=$lt_cv_prog_gnu_ld
15227 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15228 # archiving commands below assume that GNU ld is being used.
15229 if test "$with_gnu_ld" = yes; then
15230 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15231 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'
15233 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15234 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15236 # If archive_cmds runs LD, not CC, wlarc should be empty
15237 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15238 # investigate it a little bit more. (MM)
15241 # ancient GNU ld didn't support --whole-archive et. al.
15242 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15243 grep 'no-whole-archive' > /dev/null; then
15244 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15246 whole_archive_flag_spec_CXX=
15252 # A generic and very simple default shared library creation
15253 # command for GNU C++ for the case where it uses the native
15254 # linker, instead of GNU ld. If possible, this setting should
15255 # overridden to take advantage of the native linker features on
15256 # the platform it is being used on.
15257 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15260 # Commands to make compiler produce verbose output that lists
15261 # what "hidden" libraries, object files and flags are used when
15262 # linking a shared library.
15263 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15271 # PORTME: fill in a description of your system's C++ link characteristics
15272 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15273 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15277 # FIXME: insert proper C++ library support
15281 if test "$host_cpu" = ia64; then
15282 # On IA64, the linker does run time linking by default, so we don't
15283 # have to do anything special.
15284 aix_use_runtimelinking=no
15285 exp_sym_flag='-Bexport'
15288 aix_use_runtimelinking=no
15290 # Test if we are trying to use run time linking or normal
15291 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15292 # need to do runtime linking.
15293 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15294 for ld_flag in $LDFLAGS; do
15297 aix_use_runtimelinking=yes
15304 exp_sym_flag='-bexport'
15305 no_entry_flag='-bnoentry'
15308 # When large executables or shared objects are built, AIX ld can
15309 # have problems creating the table of contents. If linking a library
15310 # or program results in "error TOC overflow" add -mminimal-toc to
15311 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15312 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15314 archive_cmds_CXX=''
15315 hardcode_direct_CXX=yes
15316 hardcode_libdir_separator_CXX=':'
15317 link_all_deplibs_CXX=yes
15319 if test "$GXX" = yes; then
15320 case $host_os in aix4.012|aix4.012.*)
15321 # We only want to do this on AIX 4.2 and lower, the check
15322 # below for broken collect2 doesn't work under 4.3+
15323 collect2name=`${CC} -print-prog-name=collect2`
15324 if test -f "$collect2name" && \
15325 strings "$collect2name" | grep resolve_lib_name >/dev/null
15327 # We have reworked collect2
15328 hardcode_direct_CXX=yes
15330 # We have old collect2
15331 hardcode_direct_CXX=unsupported
15332 # It fails to find uninstalled libraries when the uninstalled
15333 # path is not listed in the libpath. Setting hardcode_minus_L
15334 # to unsupported forces relinking
15335 hardcode_minus_L_CXX=yes
15336 hardcode_libdir_flag_spec_CXX='-L$libdir'
15337 hardcode_libdir_separator_CXX=
15340 shared_flag='-shared'
15343 if test "$host_cpu" = ia64; then
15344 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15345 # chokes on -Wl,-G. The following line is correct:
15348 if test "$aix_use_runtimelinking" = yes; then
15349 shared_flag='${wl}-G'
15351 shared_flag='${wl}-bM:SRE'
15356 # It seems that -bexpall does not export symbols beginning with
15357 # underscore (_), so it is better to generate a list of symbols to export.
15358 always_export_symbols_CXX=yes
15359 if test "$aix_use_runtimelinking" = yes; then
15360 # Warning - without using the other runtime loading flags (-brtl),
15361 # -berok will link without error, but may produce a broken library.
15362 allow_undefined_flag_CXX='-berok'
15363 # Determine the default libpath from the value encoded in an empty executable.
15364 cat >conftest.$ac_ext <<_ACEOF
15367 cat confdefs.h >>conftest.$ac_ext
15368 cat >>conftest.$ac_ext <<_ACEOF
15369 /* end confdefs.h. */
15379 rm -f conftest.$ac_objext conftest$ac_exeext
15380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15381 (eval $ac_link) 2>conftest.er1
15383 grep -v '^ *+' conftest.er1 >conftest.err
15385 cat conftest.err >&5
15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); } &&
15388 { ac_try='test -z "$ac_cxx_werror_flag"
15389 || test ! -s conftest.err'
15390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15391 (eval $ac_try) 2>&5
15393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394 (exit $ac_status); }; } &&
15395 { ac_try='test -s conftest$ac_exeext'
15396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15397 (eval $ac_try) 2>&5
15399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400 (exit $ac_status); }; }; then
15402 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15404 # Check for a 64-bit object if we didn't find anything.
15405 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; }
15408 echo "$as_me: failed program was:" >&5
15409 sed 's/^/| /' conftest.$ac_ext >&5
15412 rm -f conftest.err conftest.$ac_objext \
15413 conftest$ac_exeext conftest.$ac_ext
15414 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15416 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15418 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"
15420 if test "$host_cpu" = ia64; then
15421 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15422 allow_undefined_flag_CXX="-z nodefs"
15423 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"
15425 # Determine the default libpath from the value encoded in an empty executable.
15426 cat >conftest.$ac_ext <<_ACEOF
15429 cat confdefs.h >>conftest.$ac_ext
15430 cat >>conftest.$ac_ext <<_ACEOF
15431 /* end confdefs.h. */
15441 rm -f conftest.$ac_objext conftest$ac_exeext
15442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15443 (eval $ac_link) 2>conftest.er1
15445 grep -v '^ *+' conftest.er1 >conftest.err
15447 cat conftest.err >&5
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); } &&
15450 { ac_try='test -z "$ac_cxx_werror_flag"
15451 || test ! -s conftest.err'
15452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15453 (eval $ac_try) 2>&5
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); }; } &&
15457 { ac_try='test -s conftest$ac_exeext'
15458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15459 (eval $ac_try) 2>&5
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); }; }; then
15464 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15466 # Check for a 64-bit object if we didn't find anything.
15467 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; }
15470 echo "$as_me: failed program was:" >&5
15471 sed 's/^/| /' conftest.$ac_ext >&5
15474 rm -f conftest.err conftest.$ac_objext \
15475 conftest$ac_exeext conftest.$ac_ext
15476 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15478 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15479 # Warning - without using the other run time loading flags,
15480 # -berok will link without error, but may produce a broken library.
15481 no_undefined_flag_CXX=' ${wl}-bernotok'
15482 allow_undefined_flag_CXX=' ${wl}-berok'
15483 # -bexpall does not export symbols beginning with underscore (_)
15484 always_export_symbols_CXX=yes
15485 # Exported symbols can be pulled into shared objects from archives
15486 whole_archive_flag_spec_CXX=' '
15487 archive_cmds_need_lc_CXX=yes
15488 # This is similar to how AIX traditionally builds it's shared libraries.
15489 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'
15494 case $cc_basename in
15496 # FIXME: insert proper C++ library support
15503 cygwin* | mingw* | pw32*)
15504 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15505 # as there is no search path for DLLs.
15506 hardcode_libdir_flag_spec_CXX='-L$libdir'
15507 allow_undefined_flag_CXX=unsupported
15508 always_export_symbols_CXX=no
15509 enable_shared_with_static_runtimes_CXX=yes
15511 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15512 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'
15513 # If the export-symbols file already is a .def file (1st line
15514 # is EXPORTS), use it as is; otherwise, prepend...
15515 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15516 cp $export_symbols $output_objdir/$soname.def;
15518 echo EXPORTS > $output_objdir/$soname.def;
15519 cat $export_symbols >> $output_objdir/$soname.def;
15521 $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'
15526 darwin* | rhapsody*)
15528 rhapsody* | darwin1.[012])
15529 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15532 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15533 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15535 case ${MACOSX_DEPLOYMENT_TARGET} in
15537 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15540 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15546 archive_cmds_need_lc_CXX=no
15547 hardcode_direct_CXX=no
15548 hardcode_automatic_CXX=yes
15549 hardcode_shlibpath_var_CXX=unsupported
15550 whole_archive_flag_spec_CXX=''
15551 link_all_deplibs_CXX=yes
15553 if test "$GXX" = yes ; then
15554 lt_int_apple_cc_single_mod=no
15555 output_verbose_link_cmd='echo'
15556 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15557 lt_int_apple_cc_single_mod=yes
15559 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15560 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15562 archive_cmds_CXX='$CC -r -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'
15564 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15565 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15566 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15567 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}'
15569 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -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}'
15571 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15573 case "$cc_basename" in
15575 output_verbose_link_cmd='echo'
15576 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15577 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15578 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15579 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15580 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15590 case $cc_basename in
15592 # FIXME: insert proper C++ library support
15596 # Green Hills C++ Compiler
15597 # FIXME: insert proper C++ library support
15601 # FIXME: insert proper C++ library support
15607 # C++ shared libraries reported to be fairly broken before switch to ELF
15611 archive_cmds_need_lc_CXX=no
15613 freebsd* | kfreebsd*-gnu)
15614 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15621 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15622 hardcode_libdir_separator_CXX=:
15623 export_dynamic_flag_spec_CXX='${wl}-E'
15624 hardcode_direct_CXX=yes
15625 hardcode_minus_L_CXX=yes # Not in the search PATH,
15626 # but as the default
15627 # location of the library.
15629 case $cc_basename in
15631 # FIXME: insert proper C++ library support
15635 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'
15636 # Commands to make compiler produce verbose output that lists
15637 # what "hidden" libraries, object files and flags are used when
15638 # linking a shared library.
15640 # There doesn't appear to be a way to prevent this compiler from
15641 # explicitly linking system object files so we need to strip them
15642 # from the output so that they don't get included in the library
15644 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'
15647 if test "$GXX" = yes; then
15648 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'
15650 # FIXME: insert proper C++ library support
15657 if test $with_gnu_ld = no; then
15658 case "$host_cpu" in
15660 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15661 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15662 hardcode_libdir_separator_CXX=:
15665 hardcode_libdir_flag_spec_CXX='-L$libdir'
15668 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15669 hardcode_libdir_separator_CXX=:
15670 export_dynamic_flag_spec_CXX='${wl}-E'
15674 case "$host_cpu" in
15676 hardcode_direct_CXX=no
15677 hardcode_shlibpath_var_CXX=no
15680 hardcode_direct_CXX=no
15681 hardcode_shlibpath_var_CXX=no
15682 hardcode_minus_L_CXX=yes # Not in the search PATH,
15683 # but as the default
15684 # location of the library.
15687 hardcode_direct_CXX=yes
15688 hardcode_minus_L_CXX=yes # Not in the search PATH,
15689 # but as the default
15690 # location of the library.
15694 case $cc_basename in
15696 # FIXME: insert proper C++ library support
15700 case "$host_cpu" in
15702 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15705 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15708 # Commands to make compiler produce verbose output that lists
15709 # what "hidden" libraries, object files and flags are used when
15710 # linking a shared library.
15712 # There doesn't appear to be a way to prevent this compiler from
15713 # explicitly linking system object files so we need to strip them
15714 # from the output so that they don't get included in the library
15716 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'
15719 if test "$GXX" = yes; then
15720 if test $with_gnu_ld = no; then
15721 case "$host_cpu" in
15723 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15726 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'
15731 # FIXME: insert proper C++ library support
15738 case $cc_basename in
15741 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'
15743 # Archives containing C++ object files must be created using
15744 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15745 # necessary to make sure instantiated templates are included
15747 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15750 if test "$GXX" = yes; then
15751 if test "$with_gnu_ld" = no; then
15752 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'
15754 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'
15757 link_all_deplibs_CXX=yes
15760 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15761 hardcode_libdir_separator_CXX=:
15764 case $cc_basename in
15766 # Kuck and Associates, Inc. (KAI) C++ Compiler
15768 # KCC will only create a shared library if the output file
15769 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15770 # to its proper name (with version) after linking.
15771 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'
15772 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'
15773 # Commands to make compiler produce verbose output that lists
15774 # what "hidden" libraries, object files and flags are used when
15775 # linking a shared library.
15777 # There doesn't appear to be a way to prevent this compiler from
15778 # explicitly linking system object files so we need to strip them
15779 # from the output so that they don't get included in the library
15781 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'
15783 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15784 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15786 # Archives containing C++ object files must be created using
15787 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15788 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15793 # version 8.0 and above of icpc choke on multiply defined symbols
15794 # if we add $predep_objects and $postdep_objects, however 7.1 and
15795 # earlier do not add the objects themselves.
15796 case `$CC -V 2>&1` in
15798 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15799 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'
15801 *) # Version 8.0 or newer
15802 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15803 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15806 archive_cmds_need_lc_CXX=no
15807 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15808 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15809 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15813 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15814 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'
15816 runpath_var=LD_RUN_PATH
15817 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15818 hardcode_libdir_separator_CXX=:
15820 # Commands to make compiler produce verbose output that lists
15821 # what "hidden" libraries, object files and flags are used when
15822 # linking a shared library.
15824 # There doesn't appear to be a way to prevent this compiler from
15825 # explicitly linking system object files so we need to strip them
15826 # from the output so that they don't get included in the library
15828 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'
15833 # FIXME: insert proper C++ library support
15837 # FIXME: insert proper C++ library support
15841 case $cc_basename in
15843 # FIXME: insert proper C++ library support
15847 # FIXME: insert proper C++ library support
15853 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15854 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15856 hardcode_libdir_flag_spec_CXX='-R$libdir'
15857 hardcode_direct_CXX=yes
15858 hardcode_shlibpath_var_CXX=no
15860 # Workaround some broken pre-1.5 toolchains
15861 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15864 # C++ shared libraries are fairly broken
15868 hardcode_direct_CXX=yes
15869 hardcode_shlibpath_var_CXX=no
15870 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15871 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15872 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15873 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15874 export_dynamic_flag_spec_CXX='${wl}-E'
15875 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15877 output_verbose_link_cmd='echo'
15880 case $cc_basename in
15882 # Kuck and Associates, Inc. (KAI) C++ Compiler
15884 # KCC will only create a shared library if the output file
15885 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15886 # to its proper name (with version) after linking.
15887 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'
15889 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15890 hardcode_libdir_separator_CXX=:
15892 # Archives containing C++ object files must be created using
15893 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15894 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15898 # Rational C++ 2.4.1
15899 # FIXME: insert proper C++ library support
15903 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15904 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'
15906 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15907 hardcode_libdir_separator_CXX=:
15909 # Commands to make compiler produce verbose output that lists
15910 # what "hidden" libraries, object files and flags are used when
15911 # linking a shared library.
15913 # There doesn't appear to be a way to prevent this compiler from
15914 # explicitly linking system object files so we need to strip them
15915 # from the output so that they don't get included in the library
15917 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'
15920 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15921 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15922 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'
15924 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15925 hardcode_libdir_separator_CXX=:
15927 # Commands to make compiler produce verbose output that lists
15928 # what "hidden" libraries, object files and flags are used when
15929 # linking a shared library.
15930 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15933 # FIXME: insert proper C++ library support
15940 case $cc_basename in
15942 # Kuck and Associates, Inc. (KAI) C++ Compiler
15944 # KCC will only create a shared library if the output file
15945 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15946 # to its proper name (with version) after linking.
15947 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'
15949 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15950 hardcode_libdir_separator_CXX=:
15952 # Archives containing C++ object files must be created using
15953 # the KAI C++ compiler.
15954 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15957 # Rational C++ 2.4.1
15958 # FIXME: insert proper C++ library support
15962 allow_undefined_flag_CXX=' -expect_unresolved \*'
15963 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'
15964 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15965 echo "-hidden">> $lib.exp~
15966 $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~
15969 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15970 hardcode_libdir_separator_CXX=:
15972 # Commands to make compiler produce verbose output that lists
15973 # what "hidden" libraries, object files and flags are used when
15974 # linking a shared library.
15976 # There doesn't appear to be a way to prevent this compiler from
15977 # explicitly linking system object files so we need to strip them
15978 # from the output so that they don't get included in the library
15980 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'
15983 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15984 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15985 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'
15987 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15988 hardcode_libdir_separator_CXX=:
15990 # Commands to make compiler produce verbose output that lists
15991 # what "hidden" libraries, object files and flags are used when
15992 # linking a shared library.
15993 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15996 # FIXME: insert proper C++ library support
16003 # FIXME: insert proper C++ library support
16007 archive_cmds_need_lc_CXX=no
16008 case $cc_basename in
16010 # FIXME: insert proper C++ library support
16014 # FIXME: insert proper C++ library support
16020 case $cc_basename in
16023 # FIXME: insert proper C++ library support
16028 # FIXME: insert proper C++ library support
16032 # FIXME: insert proper C++ library support
16038 case $cc_basename in
16040 # Sun C++ 4.2, 5.x and Centerline C++
16041 no_undefined_flag_CXX=' -zdefs'
16042 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16043 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16044 $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'
16046 hardcode_libdir_flag_spec_CXX='-R$libdir'
16047 hardcode_shlibpath_var_CXX=no
16049 solaris2.0-5 | solaris2.0-5.*) ;;
16051 # The C++ compiler is used as linker so we must use $wl
16052 # flag to pass the commands to the underlying system
16054 # Supported since Solaris 2.6 (maybe 2.5.1?)
16055 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16058 link_all_deplibs_CXX=yes
16060 # Commands to make compiler produce verbose output that lists
16061 # what "hidden" libraries, object files and flags are used when
16062 # linking a shared library.
16064 # There doesn't appear to be a way to prevent this compiler from
16065 # explicitly linking system object files so we need to strip them
16066 # from the output so that they don't get included in the library
16068 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'
16070 # Archives containing C++ object files must be created using
16071 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16072 # necessary to make sure instantiated templates are included
16074 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16077 # Green Hills C++ Compiler
16078 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16080 # The C++ compiler must be used to create the archive.
16081 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16084 # GNU C++ compiler with Solaris linker
16085 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16086 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16087 if $CC --version | grep -v '^2\.7' > /dev/null; then
16088 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16089 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16090 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16092 # Commands to make compiler produce verbose output that lists
16093 # what "hidden" libraries, object files and flags are used when
16094 # linking a shared library.
16095 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16097 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16099 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16100 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16101 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16103 # Commands to make compiler produce verbose output that lists
16104 # what "hidden" libraries, object files and flags are used when
16105 # linking a shared library.
16106 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16109 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16114 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16115 archive_cmds_need_lc_CXX=no
16118 case $cc_basename in
16120 # NonStop-UX NCC 3.20
16121 # FIXME: insert proper C++ library support
16125 # FIXME: insert proper C++ library support
16131 # FIXME: insert proper C++ library support
16135 # FIXME: insert proper C++ library support
16139 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16140 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16141 test "$ld_shlibs_CXX" = no && can_build_shared=no
16147 cat > conftest.$ac_ext <<EOF
16151 Foo (void) { a = 0; }
16157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16158 (eval $ac_compile) 2>&5
16160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161 (exit $ac_status); }; then
16162 # Parse the compiler output and extract the necessary
16163 # objects, libraries and library flags.
16165 # Sentinel used to keep track of whether or not we are before
16166 # the conftest object file.
16167 pre_test_object_deps_done=no
16169 # The `*' in the case matches for architectures that use `case' in
16170 # $output_verbose_cmd can trigger glob expansion during the loop
16171 # eval without this substitution.
16172 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16174 for p in `eval $output_verbose_link_cmd`; do
16178 # Some compilers place space between "-{L,R}" and the path.
16179 # Remove the space.
16180 if test $p = "-L" \
16181 || test $p = "-R"; then
16188 if test "$pre_test_object_deps_done" = no; then
16191 # Internal compiler library paths should come after those
16192 # provided the user. The postdeps already come after the
16193 # user supplied libs so there is no need to process them.
16194 if test -z "$compiler_lib_search_path_CXX"; then
16195 compiler_lib_search_path_CXX="${prev}${p}"
16197 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16200 # The "-l" case would never come before the object being
16201 # linked, so don't bother handling this case.
16204 if test -z "$postdeps_CXX"; then
16205 postdeps_CXX="${prev}${p}"
16207 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16213 # This assumes that the test object file only shows up
16214 # once in the compiler output.
16215 if test "$p" = "conftest.$objext"; then
16216 pre_test_object_deps_done=yes
16220 if test "$pre_test_object_deps_done" = no; then
16221 if test -z "$predep_objects_CXX"; then
16222 predep_objects_CXX="$p"
16224 predep_objects_CXX="$predep_objects_CXX $p"
16227 if test -z "$postdep_objects_CXX"; then
16228 postdep_objects_CXX="$p"
16230 postdep_objects_CXX="$postdep_objects_CXX $p"
16235 *) ;; # Ignore the rest.
16243 echo "libtool.m4: error: problem compiling CXX test program"
16246 $rm -f confest.$objext
16248 case " $postdeps_CXX " in
16249 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16252 lt_prog_compiler_wl_CXX=
16253 lt_prog_compiler_pic_CXX=
16254 lt_prog_compiler_static_CXX=
16256 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16257 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16259 # C++ specific cases for pic, static, wl, etc.
16260 if test "$GXX" = yes; then
16261 lt_prog_compiler_wl_CXX='-Wl,'
16262 lt_prog_compiler_static_CXX='-static'
16266 # All AIX code is PIC.
16267 if test "$host_cpu" = ia64; then
16268 # AIX 5 now supports IA64 processor
16269 lt_prog_compiler_static_CXX='-Bstatic'
16273 # FIXME: we need at least 68020 code to build shared libraries, but
16274 # adding the `-m68020' flag to GCC prevents building anything better,
16276 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16278 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16279 # PIC is the default for these OSes.
16281 mingw* | os2* | pw32*)
16282 # This hack is so that the source file can tell whether it is being
16283 # built for inclusion in a dll (and should export symbols for example).
16284 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16286 darwin* | rhapsody*)
16287 # PIC is the default on this platform
16288 # Common symbols not allowed in MH_DYLIB files
16289 lt_prog_compiler_pic_CXX='-fno-common'
16292 # DJGPP does not support shared libraries at all
16293 lt_prog_compiler_pic_CXX=
16296 if test -d /usr/nec; then
16297 lt_prog_compiler_pic_CXX=-Kconform_pic
16301 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16302 # not for PA HP-UX.
16303 case "$host_cpu" in
16307 lt_prog_compiler_pic_CXX='-fPIC'
16312 lt_prog_compiler_pic_CXX='-fPIC'
16318 # All AIX code is PIC.
16319 if test "$host_cpu" = ia64; then
16320 # AIX 5 now supports IA64 processor
16321 lt_prog_compiler_static_CXX='-Bstatic'
16323 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16327 case $cc_basename in
16329 # Green Hills C++ Compiler
16330 # _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"
16335 # PIC is the default on this platform
16336 # Common symbols not allowed in MH_DYLIB files
16337 case "$cc_basename" in
16339 lt_prog_compiler_pic_CXX='-qnocommon'
16340 lt_prog_compiler_wl_CXX='-Wl,'
16345 case $cc_basename in
16347 lt_prog_compiler_pic_CXX='-KPIC'
16350 # Green Hills C++ Compiler
16351 lt_prog_compiler_pic_CXX='-pic'
16357 freebsd* | kfreebsd*-gnu)
16358 # FreeBSD uses GNU C++
16360 hpux9* | hpux10* | hpux11*)
16361 case $cc_basename in
16363 lt_prog_compiler_wl_CXX='-Wl,'
16364 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16365 if test "$host_cpu" != ia64; then
16366 lt_prog_compiler_pic_CXX='+Z'
16370 lt_prog_compiler_wl_CXX='-Wl,'
16371 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16372 case "$host_cpu" in
16377 lt_prog_compiler_pic_CXX='+Z'
16385 irix5* | irix6* | nonstopux*)
16386 case $cc_basename in
16388 lt_prog_compiler_wl_CXX='-Wl,'
16389 lt_prog_compiler_static_CXX='-non_shared'
16390 # CC pic flag -KPIC is the default.
16397 case $cc_basename in
16400 lt_prog_compiler_wl_CXX='--backend -Wl,'
16401 lt_prog_compiler_pic_CXX='-fPIC'
16405 lt_prog_compiler_wl_CXX='-Wl,'
16406 lt_prog_compiler_pic_CXX='-KPIC'
16407 lt_prog_compiler_static_CXX='-static'
16411 # Make sure the PIC flag is empty. It appears that all Alpha
16412 # Linux and Compaq Tru64 Unix objects are PIC.
16413 lt_prog_compiler_pic_CXX=
16414 lt_prog_compiler_static_CXX='-non_shared'
16425 case $cc_basename in
16427 lt_prog_compiler_pic_CXX='-W c,exportall'
16435 osf3* | osf4* | osf5*)
16436 case $cc_basename in
16438 lt_prog_compiler_wl_CXX='--backend -Wl,'
16441 # Rational C++ 2.4.1
16442 lt_prog_compiler_pic_CXX='-pic'
16445 # Digital/Compaq C++
16446 lt_prog_compiler_wl_CXX='-Wl,'
16447 # Make sure the PIC flag is empty. It appears that all Alpha
16448 # Linux and Compaq Tru64 Unix objects are PIC.
16449 lt_prog_compiler_pic_CXX=
16450 lt_prog_compiler_static_CXX='-non_shared'
16459 case $cc_basename in
16461 lt_prog_compiler_pic_CXX='-fPIC'
16468 case $cc_basename in
16470 # Sun C++ 4.2, 5.x and Centerline C++
16471 lt_prog_compiler_pic_CXX='-KPIC'
16472 lt_prog_compiler_static_CXX='-Bstatic'
16473 lt_prog_compiler_wl_CXX='-Qoption ld '
16476 # Green Hills C++ Compiler
16477 lt_prog_compiler_pic_CXX='-PIC'
16484 case $cc_basename in
16487 lt_prog_compiler_pic_CXX='-pic'
16488 lt_prog_compiler_static_CXX='-Bstatic'
16492 lt_prog_compiler_pic_CXX='-pic'
16499 case $cc_basename in
16501 # NonStop-UX NCC 3.20
16502 lt_prog_compiler_pic_CXX='-KPIC'
16513 lt_prog_compiler_can_build_shared_CXX=no
16518 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16519 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16522 # Check to make sure the PIC flag actually works.
16524 if test -n "$lt_prog_compiler_pic_CXX"; then
16526 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16527 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16528 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16529 echo $ECHO_N "(cached) $ECHO_C" >&6
16531 lt_prog_compiler_pic_works_CXX=no
16532 ac_outfile=conftest.$ac_objext
16533 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16534 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16535 # Insert the option either (1) after the last *FLAGS variable, or
16536 # (2) before a word containing "conftest.", or (3) at the end.
16537 # Note that $ac_compile itself does not contain backslashes and begins
16538 # with a dollar sign (not a hyphen), so the echo should work correctly.
16539 # The option is referenced via a variable to avoid confusing sed.
16540 lt_compile=`echo "$ac_compile" | $SED \
16541 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16542 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16543 -e 's:$: $lt_compiler_flag:'`
16544 (eval echo "\"\$as_me:16544: $lt_compile\"" >&5)
16545 (eval "$lt_compile" 2>conftest.err)
16547 cat conftest.err >&5
16548 echo "$as_me:16548: \$? = $ac_status" >&5
16549 if (exit $ac_status) && test -s "$ac_outfile"; then
16550 # The compiler can only warn and ignore the option if not recognized
16551 # So say no if there are warnings
16552 if test ! -s conftest.err; then
16553 lt_prog_compiler_pic_works_CXX=yes
16559 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16560 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16562 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16563 case $lt_prog_compiler_pic_CXX in
16565 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16568 lt_prog_compiler_pic_CXX=
16569 lt_prog_compiler_can_build_shared_CXX=no
16574 # For platforms which do not support PIC, -DPIC is meaningless:
16576 lt_prog_compiler_pic_CXX=
16579 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16583 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16584 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16585 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16586 echo $ECHO_N "(cached) $ECHO_C" >&6
16588 lt_cv_prog_compiler_c_o_CXX=no
16589 $rm -r conftest 2>/dev/null
16593 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16595 lt_compiler_flag="-o out/conftest2.$ac_objext"
16596 # Insert the option either (1) after the last *FLAGS variable, or
16597 # (2) before a word containing "conftest.", or (3) at the end.
16598 # Note that $ac_compile itself does not contain backslashes and begins
16599 # with a dollar sign (not a hyphen), so the echo should work correctly.
16600 lt_compile=`echo "$ac_compile" | $SED \
16601 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16602 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16603 -e 's:$: $lt_compiler_flag:'`
16604 (eval echo "\"\$as_me:16604: $lt_compile\"" >&5)
16605 (eval "$lt_compile" 2>out/conftest.err)
16607 cat out/conftest.err >&5
16608 echo "$as_me:16608: \$? = $ac_status" >&5
16609 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16611 # The compiler can only warn and ignore the option if not recognized
16612 # So say no if there are warnings
16613 if test ! -s out/conftest.err; then
16614 lt_cv_prog_compiler_c_o_CXX=yes
16619 # SGI C++ compiler will create directory out/ii_files/ for
16620 # template instantiation
16621 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16622 $rm out/* && rmdir out
16628 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16629 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16632 hard_links="nottested"
16633 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16634 # do not overwrite the value of need_locks provided by the user
16635 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16636 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16639 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16641 ln conftest.a conftest.b 2>&5 || hard_links=no
16642 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16643 echo "$as_me:$LINENO: result: $hard_links" >&5
16644 echo "${ECHO_T}$hard_links" >&6
16645 if test "$hard_links" = no; then
16646 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16647 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16654 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16655 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16657 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16660 # If we're using GNU nm, then we don't want the "-C" option.
16661 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16662 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16663 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'
16665 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'
16669 export_symbols_cmds_CXX="$ltdll_cmds"
16672 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16675 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16679 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16680 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16681 test "$ld_shlibs_CXX" = no && can_build_shared=no
16683 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16684 if test "$GCC" = yes; then
16685 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16689 # Do we need to explicitly link libc?
16691 case "x$archive_cmds_need_lc_CXX" in
16693 # Assume -lc should be added
16694 archive_cmds_need_lc_CXX=yes
16696 if test "$enable_shared" = yes && test "$GCC" = yes; then
16697 case $archive_cmds_CXX in
16699 # FIXME: we may have to deal with multi-command sequences.
16702 # Test whether the compiler implicitly links with -lc since on some
16703 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16704 # to ld, don't add -lc before -lgcc.
16705 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16706 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16708 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16711 (eval $ac_compile) 2>&5
16713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); } 2>conftest.err; then
16717 libobjs=conftest.$ac_objext
16719 wl=$lt_prog_compiler_wl_CXX
16725 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16726 allow_undefined_flag_CXX=
16727 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16728 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); }
16733 archive_cmds_need_lc_CXX=no
16735 archive_cmds_need_lc_CXX=yes
16737 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16739 cat conftest.err 1>&5
16742 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16743 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16750 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16751 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16752 library_names_spec=
16753 libname_spec='lib$name'
16757 postuninstall_cmds=
16761 shlibpath_overrides_runpath=unknown
16763 dynamic_linker="$host_os ld.so"
16764 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16765 if test "$GCC" = yes; then
16766 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16767 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16768 # if the path contains ";" then we assume it to be the separator
16769 # otherwise default to the standard path separator (i.e. ":") - it is
16770 # assumed that no part of a normal pathname contains ";" but that should
16771 # okay in the real world where ";" in dirpaths is itself problematic.
16772 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16774 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16777 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16779 need_lib_prefix=unknown
16780 hardcode_into_libs=no
16782 # when you set need_version to no, make sure it does not cause -set_version
16783 # flags to be left without arguments
16784 need_version=unknown
16789 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16790 shlibpath_var=LIBPATH
16792 # AIX 3 has no versioning support, so we append a major version to the name.
16793 soname_spec='${libname}${release}${shared_ext}$major'
16800 hardcode_into_libs=yes
16801 if test "$host_cpu" = ia64; then
16802 # AIX 5 supports IA64
16803 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16804 shlibpath_var=LD_LIBRARY_PATH
16806 # With GCC up to 2.95.x, collect2 would create an import file
16807 # for dependence libraries. The import file would start with
16808 # the line `#! .'. This would cause the generated library to
16809 # depend on `.', always an invalid library. This was fixed in
16810 # development snapshots of GCC prior to 3.0.
16812 aix4 | aix4.[01] | aix4.[01].*)
16813 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16815 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16818 can_build_shared=no
16822 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16823 # soname into executable. Probably we can add versioning support to
16824 # collect2, so additional links can be useful in future.
16825 if test "$aix_use_runtimelinking" = yes; then
16826 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16827 # instead of lib<name>.a to let people know that these are not
16828 # typical AIX shared libraries.
16829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16831 # We preserve .a as extension for shared libraries through AIX4.2
16832 # and later when we are not doing run time linking.
16833 library_names_spec='${libname}${release}.a $libname.a'
16834 soname_spec='${libname}${release}${shared_ext}$major'
16836 shlibpath_var=LIBPATH
16841 library_names_spec='$libname.ixlibrary $libname.a'
16842 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16843 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'
16847 library_names_spec='${libname}${shared_ext}'
16848 dynamic_linker="$host_os ld.so"
16849 shlibpath_var=LIBRARY_PATH
16855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16856 soname_spec='${libname}${release}${shared_ext}$major'
16857 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16858 shlibpath_var=LD_LIBRARY_PATH
16859 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16860 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16861 # the default ld.so.conf also contains /usr/contrib/lib and
16862 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16863 # libtool to hard-code these into programs
16866 cygwin* | mingw* | pw32*)
16867 version_type=windows
16872 case $GCC,$host_os in
16873 yes,cygwin* | yes,mingw* | yes,pw32*)
16874 library_names_spec='$libname.dll.a'
16875 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16876 postinstall_cmds='base_file=`basename \${file}`~
16877 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16878 dldir=$destdir/`dirname \$dlpath`~
16879 test -d \$dldir || mkdir -p \$dldir~
16880 $install_prog $dir/$dlname \$dldir/$dlname'
16881 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16882 dlpath=$dir/\$dldll~
16884 shlibpath_overrides_runpath=yes
16888 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16889 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16890 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16893 # MinGW DLLs use traditional 'lib' prefix
16894 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16895 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16896 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16897 # It is most probably a Windows format PATH printed by
16898 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16899 # path with ; separators, and with drive letters. We can handle the
16900 # drive letters (cygwin fileutils understands them), so leave them,
16901 # especially as we might pass files found there to a mingw objdump,
16902 # which wouldn't understand a cygwinified path. Ahh.
16903 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16905 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16909 # pw32 DLLs use 'pw' prefix rather than 'lib'
16910 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16916 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16919 dynamic_linker='Win32 ld.exe'
16920 # FIXME: first we should search . and the directory the executable is in
16924 darwin* | rhapsody*)
16925 dynamic_linker="$host_os dyld"
16926 version_type=darwin
16929 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16930 soname_spec='${libname}${release}${major}$shared_ext'
16931 shlibpath_overrides_runpath=yes
16932 shlibpath_var=DYLD_LIBRARY_PATH
16933 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16934 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16935 if test "$GCC" = yes; then
16936 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"`
16938 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16940 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16948 soname_spec='${libname}${release}${shared_ext}$major'
16949 shlibpath_var=LD_LIBRARY_PATH
16960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16961 soname_spec='${libname}${release}${shared_ext}$major'
16962 shlibpath_var=LD_LIBRARY_PATH
16963 shlibpath_overrides_runpath=no
16964 hardcode_into_libs=yes
16965 dynamic_linker='GNU ld.so'
16969 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16970 version_type=freebsd-$objformat
16971 case $version_type in
16973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16978 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16982 shlibpath_var=LD_LIBRARY_PATH
16985 shlibpath_overrides_runpath=yes
16987 freebsd3.01* | freebsdelf3.01*)
16988 shlibpath_overrides_runpath=yes
16989 hardcode_into_libs=yes
16992 shlibpath_overrides_runpath=no
16993 hardcode_into_libs=yes
17002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17003 soname_spec='${libname}${release}${shared_ext}$major'
17004 shlibpath_var=LD_LIBRARY_PATH
17005 hardcode_into_libs=yes
17008 hpux9* | hpux10* | hpux11*)
17009 # Give a soname corresponding to the major version so that dld.sl refuses to
17010 # link against other versions.
17014 case "$host_cpu" in
17017 hardcode_into_libs=yes
17018 dynamic_linker="$host_os dld.so"
17019 shlibpath_var=LD_LIBRARY_PATH
17020 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17022 soname_spec='${libname}${release}${shared_ext}$major'
17023 if test "X$HPUX_IA64_MODE" = X32; then
17024 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17026 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17028 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17032 hardcode_into_libs=yes
17033 dynamic_linker="$host_os dld.sl"
17034 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17035 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17037 soname_spec='${libname}${release}${shared_ext}$major'
17038 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17039 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17043 dynamic_linker="$host_os dld.sl"
17044 shlibpath_var=SHLIB_PATH
17045 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17047 soname_spec='${libname}${release}${shared_ext}$major'
17050 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17051 postinstall_cmds='chmod 555 $lib'
17054 irix5* | irix6* | nonstopux*)
17056 nonstopux*) version_type=nonstopux ;;
17058 if test "$lt_cv_prog_gnu_ld" = yes; then
17066 soname_spec='${libname}${release}${shared_ext}$major'
17067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17069 irix5* | nonstopux*)
17070 libsuff= shlibsuff=
17073 case $LD in # libtool.m4 will add one of these switches to LD
17074 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17075 libsuff= shlibsuff= libmagic=32-bit;;
17076 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17077 libsuff=32 shlibsuff=N32 libmagic=N32;;
17078 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17079 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17080 *) libsuff= shlibsuff= libmagic=never-match;;
17084 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17085 shlibpath_overrides_runpath=no
17086 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17087 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17088 hardcode_into_libs=yes
17091 # No shared lib support for Linux oldld, aout, or coff.
17092 linux*oldld* | linux*aout* | linux*coff*)
17096 # This must be Linux ELF.
17101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17102 soname_spec='${libname}${release}${shared_ext}$major'
17103 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17104 shlibpath_var=LD_LIBRARY_PATH
17105 shlibpath_overrides_runpath=no
17106 # This implies no fast_install, which is unacceptable.
17107 # Some rework will be needed to allow for fast_install
17108 # before this can be enabled.
17109 hardcode_into_libs=yes
17111 # Append ld.so.conf contents to the search path
17112 if test -f /etc/ld.so.conf; then
17113 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17114 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17117 # We used to test for /lib/ld.so.1 and disable shared libraries on
17118 # powerpc, because MkLinux only supported shared libraries with the
17119 # GNU dynamic linker. Since this was broken with cross compilers,
17120 # most powerpc-linux boxes support dynamic linking these days and
17121 # people can always --disable-shared, the test was removed, and we
17122 # assume the GNU/Linux dynamic linker is in use.
17123 dynamic_linker='GNU/Linux ld.so'
17130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17131 soname_spec='${libname}${release}${shared_ext}$major'
17132 shlibpath_var=LD_LIBRARY_PATH
17133 shlibpath_overrides_runpath=no
17134 hardcode_into_libs=yes
17135 dynamic_linker='GNU ld.so'
17142 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17144 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17145 dynamic_linker='NetBSD (a.out) ld.so'
17147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17148 soname_spec='${libname}${release}${shared_ext}$major'
17149 dynamic_linker='NetBSD ld.elf_so'
17151 shlibpath_var=LD_LIBRARY_PATH
17152 shlibpath_overrides_runpath=yes
17153 hardcode_into_libs=yes
17158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17159 shlibpath_var=LD_LIBRARY_PATH
17160 shlibpath_overrides_runpath=yes
17167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17168 soname_spec='${libname}${release}${shared_ext}$major'
17169 shlibpath_var=LD_LIBRARY_PATH
17170 shlibpath_overrides_runpath=yes
17177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17178 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17179 shlibpath_var=LD_LIBRARY_PATH
17180 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17182 openbsd2.[89] | openbsd2.[89].*)
17183 shlibpath_overrides_runpath=no
17186 shlibpath_overrides_runpath=yes
17190 shlibpath_overrides_runpath=yes
17195 libname_spec='$name'
17198 library_names_spec='$libname${shared_ext} $libname.a'
17199 dynamic_linker='OS/2 ld.exe'
17200 shlibpath_var=LIBPATH
17203 osf3* | osf4* | osf5*)
17207 soname_spec='${libname}${release}${shared_ext}$major'
17208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17209 shlibpath_var=LD_LIBRARY_PATH
17210 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17211 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17216 soname_spec='${libname}${release}${shared_ext}$major'
17217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17218 shlibpath_var=LD_LIBRARY_PATH
17225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17226 soname_spec='${libname}${release}${shared_ext}$major'
17227 shlibpath_var=LD_LIBRARY_PATH
17228 shlibpath_overrides_runpath=yes
17229 hardcode_into_libs=yes
17230 # ldd complains unless libraries are executable
17231 postinstall_cmds='chmod +x $lib'
17236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17237 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17238 shlibpath_var=LD_LIBRARY_PATH
17239 shlibpath_overrides_runpath=yes
17240 if test "$with_gnu_ld" = yes; then
17246 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17249 soname_spec='${libname}${release}${shared_ext}$major'
17250 shlibpath_var=LD_LIBRARY_PATH
17251 case $host_vendor in
17253 shlibpath_overrides_runpath=no
17255 export_dynamic_flag_spec='${wl}-Blargedynsym'
17256 runpath_var=LD_RUN_PATH
17264 shlibpath_overrides_runpath=no
17265 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17271 if test -d /usr/nec ;then
17273 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17274 soname_spec='$libname${shared_ext}.$major'
17275 shlibpath_var=LD_LIBRARY_PATH
17281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17282 soname_spec='${libname}${release}${shared_ext}$major'
17283 shlibpath_var=LD_LIBRARY_PATH
17290 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17291 echo "${ECHO_T}$dynamic_linker" >&6
17292 test "$dynamic_linker" = no && can_build_shared=no
17294 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17295 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17296 hardcode_action_CXX=
17297 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17298 test -n "$runpath_var_CXX" || \
17299 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17301 # We can hardcode non-existant directories.
17302 if test "$hardcode_direct_CXX" != no &&
17303 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17304 # have to relink, otherwise we might link with an installed library
17305 # when we should be linking with a yet-to-be-installed one
17306 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17307 test "$hardcode_minus_L_CXX" != no; then
17308 # Linking always hardcodes the temporary library directory.
17309 hardcode_action_CXX=relink
17311 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17312 hardcode_action_CXX=immediate
17315 # We cannot hardcode anything, or else we can only hardcode existing
17317 hardcode_action_CXX=unsupported
17319 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17320 echo "${ECHO_T}$hardcode_action_CXX" >&6
17322 if test "$hardcode_action_CXX" = relink; then
17323 # Fast installation is not supported
17324 enable_fast_install=no
17325 elif test "$shlibpath_overrides_runpath" = yes ||
17326 test "$enable_shared" = no; then
17327 # Fast installation is not necessary
17328 enable_fast_install=needless
17333 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17334 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17335 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17336 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17337 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17338 echo "$as_me:$LINENO: result: yes" >&5
17339 echo "${ECHO_T}yes" >&6
17341 # FIXME - insert some real tests, host_os isn't really good enough
17344 if test -n "$STRIP" ; then
17345 striplib="$STRIP -x"
17346 echo "$as_me:$LINENO: result: yes" >&5
17347 echo "${ECHO_T}yes" >&6
17349 echo "$as_me:$LINENO: result: no" >&5
17350 echo "${ECHO_T}no" >&6
17354 echo "$as_me:$LINENO: result: no" >&5
17355 echo "${ECHO_T}no" >&6
17360 if test "x$enable_dlopen" != xyes; then
17361 enable_dlopen=unknown
17362 enable_dlopen_self=unknown
17363 enable_dlopen_self_static=unknown
17370 lt_cv_dlopen="load_add_on"
17372 lt_cv_dlopen_self=yes
17376 lt_cv_dlopen="LoadLibrary"
17381 lt_cv_dlopen="dlopen"
17386 # if libdl is installed we need to link against it
17387 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17388 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17389 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17390 echo $ECHO_N "(cached) $ECHO_C" >&6
17392 ac_check_lib_save_LIBS=$LIBS
17394 cat >conftest.$ac_ext <<_ACEOF
17397 cat confdefs.h >>conftest.$ac_ext
17398 cat >>conftest.$ac_ext <<_ACEOF
17399 /* end confdefs.h. */
17401 /* Override any gcc2 internal prototype to avoid an error. */
17405 /* We use char because int might match the return type of a gcc2
17406 builtin and then its argument prototype would still apply. */
17416 rm -f conftest.$ac_objext conftest$ac_exeext
17417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17418 (eval $ac_link) 2>conftest.er1
17420 grep -v '^ *+' conftest.er1 >conftest.err
17422 cat conftest.err >&5
17423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424 (exit $ac_status); } &&
17425 { ac_try='test -z "$ac_cxx_werror_flag"
17426 || test ! -s conftest.err'
17427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17428 (eval $ac_try) 2>&5
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); }; } &&
17432 { ac_try='test -s conftest$ac_exeext'
17433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17434 (eval $ac_try) 2>&5
17436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437 (exit $ac_status); }; }; then
17438 ac_cv_lib_dl_dlopen=yes
17440 echo "$as_me: failed program was:" >&5
17441 sed 's/^/| /' conftest.$ac_ext >&5
17443 ac_cv_lib_dl_dlopen=no
17445 rm -f conftest.err conftest.$ac_objext \
17446 conftest$ac_exeext conftest.$ac_ext
17447 LIBS=$ac_check_lib_save_LIBS
17449 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17450 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17451 if test $ac_cv_lib_dl_dlopen = yes; then
17452 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17455 lt_cv_dlopen="dyld"
17457 lt_cv_dlopen_self=yes
17464 echo "$as_me:$LINENO: checking for shl_load" >&5
17465 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17466 if test "${ac_cv_func_shl_load+set}" = set; then
17467 echo $ECHO_N "(cached) $ECHO_C" >&6
17469 cat >conftest.$ac_ext <<_ACEOF
17472 cat confdefs.h >>conftest.$ac_ext
17473 cat >>conftest.$ac_ext <<_ACEOF
17474 /* end confdefs.h. */
17475 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17476 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17477 #define shl_load innocuous_shl_load
17479 /* System header to define __stub macros and hopefully few prototypes,
17480 which can conflict with char shl_load (); below.
17481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17482 <limits.h> exists even on freestanding compilers. */
17485 # include <limits.h>
17487 # include <assert.h>
17492 /* Override any gcc2 internal prototype to avoid an error. */
17497 /* We use char because int might match the return type of a gcc2
17498 builtin and then its argument prototype would still apply. */
17500 /* The GNU C library defines this for functions which it implements
17501 to always fail with ENOSYS. Some functions are actually named
17502 something starting with __ and the normal name is an alias. */
17503 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17506 char (*f) () = shl_load;
17515 return f != shl_load;
17520 rm -f conftest.$ac_objext conftest$ac_exeext
17521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17522 (eval $ac_link) 2>conftest.er1
17524 grep -v '^ *+' conftest.er1 >conftest.err
17526 cat conftest.err >&5
17527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17528 (exit $ac_status); } &&
17529 { ac_try='test -z "$ac_cxx_werror_flag"
17530 || test ! -s conftest.err'
17531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17532 (eval $ac_try) 2>&5
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); }; } &&
17536 { ac_try='test -s conftest$ac_exeext'
17537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17538 (eval $ac_try) 2>&5
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); }; }; then
17542 ac_cv_func_shl_load=yes
17544 echo "$as_me: failed program was:" >&5
17545 sed 's/^/| /' conftest.$ac_ext >&5
17547 ac_cv_func_shl_load=no
17549 rm -f conftest.err conftest.$ac_objext \
17550 conftest$ac_exeext conftest.$ac_ext
17552 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17553 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17554 if test $ac_cv_func_shl_load = yes; then
17555 lt_cv_dlopen="shl_load"
17557 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17558 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17559 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17560 echo $ECHO_N "(cached) $ECHO_C" >&6
17562 ac_check_lib_save_LIBS=$LIBS
17564 cat >conftest.$ac_ext <<_ACEOF
17567 cat confdefs.h >>conftest.$ac_ext
17568 cat >>conftest.$ac_ext <<_ACEOF
17569 /* end confdefs.h. */
17571 /* Override any gcc2 internal prototype to avoid an error. */
17575 /* We use char because int might match the return type of a gcc2
17576 builtin and then its argument prototype would still apply. */
17586 rm -f conftest.$ac_objext conftest$ac_exeext
17587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17588 (eval $ac_link) 2>conftest.er1
17590 grep -v '^ *+' conftest.er1 >conftest.err
17592 cat conftest.err >&5
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); } &&
17595 { ac_try='test -z "$ac_cxx_werror_flag"
17596 || test ! -s conftest.err'
17597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17598 (eval $ac_try) 2>&5
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); }; } &&
17602 { ac_try='test -s conftest$ac_exeext'
17603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17604 (eval $ac_try) 2>&5
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); }; }; then
17608 ac_cv_lib_dld_shl_load=yes
17610 echo "$as_me: failed program was:" >&5
17611 sed 's/^/| /' conftest.$ac_ext >&5
17613 ac_cv_lib_dld_shl_load=no
17615 rm -f conftest.err conftest.$ac_objext \
17616 conftest$ac_exeext conftest.$ac_ext
17617 LIBS=$ac_check_lib_save_LIBS
17619 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17620 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17621 if test $ac_cv_lib_dld_shl_load = yes; then
17622 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17624 echo "$as_me:$LINENO: checking for dlopen" >&5
17625 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17626 if test "${ac_cv_func_dlopen+set}" = set; then
17627 echo $ECHO_N "(cached) $ECHO_C" >&6
17629 cat >conftest.$ac_ext <<_ACEOF
17632 cat confdefs.h >>conftest.$ac_ext
17633 cat >>conftest.$ac_ext <<_ACEOF
17634 /* end confdefs.h. */
17635 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17637 #define dlopen innocuous_dlopen
17639 /* System header to define __stub macros and hopefully few prototypes,
17640 which can conflict with char dlopen (); below.
17641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17642 <limits.h> exists even on freestanding compilers. */
17645 # include <limits.h>
17647 # include <assert.h>
17652 /* Override any gcc2 internal prototype to avoid an error. */
17657 /* We use char because int might match the return type of a gcc2
17658 builtin and then its argument prototype would still apply. */
17660 /* The GNU C library defines this for functions which it implements
17661 to always fail with ENOSYS. Some functions are actually named
17662 something starting with __ and the normal name is an alias. */
17663 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17666 char (*f) () = dlopen;
17675 return f != dlopen;
17680 rm -f conftest.$ac_objext conftest$ac_exeext
17681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17682 (eval $ac_link) 2>conftest.er1
17684 grep -v '^ *+' conftest.er1 >conftest.err
17686 cat conftest.err >&5
17687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17688 (exit $ac_status); } &&
17689 { ac_try='test -z "$ac_cxx_werror_flag"
17690 || test ! -s conftest.err'
17691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17692 (eval $ac_try) 2>&5
17694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695 (exit $ac_status); }; } &&
17696 { ac_try='test -s conftest$ac_exeext'
17697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17698 (eval $ac_try) 2>&5
17700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 (exit $ac_status); }; }; then
17702 ac_cv_func_dlopen=yes
17704 echo "$as_me: failed program was:" >&5
17705 sed 's/^/| /' conftest.$ac_ext >&5
17707 ac_cv_func_dlopen=no
17709 rm -f conftest.err conftest.$ac_objext \
17710 conftest$ac_exeext conftest.$ac_ext
17712 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17713 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17714 if test $ac_cv_func_dlopen = yes; then
17715 lt_cv_dlopen="dlopen"
17717 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17718 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17719 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17720 echo $ECHO_N "(cached) $ECHO_C" >&6
17722 ac_check_lib_save_LIBS=$LIBS
17724 cat >conftest.$ac_ext <<_ACEOF
17727 cat confdefs.h >>conftest.$ac_ext
17728 cat >>conftest.$ac_ext <<_ACEOF
17729 /* end confdefs.h. */
17731 /* Override any gcc2 internal prototype to avoid an error. */
17735 /* We use char because int might match the return type of a gcc2
17736 builtin and then its argument prototype would still apply. */
17746 rm -f conftest.$ac_objext conftest$ac_exeext
17747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17748 (eval $ac_link) 2>conftest.er1
17750 grep -v '^ *+' conftest.er1 >conftest.err
17752 cat conftest.err >&5
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); } &&
17755 { ac_try='test -z "$ac_cxx_werror_flag"
17756 || test ! -s conftest.err'
17757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17758 (eval $ac_try) 2>&5
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); }; } &&
17762 { ac_try='test -s conftest$ac_exeext'
17763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17764 (eval $ac_try) 2>&5
17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); }; }; then
17768 ac_cv_lib_dl_dlopen=yes
17770 echo "$as_me: failed program was:" >&5
17771 sed 's/^/| /' conftest.$ac_ext >&5
17773 ac_cv_lib_dl_dlopen=no
17775 rm -f conftest.err conftest.$ac_objext \
17776 conftest$ac_exeext conftest.$ac_ext
17777 LIBS=$ac_check_lib_save_LIBS
17779 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17780 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17781 if test $ac_cv_lib_dl_dlopen = yes; then
17782 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17784 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17785 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17786 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17787 echo $ECHO_N "(cached) $ECHO_C" >&6
17789 ac_check_lib_save_LIBS=$LIBS
17790 LIBS="-lsvld $LIBS"
17791 cat >conftest.$ac_ext <<_ACEOF
17794 cat confdefs.h >>conftest.$ac_ext
17795 cat >>conftest.$ac_ext <<_ACEOF
17796 /* end confdefs.h. */
17798 /* Override any gcc2 internal prototype to avoid an error. */
17802 /* We use char because int might match the return type of a gcc2
17803 builtin and then its argument prototype would still apply. */
17813 rm -f conftest.$ac_objext conftest$ac_exeext
17814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17815 (eval $ac_link) 2>conftest.er1
17817 grep -v '^ *+' conftest.er1 >conftest.err
17819 cat conftest.err >&5
17820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821 (exit $ac_status); } &&
17822 { ac_try='test -z "$ac_cxx_werror_flag"
17823 || test ! -s conftest.err'
17824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17825 (eval $ac_try) 2>&5
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); }; } &&
17829 { ac_try='test -s conftest$ac_exeext'
17830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17831 (eval $ac_try) 2>&5
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); }; }; then
17835 ac_cv_lib_svld_dlopen=yes
17837 echo "$as_me: failed program was:" >&5
17838 sed 's/^/| /' conftest.$ac_ext >&5
17840 ac_cv_lib_svld_dlopen=no
17842 rm -f conftest.err conftest.$ac_objext \
17843 conftest$ac_exeext conftest.$ac_ext
17844 LIBS=$ac_check_lib_save_LIBS
17846 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17847 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17848 if test $ac_cv_lib_svld_dlopen = yes; then
17849 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17851 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17852 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17853 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17854 echo $ECHO_N "(cached) $ECHO_C" >&6
17856 ac_check_lib_save_LIBS=$LIBS
17858 cat >conftest.$ac_ext <<_ACEOF
17861 cat confdefs.h >>conftest.$ac_ext
17862 cat >>conftest.$ac_ext <<_ACEOF
17863 /* end confdefs.h. */
17865 /* Override any gcc2 internal prototype to avoid an error. */
17869 /* We use char because int might match the return type of a gcc2
17870 builtin and then its argument prototype would still apply. */
17880 rm -f conftest.$ac_objext conftest$ac_exeext
17881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17882 (eval $ac_link) 2>conftest.er1
17884 grep -v '^ *+' conftest.er1 >conftest.err
17886 cat conftest.err >&5
17887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17888 (exit $ac_status); } &&
17889 { ac_try='test -z "$ac_cxx_werror_flag"
17890 || test ! -s conftest.err'
17891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17892 (eval $ac_try) 2>&5
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); }; } &&
17896 { ac_try='test -s conftest$ac_exeext'
17897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17898 (eval $ac_try) 2>&5
17900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901 (exit $ac_status); }; }; then
17902 ac_cv_lib_dld_dld_link=yes
17904 echo "$as_me: failed program was:" >&5
17905 sed 's/^/| /' conftest.$ac_ext >&5
17907 ac_cv_lib_dld_dld_link=no
17909 rm -f conftest.err conftest.$ac_objext \
17910 conftest$ac_exeext conftest.$ac_ext
17911 LIBS=$ac_check_lib_save_LIBS
17913 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17914 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17915 if test $ac_cv_lib_dld_dld_link = yes; then
17916 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17937 if test "x$lt_cv_dlopen" != xno; then
17943 case $lt_cv_dlopen in
17945 save_CPPFLAGS="$CPPFLAGS"
17946 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17948 save_LDFLAGS="$LDFLAGS"
17949 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17952 LIBS="$lt_cv_dlopen_libs $LIBS"
17954 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17955 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17956 if test "${lt_cv_dlopen_self+set}" = set; then
17957 echo $ECHO_N "(cached) $ECHO_C" >&6
17959 if test "$cross_compiling" = yes; then :
17960 lt_cv_dlopen_self=cross
17962 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17963 lt_status=$lt_dlunknown
17964 cat > conftest.$ac_ext <<EOF
17965 #line 17965 "configure"
17966 #include "confdefs.h"
17975 # define LT_DLGLOBAL RTLD_GLOBAL
17978 # define LT_DLGLOBAL DL_GLOBAL
17980 # define LT_DLGLOBAL 0
17984 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17985 find out it does not work in some platform. */
17986 #ifndef LT_DLLAZY_OR_NOW
17988 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17991 # define LT_DLLAZY_OR_NOW DL_LAZY
17994 # define LT_DLLAZY_OR_NOW RTLD_NOW
17997 # define LT_DLLAZY_OR_NOW DL_NOW
17999 # define LT_DLLAZY_OR_NOW 0
18007 extern "C" void exit (int);
18010 void fnord() { int i=42;}
18013 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18014 int status = $lt_dlunknown;
18018 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18019 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18020 /* dlclose (self); */
18026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18027 (eval $ac_link) 2>&5
18029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18031 (./conftest; exit; ) 2>/dev/null
18033 case x$lt_status in
18034 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18035 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18036 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18039 # compilation failed
18040 lt_cv_dlopen_self=no
18047 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18048 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18050 if test "x$lt_cv_dlopen_self" = xyes; then
18051 LDFLAGS="$LDFLAGS $link_static_flag"
18052 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18053 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18054 if test "${lt_cv_dlopen_self_static+set}" = set; then
18055 echo $ECHO_N "(cached) $ECHO_C" >&6
18057 if test "$cross_compiling" = yes; then :
18058 lt_cv_dlopen_self_static=cross
18060 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18061 lt_status=$lt_dlunknown
18062 cat > conftest.$ac_ext <<EOF
18063 #line 18063 "configure"
18064 #include "confdefs.h"
18073 # define LT_DLGLOBAL RTLD_GLOBAL
18076 # define LT_DLGLOBAL DL_GLOBAL
18078 # define LT_DLGLOBAL 0
18082 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18083 find out it does not work in some platform. */
18084 #ifndef LT_DLLAZY_OR_NOW
18086 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18089 # define LT_DLLAZY_OR_NOW DL_LAZY
18092 # define LT_DLLAZY_OR_NOW RTLD_NOW
18095 # define LT_DLLAZY_OR_NOW DL_NOW
18097 # define LT_DLLAZY_OR_NOW 0
18105 extern "C" void exit (int);
18108 void fnord() { int i=42;}
18111 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18112 int status = $lt_dlunknown;
18116 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18117 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18118 /* dlclose (self); */
18124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18125 (eval $ac_link) 2>&5
18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18129 (./conftest; exit; ) 2>/dev/null
18131 case x$lt_status in
18132 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18133 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18134 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18137 # compilation failed
18138 lt_cv_dlopen_self_static=no
18145 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18146 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18149 CPPFLAGS="$save_CPPFLAGS"
18150 LDFLAGS="$save_LDFLAGS"
18155 case $lt_cv_dlopen_self in
18156 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18157 *) enable_dlopen_self=unknown ;;
18160 case $lt_cv_dlopen_self_static in
18161 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18162 *) enable_dlopen_self_static=unknown ;;
18167 # The else clause should only fire when bootstrapping the
18168 # libtool distribution, otherwise you forgot to ship ltmain.sh
18169 # with your package, and you will get complaints that there are
18170 # no rules to generate ltmain.sh.
18171 if test -f "$ltmain"; then
18172 # See if we are running on zsh, and set the options which allow our commands through
18173 # without removal of \ escapes.
18174 if test -n "${ZSH_VERSION+set}" ; then
18175 setopt NO_GLOB_SUBST
18177 # Now quote all the things that may contain metacharacters while being
18178 # careful not to overquote the AC_SUBSTed values. We take copies of the
18179 # variables and quote the copies for generation of the libtool script.
18180 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18182 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18183 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18184 deplibs_check_method reload_flag reload_cmds need_locks \
18185 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18186 lt_cv_sys_global_symbol_to_c_name_address \
18187 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18188 old_postinstall_cmds old_postuninstall_cmds \
18192 lt_prog_compiler_wl_CXX \
18193 lt_prog_compiler_pic_CXX \
18194 lt_prog_compiler_static_CXX \
18195 lt_prog_compiler_no_builtin_flag_CXX \
18196 export_dynamic_flag_spec_CXX \
18197 thread_safe_flag_spec_CXX \
18198 whole_archive_flag_spec_CXX \
18199 enable_shared_with_static_runtimes_CXX \
18200 old_archive_cmds_CXX \
18201 old_archive_from_new_cmds_CXX \
18202 predep_objects_CXX \
18203 postdep_objects_CXX \
18206 compiler_lib_search_path_CXX \
18208 archive_expsym_cmds_CXX \
18209 postinstall_cmds_CXX \
18210 postuninstall_cmds_CXX \
18211 old_archive_from_expsyms_cmds_CXX \
18212 allow_undefined_flag_CXX \
18213 no_undefined_flag_CXX \
18214 export_symbols_cmds_CXX \
18215 hardcode_libdir_flag_spec_CXX \
18216 hardcode_libdir_flag_spec_ld_CXX \
18217 hardcode_libdir_separator_CXX \
18218 hardcode_automatic_CXX \
18220 module_expsym_cmds_CXX \
18221 lt_cv_prog_compiler_c_o_CXX \
18222 exclude_expsyms_CXX \
18223 include_expsyms_CXX; do
18226 old_archive_cmds_CXX | \
18227 old_archive_from_new_cmds_CXX | \
18228 archive_cmds_CXX | \
18229 archive_expsym_cmds_CXX | \
18230 module_cmds_CXX | \
18231 module_expsym_cmds_CXX | \
18232 old_archive_from_expsyms_cmds_CXX | \
18233 export_symbols_cmds_CXX | \
18234 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18235 postinstall_cmds | postuninstall_cmds | \
18236 old_postinstall_cmds | old_postuninstall_cmds | \
18237 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18238 # Double-quote double-evaled strings.
18239 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18242 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18248 *'\$0 --fallback-echo"')
18249 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18255 cat <<__EOF__ >> "$cfgfile"
18256 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18258 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18260 # Shell to use when invoking shell scripts.
18263 # Whether or not to build shared libraries.
18264 build_libtool_libs=$enable_shared
18266 # Whether or not to build static libraries.
18267 build_old_libs=$enable_static
18269 # Whether or not to add -lc for building shared libraries.
18270 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18272 # Whether or not to disallow shared libs when runtime libs are static
18273 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18275 # Whether or not to optimize for fast installation.
18276 fast_install=$enable_fast_install
18279 host_alias=$host_alias
18282 # An echo program that does not interpret backslashes.
18287 AR_FLAGS=$lt_AR_FLAGS
18292 # A language-specific compiler.
18293 CC=$lt_compiler_CXX
18295 # Is the compiler the GNU C compiler?
18301 # The linker used to build libraries.
18304 # Whether we need hard or soft links.
18307 # A BSD-compatible nm program.
18310 # A symbol stripping program
18313 # Used to examine libraries when file_magic_cmd begins "file"
18314 MAGIC_CMD=$MAGIC_CMD
18316 # Used on cygwin: DLL creation program.
18319 # Used on cygwin: object dumper.
18322 # Used on cygwin: assembler.
18325 # The name of the directory that contains temporary libtool files.
18328 # How to create reloadable object files.
18329 reload_flag=$lt_reload_flag
18330 reload_cmds=$lt_reload_cmds
18332 # How to pass a linker flag through the compiler.
18333 wl=$lt_lt_prog_compiler_wl_CXX
18335 # Object file suffix (normally "o").
18336 objext="$ac_objext"
18338 # Old archive suffix (normally "a").
18341 # Shared library suffix (normally ".so").
18342 shrext_cmds='$shrext_cmds'
18344 # Executable file suffix (normally "").
18347 # Additional compiler flags for building library objects.
18348 pic_flag=$lt_lt_prog_compiler_pic_CXX
18351 # What is the maximum length of a command?
18352 max_cmd_len=$lt_cv_sys_max_cmd_len
18354 # Does compiler simultaneously support -c and -o options?
18355 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18357 # Must we lock files when doing compilation ?
18358 need_locks=$lt_need_locks
18360 # Do we need the lib prefix for modules?
18361 need_lib_prefix=$need_lib_prefix
18363 # Do we need a version for libraries?
18364 need_version=$need_version
18366 # Whether dlopen is supported.
18367 dlopen_support=$enable_dlopen
18369 # Whether dlopen of programs is supported.
18370 dlopen_self=$enable_dlopen_self
18372 # Whether dlopen of statically linked programs is supported.
18373 dlopen_self_static=$enable_dlopen_self_static
18375 # Compiler flag to prevent dynamic linking.
18376 link_static_flag=$lt_lt_prog_compiler_static_CXX
18378 # Compiler flag to turn off builtin functions.
18379 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18381 # Compiler flag to allow reflexive dlopens.
18382 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18384 # Compiler flag to generate shared objects directly from archives.
18385 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18387 # Compiler flag to generate thread-safe objects.
18388 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18390 # Library versioning type.
18391 version_type=$version_type
18393 # Format of library name prefix.
18394 libname_spec=$lt_libname_spec
18396 # List of archive names. First name is the real one, the rest are links.
18397 # The last name is the one that the linker finds with -lNAME.
18398 library_names_spec=$lt_library_names_spec
18400 # The coded name of the library, if different from the real name.
18401 soname_spec=$lt_soname_spec
18403 # Commands used to build and install an old-style archive.
18405 old_archive_cmds=$lt_old_archive_cmds_CXX
18406 old_postinstall_cmds=$lt_old_postinstall_cmds
18407 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18409 # Create an old-style archive from a shared archive.
18410 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18412 # Create a temporary old-style archive to link instead of a shared archive.
18413 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18415 # Commands used to build and install a shared archive.
18416 archive_cmds=$lt_archive_cmds_CXX
18417 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18418 postinstall_cmds=$lt_postinstall_cmds
18419 postuninstall_cmds=$lt_postuninstall_cmds
18421 # Commands used to build a loadable module (assumed same as above if empty)
18422 module_cmds=$lt_module_cmds_CXX
18423 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18425 # Commands to strip libraries.
18426 old_striplib=$lt_old_striplib
18427 striplib=$lt_striplib
18429 # Dependencies to place before the objects being linked to create a
18431 predep_objects=$lt_predep_objects_CXX
18433 # Dependencies to place after the objects being linked to create a
18435 postdep_objects=$lt_postdep_objects_CXX
18437 # Dependencies to place before the objects being linked to create a
18439 predeps=$lt_predeps_CXX
18441 # Dependencies to place after the objects being linked to create a
18443 postdeps=$lt_postdeps_CXX
18445 # The library search path used internally by the compiler when linking
18446 # a shared library.
18447 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18449 # Method to check whether dependent libraries are shared objects.
18450 deplibs_check_method=$lt_deplibs_check_method
18452 # Command to use when deplibs_check_method == file_magic.
18453 file_magic_cmd=$lt_file_magic_cmd
18455 # Flag that allows shared libraries with undefined symbols to be built.
18456 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18458 # Flag that forces no undefined symbols.
18459 no_undefined_flag=$lt_no_undefined_flag_CXX
18461 # Commands used to finish a libtool library installation in a directory.
18462 finish_cmds=$lt_finish_cmds
18464 # Same as above, but a single script fragment to be evaled but not shown.
18465 finish_eval=$lt_finish_eval
18467 # Take the output of nm and produce a listing of raw symbols and C names.
18468 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18470 # Transform the output of nm in a proper C declaration
18471 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18473 # Transform the output of nm in a C name address pair
18474 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18476 # This is the shared library runtime path variable.
18477 runpath_var=$runpath_var
18479 # This is the shared library path variable.
18480 shlibpath_var=$shlibpath_var
18482 # Is shlibpath searched before the hard-coded library search path?
18483 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18485 # How to hardcode a shared library path into an executable.
18486 hardcode_action=$hardcode_action_CXX
18488 # Whether we should hardcode library paths into libraries.
18489 hardcode_into_libs=$hardcode_into_libs
18491 # Flag to hardcode \$libdir into a binary during linking.
18492 # This must work even if \$libdir does not exist.
18493 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18495 # If ld is used when linking, flag to hardcode \$libdir into
18496 # a binary during linking. This must work even if \$libdir does
18498 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18500 # Whether we need a single -rpath flag with a separated argument.
18501 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18503 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18504 # resulting binary.
18505 hardcode_direct=$hardcode_direct_CXX
18507 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18508 # resulting binary.
18509 hardcode_minus_L=$hardcode_minus_L_CXX
18511 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18512 # the resulting binary.
18513 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18515 # Set to yes if building a shared library automatically hardcodes DIR into the library
18516 # and all subsequent libraries and executables linked against it.
18517 hardcode_automatic=$hardcode_automatic_CXX
18519 # Variables whose values should be saved in libtool wrapper scripts and
18520 # restored at relink time.
18521 variables_saved_for_relink="$variables_saved_for_relink"
18523 # Whether libtool must link a program against all its dependency libraries.
18524 link_all_deplibs=$link_all_deplibs_CXX
18526 # Compile-time system search path for libraries
18527 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18529 # Run-time system search path for libraries
18530 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18532 # Fix the shell variable \$srcfile for the compiler.
18533 fix_srcfile_path="$fix_srcfile_path_CXX"
18535 # Set to yes if exported symbols are required.
18536 always_export_symbols=$always_export_symbols_CXX
18538 # The commands to list exported symbols.
18539 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18541 # The commands to extract the exported symbol list from a shared archive.
18542 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18544 # Symbols that should not be listed in the preloaded symbols.
18545 exclude_expsyms=$lt_exclude_expsyms_CXX
18547 # Symbols that must always be exported.
18548 include_expsyms=$lt_include_expsyms_CXX
18550 # ### END LIBTOOL TAG CONFIG: $tagname
18556 # If there is no Makefile yet, we rely on a make rule to execute
18557 # `config.status --recheck' to rerun these tests and create the
18558 # libtool script then.
18559 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18560 if test -f "$ltmain_in"; then
18561 test -f Makefile && make "$ltmain"
18567 ac_cpp='$CPP $CPPFLAGS'
18568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18576 with_gnu_ldcxx=$with_gnu_ld
18577 with_gnu_ld=$lt_save_with_gnu_ld
18578 lt_cv_path_LDCXX=$lt_cv_path_LD
18579 lt_cv_path_LD=$lt_save_path_LD
18580 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18581 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18589 if test -n "$F77" && test "X$F77" != "Xno"; then
18592 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18593 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18594 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18597 archive_cmds_need_lc_F77=no
18598 allow_undefined_flag_F77=
18599 always_export_symbols_F77=no
18600 archive_expsym_cmds_F77=
18601 export_dynamic_flag_spec_F77=
18602 hardcode_direct_F77=no
18603 hardcode_libdir_flag_spec_F77=
18604 hardcode_libdir_flag_spec_ld_F77=
18605 hardcode_libdir_separator_F77=
18606 hardcode_minus_L_F77=no
18607 hardcode_automatic_F77=no
18609 module_expsym_cmds_F77=
18610 link_all_deplibs_F77=unknown
18611 old_archive_cmds_F77=$old_archive_cmds
18612 no_undefined_flag_F77=
18613 whole_archive_flag_spec_F77=
18614 enable_shared_with_static_runtimes_F77=no
18616 # Source file extension for f77 test sources.
18619 # Object file extension for compiled f77 test sources.
18623 # Code to be used in simple compile tests
18624 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18626 # Code to be used in simple link tests
18627 lt_simple_link_test_code=" program t\n end\n"
18629 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18631 # If no C compiler was specified, use CC.
18634 # Allow CC to be a program name with arguments.
18638 # Allow CC to be a program name with arguments.
18643 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18645 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18646 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18647 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18648 echo "${ECHO_T}$can_build_shared" >&6
18650 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18651 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18652 test "$can_build_shared" = "no" && enable_shared=no
18654 # On AIX, shared libraries and static libraries use the same namespace, and
18655 # are all built from PIC.
18658 test "$enable_shared" = yes && enable_static=no
18659 if test -n "$RANLIB"; then
18660 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18661 postinstall_cmds='$RANLIB $lib'
18665 test "$enable_shared" = yes && enable_static=no
18668 echo "$as_me:$LINENO: result: $enable_shared" >&5
18669 echo "${ECHO_T}$enable_shared" >&6
18671 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18672 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18673 # Make sure either enable_shared or enable_static is yes.
18674 test "$enable_shared" = yes || enable_static=yes
18675 echo "$as_me:$LINENO: result: $enable_static" >&5
18676 echo "${ECHO_T}$enable_static" >&6
18678 test "$ld_shlibs_F77" = no && can_build_shared=no
18683 lt_prog_compiler_wl_F77=
18684 lt_prog_compiler_pic_F77=
18685 lt_prog_compiler_static_F77=
18687 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18688 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18690 if test "$GCC" = yes; then
18691 lt_prog_compiler_wl_F77='-Wl,'
18692 lt_prog_compiler_static_F77='-static'
18696 # All AIX code is PIC.
18697 if test "$host_cpu" = ia64; then
18698 # AIX 5 now supports IA64 processor
18699 lt_prog_compiler_static_F77='-Bstatic'
18704 # FIXME: we need at least 68020 code to build shared libraries, but
18705 # adding the `-m68020' flag to GCC prevents building anything better,
18707 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18710 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18711 # PIC is the default for these OSes.
18714 mingw* | pw32* | os2*)
18715 # This hack is so that the source file can tell whether it is being
18716 # built for inclusion in a dll (and should export symbols for example).
18717 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18720 darwin* | rhapsody*)
18721 # PIC is the default on this platform
18722 # Common symbols not allowed in MH_DYLIB files
18723 lt_prog_compiler_pic_F77='-fno-common'
18727 # Just because we use GCC doesn't mean we suddenly get shared libraries
18728 # on systems that don't support them.
18729 lt_prog_compiler_can_build_shared_F77=no
18734 if test -d /usr/nec; then
18735 lt_prog_compiler_pic_F77=-Kconform_pic
18740 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18741 # not for PA HP-UX.
18742 case "$host_cpu" in
18747 lt_prog_compiler_pic_F77='-fPIC'
18753 lt_prog_compiler_pic_F77='-fPIC'
18757 # PORTME Check for flag to pass linker flags through the system compiler.
18760 lt_prog_compiler_wl_F77='-Wl,'
18761 if test "$host_cpu" = ia64; then
18762 # AIX 5 now supports IA64 processor
18763 lt_prog_compiler_static_F77='-Bstatic'
18765 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18769 # PIC is the default on this platform
18770 # Common symbols not allowed in MH_DYLIB files
18771 case "$cc_basename" in
18773 lt_prog_compiler_pic_F77='-qnocommon'
18774 lt_prog_compiler_wl_F77='-Wl,'
18779 mingw* | pw32* | os2*)
18780 # This hack is so that the source file can tell whether it is being
18781 # built for inclusion in a dll (and should export symbols for example).
18782 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18785 hpux9* | hpux10* | hpux11*)
18786 lt_prog_compiler_wl_F77='-Wl,'
18787 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18788 # not for PA HP-UX.
18789 case "$host_cpu" in
18794 lt_prog_compiler_pic_F77='+Z'
18797 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18798 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18801 irix5* | irix6* | nonstopux*)
18802 lt_prog_compiler_wl_F77='-Wl,'
18803 # PIC (with -KPIC) is the default.
18804 lt_prog_compiler_static_F77='-non_shared'
18808 lt_prog_compiler_pic_F77='-KPIC'
18809 lt_prog_compiler_static_F77='-Bstatic'
18815 lt_prog_compiler_wl_F77='-Wl,'
18816 lt_prog_compiler_pic_F77='-KPIC'
18817 lt_prog_compiler_static_F77='-static'
18820 lt_prog_compiler_wl_F77='-Wl,'
18821 # All Alpha code is PIC.
18822 lt_prog_compiler_static_F77='-non_shared'
18827 osf3* | osf4* | osf5*)
18828 lt_prog_compiler_wl_F77='-Wl,'
18829 # All OSF/1 code is PIC.
18830 lt_prog_compiler_static_F77='-non_shared'
18834 lt_prog_compiler_pic_F77='-Kpic'
18835 lt_prog_compiler_static_F77='-dn'
18839 lt_prog_compiler_wl_F77='-Wl,'
18840 lt_prog_compiler_pic_F77='-KPIC'
18841 lt_prog_compiler_static_F77='-Bstatic'
18845 lt_prog_compiler_wl_F77='-Qoption ld '
18846 lt_prog_compiler_pic_F77='-PIC'
18847 lt_prog_compiler_static_F77='-Bstatic'
18850 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18851 lt_prog_compiler_wl_F77='-Wl,'
18852 lt_prog_compiler_pic_F77='-KPIC'
18853 lt_prog_compiler_static_F77='-Bstatic'
18857 if test -d /usr/nec ;then
18858 lt_prog_compiler_pic_F77='-Kconform_pic'
18859 lt_prog_compiler_static_F77='-Bstatic'
18864 lt_prog_compiler_pic_F77='-pic'
18865 lt_prog_compiler_static_F77='-Bstatic'
18869 lt_prog_compiler_can_build_shared_F77=no
18874 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18875 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18878 # Check to make sure the PIC flag actually works.
18880 if test -n "$lt_prog_compiler_pic_F77"; then
18882 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18883 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18884 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18885 echo $ECHO_N "(cached) $ECHO_C" >&6
18887 lt_prog_compiler_pic_works_F77=no
18888 ac_outfile=conftest.$ac_objext
18889 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18890 lt_compiler_flag="$lt_prog_compiler_pic_F77"
18891 # Insert the option either (1) after the last *FLAGS variable, or
18892 # (2) before a word containing "conftest.", or (3) at the end.
18893 # Note that $ac_compile itself does not contain backslashes and begins
18894 # with a dollar sign (not a hyphen), so the echo should work correctly.
18895 # The option is referenced via a variable to avoid confusing sed.
18896 lt_compile=`echo "$ac_compile" | $SED \
18897 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18898 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18899 -e 's:$: $lt_compiler_flag:'`
18900 (eval echo "\"\$as_me:18900: $lt_compile\"" >&5)
18901 (eval "$lt_compile" 2>conftest.err)
18903 cat conftest.err >&5
18904 echo "$as_me:18904: \$? = $ac_status" >&5
18905 if (exit $ac_status) && test -s "$ac_outfile"; then
18906 # The compiler can only warn and ignore the option if not recognized
18907 # So say no if there are warnings
18908 if test ! -s conftest.err; then
18909 lt_prog_compiler_pic_works_F77=yes
18915 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18916 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18918 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18919 case $lt_prog_compiler_pic_F77 in
18921 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18924 lt_prog_compiler_pic_F77=
18925 lt_prog_compiler_can_build_shared_F77=no
18930 # For platforms which do not support PIC, -DPIC is meaningless:
18932 lt_prog_compiler_pic_F77=
18935 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18939 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18940 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18941 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18942 echo $ECHO_N "(cached) $ECHO_C" >&6
18944 lt_cv_prog_compiler_c_o_F77=no
18945 $rm -r conftest 2>/dev/null
18949 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18951 lt_compiler_flag="-o out/conftest2.$ac_objext"
18952 # Insert the option either (1) after the last *FLAGS variable, or
18953 # (2) before a word containing "conftest.", or (3) at the end.
18954 # Note that $ac_compile itself does not contain backslashes and begins
18955 # with a dollar sign (not a hyphen), so the echo should work correctly.
18956 lt_compile=`echo "$ac_compile" | $SED \
18957 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18958 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18959 -e 's:$: $lt_compiler_flag:'`
18960 (eval echo "\"\$as_me:18960: $lt_compile\"" >&5)
18961 (eval "$lt_compile" 2>out/conftest.err)
18963 cat out/conftest.err >&5
18964 echo "$as_me:18964: \$? = $ac_status" >&5
18965 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18967 # The compiler can only warn and ignore the option if not recognized
18968 # So say no if there are warnings
18969 if test ! -s out/conftest.err; then
18970 lt_cv_prog_compiler_c_o_F77=yes
18975 # SGI C++ compiler will create directory out/ii_files/ for
18976 # template instantiation
18977 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18978 $rm out/* && rmdir out
18984 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18985 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18988 hard_links="nottested"
18989 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18990 # do not overwrite the value of need_locks provided by the user
18991 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18992 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18995 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18997 ln conftest.a conftest.b 2>&5 || hard_links=no
18998 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18999 echo "$as_me:$LINENO: result: $hard_links" >&5
19000 echo "${ECHO_T}$hard_links" >&6
19001 if test "$hard_links" = no; then
19002 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19003 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19010 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19011 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19014 allow_undefined_flag_F77=
19015 enable_shared_with_static_runtimes_F77=no
19017 archive_expsym_cmds_F77=
19018 old_archive_From_new_cmds_F77=
19019 old_archive_from_expsyms_cmds_F77=
19020 export_dynamic_flag_spec_F77=
19021 whole_archive_flag_spec_F77=
19022 thread_safe_flag_spec_F77=
19023 hardcode_libdir_flag_spec_F77=
19024 hardcode_libdir_flag_spec_ld_F77=
19025 hardcode_libdir_separator_F77=
19026 hardcode_direct_F77=no
19027 hardcode_minus_L_F77=no
19028 hardcode_shlibpath_var_F77=unsupported
19029 link_all_deplibs_F77=unknown
19030 hardcode_automatic_F77=no
19032 module_expsym_cmds_F77=
19033 always_export_symbols_F77=no
19034 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19035 # include_expsyms should be a list of space-separated symbols to be *always*
19036 # included in the symbol list
19037 include_expsyms_F77=
19038 # exclude_expsyms can be an extended regexp of symbols to exclude
19039 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19040 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19041 # as well as any symbol that contains `d'.
19042 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19043 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19044 # platforms (ab)use it in PIC code, but their linkers get confused if
19045 # the symbol is explicitly referenced. Since portable code cannot
19046 # rely on this symbol name, it's probably fine to never include it in
19047 # preloaded symbol tables.
19048 extract_expsyms_cmds=
19051 cygwin* | mingw* | pw32*)
19052 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19053 # When not using gcc, we currently assume that we are using
19054 # Microsoft Visual C++.
19055 if test "$GCC" != yes; then
19065 if test "$with_gnu_ld" = yes; then
19066 # If archive_cmds runs LD, not CC, wlarc should be empty
19069 # See if GNU ld supports shared libraries.
19071 aix3* | aix4* | aix5*)
19072 # On AIX/PPC, the GNU linker is very broken
19073 if test "$host_cpu" != ia64; then
19077 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19078 *** to be unable to reliably create shared libraries on AIX.
19079 *** Therefore, libtool is disabling shared libraries support. If you
19080 *** really care for shared libraries, you may want to modify your PATH
19081 *** so that a non-GNU linker is found, and then restart.
19088 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)'
19089 hardcode_libdir_flag_spec_F77='-L$libdir'
19090 hardcode_minus_L_F77=yes
19092 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19093 # that the semantics of dynamic libraries on AmigaOS, at least up
19094 # to version 4, is to share data among multiple programs linked
19095 # with the same dynamic library. Since this doesn't match the
19096 # behavior of shared libraries on other platforms, we can't use
19102 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19103 allow_undefined_flag_F77=unsupported
19104 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19105 # support --undefined. This deserves some investigation. FIXME
19106 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19112 cygwin* | mingw* | pw32*)
19113 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19114 # as there is no search path for DLLs.
19115 hardcode_libdir_flag_spec_F77='-L$libdir'
19116 allow_undefined_flag_F77=unsupported
19117 always_export_symbols_F77=no
19118 enable_shared_with_static_runtimes_F77=yes
19119 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19121 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19122 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19123 # If the export-symbols file already is a .def file (1st line
19124 # is EXPORTS), use it as is; otherwise, prepend...
19125 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19126 cp $export_symbols $output_objdir/$soname.def;
19128 echo EXPORTS > $output_objdir/$soname.def;
19129 cat $export_symbols >> $output_objdir/$soname.def;
19131 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19138 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19139 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19142 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19143 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19148 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19152 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19153 *** create shared libraries on Solaris systems. Therefore, libtool
19154 *** is disabling shared libraries support. We urge you to upgrade GNU
19155 *** binutils to release 2.9.1 or newer. Another option is to modify
19156 *** your PATH or compiler configuration so that the native linker is
19157 *** used, and then restart.
19160 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19161 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19162 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19169 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19171 hardcode_direct_F77=yes
19172 hardcode_shlibpath_var_F77=no
19176 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19177 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19178 archive_cmds_F77="$tmp_archive_cmds"
19179 supports_anon_versioning=no
19180 case `$LD -v 2>/dev/null` in
19181 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19182 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19183 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19184 *\ 2.11.*) ;; # other 2.11 versions
19185 *) supports_anon_versioning=yes ;;
19187 if test $supports_anon_versioning = yes; then
19188 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19189 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19190 $echo "local: *; };" >> $output_objdir/$libname.ver~
19191 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19193 archive_expsym_cmds_F77="$tmp_archive_cmds"
19201 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19202 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19203 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19210 if test "$ld_shlibs_F77" = yes; then
19211 runpath_var=LD_RUN_PATH
19212 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19213 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19214 # ancient GNU ld didn't support --whole-archive et. al.
19215 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19216 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19218 whole_archive_flag_spec_F77=
19222 # PORTME fill in a description of your system's linker (not GNU ld)
19225 allow_undefined_flag_F77=unsupported
19226 always_export_symbols_F77=yes
19227 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'
19228 # Note: this linker hardcodes the directories in LIBPATH if there
19229 # are no directories specified by -L.
19230 hardcode_minus_L_F77=yes
19231 if test "$GCC" = yes && test -z "$link_static_flag"; then
19232 # Neither direct hardcoding nor static linking is supported with a
19234 hardcode_direct_F77=unsupported
19239 if test "$host_cpu" = ia64; then
19240 # On IA64, the linker does run time linking by default, so we don't
19241 # have to do anything special.
19242 aix_use_runtimelinking=no
19243 exp_sym_flag='-Bexport'
19246 # If we're using GNU nm, then we don't want the "-C" option.
19247 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19248 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19249 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'
19251 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'
19253 aix_use_runtimelinking=no
19255 # Test if we are trying to use run time linking or normal
19256 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19257 # need to do runtime linking.
19258 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19259 for ld_flag in $LDFLAGS; do
19260 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19261 aix_use_runtimelinking=yes
19267 exp_sym_flag='-bexport'
19268 no_entry_flag='-bnoentry'
19271 # When large executables or shared objects are built, AIX ld can
19272 # have problems creating the table of contents. If linking a library
19273 # or program results in "error TOC overflow" add -mminimal-toc to
19274 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19275 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19277 archive_cmds_F77=''
19278 hardcode_direct_F77=yes
19279 hardcode_libdir_separator_F77=':'
19280 link_all_deplibs_F77=yes
19282 if test "$GCC" = yes; then
19283 case $host_os in aix4.012|aix4.012.*)
19284 # We only want to do this on AIX 4.2 and lower, the check
19285 # below for broken collect2 doesn't work under 4.3+
19286 collect2name=`${CC} -print-prog-name=collect2`
19287 if test -f "$collect2name" && \
19288 strings "$collect2name" | grep resolve_lib_name >/dev/null
19290 # We have reworked collect2
19291 hardcode_direct_F77=yes
19293 # We have old collect2
19294 hardcode_direct_F77=unsupported
19295 # It fails to find uninstalled libraries when the uninstalled
19296 # path is not listed in the libpath. Setting hardcode_minus_L
19297 # to unsupported forces relinking
19298 hardcode_minus_L_F77=yes
19299 hardcode_libdir_flag_spec_F77='-L$libdir'
19300 hardcode_libdir_separator_F77=
19303 shared_flag='-shared'
19306 if test "$host_cpu" = ia64; then
19307 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19308 # chokes on -Wl,-G. The following line is correct:
19311 if test "$aix_use_runtimelinking" = yes; then
19312 shared_flag='${wl}-G'
19314 shared_flag='${wl}-bM:SRE'
19319 # It seems that -bexpall does not export symbols beginning with
19320 # underscore (_), so it is better to generate a list of symbols to export.
19321 always_export_symbols_F77=yes
19322 if test "$aix_use_runtimelinking" = yes; then
19323 # Warning - without using the other runtime loading flags (-brtl),
19324 # -berok will link without error, but may produce a broken library.
19325 allow_undefined_flag_F77='-berok'
19326 # Determine the default libpath from the value encoded in an empty executable.
19327 cat >conftest.$ac_ext <<_ACEOF
19332 rm -f conftest.$ac_objext conftest$ac_exeext
19333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19334 (eval $ac_link) 2>conftest.er1
19336 grep -v '^ *+' conftest.er1 >conftest.err
19338 cat conftest.err >&5
19339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340 (exit $ac_status); } &&
19341 { ac_try='test -z "$ac_f77_werror_flag"
19342 || test ! -s conftest.err'
19343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19344 (eval $ac_try) 2>&5
19346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347 (exit $ac_status); }; } &&
19348 { ac_try='test -s conftest$ac_exeext'
19349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19350 (eval $ac_try) 2>&5
19352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353 (exit $ac_status); }; }; then
19355 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19357 # Check for a 64-bit object if we didn't find anything.
19358 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; }
19361 echo "$as_me: failed program was:" >&5
19362 sed 's/^/| /' conftest.$ac_ext >&5
19365 rm -f conftest.err conftest.$ac_objext \
19366 conftest$ac_exeext conftest.$ac_ext
19367 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19369 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19370 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"
19372 if test "$host_cpu" = ia64; then
19373 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19374 allow_undefined_flag_F77="-z nodefs"
19375 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"
19377 # Determine the default libpath from the value encoded in an empty executable.
19378 cat >conftest.$ac_ext <<_ACEOF
19383 rm -f conftest.$ac_objext conftest$ac_exeext
19384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19385 (eval $ac_link) 2>conftest.er1
19387 grep -v '^ *+' conftest.er1 >conftest.err
19389 cat conftest.err >&5
19390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391 (exit $ac_status); } &&
19392 { ac_try='test -z "$ac_f77_werror_flag"
19393 || test ! -s conftest.err'
19394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19395 (eval $ac_try) 2>&5
19397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398 (exit $ac_status); }; } &&
19399 { ac_try='test -s conftest$ac_exeext'
19400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19401 (eval $ac_try) 2>&5
19403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404 (exit $ac_status); }; }; then
19406 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19408 # Check for a 64-bit object if we didn't find anything.
19409 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; }
19412 echo "$as_me: failed program was:" >&5
19413 sed 's/^/| /' conftest.$ac_ext >&5
19416 rm -f conftest.err conftest.$ac_objext \
19417 conftest$ac_exeext conftest.$ac_ext
19418 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19420 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19421 # Warning - without using the other run time loading flags,
19422 # -berok will link without error, but may produce a broken library.
19423 no_undefined_flag_F77=' ${wl}-bernotok'
19424 allow_undefined_flag_F77=' ${wl}-berok'
19425 # -bexpall does not export symbols beginning with underscore (_)
19426 always_export_symbols_F77=yes
19427 # Exported symbols can be pulled into shared objects from archives
19428 whole_archive_flag_spec_F77=' '
19429 archive_cmds_need_lc_F77=yes
19430 # This is similar to how AIX traditionally builds it's shared libraries.
19431 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'
19437 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)'
19438 hardcode_libdir_flag_spec_F77='-L$libdir'
19439 hardcode_minus_L_F77=yes
19440 # see comment about different semantics on the GNU ld section
19445 export_dynamic_flag_spec_F77=-rdynamic
19448 cygwin* | mingw* | pw32*)
19449 # When not using gcc, we currently assume that we are using
19450 # Microsoft Visual C++.
19451 # hardcode_libdir_flag_spec is actually meaningless, as there is
19452 # no search path for DLLs.
19453 hardcode_libdir_flag_spec_F77=' '
19454 allow_undefined_flag_F77=unsupported
19455 # Tell ltmain to make .lib files, not .a files.
19457 # Tell ltmain to make .dll files, not .so files.
19459 # FIXME: Setting linknames here is a bad hack.
19460 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19461 # The linker will automatically build a .lib file if we build a DLL.
19462 old_archive_From_new_cmds_F77='true'
19463 # FIXME: Should let the user specify the lib program.
19464 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19465 fix_srcfile_path='`cygpath -w "$srcfile"`'
19466 enable_shared_with_static_runtimes_F77=yes
19469 darwin* | rhapsody*)
19471 rhapsody* | darwin1.[012])
19472 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19475 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19476 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19478 case ${MACOSX_DEPLOYMENT_TARGET} in
19480 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19483 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19489 archive_cmds_need_lc_F77=no
19490 hardcode_direct_F77=no
19491 hardcode_automatic_F77=yes
19492 hardcode_shlibpath_var_F77=unsupported
19493 whole_archive_flag_spec_F77=''
19494 link_all_deplibs_F77=yes
19495 if test "$GCC" = yes ; then
19496 output_verbose_link_cmd='echo'
19497 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19498 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19499 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19500 archive_expsym_cmds_F77='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}'
19501 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19503 case "$cc_basename" in
19505 output_verbose_link_cmd='echo'
19506 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19507 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19508 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19509 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19510 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19520 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19521 hardcode_libdir_flag_spec_F77='-L$libdir'
19522 hardcode_shlibpath_var_F77=no
19529 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19530 # support. Future versions do this automatically, but an explicit c++rt0.o
19531 # does not break anything, and helps significantly (at the cost of a little
19534 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19535 hardcode_libdir_flag_spec_F77='-R$libdir'
19536 hardcode_direct_F77=yes
19537 hardcode_shlibpath_var_F77=no
19540 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19542 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19543 hardcode_direct_F77=yes
19544 hardcode_minus_L_F77=yes
19545 hardcode_shlibpath_var_F77=no
19548 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19549 freebsd* | kfreebsd*-gnu)
19550 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19551 hardcode_libdir_flag_spec_F77='-R$libdir'
19552 hardcode_direct_F77=yes
19553 hardcode_shlibpath_var_F77=no
19557 if test "$GCC" = yes; then
19558 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'
19560 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'
19562 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19563 hardcode_libdir_separator_F77=:
19564 hardcode_direct_F77=yes
19566 # hardcode_minus_L: Not really in the search PATH,
19567 # but as the default location of the library.
19568 hardcode_minus_L_F77=yes
19569 export_dynamic_flag_spec_F77='${wl}-E'
19573 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19574 case "$host_cpu" in
19576 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19579 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19583 case "$host_cpu" in
19585 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19588 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19592 if test "$with_gnu_ld" = no; then
19593 case "$host_cpu" in
19595 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19596 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19597 hardcode_libdir_separator_F77=:
19598 hardcode_direct_F77=no
19599 hardcode_shlibpath_var_F77=no
19602 hardcode_libdir_flag_spec_F77='-L$libdir'
19603 hardcode_direct_F77=no
19604 hardcode_shlibpath_var_F77=no
19606 # hardcode_minus_L: Not really in the search PATH,
19607 # but as the default location of the library.
19608 hardcode_minus_L_F77=yes
19611 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19612 hardcode_libdir_separator_F77=:
19613 hardcode_direct_F77=yes
19614 export_dynamic_flag_spec_F77='${wl}-E'
19616 # hardcode_minus_L: Not really in the search PATH,
19617 # but as the default location of the library.
19618 hardcode_minus_L_F77=yes
19624 irix5* | irix6* | nonstopux*)
19625 if test "$GCC" = yes; then
19626 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'
19628 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'
19629 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19631 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19632 hardcode_libdir_separator_F77=:
19633 link_all_deplibs_F77=yes
19637 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19638 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19640 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19642 hardcode_libdir_flag_spec_F77='-R$libdir'
19643 hardcode_direct_F77=yes
19644 hardcode_shlibpath_var_F77=no
19648 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19649 hardcode_direct_F77=yes
19650 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19651 hardcode_libdir_separator_F77=:
19652 hardcode_shlibpath_var_F77=no
19656 hardcode_direct_F77=yes
19657 hardcode_shlibpath_var_F77=no
19658 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19659 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19660 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19661 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19662 export_dynamic_flag_spec_F77='${wl}-E'
19665 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19666 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19667 hardcode_libdir_flag_spec_F77='-R$libdir'
19670 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19671 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19678 hardcode_libdir_flag_spec_F77='-L$libdir'
19679 hardcode_minus_L_F77=yes
19680 allow_undefined_flag_F77=unsupported
19681 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'
19682 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19686 if test "$GCC" = yes; then
19687 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19688 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'
19690 allow_undefined_flag_F77=' -expect_unresolved \*'
19691 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'
19693 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19694 hardcode_libdir_separator_F77=:
19697 osf4* | osf5*) # as osf3* with the addition of -msym flag
19698 if test "$GCC" = yes; then
19699 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19700 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'
19701 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19703 allow_undefined_flag_F77=' -expect_unresolved \*'
19704 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'
19705 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~
19706 $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'
19708 # Both c and cxx compiler support -rpath directly
19709 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19711 hardcode_libdir_separator_F77=:
19715 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19716 hardcode_shlibpath_var_F77=no
19717 export_dynamic_flag_spec_F77='${wl}-Bexport'
19718 runpath_var=LD_RUN_PATH
19719 hardcode_runpath_var=yes
19723 no_undefined_flag_F77=' -z text'
19724 if test "$GCC" = yes; then
19725 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19726 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19727 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19729 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19730 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19731 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19733 hardcode_libdir_flag_spec_F77='-R$libdir'
19734 hardcode_shlibpath_var_F77=no
19736 solaris2.[0-5] | solaris2.[0-5].*) ;;
19737 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19738 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19740 link_all_deplibs_F77=yes
19744 if test "x$host_vendor" = xsequent; then
19745 # Use $CC to link under sequent, because it throws in some extra .o
19746 # files that make .init and .fini sections work.
19747 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19749 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19751 hardcode_libdir_flag_spec_F77='-L$libdir'
19752 hardcode_direct_F77=yes
19753 hardcode_minus_L_F77=yes
19754 hardcode_shlibpath_var_F77=no
19758 case $host_vendor in
19760 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19761 hardcode_direct_F77=yes # is this really true???
19764 ## LD is ld it makes a PLAMLIB
19765 ## CC just makes a GrossModule.
19766 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19767 reload_cmds_F77='$CC -r -o $output$reload_objs'
19768 hardcode_direct_F77=no
19771 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19772 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19775 runpath_var='LD_RUN_PATH'
19776 hardcode_shlibpath_var_F77=no
19780 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19781 hardcode_shlibpath_var_F77=no
19782 export_dynamic_flag_spec_F77='-Bexport'
19786 if test -d /usr/nec; then
19787 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19788 hardcode_shlibpath_var_F77=no
19789 runpath_var=LD_RUN_PATH
19790 hardcode_runpath_var=yes
19796 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19797 hardcode_direct_F77=yes
19798 hardcode_minus_L_F77=no
19799 hardcode_shlibpath_var_F77=no
19800 hardcode_runpath_var=yes
19801 runpath_var=LD_RUN_PATH
19804 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19805 no_undefined_flag_F77='${wl}-z ${wl}text'
19806 if test "$GCC" = yes; then
19807 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19809 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19811 runpath_var='LD_RUN_PATH'
19812 hardcode_shlibpath_var_F77=no
19816 no_undefined_flag_F77=' -z text'
19817 # $CC -shared without GNU ld will not create a library from C++
19818 # object files and a static libstdc++, better avoid it by now
19819 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19820 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19821 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19822 hardcode_libdir_flag_spec_F77=
19823 hardcode_shlibpath_var_F77=no
19824 runpath_var='LD_RUN_PATH'
19828 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19829 hardcode_libdir_flag_spec_F77='-L$libdir'
19830 hardcode_shlibpath_var_F77=no
19839 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19840 echo "${ECHO_T}$ld_shlibs_F77" >&6
19841 test "$ld_shlibs_F77" = no && can_build_shared=no
19843 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19844 if test "$GCC" = yes; then
19845 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19849 # Do we need to explicitly link libc?
19851 case "x$archive_cmds_need_lc_F77" in
19853 # Assume -lc should be added
19854 archive_cmds_need_lc_F77=yes
19856 if test "$enable_shared" = yes && test "$GCC" = yes; then
19857 case $archive_cmds_F77 in
19859 # FIXME: we may have to deal with multi-command sequences.
19862 # Test whether the compiler implicitly links with -lc since on some
19863 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19864 # to ld, don't add -lc before -lgcc.
19865 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19866 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19868 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19871 (eval $ac_compile) 2>&5
19873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874 (exit $ac_status); } 2>conftest.err; then
19877 libobjs=conftest.$ac_objext
19879 wl=$lt_prog_compiler_wl_F77
19885 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19886 allow_undefined_flag_F77=
19887 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19888 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); }
19893 archive_cmds_need_lc_F77=no
19895 archive_cmds_need_lc_F77=yes
19897 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19899 cat conftest.err 1>&5
19902 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19903 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19910 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19911 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19912 library_names_spec=
19913 libname_spec='lib$name'
19917 postuninstall_cmds=
19921 shlibpath_overrides_runpath=unknown
19923 dynamic_linker="$host_os ld.so"
19924 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19925 if test "$GCC" = yes; then
19926 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19927 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19928 # if the path contains ";" then we assume it to be the separator
19929 # otherwise default to the standard path separator (i.e. ":") - it is
19930 # assumed that no part of a normal pathname contains ";" but that should
19931 # okay in the real world where ";" in dirpaths is itself problematic.
19932 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19934 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19937 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19939 need_lib_prefix=unknown
19940 hardcode_into_libs=no
19942 # when you set need_version to no, make sure it does not cause -set_version
19943 # flags to be left without arguments
19944 need_version=unknown
19949 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19950 shlibpath_var=LIBPATH
19952 # AIX 3 has no versioning support, so we append a major version to the name.
19953 soname_spec='${libname}${release}${shared_ext}$major'
19960 hardcode_into_libs=yes
19961 if test "$host_cpu" = ia64; then
19962 # AIX 5 supports IA64
19963 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19964 shlibpath_var=LD_LIBRARY_PATH
19966 # With GCC up to 2.95.x, collect2 would create an import file
19967 # for dependence libraries. The import file would start with
19968 # the line `#! .'. This would cause the generated library to
19969 # depend on `.', always an invalid library. This was fixed in
19970 # development snapshots of GCC prior to 3.0.
19972 aix4 | aix4.[01] | aix4.[01].*)
19973 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19975 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19978 can_build_shared=no
19982 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19983 # soname into executable. Probably we can add versioning support to
19984 # collect2, so additional links can be useful in future.
19985 if test "$aix_use_runtimelinking" = yes; then
19986 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19987 # instead of lib<name>.a to let people know that these are not
19988 # typical AIX shared libraries.
19989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19991 # We preserve .a as extension for shared libraries through AIX4.2
19992 # and later when we are not doing run time linking.
19993 library_names_spec='${libname}${release}.a $libname.a'
19994 soname_spec='${libname}${release}${shared_ext}$major'
19996 shlibpath_var=LIBPATH
20001 library_names_spec='$libname.ixlibrary $libname.a'
20002 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20003 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'
20007 library_names_spec='${libname}${shared_ext}'
20008 dynamic_linker="$host_os ld.so"
20009 shlibpath_var=LIBRARY_PATH
20015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20016 soname_spec='${libname}${release}${shared_ext}$major'
20017 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20018 shlibpath_var=LD_LIBRARY_PATH
20019 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20020 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20021 # the default ld.so.conf also contains /usr/contrib/lib and
20022 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20023 # libtool to hard-code these into programs
20026 cygwin* | mingw* | pw32*)
20027 version_type=windows
20032 case $GCC,$host_os in
20033 yes,cygwin* | yes,mingw* | yes,pw32*)
20034 library_names_spec='$libname.dll.a'
20035 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20036 postinstall_cmds='base_file=`basename \${file}`~
20037 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20038 dldir=$destdir/`dirname \$dlpath`~
20039 test -d \$dldir || mkdir -p \$dldir~
20040 $install_prog $dir/$dlname \$dldir/$dlname'
20041 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20042 dlpath=$dir/\$dldll~
20044 shlibpath_overrides_runpath=yes
20048 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20049 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20050 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20053 # MinGW DLLs use traditional 'lib' prefix
20054 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20055 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20056 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20057 # It is most probably a Windows format PATH printed by
20058 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20059 # path with ; separators, and with drive letters. We can handle the
20060 # drive letters (cygwin fileutils understands them), so leave them,
20061 # especially as we might pass files found there to a mingw objdump,
20062 # which wouldn't understand a cygwinified path. Ahh.
20063 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20065 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20069 # pw32 DLLs use 'pw' prefix rather than 'lib'
20070 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20076 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20079 dynamic_linker='Win32 ld.exe'
20080 # FIXME: first we should search . and the directory the executable is in
20084 darwin* | rhapsody*)
20085 dynamic_linker="$host_os dyld"
20086 version_type=darwin
20089 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20090 soname_spec='${libname}${release}${major}$shared_ext'
20091 shlibpath_overrides_runpath=yes
20092 shlibpath_var=DYLD_LIBRARY_PATH
20093 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20094 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20095 if test "$GCC" = yes; then
20096 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"`
20098 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20100 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20108 soname_spec='${libname}${release}${shared_ext}$major'
20109 shlibpath_var=LD_LIBRARY_PATH
20120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20121 soname_spec='${libname}${release}${shared_ext}$major'
20122 shlibpath_var=LD_LIBRARY_PATH
20123 shlibpath_overrides_runpath=no
20124 hardcode_into_libs=yes
20125 dynamic_linker='GNU ld.so'
20129 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20130 version_type=freebsd-$objformat
20131 case $version_type in
20133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20138 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20142 shlibpath_var=LD_LIBRARY_PATH
20145 shlibpath_overrides_runpath=yes
20147 freebsd3.01* | freebsdelf3.01*)
20148 shlibpath_overrides_runpath=yes
20149 hardcode_into_libs=yes
20152 shlibpath_overrides_runpath=no
20153 hardcode_into_libs=yes
20162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20163 soname_spec='${libname}${release}${shared_ext}$major'
20164 shlibpath_var=LD_LIBRARY_PATH
20165 hardcode_into_libs=yes
20168 hpux9* | hpux10* | hpux11*)
20169 # Give a soname corresponding to the major version so that dld.sl refuses to
20170 # link against other versions.
20174 case "$host_cpu" in
20177 hardcode_into_libs=yes
20178 dynamic_linker="$host_os dld.so"
20179 shlibpath_var=LD_LIBRARY_PATH
20180 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20182 soname_spec='${libname}${release}${shared_ext}$major'
20183 if test "X$HPUX_IA64_MODE" = X32; then
20184 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20186 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20188 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20192 hardcode_into_libs=yes
20193 dynamic_linker="$host_os dld.sl"
20194 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20195 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20197 soname_spec='${libname}${release}${shared_ext}$major'
20198 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20199 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20203 dynamic_linker="$host_os dld.sl"
20204 shlibpath_var=SHLIB_PATH
20205 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20207 soname_spec='${libname}${release}${shared_ext}$major'
20210 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20211 postinstall_cmds='chmod 555 $lib'
20214 irix5* | irix6* | nonstopux*)
20216 nonstopux*) version_type=nonstopux ;;
20218 if test "$lt_cv_prog_gnu_ld" = yes; then
20226 soname_spec='${libname}${release}${shared_ext}$major'
20227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20229 irix5* | nonstopux*)
20230 libsuff= shlibsuff=
20233 case $LD in # libtool.m4 will add one of these switches to LD
20234 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20235 libsuff= shlibsuff= libmagic=32-bit;;
20236 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20237 libsuff=32 shlibsuff=N32 libmagic=N32;;
20238 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20239 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20240 *) libsuff= shlibsuff= libmagic=never-match;;
20244 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20245 shlibpath_overrides_runpath=no
20246 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20247 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20248 hardcode_into_libs=yes
20251 # No shared lib support for Linux oldld, aout, or coff.
20252 linux*oldld* | linux*aout* | linux*coff*)
20256 # This must be Linux ELF.
20261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20262 soname_spec='${libname}${release}${shared_ext}$major'
20263 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20264 shlibpath_var=LD_LIBRARY_PATH
20265 shlibpath_overrides_runpath=no
20266 # This implies no fast_install, which is unacceptable.
20267 # Some rework will be needed to allow for fast_install
20268 # before this can be enabled.
20269 hardcode_into_libs=yes
20271 # Append ld.so.conf contents to the search path
20272 if test -f /etc/ld.so.conf; then
20273 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20274 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20277 # We used to test for /lib/ld.so.1 and disable shared libraries on
20278 # powerpc, because MkLinux only supported shared libraries with the
20279 # GNU dynamic linker. Since this was broken with cross compilers,
20280 # most powerpc-linux boxes support dynamic linking these days and
20281 # people can always --disable-shared, the test was removed, and we
20282 # assume the GNU/Linux dynamic linker is in use.
20283 dynamic_linker='GNU/Linux ld.so'
20290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20291 soname_spec='${libname}${release}${shared_ext}$major'
20292 shlibpath_var=LD_LIBRARY_PATH
20293 shlibpath_overrides_runpath=no
20294 hardcode_into_libs=yes
20295 dynamic_linker='GNU ld.so'
20302 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20304 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20305 dynamic_linker='NetBSD (a.out) ld.so'
20307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20308 soname_spec='${libname}${release}${shared_ext}$major'
20309 dynamic_linker='NetBSD ld.elf_so'
20311 shlibpath_var=LD_LIBRARY_PATH
20312 shlibpath_overrides_runpath=yes
20313 hardcode_into_libs=yes
20318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20319 shlibpath_var=LD_LIBRARY_PATH
20320 shlibpath_overrides_runpath=yes
20327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20328 soname_spec='${libname}${release}${shared_ext}$major'
20329 shlibpath_var=LD_LIBRARY_PATH
20330 shlibpath_overrides_runpath=yes
20337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20338 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20339 shlibpath_var=LD_LIBRARY_PATH
20340 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20342 openbsd2.[89] | openbsd2.[89].*)
20343 shlibpath_overrides_runpath=no
20346 shlibpath_overrides_runpath=yes
20350 shlibpath_overrides_runpath=yes
20355 libname_spec='$name'
20358 library_names_spec='$libname${shared_ext} $libname.a'
20359 dynamic_linker='OS/2 ld.exe'
20360 shlibpath_var=LIBPATH
20363 osf3* | osf4* | osf5*)
20367 soname_spec='${libname}${release}${shared_ext}$major'
20368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20369 shlibpath_var=LD_LIBRARY_PATH
20370 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20371 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20376 soname_spec='${libname}${release}${shared_ext}$major'
20377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20378 shlibpath_var=LD_LIBRARY_PATH
20385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20386 soname_spec='${libname}${release}${shared_ext}$major'
20387 shlibpath_var=LD_LIBRARY_PATH
20388 shlibpath_overrides_runpath=yes
20389 hardcode_into_libs=yes
20390 # ldd complains unless libraries are executable
20391 postinstall_cmds='chmod +x $lib'
20396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20397 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20398 shlibpath_var=LD_LIBRARY_PATH
20399 shlibpath_overrides_runpath=yes
20400 if test "$with_gnu_ld" = yes; then
20406 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20409 soname_spec='${libname}${release}${shared_ext}$major'
20410 shlibpath_var=LD_LIBRARY_PATH
20411 case $host_vendor in
20413 shlibpath_overrides_runpath=no
20415 export_dynamic_flag_spec='${wl}-Blargedynsym'
20416 runpath_var=LD_RUN_PATH
20424 shlibpath_overrides_runpath=no
20425 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20431 if test -d /usr/nec ;then
20433 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20434 soname_spec='$libname${shared_ext}.$major'
20435 shlibpath_var=LD_LIBRARY_PATH
20441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20442 soname_spec='${libname}${release}${shared_ext}$major'
20443 shlibpath_var=LD_LIBRARY_PATH
20450 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20451 echo "${ECHO_T}$dynamic_linker" >&6
20452 test "$dynamic_linker" = no && can_build_shared=no
20454 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20455 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20456 hardcode_action_F77=
20457 if test -n "$hardcode_libdir_flag_spec_F77" || \
20458 test -n "$runpath_var_F77" || \
20459 test "X$hardcode_automatic_F77" = "Xyes" ; then
20461 # We can hardcode non-existant directories.
20462 if test "$hardcode_direct_F77" != no &&
20463 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20464 # have to relink, otherwise we might link with an installed library
20465 # when we should be linking with a yet-to-be-installed one
20466 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20467 test "$hardcode_minus_L_F77" != no; then
20468 # Linking always hardcodes the temporary library directory.
20469 hardcode_action_F77=relink
20471 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20472 hardcode_action_F77=immediate
20475 # We cannot hardcode anything, or else we can only hardcode existing
20477 hardcode_action_F77=unsupported
20479 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20480 echo "${ECHO_T}$hardcode_action_F77" >&6
20482 if test "$hardcode_action_F77" = relink; then
20483 # Fast installation is not supported
20484 enable_fast_install=no
20485 elif test "$shlibpath_overrides_runpath" = yes ||
20486 test "$enable_shared" = no; then
20487 # Fast installation is not necessary
20488 enable_fast_install=needless
20493 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20494 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20495 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20496 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20497 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20498 echo "$as_me:$LINENO: result: yes" >&5
20499 echo "${ECHO_T}yes" >&6
20501 # FIXME - insert some real tests, host_os isn't really good enough
20504 if test -n "$STRIP" ; then
20505 striplib="$STRIP -x"
20506 echo "$as_me:$LINENO: result: yes" >&5
20507 echo "${ECHO_T}yes" >&6
20509 echo "$as_me:$LINENO: result: no" >&5
20510 echo "${ECHO_T}no" >&6
20514 echo "$as_me:$LINENO: result: no" >&5
20515 echo "${ECHO_T}no" >&6
20522 # The else clause should only fire when bootstrapping the
20523 # libtool distribution, otherwise you forgot to ship ltmain.sh
20524 # with your package, and you will get complaints that there are
20525 # no rules to generate ltmain.sh.
20526 if test -f "$ltmain"; then
20527 # See if we are running on zsh, and set the options which allow our commands through
20528 # without removal of \ escapes.
20529 if test -n "${ZSH_VERSION+set}" ; then
20530 setopt NO_GLOB_SUBST
20532 # Now quote all the things that may contain metacharacters while being
20533 # careful not to overquote the AC_SUBSTed values. We take copies of the
20534 # variables and quote the copies for generation of the libtool script.
20535 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20537 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20538 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20539 deplibs_check_method reload_flag reload_cmds need_locks \
20540 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20541 lt_cv_sys_global_symbol_to_c_name_address \
20542 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20543 old_postinstall_cmds old_postuninstall_cmds \
20547 lt_prog_compiler_wl_F77 \
20548 lt_prog_compiler_pic_F77 \
20549 lt_prog_compiler_static_F77 \
20550 lt_prog_compiler_no_builtin_flag_F77 \
20551 export_dynamic_flag_spec_F77 \
20552 thread_safe_flag_spec_F77 \
20553 whole_archive_flag_spec_F77 \
20554 enable_shared_with_static_runtimes_F77 \
20555 old_archive_cmds_F77 \
20556 old_archive_from_new_cmds_F77 \
20557 predep_objects_F77 \
20558 postdep_objects_F77 \
20561 compiler_lib_search_path_F77 \
20563 archive_expsym_cmds_F77 \
20564 postinstall_cmds_F77 \
20565 postuninstall_cmds_F77 \
20566 old_archive_from_expsyms_cmds_F77 \
20567 allow_undefined_flag_F77 \
20568 no_undefined_flag_F77 \
20569 export_symbols_cmds_F77 \
20570 hardcode_libdir_flag_spec_F77 \
20571 hardcode_libdir_flag_spec_ld_F77 \
20572 hardcode_libdir_separator_F77 \
20573 hardcode_automatic_F77 \
20575 module_expsym_cmds_F77 \
20576 lt_cv_prog_compiler_c_o_F77 \
20577 exclude_expsyms_F77 \
20578 include_expsyms_F77; do
20581 old_archive_cmds_F77 | \
20582 old_archive_from_new_cmds_F77 | \
20583 archive_cmds_F77 | \
20584 archive_expsym_cmds_F77 | \
20585 module_cmds_F77 | \
20586 module_expsym_cmds_F77 | \
20587 old_archive_from_expsyms_cmds_F77 | \
20588 export_symbols_cmds_F77 | \
20589 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20590 postinstall_cmds | postuninstall_cmds | \
20591 old_postinstall_cmds | old_postuninstall_cmds | \
20592 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20593 # Double-quote double-evaled strings.
20594 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20597 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20603 *'\$0 --fallback-echo"')
20604 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20610 cat <<__EOF__ >> "$cfgfile"
20611 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20613 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20615 # Shell to use when invoking shell scripts.
20618 # Whether or not to build shared libraries.
20619 build_libtool_libs=$enable_shared
20621 # Whether or not to build static libraries.
20622 build_old_libs=$enable_static
20624 # Whether or not to add -lc for building shared libraries.
20625 build_libtool_need_lc=$archive_cmds_need_lc_F77
20627 # Whether or not to disallow shared libs when runtime libs are static
20628 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20630 # Whether or not to optimize for fast installation.
20631 fast_install=$enable_fast_install
20634 host_alias=$host_alias
20637 # An echo program that does not interpret backslashes.
20642 AR_FLAGS=$lt_AR_FLAGS
20647 # A language-specific compiler.
20648 CC=$lt_compiler_F77
20650 # Is the compiler the GNU C compiler?
20656 # The linker used to build libraries.
20659 # Whether we need hard or soft links.
20662 # A BSD-compatible nm program.
20665 # A symbol stripping program
20668 # Used to examine libraries when file_magic_cmd begins "file"
20669 MAGIC_CMD=$MAGIC_CMD
20671 # Used on cygwin: DLL creation program.
20674 # Used on cygwin: object dumper.
20677 # Used on cygwin: assembler.
20680 # The name of the directory that contains temporary libtool files.
20683 # How to create reloadable object files.
20684 reload_flag=$lt_reload_flag
20685 reload_cmds=$lt_reload_cmds
20687 # How to pass a linker flag through the compiler.
20688 wl=$lt_lt_prog_compiler_wl_F77
20690 # Object file suffix (normally "o").
20691 objext="$ac_objext"
20693 # Old archive suffix (normally "a").
20696 # Shared library suffix (normally ".so").
20697 shrext_cmds='$shrext_cmds'
20699 # Executable file suffix (normally "").
20702 # Additional compiler flags for building library objects.
20703 pic_flag=$lt_lt_prog_compiler_pic_F77
20706 # What is the maximum length of a command?
20707 max_cmd_len=$lt_cv_sys_max_cmd_len
20709 # Does compiler simultaneously support -c and -o options?
20710 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20712 # Must we lock files when doing compilation ?
20713 need_locks=$lt_need_locks
20715 # Do we need the lib prefix for modules?
20716 need_lib_prefix=$need_lib_prefix
20718 # Do we need a version for libraries?
20719 need_version=$need_version
20721 # Whether dlopen is supported.
20722 dlopen_support=$enable_dlopen
20724 # Whether dlopen of programs is supported.
20725 dlopen_self=$enable_dlopen_self
20727 # Whether dlopen of statically linked programs is supported.
20728 dlopen_self_static=$enable_dlopen_self_static
20730 # Compiler flag to prevent dynamic linking.
20731 link_static_flag=$lt_lt_prog_compiler_static_F77
20733 # Compiler flag to turn off builtin functions.
20734 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20736 # Compiler flag to allow reflexive dlopens.
20737 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20739 # Compiler flag to generate shared objects directly from archives.
20740 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20742 # Compiler flag to generate thread-safe objects.
20743 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20745 # Library versioning type.
20746 version_type=$version_type
20748 # Format of library name prefix.
20749 libname_spec=$lt_libname_spec
20751 # List of archive names. First name is the real one, the rest are links.
20752 # The last name is the one that the linker finds with -lNAME.
20753 library_names_spec=$lt_library_names_spec
20755 # The coded name of the library, if different from the real name.
20756 soname_spec=$lt_soname_spec
20758 # Commands used to build and install an old-style archive.
20760 old_archive_cmds=$lt_old_archive_cmds_F77
20761 old_postinstall_cmds=$lt_old_postinstall_cmds
20762 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20764 # Create an old-style archive from a shared archive.
20765 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20767 # Create a temporary old-style archive to link instead of a shared archive.
20768 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20770 # Commands used to build and install a shared archive.
20771 archive_cmds=$lt_archive_cmds_F77
20772 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20773 postinstall_cmds=$lt_postinstall_cmds
20774 postuninstall_cmds=$lt_postuninstall_cmds
20776 # Commands used to build a loadable module (assumed same as above if empty)
20777 module_cmds=$lt_module_cmds_F77
20778 module_expsym_cmds=$lt_module_expsym_cmds_F77
20780 # Commands to strip libraries.
20781 old_striplib=$lt_old_striplib
20782 striplib=$lt_striplib
20784 # Dependencies to place before the objects being linked to create a
20786 predep_objects=$lt_predep_objects_F77
20788 # Dependencies to place after the objects being linked to create a
20790 postdep_objects=$lt_postdep_objects_F77
20792 # Dependencies to place before the objects being linked to create a
20794 predeps=$lt_predeps_F77
20796 # Dependencies to place after the objects being linked to create a
20798 postdeps=$lt_postdeps_F77
20800 # The library search path used internally by the compiler when linking
20801 # a shared library.
20802 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20804 # Method to check whether dependent libraries are shared objects.
20805 deplibs_check_method=$lt_deplibs_check_method
20807 # Command to use when deplibs_check_method == file_magic.
20808 file_magic_cmd=$lt_file_magic_cmd
20810 # Flag that allows shared libraries with undefined symbols to be built.
20811 allow_undefined_flag=$lt_allow_undefined_flag_F77
20813 # Flag that forces no undefined symbols.
20814 no_undefined_flag=$lt_no_undefined_flag_F77
20816 # Commands used to finish a libtool library installation in a directory.
20817 finish_cmds=$lt_finish_cmds
20819 # Same as above, but a single script fragment to be evaled but not shown.
20820 finish_eval=$lt_finish_eval
20822 # Take the output of nm and produce a listing of raw symbols and C names.
20823 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20825 # Transform the output of nm in a proper C declaration
20826 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20828 # Transform the output of nm in a C name address pair
20829 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20831 # This is the shared library runtime path variable.
20832 runpath_var=$runpath_var
20834 # This is the shared library path variable.
20835 shlibpath_var=$shlibpath_var
20837 # Is shlibpath searched before the hard-coded library search path?
20838 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20840 # How to hardcode a shared library path into an executable.
20841 hardcode_action=$hardcode_action_F77
20843 # Whether we should hardcode library paths into libraries.
20844 hardcode_into_libs=$hardcode_into_libs
20846 # Flag to hardcode \$libdir into a binary during linking.
20847 # This must work even if \$libdir does not exist.
20848 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20850 # If ld is used when linking, flag to hardcode \$libdir into
20851 # a binary during linking. This must work even if \$libdir does
20853 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20855 # Whether we need a single -rpath flag with a separated argument.
20856 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20858 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20859 # resulting binary.
20860 hardcode_direct=$hardcode_direct_F77
20862 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20863 # resulting binary.
20864 hardcode_minus_L=$hardcode_minus_L_F77
20866 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20867 # the resulting binary.
20868 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20870 # Set to yes if building a shared library automatically hardcodes DIR into the library
20871 # and all subsequent libraries and executables linked against it.
20872 hardcode_automatic=$hardcode_automatic_F77
20874 # Variables whose values should be saved in libtool wrapper scripts and
20875 # restored at relink time.
20876 variables_saved_for_relink="$variables_saved_for_relink"
20878 # Whether libtool must link a program against all its dependency libraries.
20879 link_all_deplibs=$link_all_deplibs_F77
20881 # Compile-time system search path for libraries
20882 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20884 # Run-time system search path for libraries
20885 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20887 # Fix the shell variable \$srcfile for the compiler.
20888 fix_srcfile_path="$fix_srcfile_path_F77"
20890 # Set to yes if exported symbols are required.
20891 always_export_symbols=$always_export_symbols_F77
20893 # The commands to list exported symbols.
20894 export_symbols_cmds=$lt_export_symbols_cmds_F77
20896 # The commands to extract the exported symbol list from a shared archive.
20897 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20899 # Symbols that should not be listed in the preloaded symbols.
20900 exclude_expsyms=$lt_exclude_expsyms_F77
20902 # Symbols that must always be exported.
20903 include_expsyms=$lt_include_expsyms_F77
20905 # ### END LIBTOOL TAG CONFIG: $tagname
20911 # If there is no Makefile yet, we rely on a make rule to execute
20912 # `config.status --recheck' to rerun these tests and create the
20913 # libtool script then.
20914 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20915 if test -f "$ltmain_in"; then
20916 test -f Makefile && make "$ltmain"
20922 ac_cpp='$CPP $CPPFLAGS'
20923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20935 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
20937 ac_cpp='$CPP $CPPFLAGS'
20938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20943 # Source file extension for Java test sources.
20946 # Object file extension for compiled Java test sources.
20950 # Code to be used in simple compile tests
20951 lt_simple_compile_test_code="class foo {}\n"
20953 # Code to be used in simple link tests
20954 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20956 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20958 # If no C compiler was specified, use CC.
20961 # Allow CC to be a program name with arguments.
20965 # Allow CC to be a program name with arguments.
20971 # GCJ did not exist at the time GCC didn't implicitly link libc in.
20972 archive_cmds_need_lc_GCJ=no
20975 lt_prog_compiler_no_builtin_flag_GCJ=
20977 if test "$GCC" = yes; then
20978 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20981 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
20982 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20983 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20984 echo $ECHO_N "(cached) $ECHO_C" >&6
20986 lt_cv_prog_compiler_rtti_exceptions=no
20987 ac_outfile=conftest.$ac_objext
20988 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20989 lt_compiler_flag="-fno-rtti -fno-exceptions"
20990 # Insert the option either (1) after the last *FLAGS variable, or
20991 # (2) before a word containing "conftest.", or (3) at the end.
20992 # Note that $ac_compile itself does not contain backslashes and begins
20993 # with a dollar sign (not a hyphen), so the echo should work correctly.
20994 # The option is referenced via a variable to avoid confusing sed.
20995 lt_compile=`echo "$ac_compile" | $SED \
20996 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20997 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20998 -e 's:$: $lt_compiler_flag:'`
20999 (eval echo "\"\$as_me:20999: $lt_compile\"" >&5)
21000 (eval "$lt_compile" 2>conftest.err)
21002 cat conftest.err >&5
21003 echo "$as_me:21003: \$? = $ac_status" >&5
21004 if (exit $ac_status) && test -s "$ac_outfile"; then
21005 # The compiler can only warn and ignore the option if not recognized
21006 # So say no if there are warnings
21007 if test ! -s conftest.err; then
21008 lt_cv_prog_compiler_rtti_exceptions=yes
21014 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21015 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21017 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21018 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21025 lt_prog_compiler_wl_GCJ=
21026 lt_prog_compiler_pic_GCJ=
21027 lt_prog_compiler_static_GCJ=
21029 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21030 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21032 if test "$GCC" = yes; then
21033 lt_prog_compiler_wl_GCJ='-Wl,'
21034 lt_prog_compiler_static_GCJ='-static'
21038 # All AIX code is PIC.
21039 if test "$host_cpu" = ia64; then
21040 # AIX 5 now supports IA64 processor
21041 lt_prog_compiler_static_GCJ='-Bstatic'
21046 # FIXME: we need at least 68020 code to build shared libraries, but
21047 # adding the `-m68020' flag to GCC prevents building anything better,
21049 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21052 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21053 # PIC is the default for these OSes.
21056 mingw* | pw32* | os2*)
21057 # This hack is so that the source file can tell whether it is being
21058 # built for inclusion in a dll (and should export symbols for example).
21059 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21062 darwin* | rhapsody*)
21063 # PIC is the default on this platform
21064 # Common symbols not allowed in MH_DYLIB files
21065 lt_prog_compiler_pic_GCJ='-fno-common'
21069 # Just because we use GCC doesn't mean we suddenly get shared libraries
21070 # on systems that don't support them.
21071 lt_prog_compiler_can_build_shared_GCJ=no
21076 if test -d /usr/nec; then
21077 lt_prog_compiler_pic_GCJ=-Kconform_pic
21082 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21083 # not for PA HP-UX.
21084 case "$host_cpu" in
21089 lt_prog_compiler_pic_GCJ='-fPIC'
21095 lt_prog_compiler_pic_GCJ='-fPIC'
21099 # PORTME Check for flag to pass linker flags through the system compiler.
21102 lt_prog_compiler_wl_GCJ='-Wl,'
21103 if test "$host_cpu" = ia64; then
21104 # AIX 5 now supports IA64 processor
21105 lt_prog_compiler_static_GCJ='-Bstatic'
21107 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21111 # PIC is the default on this platform
21112 # Common symbols not allowed in MH_DYLIB files
21113 case "$cc_basename" in
21115 lt_prog_compiler_pic_GCJ='-qnocommon'
21116 lt_prog_compiler_wl_GCJ='-Wl,'
21121 mingw* | pw32* | os2*)
21122 # This hack is so that the source file can tell whether it is being
21123 # built for inclusion in a dll (and should export symbols for example).
21124 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21127 hpux9* | hpux10* | hpux11*)
21128 lt_prog_compiler_wl_GCJ='-Wl,'
21129 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21130 # not for PA HP-UX.
21131 case "$host_cpu" in
21136 lt_prog_compiler_pic_GCJ='+Z'
21139 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21140 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21143 irix5* | irix6* | nonstopux*)
21144 lt_prog_compiler_wl_GCJ='-Wl,'
21145 # PIC (with -KPIC) is the default.
21146 lt_prog_compiler_static_GCJ='-non_shared'
21150 lt_prog_compiler_pic_GCJ='-KPIC'
21151 lt_prog_compiler_static_GCJ='-Bstatic'
21157 lt_prog_compiler_wl_GCJ='-Wl,'
21158 lt_prog_compiler_pic_GCJ='-KPIC'
21159 lt_prog_compiler_static_GCJ='-static'
21162 lt_prog_compiler_wl_GCJ='-Wl,'
21163 # All Alpha code is PIC.
21164 lt_prog_compiler_static_GCJ='-non_shared'
21169 osf3* | osf4* | osf5*)
21170 lt_prog_compiler_wl_GCJ='-Wl,'
21171 # All OSF/1 code is PIC.
21172 lt_prog_compiler_static_GCJ='-non_shared'
21176 lt_prog_compiler_pic_GCJ='-Kpic'
21177 lt_prog_compiler_static_GCJ='-dn'
21181 lt_prog_compiler_wl_GCJ='-Wl,'
21182 lt_prog_compiler_pic_GCJ='-KPIC'
21183 lt_prog_compiler_static_GCJ='-Bstatic'
21187 lt_prog_compiler_wl_GCJ='-Qoption ld '
21188 lt_prog_compiler_pic_GCJ='-PIC'
21189 lt_prog_compiler_static_GCJ='-Bstatic'
21192 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21193 lt_prog_compiler_wl_GCJ='-Wl,'
21194 lt_prog_compiler_pic_GCJ='-KPIC'
21195 lt_prog_compiler_static_GCJ='-Bstatic'
21199 if test -d /usr/nec ;then
21200 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21201 lt_prog_compiler_static_GCJ='-Bstatic'
21206 lt_prog_compiler_pic_GCJ='-pic'
21207 lt_prog_compiler_static_GCJ='-Bstatic'
21211 lt_prog_compiler_can_build_shared_GCJ=no
21216 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21217 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21220 # Check to make sure the PIC flag actually works.
21222 if test -n "$lt_prog_compiler_pic_GCJ"; then
21224 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21225 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21226 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21227 echo $ECHO_N "(cached) $ECHO_C" >&6
21229 lt_prog_compiler_pic_works_GCJ=no
21230 ac_outfile=conftest.$ac_objext
21231 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21232 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21233 # Insert the option either (1) after the last *FLAGS variable, or
21234 # (2) before a word containing "conftest.", or (3) at the end.
21235 # Note that $ac_compile itself does not contain backslashes and begins
21236 # with a dollar sign (not a hyphen), so the echo should work correctly.
21237 # The option is referenced via a variable to avoid confusing sed.
21238 lt_compile=`echo "$ac_compile" | $SED \
21239 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21240 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21241 -e 's:$: $lt_compiler_flag:'`
21242 (eval echo "\"\$as_me:21242: $lt_compile\"" >&5)
21243 (eval "$lt_compile" 2>conftest.err)
21245 cat conftest.err >&5
21246 echo "$as_me:21246: \$? = $ac_status" >&5
21247 if (exit $ac_status) && test -s "$ac_outfile"; then
21248 # The compiler can only warn and ignore the option if not recognized
21249 # So say no if there are warnings
21250 if test ! -s conftest.err; then
21251 lt_prog_compiler_pic_works_GCJ=yes
21257 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21258 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21260 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21261 case $lt_prog_compiler_pic_GCJ in
21263 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21266 lt_prog_compiler_pic_GCJ=
21267 lt_prog_compiler_can_build_shared_GCJ=no
21272 # For platforms which do not support PIC, -DPIC is meaningless:
21274 lt_prog_compiler_pic_GCJ=
21277 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21281 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21282 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21283 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21284 echo $ECHO_N "(cached) $ECHO_C" >&6
21286 lt_cv_prog_compiler_c_o_GCJ=no
21287 $rm -r conftest 2>/dev/null
21291 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21293 lt_compiler_flag="-o out/conftest2.$ac_objext"
21294 # Insert the option either (1) after the last *FLAGS variable, or
21295 # (2) before a word containing "conftest.", or (3) at the end.
21296 # Note that $ac_compile itself does not contain backslashes and begins
21297 # with a dollar sign (not a hyphen), so the echo should work correctly.
21298 lt_compile=`echo "$ac_compile" | $SED \
21299 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21300 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21301 -e 's:$: $lt_compiler_flag:'`
21302 (eval echo "\"\$as_me:21302: $lt_compile\"" >&5)
21303 (eval "$lt_compile" 2>out/conftest.err)
21305 cat out/conftest.err >&5
21306 echo "$as_me:21306: \$? = $ac_status" >&5
21307 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21309 # The compiler can only warn and ignore the option if not recognized
21310 # So say no if there are warnings
21311 if test ! -s out/conftest.err; then
21312 lt_cv_prog_compiler_c_o_GCJ=yes
21317 # SGI C++ compiler will create directory out/ii_files/ for
21318 # template instantiation
21319 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21320 $rm out/* && rmdir out
21326 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21327 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21330 hard_links="nottested"
21331 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21332 # do not overwrite the value of need_locks provided by the user
21333 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21334 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21337 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21339 ln conftest.a conftest.b 2>&5 || hard_links=no
21340 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21341 echo "$as_me:$LINENO: result: $hard_links" >&5
21342 echo "${ECHO_T}$hard_links" >&6
21343 if test "$hard_links" = no; then
21344 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21345 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21352 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21353 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21356 allow_undefined_flag_GCJ=
21357 enable_shared_with_static_runtimes_GCJ=no
21359 archive_expsym_cmds_GCJ=
21360 old_archive_From_new_cmds_GCJ=
21361 old_archive_from_expsyms_cmds_GCJ=
21362 export_dynamic_flag_spec_GCJ=
21363 whole_archive_flag_spec_GCJ=
21364 thread_safe_flag_spec_GCJ=
21365 hardcode_libdir_flag_spec_GCJ=
21366 hardcode_libdir_flag_spec_ld_GCJ=
21367 hardcode_libdir_separator_GCJ=
21368 hardcode_direct_GCJ=no
21369 hardcode_minus_L_GCJ=no
21370 hardcode_shlibpath_var_GCJ=unsupported
21371 link_all_deplibs_GCJ=unknown
21372 hardcode_automatic_GCJ=no
21374 module_expsym_cmds_GCJ=
21375 always_export_symbols_GCJ=no
21376 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21377 # include_expsyms should be a list of space-separated symbols to be *always*
21378 # included in the symbol list
21379 include_expsyms_GCJ=
21380 # exclude_expsyms can be an extended regexp of symbols to exclude
21381 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21382 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21383 # as well as any symbol that contains `d'.
21384 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21385 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21386 # platforms (ab)use it in PIC code, but their linkers get confused if
21387 # the symbol is explicitly referenced. Since portable code cannot
21388 # rely on this symbol name, it's probably fine to never include it in
21389 # preloaded symbol tables.
21390 extract_expsyms_cmds=
21393 cygwin* | mingw* | pw32*)
21394 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21395 # When not using gcc, we currently assume that we are using
21396 # Microsoft Visual C++.
21397 if test "$GCC" != yes; then
21407 if test "$with_gnu_ld" = yes; then
21408 # If archive_cmds runs LD, not CC, wlarc should be empty
21411 # See if GNU ld supports shared libraries.
21413 aix3* | aix4* | aix5*)
21414 # On AIX/PPC, the GNU linker is very broken
21415 if test "$host_cpu" != ia64; then
21419 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21420 *** to be unable to reliably create shared libraries on AIX.
21421 *** Therefore, libtool is disabling shared libraries support. If you
21422 *** really care for shared libraries, you may want to modify your PATH
21423 *** so that a non-GNU linker is found, and then restart.
21430 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)'
21431 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21432 hardcode_minus_L_GCJ=yes
21434 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21435 # that the semantics of dynamic libraries on AmigaOS, at least up
21436 # to version 4, is to share data among multiple programs linked
21437 # with the same dynamic library. Since this doesn't match the
21438 # behavior of shared libraries on other platforms, we can't use
21444 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21445 allow_undefined_flag_GCJ=unsupported
21446 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21447 # support --undefined. This deserves some investigation. FIXME
21448 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21454 cygwin* | mingw* | pw32*)
21455 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21456 # as there is no search path for DLLs.
21457 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21458 allow_undefined_flag_GCJ=unsupported
21459 always_export_symbols_GCJ=no
21460 enable_shared_with_static_runtimes_GCJ=yes
21461 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21463 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21464 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21465 # If the export-symbols file already is a .def file (1st line
21466 # is EXPORTS), use it as is; otherwise, prepend...
21467 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21468 cp $export_symbols $output_objdir/$soname.def;
21470 echo EXPORTS > $output_objdir/$soname.def;
21471 cat $export_symbols >> $output_objdir/$soname.def;
21473 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21480 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21481 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21484 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21485 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21490 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21494 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21495 *** create shared libraries on Solaris systems. Therefore, libtool
21496 *** is disabling shared libraries support. We urge you to upgrade GNU
21497 *** binutils to release 2.9.1 or newer. Another option is to modify
21498 *** your PATH or compiler configuration so that the native linker is
21499 *** used, and then restart.
21502 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21503 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21504 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21511 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21513 hardcode_direct_GCJ=yes
21514 hardcode_shlibpath_var_GCJ=no
21518 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21519 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21520 archive_cmds_GCJ="$tmp_archive_cmds"
21521 supports_anon_versioning=no
21522 case `$LD -v 2>/dev/null` in
21523 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21524 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21525 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21526 *\ 2.11.*) ;; # other 2.11 versions
21527 *) supports_anon_versioning=yes ;;
21529 if test $supports_anon_versioning = yes; then
21530 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21531 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21532 $echo "local: *; };" >> $output_objdir/$libname.ver~
21533 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21535 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21543 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21544 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21545 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21552 if test "$ld_shlibs_GCJ" = yes; then
21553 runpath_var=LD_RUN_PATH
21554 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21555 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21556 # ancient GNU ld didn't support --whole-archive et. al.
21557 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21558 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21560 whole_archive_flag_spec_GCJ=
21564 # PORTME fill in a description of your system's linker (not GNU ld)
21567 allow_undefined_flag_GCJ=unsupported
21568 always_export_symbols_GCJ=yes
21569 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'
21570 # Note: this linker hardcodes the directories in LIBPATH if there
21571 # are no directories specified by -L.
21572 hardcode_minus_L_GCJ=yes
21573 if test "$GCC" = yes && test -z "$link_static_flag"; then
21574 # Neither direct hardcoding nor static linking is supported with a
21576 hardcode_direct_GCJ=unsupported
21581 if test "$host_cpu" = ia64; then
21582 # On IA64, the linker does run time linking by default, so we don't
21583 # have to do anything special.
21584 aix_use_runtimelinking=no
21585 exp_sym_flag='-Bexport'
21588 # If we're using GNU nm, then we don't want the "-C" option.
21589 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21590 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21591 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'
21593 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'
21595 aix_use_runtimelinking=no
21597 # Test if we are trying to use run time linking or normal
21598 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21599 # need to do runtime linking.
21600 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21601 for ld_flag in $LDFLAGS; do
21602 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21603 aix_use_runtimelinking=yes
21609 exp_sym_flag='-bexport'
21610 no_entry_flag='-bnoentry'
21613 # When large executables or shared objects are built, AIX ld can
21614 # have problems creating the table of contents. If linking a library
21615 # or program results in "error TOC overflow" add -mminimal-toc to
21616 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21617 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21619 archive_cmds_GCJ=''
21620 hardcode_direct_GCJ=yes
21621 hardcode_libdir_separator_GCJ=':'
21622 link_all_deplibs_GCJ=yes
21624 if test "$GCC" = yes; then
21625 case $host_os in aix4.012|aix4.012.*)
21626 # We only want to do this on AIX 4.2 and lower, the check
21627 # below for broken collect2 doesn't work under 4.3+
21628 collect2name=`${CC} -print-prog-name=collect2`
21629 if test -f "$collect2name" && \
21630 strings "$collect2name" | grep resolve_lib_name >/dev/null
21632 # We have reworked collect2
21633 hardcode_direct_GCJ=yes
21635 # We have old collect2
21636 hardcode_direct_GCJ=unsupported
21637 # It fails to find uninstalled libraries when the uninstalled
21638 # path is not listed in the libpath. Setting hardcode_minus_L
21639 # to unsupported forces relinking
21640 hardcode_minus_L_GCJ=yes
21641 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21642 hardcode_libdir_separator_GCJ=
21645 shared_flag='-shared'
21648 if test "$host_cpu" = ia64; then
21649 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21650 # chokes on -Wl,-G. The following line is correct:
21653 if test "$aix_use_runtimelinking" = yes; then
21654 shared_flag='${wl}-G'
21656 shared_flag='${wl}-bM:SRE'
21661 # It seems that -bexpall does not export symbols beginning with
21662 # underscore (_), so it is better to generate a list of symbols to export.
21663 always_export_symbols_GCJ=yes
21664 if test "$aix_use_runtimelinking" = yes; then
21665 # Warning - without using the other runtime loading flags (-brtl),
21666 # -berok will link without error, but may produce a broken library.
21667 allow_undefined_flag_GCJ='-berok'
21668 # Determine the default libpath from the value encoded in an empty executable.
21669 cat >conftest.$ac_ext <<_ACEOF
21672 cat confdefs.h >>conftest.$ac_ext
21673 cat >>conftest.$ac_ext <<_ACEOF
21674 /* end confdefs.h. */
21684 rm -f conftest.$ac_objext conftest$ac_exeext
21685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21686 (eval $ac_link) 2>conftest.er1
21688 grep -v '^ *+' conftest.er1 >conftest.err
21690 cat conftest.err >&5
21691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21692 (exit $ac_status); } &&
21693 { ac_try='test -z "$ac_c_werror_flag"
21694 || test ! -s conftest.err'
21695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21696 (eval $ac_try) 2>&5
21698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699 (exit $ac_status); }; } &&
21700 { ac_try='test -s conftest$ac_exeext'
21701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21702 (eval $ac_try) 2>&5
21704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21705 (exit $ac_status); }; }; then
21707 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21709 # Check for a 64-bit object if we didn't find anything.
21710 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; }
21713 echo "$as_me: failed program was:" >&5
21714 sed 's/^/| /' conftest.$ac_ext >&5
21717 rm -f conftest.err conftest.$ac_objext \
21718 conftest$ac_exeext conftest.$ac_ext
21719 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21721 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21722 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"
21724 if test "$host_cpu" = ia64; then
21725 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21726 allow_undefined_flag_GCJ="-z nodefs"
21727 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"
21729 # Determine the default libpath from the value encoded in an empty executable.
21730 cat >conftest.$ac_ext <<_ACEOF
21733 cat confdefs.h >>conftest.$ac_ext
21734 cat >>conftest.$ac_ext <<_ACEOF
21735 /* end confdefs.h. */
21745 rm -f conftest.$ac_objext conftest$ac_exeext
21746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21747 (eval $ac_link) 2>conftest.er1
21749 grep -v '^ *+' conftest.er1 >conftest.err
21751 cat conftest.err >&5
21752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21753 (exit $ac_status); } &&
21754 { ac_try='test -z "$ac_c_werror_flag"
21755 || test ! -s conftest.err'
21756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21757 (eval $ac_try) 2>&5
21759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760 (exit $ac_status); }; } &&
21761 { ac_try='test -s conftest$ac_exeext'
21762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21763 (eval $ac_try) 2>&5
21765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21766 (exit $ac_status); }; }; then
21768 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21770 # Check for a 64-bit object if we didn't find anything.
21771 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; }
21774 echo "$as_me: failed program was:" >&5
21775 sed 's/^/| /' conftest.$ac_ext >&5
21778 rm -f conftest.err conftest.$ac_objext \
21779 conftest$ac_exeext conftest.$ac_ext
21780 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21782 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21783 # Warning - without using the other run time loading flags,
21784 # -berok will link without error, but may produce a broken library.
21785 no_undefined_flag_GCJ=' ${wl}-bernotok'
21786 allow_undefined_flag_GCJ=' ${wl}-berok'
21787 # -bexpall does not export symbols beginning with underscore (_)
21788 always_export_symbols_GCJ=yes
21789 # Exported symbols can be pulled into shared objects from archives
21790 whole_archive_flag_spec_GCJ=' '
21791 archive_cmds_need_lc_GCJ=yes
21792 # This is similar to how AIX traditionally builds it's shared libraries.
21793 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'
21799 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)'
21800 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21801 hardcode_minus_L_GCJ=yes
21802 # see comment about different semantics on the GNU ld section
21807 export_dynamic_flag_spec_GCJ=-rdynamic
21810 cygwin* | mingw* | pw32*)
21811 # When not using gcc, we currently assume that we are using
21812 # Microsoft Visual C++.
21813 # hardcode_libdir_flag_spec is actually meaningless, as there is
21814 # no search path for DLLs.
21815 hardcode_libdir_flag_spec_GCJ=' '
21816 allow_undefined_flag_GCJ=unsupported
21817 # Tell ltmain to make .lib files, not .a files.
21819 # Tell ltmain to make .dll files, not .so files.
21821 # FIXME: Setting linknames here is a bad hack.
21822 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21823 # The linker will automatically build a .lib file if we build a DLL.
21824 old_archive_From_new_cmds_GCJ='true'
21825 # FIXME: Should let the user specify the lib program.
21826 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21827 fix_srcfile_path='`cygpath -w "$srcfile"`'
21828 enable_shared_with_static_runtimes_GCJ=yes
21831 darwin* | rhapsody*)
21833 rhapsody* | darwin1.[012])
21834 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21837 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21838 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21840 case ${MACOSX_DEPLOYMENT_TARGET} in
21842 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21845 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21851 archive_cmds_need_lc_GCJ=no
21852 hardcode_direct_GCJ=no
21853 hardcode_automatic_GCJ=yes
21854 hardcode_shlibpath_var_GCJ=unsupported
21855 whole_archive_flag_spec_GCJ=''
21856 link_all_deplibs_GCJ=yes
21857 if test "$GCC" = yes ; then
21858 output_verbose_link_cmd='echo'
21859 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21860 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21861 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21862 archive_expsym_cmds_GCJ='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}'
21863 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
21865 case "$cc_basename" in
21867 output_verbose_link_cmd='echo'
21868 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21869 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21870 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21871 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
21872 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
21882 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21883 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21884 hardcode_shlibpath_var_GCJ=no
21891 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21892 # support. Future versions do this automatically, but an explicit c++rt0.o
21893 # does not break anything, and helps significantly (at the cost of a little
21896 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21897 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21898 hardcode_direct_GCJ=yes
21899 hardcode_shlibpath_var_GCJ=no
21902 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21904 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21905 hardcode_direct_GCJ=yes
21906 hardcode_minus_L_GCJ=yes
21907 hardcode_shlibpath_var_GCJ=no
21910 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21911 freebsd* | kfreebsd*-gnu)
21912 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21913 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21914 hardcode_direct_GCJ=yes
21915 hardcode_shlibpath_var_GCJ=no
21919 if test "$GCC" = yes; then
21920 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'
21922 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'
21924 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21925 hardcode_libdir_separator_GCJ=:
21926 hardcode_direct_GCJ=yes
21928 # hardcode_minus_L: Not really in the search PATH,
21929 # but as the default location of the library.
21930 hardcode_minus_L_GCJ=yes
21931 export_dynamic_flag_spec_GCJ='${wl}-E'
21935 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21936 case "$host_cpu" in
21938 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21941 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21945 case "$host_cpu" in
21947 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21950 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21954 if test "$with_gnu_ld" = no; then
21955 case "$host_cpu" in
21957 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21958 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21959 hardcode_libdir_separator_GCJ=:
21960 hardcode_direct_GCJ=no
21961 hardcode_shlibpath_var_GCJ=no
21964 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21965 hardcode_direct_GCJ=no
21966 hardcode_shlibpath_var_GCJ=no
21968 # hardcode_minus_L: Not really in the search PATH,
21969 # but as the default location of the library.
21970 hardcode_minus_L_GCJ=yes
21973 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21974 hardcode_libdir_separator_GCJ=:
21975 hardcode_direct_GCJ=yes
21976 export_dynamic_flag_spec_GCJ='${wl}-E'
21978 # hardcode_minus_L: Not really in the search PATH,
21979 # but as the default location of the library.
21980 hardcode_minus_L_GCJ=yes
21986 irix5* | irix6* | nonstopux*)
21987 if test "$GCC" = yes; then
21988 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'
21990 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'
21991 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21993 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21994 hardcode_libdir_separator_GCJ=:
21995 link_all_deplibs_GCJ=yes
21999 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22000 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22002 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22004 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22005 hardcode_direct_GCJ=yes
22006 hardcode_shlibpath_var_GCJ=no
22010 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22011 hardcode_direct_GCJ=yes
22012 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22013 hardcode_libdir_separator_GCJ=:
22014 hardcode_shlibpath_var_GCJ=no
22018 hardcode_direct_GCJ=yes
22019 hardcode_shlibpath_var_GCJ=no
22020 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22021 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22022 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22023 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22024 export_dynamic_flag_spec_GCJ='${wl}-E'
22027 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22028 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22029 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22032 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22033 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22040 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22041 hardcode_minus_L_GCJ=yes
22042 allow_undefined_flag_GCJ=unsupported
22043 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'
22044 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22048 if test "$GCC" = yes; then
22049 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22050 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'
22052 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22053 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'
22055 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22056 hardcode_libdir_separator_GCJ=:
22059 osf4* | osf5*) # as osf3* with the addition of -msym flag
22060 if test "$GCC" = yes; then
22061 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22062 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'
22063 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22065 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22066 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'
22067 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~
22068 $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'
22070 # Both c and cxx compiler support -rpath directly
22071 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22073 hardcode_libdir_separator_GCJ=:
22077 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22078 hardcode_shlibpath_var_GCJ=no
22079 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22080 runpath_var=LD_RUN_PATH
22081 hardcode_runpath_var=yes
22085 no_undefined_flag_GCJ=' -z text'
22086 if test "$GCC" = yes; then
22087 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22088 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22089 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22091 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22092 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22093 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22095 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22096 hardcode_shlibpath_var_GCJ=no
22098 solaris2.[0-5] | solaris2.[0-5].*) ;;
22099 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22100 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22102 link_all_deplibs_GCJ=yes
22106 if test "x$host_vendor" = xsequent; then
22107 # Use $CC to link under sequent, because it throws in some extra .o
22108 # files that make .init and .fini sections work.
22109 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22111 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22113 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22114 hardcode_direct_GCJ=yes
22115 hardcode_minus_L_GCJ=yes
22116 hardcode_shlibpath_var_GCJ=no
22120 case $host_vendor in
22122 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22123 hardcode_direct_GCJ=yes # is this really true???
22126 ## LD is ld it makes a PLAMLIB
22127 ## CC just makes a GrossModule.
22128 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22129 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22130 hardcode_direct_GCJ=no
22133 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22134 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22137 runpath_var='LD_RUN_PATH'
22138 hardcode_shlibpath_var_GCJ=no
22142 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22143 hardcode_shlibpath_var_GCJ=no
22144 export_dynamic_flag_spec_GCJ='-Bexport'
22148 if test -d /usr/nec; then
22149 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22150 hardcode_shlibpath_var_GCJ=no
22151 runpath_var=LD_RUN_PATH
22152 hardcode_runpath_var=yes
22158 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22159 hardcode_direct_GCJ=yes
22160 hardcode_minus_L_GCJ=no
22161 hardcode_shlibpath_var_GCJ=no
22162 hardcode_runpath_var=yes
22163 runpath_var=LD_RUN_PATH
22166 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22167 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22168 if test "$GCC" = yes; then
22169 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22171 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22173 runpath_var='LD_RUN_PATH'
22174 hardcode_shlibpath_var_GCJ=no
22178 no_undefined_flag_GCJ=' -z text'
22179 # $CC -shared without GNU ld will not create a library from C++
22180 # object files and a static libstdc++, better avoid it by now
22181 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22182 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22183 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22184 hardcode_libdir_flag_spec_GCJ=
22185 hardcode_shlibpath_var_GCJ=no
22186 runpath_var='LD_RUN_PATH'
22190 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22191 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22192 hardcode_shlibpath_var_GCJ=no
22201 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22202 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22203 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22205 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22206 if test "$GCC" = yes; then
22207 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22211 # Do we need to explicitly link libc?
22213 case "x$archive_cmds_need_lc_GCJ" in
22215 # Assume -lc should be added
22216 archive_cmds_need_lc_GCJ=yes
22218 if test "$enable_shared" = yes && test "$GCC" = yes; then
22219 case $archive_cmds_GCJ in
22221 # FIXME: we may have to deal with multi-command sequences.
22224 # Test whether the compiler implicitly links with -lc since on some
22225 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22226 # to ld, don't add -lc before -lgcc.
22227 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22228 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22230 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22233 (eval $ac_compile) 2>&5
22235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22236 (exit $ac_status); } 2>conftest.err; then
22239 libobjs=conftest.$ac_objext
22241 wl=$lt_prog_compiler_wl_GCJ
22247 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22248 allow_undefined_flag_GCJ=
22249 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22250 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22253 (exit $ac_status); }
22255 archive_cmds_need_lc_GCJ=no
22257 archive_cmds_need_lc_GCJ=yes
22259 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22261 cat conftest.err 1>&5
22264 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22265 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22272 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22273 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22274 library_names_spec=
22275 libname_spec='lib$name'
22279 postuninstall_cmds=
22283 shlibpath_overrides_runpath=unknown
22285 dynamic_linker="$host_os ld.so"
22286 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22287 if test "$GCC" = yes; then
22288 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22289 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22290 # if the path contains ";" then we assume it to be the separator
22291 # otherwise default to the standard path separator (i.e. ":") - it is
22292 # assumed that no part of a normal pathname contains ";" but that should
22293 # okay in the real world where ";" in dirpaths is itself problematic.
22294 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22296 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22299 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22301 need_lib_prefix=unknown
22302 hardcode_into_libs=no
22304 # when you set need_version to no, make sure it does not cause -set_version
22305 # flags to be left without arguments
22306 need_version=unknown
22311 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22312 shlibpath_var=LIBPATH
22314 # AIX 3 has no versioning support, so we append a major version to the name.
22315 soname_spec='${libname}${release}${shared_ext}$major'
22322 hardcode_into_libs=yes
22323 if test "$host_cpu" = ia64; then
22324 # AIX 5 supports IA64
22325 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22326 shlibpath_var=LD_LIBRARY_PATH
22328 # With GCC up to 2.95.x, collect2 would create an import file
22329 # for dependence libraries. The import file would start with
22330 # the line `#! .'. This would cause the generated library to
22331 # depend on `.', always an invalid library. This was fixed in
22332 # development snapshots of GCC prior to 3.0.
22334 aix4 | aix4.[01] | aix4.[01].*)
22335 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22337 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22340 can_build_shared=no
22344 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22345 # soname into executable. Probably we can add versioning support to
22346 # collect2, so additional links can be useful in future.
22347 if test "$aix_use_runtimelinking" = yes; then
22348 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22349 # instead of lib<name>.a to let people know that these are not
22350 # typical AIX shared libraries.
22351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22353 # We preserve .a as extension for shared libraries through AIX4.2
22354 # and later when we are not doing run time linking.
22355 library_names_spec='${libname}${release}.a $libname.a'
22356 soname_spec='${libname}${release}${shared_ext}$major'
22358 shlibpath_var=LIBPATH
22363 library_names_spec='$libname.ixlibrary $libname.a'
22364 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22365 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'
22369 library_names_spec='${libname}${shared_ext}'
22370 dynamic_linker="$host_os ld.so"
22371 shlibpath_var=LIBRARY_PATH
22377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22378 soname_spec='${libname}${release}${shared_ext}$major'
22379 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22380 shlibpath_var=LD_LIBRARY_PATH
22381 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22382 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22383 # the default ld.so.conf also contains /usr/contrib/lib and
22384 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22385 # libtool to hard-code these into programs
22388 cygwin* | mingw* | pw32*)
22389 version_type=windows
22394 case $GCC,$host_os in
22395 yes,cygwin* | yes,mingw* | yes,pw32*)
22396 library_names_spec='$libname.dll.a'
22397 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22398 postinstall_cmds='base_file=`basename \${file}`~
22399 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22400 dldir=$destdir/`dirname \$dlpath`~
22401 test -d \$dldir || mkdir -p \$dldir~
22402 $install_prog $dir/$dlname \$dldir/$dlname'
22403 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22404 dlpath=$dir/\$dldll~
22406 shlibpath_overrides_runpath=yes
22410 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22411 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22412 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22415 # MinGW DLLs use traditional 'lib' prefix
22416 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22417 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22418 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22419 # It is most probably a Windows format PATH printed by
22420 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22421 # path with ; separators, and with drive letters. We can handle the
22422 # drive letters (cygwin fileutils understands them), so leave them,
22423 # especially as we might pass files found there to a mingw objdump,
22424 # which wouldn't understand a cygwinified path. Ahh.
22425 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22427 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22431 # pw32 DLLs use 'pw' prefix rather than 'lib'
22432 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22438 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22441 dynamic_linker='Win32 ld.exe'
22442 # FIXME: first we should search . and the directory the executable is in
22446 darwin* | rhapsody*)
22447 dynamic_linker="$host_os dyld"
22448 version_type=darwin
22451 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22452 soname_spec='${libname}${release}${major}$shared_ext'
22453 shlibpath_overrides_runpath=yes
22454 shlibpath_var=DYLD_LIBRARY_PATH
22455 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22456 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22457 if test "$GCC" = yes; then
22458 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"`
22460 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22462 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22470 soname_spec='${libname}${release}${shared_ext}$major'
22471 shlibpath_var=LD_LIBRARY_PATH
22482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22483 soname_spec='${libname}${release}${shared_ext}$major'
22484 shlibpath_var=LD_LIBRARY_PATH
22485 shlibpath_overrides_runpath=no
22486 hardcode_into_libs=yes
22487 dynamic_linker='GNU ld.so'
22491 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22492 version_type=freebsd-$objformat
22493 case $version_type in
22495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22500 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22504 shlibpath_var=LD_LIBRARY_PATH
22507 shlibpath_overrides_runpath=yes
22509 freebsd3.01* | freebsdelf3.01*)
22510 shlibpath_overrides_runpath=yes
22511 hardcode_into_libs=yes
22514 shlibpath_overrides_runpath=no
22515 hardcode_into_libs=yes
22524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22525 soname_spec='${libname}${release}${shared_ext}$major'
22526 shlibpath_var=LD_LIBRARY_PATH
22527 hardcode_into_libs=yes
22530 hpux9* | hpux10* | hpux11*)
22531 # Give a soname corresponding to the major version so that dld.sl refuses to
22532 # link against other versions.
22536 case "$host_cpu" in
22539 hardcode_into_libs=yes
22540 dynamic_linker="$host_os dld.so"
22541 shlibpath_var=LD_LIBRARY_PATH
22542 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22544 soname_spec='${libname}${release}${shared_ext}$major'
22545 if test "X$HPUX_IA64_MODE" = X32; then
22546 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22548 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22550 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22554 hardcode_into_libs=yes
22555 dynamic_linker="$host_os dld.sl"
22556 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22557 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22559 soname_spec='${libname}${release}${shared_ext}$major'
22560 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22561 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22565 dynamic_linker="$host_os dld.sl"
22566 shlibpath_var=SHLIB_PATH
22567 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22569 soname_spec='${libname}${release}${shared_ext}$major'
22572 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22573 postinstall_cmds='chmod 555 $lib'
22576 irix5* | irix6* | nonstopux*)
22578 nonstopux*) version_type=nonstopux ;;
22580 if test "$lt_cv_prog_gnu_ld" = yes; then
22588 soname_spec='${libname}${release}${shared_ext}$major'
22589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22591 irix5* | nonstopux*)
22592 libsuff= shlibsuff=
22595 case $LD in # libtool.m4 will add one of these switches to LD
22596 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22597 libsuff= shlibsuff= libmagic=32-bit;;
22598 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22599 libsuff=32 shlibsuff=N32 libmagic=N32;;
22600 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22601 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22602 *) libsuff= shlibsuff= libmagic=never-match;;
22606 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22607 shlibpath_overrides_runpath=no
22608 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22609 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22610 hardcode_into_libs=yes
22613 # No shared lib support for Linux oldld, aout, or coff.
22614 linux*oldld* | linux*aout* | linux*coff*)
22618 # This must be Linux ELF.
22623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22624 soname_spec='${libname}${release}${shared_ext}$major'
22625 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22626 shlibpath_var=LD_LIBRARY_PATH
22627 shlibpath_overrides_runpath=no
22628 # This implies no fast_install, which is unacceptable.
22629 # Some rework will be needed to allow for fast_install
22630 # before this can be enabled.
22631 hardcode_into_libs=yes
22633 # Append ld.so.conf contents to the search path
22634 if test -f /etc/ld.so.conf; then
22635 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22636 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22639 # We used to test for /lib/ld.so.1 and disable shared libraries on
22640 # powerpc, because MkLinux only supported shared libraries with the
22641 # GNU dynamic linker. Since this was broken with cross compilers,
22642 # most powerpc-linux boxes support dynamic linking these days and
22643 # people can always --disable-shared, the test was removed, and we
22644 # assume the GNU/Linux dynamic linker is in use.
22645 dynamic_linker='GNU/Linux ld.so'
22652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22653 soname_spec='${libname}${release}${shared_ext}$major'
22654 shlibpath_var=LD_LIBRARY_PATH
22655 shlibpath_overrides_runpath=no
22656 hardcode_into_libs=yes
22657 dynamic_linker='GNU ld.so'
22664 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22666 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22667 dynamic_linker='NetBSD (a.out) ld.so'
22669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22670 soname_spec='${libname}${release}${shared_ext}$major'
22671 dynamic_linker='NetBSD ld.elf_so'
22673 shlibpath_var=LD_LIBRARY_PATH
22674 shlibpath_overrides_runpath=yes
22675 hardcode_into_libs=yes
22680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22681 shlibpath_var=LD_LIBRARY_PATH
22682 shlibpath_overrides_runpath=yes
22689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22690 soname_spec='${libname}${release}${shared_ext}$major'
22691 shlibpath_var=LD_LIBRARY_PATH
22692 shlibpath_overrides_runpath=yes
22699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22700 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22701 shlibpath_var=LD_LIBRARY_PATH
22702 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22704 openbsd2.[89] | openbsd2.[89].*)
22705 shlibpath_overrides_runpath=no
22708 shlibpath_overrides_runpath=yes
22712 shlibpath_overrides_runpath=yes
22717 libname_spec='$name'
22720 library_names_spec='$libname${shared_ext} $libname.a'
22721 dynamic_linker='OS/2 ld.exe'
22722 shlibpath_var=LIBPATH
22725 osf3* | osf4* | osf5*)
22729 soname_spec='${libname}${release}${shared_ext}$major'
22730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22731 shlibpath_var=LD_LIBRARY_PATH
22732 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22733 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22738 soname_spec='${libname}${release}${shared_ext}$major'
22739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22740 shlibpath_var=LD_LIBRARY_PATH
22747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22748 soname_spec='${libname}${release}${shared_ext}$major'
22749 shlibpath_var=LD_LIBRARY_PATH
22750 shlibpath_overrides_runpath=yes
22751 hardcode_into_libs=yes
22752 # ldd complains unless libraries are executable
22753 postinstall_cmds='chmod +x $lib'
22758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22759 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22760 shlibpath_var=LD_LIBRARY_PATH
22761 shlibpath_overrides_runpath=yes
22762 if test "$with_gnu_ld" = yes; then
22768 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22771 soname_spec='${libname}${release}${shared_ext}$major'
22772 shlibpath_var=LD_LIBRARY_PATH
22773 case $host_vendor in
22775 shlibpath_overrides_runpath=no
22777 export_dynamic_flag_spec='${wl}-Blargedynsym'
22778 runpath_var=LD_RUN_PATH
22786 shlibpath_overrides_runpath=no
22787 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22793 if test -d /usr/nec ;then
22795 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22796 soname_spec='$libname${shared_ext}.$major'
22797 shlibpath_var=LD_LIBRARY_PATH
22803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22804 soname_spec='${libname}${release}${shared_ext}$major'
22805 shlibpath_var=LD_LIBRARY_PATH
22812 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22813 echo "${ECHO_T}$dynamic_linker" >&6
22814 test "$dynamic_linker" = no && can_build_shared=no
22816 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22817 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22818 hardcode_action_GCJ=
22819 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22820 test -n "$runpath_var_GCJ" || \
22821 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22823 # We can hardcode non-existant directories.
22824 if test "$hardcode_direct_GCJ" != no &&
22825 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22826 # have to relink, otherwise we might link with an installed library
22827 # when we should be linking with a yet-to-be-installed one
22828 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22829 test "$hardcode_minus_L_GCJ" != no; then
22830 # Linking always hardcodes the temporary library directory.
22831 hardcode_action_GCJ=relink
22833 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22834 hardcode_action_GCJ=immediate
22837 # We cannot hardcode anything, or else we can only hardcode existing
22839 hardcode_action_GCJ=unsupported
22841 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22842 echo "${ECHO_T}$hardcode_action_GCJ" >&6
22844 if test "$hardcode_action_GCJ" = relink; then
22845 # Fast installation is not supported
22846 enable_fast_install=no
22847 elif test "$shlibpath_overrides_runpath" = yes ||
22848 test "$enable_shared" = no; then
22849 # Fast installation is not necessary
22850 enable_fast_install=needless
22855 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22856 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22857 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22858 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22859 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22860 echo "$as_me:$LINENO: result: yes" >&5
22861 echo "${ECHO_T}yes" >&6
22863 # FIXME - insert some real tests, host_os isn't really good enough
22866 if test -n "$STRIP" ; then
22867 striplib="$STRIP -x"
22868 echo "$as_me:$LINENO: result: yes" >&5
22869 echo "${ECHO_T}yes" >&6
22871 echo "$as_me:$LINENO: result: no" >&5
22872 echo "${ECHO_T}no" >&6
22876 echo "$as_me:$LINENO: result: no" >&5
22877 echo "${ECHO_T}no" >&6
22882 if test "x$enable_dlopen" != xyes; then
22883 enable_dlopen=unknown
22884 enable_dlopen_self=unknown
22885 enable_dlopen_self_static=unknown
22892 lt_cv_dlopen="load_add_on"
22894 lt_cv_dlopen_self=yes
22898 lt_cv_dlopen="LoadLibrary"
22903 lt_cv_dlopen="dlopen"
22908 # if libdl is installed we need to link against it
22909 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22910 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22911 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22912 echo $ECHO_N "(cached) $ECHO_C" >&6
22914 ac_check_lib_save_LIBS=$LIBS
22916 cat >conftest.$ac_ext <<_ACEOF
22919 cat confdefs.h >>conftest.$ac_ext
22920 cat >>conftest.$ac_ext <<_ACEOF
22921 /* end confdefs.h. */
22923 /* Override any gcc2 internal prototype to avoid an error. */
22927 /* We use char because int might match the return type of a gcc2
22928 builtin and then its argument prototype would still apply. */
22938 rm -f conftest.$ac_objext conftest$ac_exeext
22939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22940 (eval $ac_link) 2>conftest.er1
22942 grep -v '^ *+' conftest.er1 >conftest.err
22944 cat conftest.err >&5
22945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22946 (exit $ac_status); } &&
22947 { ac_try='test -z "$ac_c_werror_flag"
22948 || test ! -s conftest.err'
22949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22950 (eval $ac_try) 2>&5
22952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22953 (exit $ac_status); }; } &&
22954 { ac_try='test -s conftest$ac_exeext'
22955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22956 (eval $ac_try) 2>&5
22958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22959 (exit $ac_status); }; }; then
22960 ac_cv_lib_dl_dlopen=yes
22962 echo "$as_me: failed program was:" >&5
22963 sed 's/^/| /' conftest.$ac_ext >&5
22965 ac_cv_lib_dl_dlopen=no
22967 rm -f conftest.err conftest.$ac_objext \
22968 conftest$ac_exeext conftest.$ac_ext
22969 LIBS=$ac_check_lib_save_LIBS
22971 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22972 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22973 if test $ac_cv_lib_dl_dlopen = yes; then
22974 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22977 lt_cv_dlopen="dyld"
22979 lt_cv_dlopen_self=yes
22986 echo "$as_me:$LINENO: checking for shl_load" >&5
22987 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22988 if test "${ac_cv_func_shl_load+set}" = set; then
22989 echo $ECHO_N "(cached) $ECHO_C" >&6
22991 cat >conftest.$ac_ext <<_ACEOF
22994 cat confdefs.h >>conftest.$ac_ext
22995 cat >>conftest.$ac_ext <<_ACEOF
22996 /* end confdefs.h. */
22997 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
22998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22999 #define shl_load innocuous_shl_load
23001 /* System header to define __stub macros and hopefully few prototypes,
23002 which can conflict with char shl_load (); below.
23003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23004 <limits.h> exists even on freestanding compilers. */
23007 # include <limits.h>
23009 # include <assert.h>
23014 /* Override any gcc2 internal prototype to avoid an error. */
23019 /* We use char because int might match the return type of a gcc2
23020 builtin and then its argument prototype would still apply. */
23022 /* The GNU C library defines this for functions which it implements
23023 to always fail with ENOSYS. Some functions are actually named
23024 something starting with __ and the normal name is an alias. */
23025 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23028 char (*f) () = shl_load;
23037 return f != shl_load;
23042 rm -f conftest.$ac_objext conftest$ac_exeext
23043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23044 (eval $ac_link) 2>conftest.er1
23046 grep -v '^ *+' conftest.er1 >conftest.err
23048 cat conftest.err >&5
23049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23050 (exit $ac_status); } &&
23051 { ac_try='test -z "$ac_c_werror_flag"
23052 || test ! -s conftest.err'
23053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23054 (eval $ac_try) 2>&5
23056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23057 (exit $ac_status); }; } &&
23058 { ac_try='test -s conftest$ac_exeext'
23059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23060 (eval $ac_try) 2>&5
23062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23063 (exit $ac_status); }; }; then
23064 ac_cv_func_shl_load=yes
23066 echo "$as_me: failed program was:" >&5
23067 sed 's/^/| /' conftest.$ac_ext >&5
23069 ac_cv_func_shl_load=no
23071 rm -f conftest.err conftest.$ac_objext \
23072 conftest$ac_exeext conftest.$ac_ext
23074 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23075 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23076 if test $ac_cv_func_shl_load = yes; then
23077 lt_cv_dlopen="shl_load"
23079 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23080 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23081 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23082 echo $ECHO_N "(cached) $ECHO_C" >&6
23084 ac_check_lib_save_LIBS=$LIBS
23086 cat >conftest.$ac_ext <<_ACEOF
23089 cat confdefs.h >>conftest.$ac_ext
23090 cat >>conftest.$ac_ext <<_ACEOF
23091 /* end confdefs.h. */
23093 /* Override any gcc2 internal prototype to avoid an error. */
23097 /* We use char because int might match the return type of a gcc2
23098 builtin and then its argument prototype would still apply. */
23108 rm -f conftest.$ac_objext conftest$ac_exeext
23109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23110 (eval $ac_link) 2>conftest.er1
23112 grep -v '^ *+' conftest.er1 >conftest.err
23114 cat conftest.err >&5
23115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23116 (exit $ac_status); } &&
23117 { ac_try='test -z "$ac_c_werror_flag"
23118 || test ! -s conftest.err'
23119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23120 (eval $ac_try) 2>&5
23122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23123 (exit $ac_status); }; } &&
23124 { ac_try='test -s conftest$ac_exeext'
23125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23126 (eval $ac_try) 2>&5
23128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23129 (exit $ac_status); }; }; then
23130 ac_cv_lib_dld_shl_load=yes
23132 echo "$as_me: failed program was:" >&5
23133 sed 's/^/| /' conftest.$ac_ext >&5
23135 ac_cv_lib_dld_shl_load=no
23137 rm -f conftest.err conftest.$ac_objext \
23138 conftest$ac_exeext conftest.$ac_ext
23139 LIBS=$ac_check_lib_save_LIBS
23141 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23142 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23143 if test $ac_cv_lib_dld_shl_load = yes; then
23144 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23146 echo "$as_me:$LINENO: checking for dlopen" >&5
23147 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23148 if test "${ac_cv_func_dlopen+set}" = set; then
23149 echo $ECHO_N "(cached) $ECHO_C" >&6
23151 cat >conftest.$ac_ext <<_ACEOF
23154 cat confdefs.h >>conftest.$ac_ext
23155 cat >>conftest.$ac_ext <<_ACEOF
23156 /* end confdefs.h. */
23157 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23159 #define dlopen innocuous_dlopen
23161 /* System header to define __stub macros and hopefully few prototypes,
23162 which can conflict with char dlopen (); below.
23163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23164 <limits.h> exists even on freestanding compilers. */
23167 # include <limits.h>
23169 # include <assert.h>
23174 /* Override any gcc2 internal prototype to avoid an error. */
23179 /* We use char because int might match the return type of a gcc2
23180 builtin and then its argument prototype would still apply. */
23182 /* The GNU C library defines this for functions which it implements
23183 to always fail with ENOSYS. Some functions are actually named
23184 something starting with __ and the normal name is an alias. */
23185 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23188 char (*f) () = dlopen;
23197 return f != dlopen;
23202 rm -f conftest.$ac_objext conftest$ac_exeext
23203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23204 (eval $ac_link) 2>conftest.er1
23206 grep -v '^ *+' conftest.er1 >conftest.err
23208 cat conftest.err >&5
23209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23210 (exit $ac_status); } &&
23211 { ac_try='test -z "$ac_c_werror_flag"
23212 || test ! -s conftest.err'
23213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23214 (eval $ac_try) 2>&5
23216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23217 (exit $ac_status); }; } &&
23218 { ac_try='test -s conftest$ac_exeext'
23219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23220 (eval $ac_try) 2>&5
23222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23223 (exit $ac_status); }; }; then
23224 ac_cv_func_dlopen=yes
23226 echo "$as_me: failed program was:" >&5
23227 sed 's/^/| /' conftest.$ac_ext >&5
23229 ac_cv_func_dlopen=no
23231 rm -f conftest.err conftest.$ac_objext \
23232 conftest$ac_exeext conftest.$ac_ext
23234 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23235 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23236 if test $ac_cv_func_dlopen = yes; then
23237 lt_cv_dlopen="dlopen"
23239 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23240 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23241 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23242 echo $ECHO_N "(cached) $ECHO_C" >&6
23244 ac_check_lib_save_LIBS=$LIBS
23246 cat >conftest.$ac_ext <<_ACEOF
23249 cat confdefs.h >>conftest.$ac_ext
23250 cat >>conftest.$ac_ext <<_ACEOF
23251 /* end confdefs.h. */
23253 /* Override any gcc2 internal prototype to avoid an error. */
23257 /* We use char because int might match the return type of a gcc2
23258 builtin and then its argument prototype would still apply. */
23268 rm -f conftest.$ac_objext conftest$ac_exeext
23269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23270 (eval $ac_link) 2>conftest.er1
23272 grep -v '^ *+' conftest.er1 >conftest.err
23274 cat conftest.err >&5
23275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23276 (exit $ac_status); } &&
23277 { ac_try='test -z "$ac_c_werror_flag"
23278 || test ! -s conftest.err'
23279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23280 (eval $ac_try) 2>&5
23282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23283 (exit $ac_status); }; } &&
23284 { ac_try='test -s conftest$ac_exeext'
23285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23286 (eval $ac_try) 2>&5
23288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23289 (exit $ac_status); }; }; then
23290 ac_cv_lib_dl_dlopen=yes
23292 echo "$as_me: failed program was:" >&5
23293 sed 's/^/| /' conftest.$ac_ext >&5
23295 ac_cv_lib_dl_dlopen=no
23297 rm -f conftest.err conftest.$ac_objext \
23298 conftest$ac_exeext conftest.$ac_ext
23299 LIBS=$ac_check_lib_save_LIBS
23301 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23302 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23303 if test $ac_cv_lib_dl_dlopen = yes; then
23304 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23306 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23307 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23308 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23309 echo $ECHO_N "(cached) $ECHO_C" >&6
23311 ac_check_lib_save_LIBS=$LIBS
23312 LIBS="-lsvld $LIBS"
23313 cat >conftest.$ac_ext <<_ACEOF
23316 cat confdefs.h >>conftest.$ac_ext
23317 cat >>conftest.$ac_ext <<_ACEOF
23318 /* end confdefs.h. */
23320 /* Override any gcc2 internal prototype to avoid an error. */
23324 /* We use char because int might match the return type of a gcc2
23325 builtin and then its argument prototype would still apply. */
23335 rm -f conftest.$ac_objext conftest$ac_exeext
23336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23337 (eval $ac_link) 2>conftest.er1
23339 grep -v '^ *+' conftest.er1 >conftest.err
23341 cat conftest.err >&5
23342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23343 (exit $ac_status); } &&
23344 { ac_try='test -z "$ac_c_werror_flag"
23345 || test ! -s conftest.err'
23346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23347 (eval $ac_try) 2>&5
23349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350 (exit $ac_status); }; } &&
23351 { ac_try='test -s conftest$ac_exeext'
23352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23353 (eval $ac_try) 2>&5
23355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23356 (exit $ac_status); }; }; then
23357 ac_cv_lib_svld_dlopen=yes
23359 echo "$as_me: failed program was:" >&5
23360 sed 's/^/| /' conftest.$ac_ext >&5
23362 ac_cv_lib_svld_dlopen=no
23364 rm -f conftest.err conftest.$ac_objext \
23365 conftest$ac_exeext conftest.$ac_ext
23366 LIBS=$ac_check_lib_save_LIBS
23368 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23369 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23370 if test $ac_cv_lib_svld_dlopen = yes; then
23371 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23373 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23374 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23375 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23376 echo $ECHO_N "(cached) $ECHO_C" >&6
23378 ac_check_lib_save_LIBS=$LIBS
23380 cat >conftest.$ac_ext <<_ACEOF
23383 cat confdefs.h >>conftest.$ac_ext
23384 cat >>conftest.$ac_ext <<_ACEOF
23385 /* end confdefs.h. */
23387 /* Override any gcc2 internal prototype to avoid an error. */
23391 /* We use char because int might match the return type of a gcc2
23392 builtin and then its argument prototype would still apply. */
23402 rm -f conftest.$ac_objext conftest$ac_exeext
23403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23404 (eval $ac_link) 2>conftest.er1
23406 grep -v '^ *+' conftest.er1 >conftest.err
23408 cat conftest.err >&5
23409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23410 (exit $ac_status); } &&
23411 { ac_try='test -z "$ac_c_werror_flag"
23412 || test ! -s conftest.err'
23413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23414 (eval $ac_try) 2>&5
23416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23417 (exit $ac_status); }; } &&
23418 { ac_try='test -s conftest$ac_exeext'
23419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23420 (eval $ac_try) 2>&5
23422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423 (exit $ac_status); }; }; then
23424 ac_cv_lib_dld_dld_link=yes
23426 echo "$as_me: failed program was:" >&5
23427 sed 's/^/| /' conftest.$ac_ext >&5
23429 ac_cv_lib_dld_dld_link=no
23431 rm -f conftest.err conftest.$ac_objext \
23432 conftest$ac_exeext conftest.$ac_ext
23433 LIBS=$ac_check_lib_save_LIBS
23435 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23436 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23437 if test $ac_cv_lib_dld_dld_link = yes; then
23438 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23459 if test "x$lt_cv_dlopen" != xno; then
23465 case $lt_cv_dlopen in
23467 save_CPPFLAGS="$CPPFLAGS"
23468 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23470 save_LDFLAGS="$LDFLAGS"
23471 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23474 LIBS="$lt_cv_dlopen_libs $LIBS"
23476 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23477 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23478 if test "${lt_cv_dlopen_self+set}" = set; then
23479 echo $ECHO_N "(cached) $ECHO_C" >&6
23481 if test "$cross_compiling" = yes; then :
23482 lt_cv_dlopen_self=cross
23484 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23485 lt_status=$lt_dlunknown
23486 cat > conftest.$ac_ext <<EOF
23487 #line 23487 "configure"
23488 #include "confdefs.h"
23497 # define LT_DLGLOBAL RTLD_GLOBAL
23500 # define LT_DLGLOBAL DL_GLOBAL
23502 # define LT_DLGLOBAL 0
23506 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23507 find out it does not work in some platform. */
23508 #ifndef LT_DLLAZY_OR_NOW
23510 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23513 # define LT_DLLAZY_OR_NOW DL_LAZY
23516 # define LT_DLLAZY_OR_NOW RTLD_NOW
23519 # define LT_DLLAZY_OR_NOW DL_NOW
23521 # define LT_DLLAZY_OR_NOW 0
23529 extern "C" void exit (int);
23532 void fnord() { int i=42;}
23535 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23536 int status = $lt_dlunknown;
23540 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23541 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23542 /* dlclose (self); */
23548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23549 (eval $ac_link) 2>&5
23551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23552 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23553 (./conftest; exit; ) 2>/dev/null
23555 case x$lt_status in
23556 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23557 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23558 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23561 # compilation failed
23562 lt_cv_dlopen_self=no
23569 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23570 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23572 if test "x$lt_cv_dlopen_self" = xyes; then
23573 LDFLAGS="$LDFLAGS $link_static_flag"
23574 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23575 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23576 if test "${lt_cv_dlopen_self_static+set}" = set; then
23577 echo $ECHO_N "(cached) $ECHO_C" >&6
23579 if test "$cross_compiling" = yes; then :
23580 lt_cv_dlopen_self_static=cross
23582 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23583 lt_status=$lt_dlunknown
23584 cat > conftest.$ac_ext <<EOF
23585 #line 23585 "configure"
23586 #include "confdefs.h"
23595 # define LT_DLGLOBAL RTLD_GLOBAL
23598 # define LT_DLGLOBAL DL_GLOBAL
23600 # define LT_DLGLOBAL 0
23604 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23605 find out it does not work in some platform. */
23606 #ifndef LT_DLLAZY_OR_NOW
23608 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23611 # define LT_DLLAZY_OR_NOW DL_LAZY
23614 # define LT_DLLAZY_OR_NOW RTLD_NOW
23617 # define LT_DLLAZY_OR_NOW DL_NOW
23619 # define LT_DLLAZY_OR_NOW 0
23627 extern "C" void exit (int);
23630 void fnord() { int i=42;}
23633 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23634 int status = $lt_dlunknown;
23638 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23639 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23640 /* dlclose (self); */
23646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23647 (eval $ac_link) 2>&5
23649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23650 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23651 (./conftest; exit; ) 2>/dev/null
23653 case x$lt_status in
23654 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23655 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23656 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23659 # compilation failed
23660 lt_cv_dlopen_self_static=no
23667 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23668 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23671 CPPFLAGS="$save_CPPFLAGS"
23672 LDFLAGS="$save_LDFLAGS"
23677 case $lt_cv_dlopen_self in
23678 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23679 *) enable_dlopen_self=unknown ;;
23682 case $lt_cv_dlopen_self_static in
23683 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23684 *) enable_dlopen_self_static=unknown ;;
23689 # The else clause should only fire when bootstrapping the
23690 # libtool distribution, otherwise you forgot to ship ltmain.sh
23691 # with your package, and you will get complaints that there are
23692 # no rules to generate ltmain.sh.
23693 if test -f "$ltmain"; then
23694 # See if we are running on zsh, and set the options which allow our commands through
23695 # without removal of \ escapes.
23696 if test -n "${ZSH_VERSION+set}" ; then
23697 setopt NO_GLOB_SUBST
23699 # Now quote all the things that may contain metacharacters while being
23700 # careful not to overquote the AC_SUBSTed values. We take copies of the
23701 # variables and quote the copies for generation of the libtool script.
23702 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23704 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23705 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23706 deplibs_check_method reload_flag reload_cmds need_locks \
23707 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23708 lt_cv_sys_global_symbol_to_c_name_address \
23709 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23710 old_postinstall_cmds old_postuninstall_cmds \
23714 lt_prog_compiler_wl_GCJ \
23715 lt_prog_compiler_pic_GCJ \
23716 lt_prog_compiler_static_GCJ \
23717 lt_prog_compiler_no_builtin_flag_GCJ \
23718 export_dynamic_flag_spec_GCJ \
23719 thread_safe_flag_spec_GCJ \
23720 whole_archive_flag_spec_GCJ \
23721 enable_shared_with_static_runtimes_GCJ \
23722 old_archive_cmds_GCJ \
23723 old_archive_from_new_cmds_GCJ \
23724 predep_objects_GCJ \
23725 postdep_objects_GCJ \
23728 compiler_lib_search_path_GCJ \
23730 archive_expsym_cmds_GCJ \
23731 postinstall_cmds_GCJ \
23732 postuninstall_cmds_GCJ \
23733 old_archive_from_expsyms_cmds_GCJ \
23734 allow_undefined_flag_GCJ \
23735 no_undefined_flag_GCJ \
23736 export_symbols_cmds_GCJ \
23737 hardcode_libdir_flag_spec_GCJ \
23738 hardcode_libdir_flag_spec_ld_GCJ \
23739 hardcode_libdir_separator_GCJ \
23740 hardcode_automatic_GCJ \
23742 module_expsym_cmds_GCJ \
23743 lt_cv_prog_compiler_c_o_GCJ \
23744 exclude_expsyms_GCJ \
23745 include_expsyms_GCJ; do
23748 old_archive_cmds_GCJ | \
23749 old_archive_from_new_cmds_GCJ | \
23750 archive_cmds_GCJ | \
23751 archive_expsym_cmds_GCJ | \
23752 module_cmds_GCJ | \
23753 module_expsym_cmds_GCJ | \
23754 old_archive_from_expsyms_cmds_GCJ | \
23755 export_symbols_cmds_GCJ | \
23756 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23757 postinstall_cmds | postuninstall_cmds | \
23758 old_postinstall_cmds | old_postuninstall_cmds | \
23759 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23760 # Double-quote double-evaled strings.
23761 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23764 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23770 *'\$0 --fallback-echo"')
23771 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23777 cat <<__EOF__ >> "$cfgfile"
23778 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23780 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23782 # Shell to use when invoking shell scripts.
23785 # Whether or not to build shared libraries.
23786 build_libtool_libs=$enable_shared
23788 # Whether or not to build static libraries.
23789 build_old_libs=$enable_static
23791 # Whether or not to add -lc for building shared libraries.
23792 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23794 # Whether or not to disallow shared libs when runtime libs are static
23795 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23797 # Whether or not to optimize for fast installation.
23798 fast_install=$enable_fast_install
23801 host_alias=$host_alias
23804 # An echo program that does not interpret backslashes.
23809 AR_FLAGS=$lt_AR_FLAGS
23814 # A language-specific compiler.
23815 CC=$lt_compiler_GCJ
23817 # Is the compiler the GNU C compiler?
23823 # The linker used to build libraries.
23826 # Whether we need hard or soft links.
23829 # A BSD-compatible nm program.
23832 # A symbol stripping program
23835 # Used to examine libraries when file_magic_cmd begins "file"
23836 MAGIC_CMD=$MAGIC_CMD
23838 # Used on cygwin: DLL creation program.
23841 # Used on cygwin: object dumper.
23844 # Used on cygwin: assembler.
23847 # The name of the directory that contains temporary libtool files.
23850 # How to create reloadable object files.
23851 reload_flag=$lt_reload_flag
23852 reload_cmds=$lt_reload_cmds
23854 # How to pass a linker flag through the compiler.
23855 wl=$lt_lt_prog_compiler_wl_GCJ
23857 # Object file suffix (normally "o").
23858 objext="$ac_objext"
23860 # Old archive suffix (normally "a").
23863 # Shared library suffix (normally ".so").
23864 shrext_cmds='$shrext_cmds'
23866 # Executable file suffix (normally "").
23869 # Additional compiler flags for building library objects.
23870 pic_flag=$lt_lt_prog_compiler_pic_GCJ
23873 # What is the maximum length of a command?
23874 max_cmd_len=$lt_cv_sys_max_cmd_len
23876 # Does compiler simultaneously support -c and -o options?
23877 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23879 # Must we lock files when doing compilation ?
23880 need_locks=$lt_need_locks
23882 # Do we need the lib prefix for modules?
23883 need_lib_prefix=$need_lib_prefix
23885 # Do we need a version for libraries?
23886 need_version=$need_version
23888 # Whether dlopen is supported.
23889 dlopen_support=$enable_dlopen
23891 # Whether dlopen of programs is supported.
23892 dlopen_self=$enable_dlopen_self
23894 # Whether dlopen of statically linked programs is supported.
23895 dlopen_self_static=$enable_dlopen_self_static
23897 # Compiler flag to prevent dynamic linking.
23898 link_static_flag=$lt_lt_prog_compiler_static_GCJ
23900 # Compiler flag to turn off builtin functions.
23901 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23903 # Compiler flag to allow reflexive dlopens.
23904 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23906 # Compiler flag to generate shared objects directly from archives.
23907 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23909 # Compiler flag to generate thread-safe objects.
23910 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23912 # Library versioning type.
23913 version_type=$version_type
23915 # Format of library name prefix.
23916 libname_spec=$lt_libname_spec
23918 # List of archive names. First name is the real one, the rest are links.
23919 # The last name is the one that the linker finds with -lNAME.
23920 library_names_spec=$lt_library_names_spec
23922 # The coded name of the library, if different from the real name.
23923 soname_spec=$lt_soname_spec
23925 # Commands used to build and install an old-style archive.
23927 old_archive_cmds=$lt_old_archive_cmds_GCJ
23928 old_postinstall_cmds=$lt_old_postinstall_cmds
23929 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23931 # Create an old-style archive from a shared archive.
23932 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23934 # Create a temporary old-style archive to link instead of a shared archive.
23935 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23937 # Commands used to build and install a shared archive.
23938 archive_cmds=$lt_archive_cmds_GCJ
23939 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23940 postinstall_cmds=$lt_postinstall_cmds
23941 postuninstall_cmds=$lt_postuninstall_cmds
23943 # Commands used to build a loadable module (assumed same as above if empty)
23944 module_cmds=$lt_module_cmds_GCJ
23945 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23947 # Commands to strip libraries.
23948 old_striplib=$lt_old_striplib
23949 striplib=$lt_striplib
23951 # Dependencies to place before the objects being linked to create a
23953 predep_objects=$lt_predep_objects_GCJ
23955 # Dependencies to place after the objects being linked to create a
23957 postdep_objects=$lt_postdep_objects_GCJ
23959 # Dependencies to place before the objects being linked to create a
23961 predeps=$lt_predeps_GCJ
23963 # Dependencies to place after the objects being linked to create a
23965 postdeps=$lt_postdeps_GCJ
23967 # The library search path used internally by the compiler when linking
23968 # a shared library.
23969 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23971 # Method to check whether dependent libraries are shared objects.
23972 deplibs_check_method=$lt_deplibs_check_method
23974 # Command to use when deplibs_check_method == file_magic.
23975 file_magic_cmd=$lt_file_magic_cmd
23977 # Flag that allows shared libraries with undefined symbols to be built.
23978 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23980 # Flag that forces no undefined symbols.
23981 no_undefined_flag=$lt_no_undefined_flag_GCJ
23983 # Commands used to finish a libtool library installation in a directory.
23984 finish_cmds=$lt_finish_cmds
23986 # Same as above, but a single script fragment to be evaled but not shown.
23987 finish_eval=$lt_finish_eval
23989 # Take the output of nm and produce a listing of raw symbols and C names.
23990 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23992 # Transform the output of nm in a proper C declaration
23993 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23995 # Transform the output of nm in a C name address pair
23996 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23998 # This is the shared library runtime path variable.
23999 runpath_var=$runpath_var
24001 # This is the shared library path variable.
24002 shlibpath_var=$shlibpath_var
24004 # Is shlibpath searched before the hard-coded library search path?
24005 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24007 # How to hardcode a shared library path into an executable.
24008 hardcode_action=$hardcode_action_GCJ
24010 # Whether we should hardcode library paths into libraries.
24011 hardcode_into_libs=$hardcode_into_libs
24013 # Flag to hardcode \$libdir into a binary during linking.
24014 # This must work even if \$libdir does not exist.
24015 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24017 # If ld is used when linking, flag to hardcode \$libdir into
24018 # a binary during linking. This must work even if \$libdir does
24020 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24022 # Whether we need a single -rpath flag with a separated argument.
24023 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24025 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24026 # resulting binary.
24027 hardcode_direct=$hardcode_direct_GCJ
24029 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24030 # resulting binary.
24031 hardcode_minus_L=$hardcode_minus_L_GCJ
24033 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24034 # the resulting binary.
24035 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24037 # Set to yes if building a shared library automatically hardcodes DIR into the library
24038 # and all subsequent libraries and executables linked against it.
24039 hardcode_automatic=$hardcode_automatic_GCJ
24041 # Variables whose values should be saved in libtool wrapper scripts and
24042 # restored at relink time.
24043 variables_saved_for_relink="$variables_saved_for_relink"
24045 # Whether libtool must link a program against all its dependency libraries.
24046 link_all_deplibs=$link_all_deplibs_GCJ
24048 # Compile-time system search path for libraries
24049 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24051 # Run-time system search path for libraries
24052 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24054 # Fix the shell variable \$srcfile for the compiler.
24055 fix_srcfile_path="$fix_srcfile_path_GCJ"
24057 # Set to yes if exported symbols are required.
24058 always_export_symbols=$always_export_symbols_GCJ
24060 # The commands to list exported symbols.
24061 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24063 # The commands to extract the exported symbol list from a shared archive.
24064 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24066 # Symbols that should not be listed in the preloaded symbols.
24067 exclude_expsyms=$lt_exclude_expsyms_GCJ
24069 # Symbols that must always be exported.
24070 include_expsyms=$lt_include_expsyms_GCJ
24072 # ### END LIBTOOL TAG CONFIG: $tagname
24078 # If there is no Makefile yet, we rely on a make rule to execute
24079 # `config.status --recheck' to rerun these tests and create the
24080 # libtool script then.
24081 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24082 if test -f "$ltmain_in"; then
24083 test -f Makefile && make "$ltmain"
24089 ac_cpp='$CPP $CPPFLAGS'
24090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24103 ac_cpp='$CPP $CPPFLAGS'
24104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24109 # Source file extension for RC test sources.
24112 # Object file extension for compiled RC test sources.
24116 # Code to be used in simple compile tests
24117 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24119 # Code to be used in simple link tests
24120 lt_simple_link_test_code="$lt_simple_compile_test_code"
24122 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24124 # If no C compiler was specified, use CC.
24127 # Allow CC to be a program name with arguments.
24131 # Allow CC to be a program name with arguments.
24136 lt_cv_prog_compiler_c_o_RC=yes
24138 # The else clause should only fire when bootstrapping the
24139 # libtool distribution, otherwise you forgot to ship ltmain.sh
24140 # with your package, and you will get complaints that there are
24141 # no rules to generate ltmain.sh.
24142 if test -f "$ltmain"; then
24143 # See if we are running on zsh, and set the options which allow our commands through
24144 # without removal of \ escapes.
24145 if test -n "${ZSH_VERSION+set}" ; then
24146 setopt NO_GLOB_SUBST
24148 # Now quote all the things that may contain metacharacters while being
24149 # careful not to overquote the AC_SUBSTed values. We take copies of the
24150 # variables and quote the copies for generation of the libtool script.
24151 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24153 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24154 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24155 deplibs_check_method reload_flag reload_cmds need_locks \
24156 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24157 lt_cv_sys_global_symbol_to_c_name_address \
24158 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24159 old_postinstall_cmds old_postuninstall_cmds \
24163 lt_prog_compiler_wl_RC \
24164 lt_prog_compiler_pic_RC \
24165 lt_prog_compiler_static_RC \
24166 lt_prog_compiler_no_builtin_flag_RC \
24167 export_dynamic_flag_spec_RC \
24168 thread_safe_flag_spec_RC \
24169 whole_archive_flag_spec_RC \
24170 enable_shared_with_static_runtimes_RC \
24171 old_archive_cmds_RC \
24172 old_archive_from_new_cmds_RC \
24173 predep_objects_RC \
24174 postdep_objects_RC \
24177 compiler_lib_search_path_RC \
24179 archive_expsym_cmds_RC \
24180 postinstall_cmds_RC \
24181 postuninstall_cmds_RC \
24182 old_archive_from_expsyms_cmds_RC \
24183 allow_undefined_flag_RC \
24184 no_undefined_flag_RC \
24185 export_symbols_cmds_RC \
24186 hardcode_libdir_flag_spec_RC \
24187 hardcode_libdir_flag_spec_ld_RC \
24188 hardcode_libdir_separator_RC \
24189 hardcode_automatic_RC \
24191 module_expsym_cmds_RC \
24192 lt_cv_prog_compiler_c_o_RC \
24193 exclude_expsyms_RC \
24194 include_expsyms_RC; do
24197 old_archive_cmds_RC | \
24198 old_archive_from_new_cmds_RC | \
24199 archive_cmds_RC | \
24200 archive_expsym_cmds_RC | \
24202 module_expsym_cmds_RC | \
24203 old_archive_from_expsyms_cmds_RC | \
24204 export_symbols_cmds_RC | \
24205 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24206 postinstall_cmds | postuninstall_cmds | \
24207 old_postinstall_cmds | old_postuninstall_cmds | \
24208 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24209 # Double-quote double-evaled strings.
24210 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24213 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24219 *'\$0 --fallback-echo"')
24220 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24226 cat <<__EOF__ >> "$cfgfile"
24227 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24229 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24231 # Shell to use when invoking shell scripts.
24234 # Whether or not to build shared libraries.
24235 build_libtool_libs=$enable_shared
24237 # Whether or not to build static libraries.
24238 build_old_libs=$enable_static
24240 # Whether or not to add -lc for building shared libraries.
24241 build_libtool_need_lc=$archive_cmds_need_lc_RC
24243 # Whether or not to disallow shared libs when runtime libs are static
24244 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24246 # Whether or not to optimize for fast installation.
24247 fast_install=$enable_fast_install
24250 host_alias=$host_alias
24253 # An echo program that does not interpret backslashes.
24258 AR_FLAGS=$lt_AR_FLAGS
24263 # A language-specific compiler.
24266 # Is the compiler the GNU C compiler?
24272 # The linker used to build libraries.
24275 # Whether we need hard or soft links.
24278 # A BSD-compatible nm program.
24281 # A symbol stripping program
24284 # Used to examine libraries when file_magic_cmd begins "file"
24285 MAGIC_CMD=$MAGIC_CMD
24287 # Used on cygwin: DLL creation program.
24290 # Used on cygwin: object dumper.
24293 # Used on cygwin: assembler.
24296 # The name of the directory that contains temporary libtool files.
24299 # How to create reloadable object files.
24300 reload_flag=$lt_reload_flag
24301 reload_cmds=$lt_reload_cmds
24303 # How to pass a linker flag through the compiler.
24304 wl=$lt_lt_prog_compiler_wl_RC
24306 # Object file suffix (normally "o").
24307 objext="$ac_objext"
24309 # Old archive suffix (normally "a").
24312 # Shared library suffix (normally ".so").
24313 shrext_cmds='$shrext_cmds'
24315 # Executable file suffix (normally "").
24318 # Additional compiler flags for building library objects.
24319 pic_flag=$lt_lt_prog_compiler_pic_RC
24322 # What is the maximum length of a command?
24323 max_cmd_len=$lt_cv_sys_max_cmd_len
24325 # Does compiler simultaneously support -c and -o options?
24326 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24328 # Must we lock files when doing compilation ?
24329 need_locks=$lt_need_locks
24331 # Do we need the lib prefix for modules?
24332 need_lib_prefix=$need_lib_prefix
24334 # Do we need a version for libraries?
24335 need_version=$need_version
24337 # Whether dlopen is supported.
24338 dlopen_support=$enable_dlopen
24340 # Whether dlopen of programs is supported.
24341 dlopen_self=$enable_dlopen_self
24343 # Whether dlopen of statically linked programs is supported.
24344 dlopen_self_static=$enable_dlopen_self_static
24346 # Compiler flag to prevent dynamic linking.
24347 link_static_flag=$lt_lt_prog_compiler_static_RC
24349 # Compiler flag to turn off builtin functions.
24350 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24352 # Compiler flag to allow reflexive dlopens.
24353 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24355 # Compiler flag to generate shared objects directly from archives.
24356 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24358 # Compiler flag to generate thread-safe objects.
24359 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24361 # Library versioning type.
24362 version_type=$version_type
24364 # Format of library name prefix.
24365 libname_spec=$lt_libname_spec
24367 # List of archive names. First name is the real one, the rest are links.
24368 # The last name is the one that the linker finds with -lNAME.
24369 library_names_spec=$lt_library_names_spec
24371 # The coded name of the library, if different from the real name.
24372 soname_spec=$lt_soname_spec
24374 # Commands used to build and install an old-style archive.
24376 old_archive_cmds=$lt_old_archive_cmds_RC
24377 old_postinstall_cmds=$lt_old_postinstall_cmds
24378 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24380 # Create an old-style archive from a shared archive.
24381 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24383 # Create a temporary old-style archive to link instead of a shared archive.
24384 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24386 # Commands used to build and install a shared archive.
24387 archive_cmds=$lt_archive_cmds_RC
24388 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24389 postinstall_cmds=$lt_postinstall_cmds
24390 postuninstall_cmds=$lt_postuninstall_cmds
24392 # Commands used to build a loadable module (assumed same as above if empty)
24393 module_cmds=$lt_module_cmds_RC
24394 module_expsym_cmds=$lt_module_expsym_cmds_RC
24396 # Commands to strip libraries.
24397 old_striplib=$lt_old_striplib
24398 striplib=$lt_striplib
24400 # Dependencies to place before the objects being linked to create a
24402 predep_objects=$lt_predep_objects_RC
24404 # Dependencies to place after the objects being linked to create a
24406 postdep_objects=$lt_postdep_objects_RC
24408 # Dependencies to place before the objects being linked to create a
24410 predeps=$lt_predeps_RC
24412 # Dependencies to place after the objects being linked to create a
24414 postdeps=$lt_postdeps_RC
24416 # The library search path used internally by the compiler when linking
24417 # a shared library.
24418 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24420 # Method to check whether dependent libraries are shared objects.
24421 deplibs_check_method=$lt_deplibs_check_method
24423 # Command to use when deplibs_check_method == file_magic.
24424 file_magic_cmd=$lt_file_magic_cmd
24426 # Flag that allows shared libraries with undefined symbols to be built.
24427 allow_undefined_flag=$lt_allow_undefined_flag_RC
24429 # Flag that forces no undefined symbols.
24430 no_undefined_flag=$lt_no_undefined_flag_RC
24432 # Commands used to finish a libtool library installation in a directory.
24433 finish_cmds=$lt_finish_cmds
24435 # Same as above, but a single script fragment to be evaled but not shown.
24436 finish_eval=$lt_finish_eval
24438 # Take the output of nm and produce a listing of raw symbols and C names.
24439 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24441 # Transform the output of nm in a proper C declaration
24442 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24444 # Transform the output of nm in a C name address pair
24445 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24447 # This is the shared library runtime path variable.
24448 runpath_var=$runpath_var
24450 # This is the shared library path variable.
24451 shlibpath_var=$shlibpath_var
24453 # Is shlibpath searched before the hard-coded library search path?
24454 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24456 # How to hardcode a shared library path into an executable.
24457 hardcode_action=$hardcode_action_RC
24459 # Whether we should hardcode library paths into libraries.
24460 hardcode_into_libs=$hardcode_into_libs
24462 # Flag to hardcode \$libdir into a binary during linking.
24463 # This must work even if \$libdir does not exist.
24464 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24466 # If ld is used when linking, flag to hardcode \$libdir into
24467 # a binary during linking. This must work even if \$libdir does
24469 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24471 # Whether we need a single -rpath flag with a separated argument.
24472 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24474 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24475 # resulting binary.
24476 hardcode_direct=$hardcode_direct_RC
24478 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24479 # resulting binary.
24480 hardcode_minus_L=$hardcode_minus_L_RC
24482 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24483 # the resulting binary.
24484 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24486 # Set to yes if building a shared library automatically hardcodes DIR into the library
24487 # and all subsequent libraries and executables linked against it.
24488 hardcode_automatic=$hardcode_automatic_RC
24490 # Variables whose values should be saved in libtool wrapper scripts and
24491 # restored at relink time.
24492 variables_saved_for_relink="$variables_saved_for_relink"
24494 # Whether libtool must link a program against all its dependency libraries.
24495 link_all_deplibs=$link_all_deplibs_RC
24497 # Compile-time system search path for libraries
24498 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24500 # Run-time system search path for libraries
24501 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24503 # Fix the shell variable \$srcfile for the compiler.
24504 fix_srcfile_path="$fix_srcfile_path_RC"
24506 # Set to yes if exported symbols are required.
24507 always_export_symbols=$always_export_symbols_RC
24509 # The commands to list exported symbols.
24510 export_symbols_cmds=$lt_export_symbols_cmds_RC
24512 # The commands to extract the exported symbol list from a shared archive.
24513 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24515 # Symbols that should not be listed in the preloaded symbols.
24516 exclude_expsyms=$lt_exclude_expsyms_RC
24518 # Symbols that must always be exported.
24519 include_expsyms=$lt_include_expsyms_RC
24521 # ### END LIBTOOL TAG CONFIG: $tagname
24527 # If there is no Makefile yet, we rely on a make rule to execute
24528 # `config.status --recheck' to rerun these tests and create the
24529 # libtool script then.
24530 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24531 if test -f "$ltmain_in"; then
24532 test -f Makefile && make "$ltmain"
24538 ac_cpp='$CPP $CPPFLAGS'
24539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24548 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24549 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24550 { (exit 1); exit 1; }; }
24554 # Append the new tag name to the list of available tags.
24555 if test -n "$tagname" ; then
24556 available_tags="$available_tags $tagname"
24562 # Now substitute the updated list of available tags.
24563 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24564 mv "${ofile}T" "$ofile"
24568 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24569 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24570 { (exit 1); exit 1; }; }
24576 # This can be used to rebuild libtool when needed
24577 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24579 # Always use our own libtool.
24580 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24582 # Prevent multiple expansion
24604 if test "$lt_cv_dlopen_self" = "yes" ; then
24606 cat >>confdefs.h <<\_ACEOF
24607 #define CAN_DLOPEN_SELF 1
24612 etags_version=`$ETAGS --version 2>&1`
24613 case "$etags_version" in
24614 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24615 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24616 *) ETAGSFLAGS="" ;;
24618 ETAGSFLAGS=$ETAGSFLAGS
24621 if test "$WITH_LLVMGCCDIR" = "default" ; then
24622 LLVMGCC="llvm-gcc${EXEEXT}"
24623 LLVMGXX="llvm-g++${EXEEXT}"
24624 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
24625 set dummy $LLVMGCC; ac_word=$2
24626 echo "$as_me:$LINENO: checking for $ac_word" >&5
24627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24628 if test "${ac_cv_path_LLVMGCC+set}" = set; then
24629 echo $ECHO_N "(cached) $ECHO_C" >&6
24633 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24637 for as_dir in $PATH
24640 test -z "$as_dir" && as_dir=.
24641 for ac_exec_ext in '' $ac_executable_extensions; do
24642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24643 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24653 LLVMGCC=$ac_cv_path_LLVMGCC
24655 if test -n "$LLVMGCC"; then
24656 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24657 echo "${ECHO_T}$LLVMGCC" >&6
24659 echo "$as_me:$LINENO: result: no" >&5
24660 echo "${ECHO_T}no" >&6
24663 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
24664 set dummy $LLVMGXX; ac_word=$2
24665 echo "$as_me:$LINENO: checking for $ac_word" >&5
24666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24667 if test "${ac_cv_path_LLVMGXX+set}" = set; then
24668 echo $ECHO_N "(cached) $ECHO_C" >&6
24672 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24676 for as_dir in $PATH
24679 test -z "$as_dir" && as_dir=.
24680 for ac_exec_ext in '' $ac_executable_extensions; do
24681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24682 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24692 LLVMGXX=$ac_cv_path_LLVMGXX
24694 if test -n "$LLVMGXX"; then
24695 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24696 echo "${ECHO_T}$LLVMGXX" >&6
24698 echo "$as_me:$LINENO: result: no" >&5
24699 echo "${ECHO_T}no" >&6
24703 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
24704 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
24711 echo "$as_me:$LINENO: checking tool compatibility" >&5
24712 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24725 if test "$GCC" != "yes" && test "$ICC" != "yes"
24727 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24728 echo "$as_me: error: gcc|icc required but not found" >&2;}
24729 { (exit 1); exit 1; }; }
24732 if test "$GXX" != "yes" && test "$IXX" != "yes"
24734 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24735 echo "$as_me: error: g++|icc required but not found" >&2;}
24736 { (exit 1); exit 1; }; }
24739 if test "$GCC" = "yes"
24741 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24742 if test "$gccmajor" -lt "3"
24744 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24745 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24746 { (exit 1); exit 1; }; }
24750 if test -z "$llvm_cv_gnu_make_command"
24752 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24753 echo "$as_me: error: GNU Make required but not found" >&2;}
24754 { (exit 1); exit 1; }; }
24757 echo "$as_me:$LINENO: result: ok" >&5
24758 echo "${ECHO_T}ok" >&6
24762 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24763 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24764 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24765 echo $ECHO_N "(cached) $ECHO_C" >&6
24767 ac_check_lib_save_LIBS=$LIBS
24769 cat >conftest.$ac_ext <<_ACEOF
24772 cat confdefs.h >>conftest.$ac_ext
24773 cat >>conftest.$ac_ext <<_ACEOF
24774 /* end confdefs.h. */
24776 /* Override any gcc2 internal prototype to avoid an error. */
24780 /* We use char because int might match the return type of a gcc2
24781 builtin and then its argument prototype would still apply. */
24791 rm -f conftest.$ac_objext conftest$ac_exeext
24792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24793 (eval $ac_link) 2>conftest.er1
24795 grep -v '^ *+' conftest.er1 >conftest.err
24797 cat conftest.err >&5
24798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24799 (exit $ac_status); } &&
24800 { ac_try='test -z "$ac_c_werror_flag"
24801 || test ! -s conftest.err'
24802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24803 (eval $ac_try) 2>&5
24805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24806 (exit $ac_status); }; } &&
24807 { ac_try='test -s conftest$ac_exeext'
24808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24809 (eval $ac_try) 2>&5
24811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24812 (exit $ac_status); }; }; then
24813 ac_cv_lib_elf_elf_begin=yes
24815 echo "$as_me: failed program was:" >&5
24816 sed 's/^/| /' conftest.$ac_ext >&5
24818 ac_cv_lib_elf_elf_begin=no
24820 rm -f conftest.err conftest.$ac_objext \
24821 conftest$ac_exeext conftest.$ac_ext
24822 LIBS=$ac_check_lib_save_LIBS
24824 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24825 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24826 if test $ac_cv_lib_elf_elf_begin = yes; then
24827 cat >>confdefs.h <<_ACEOF
24828 #define HAVE_LIBELF 1
24837 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24838 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24839 if test "${ac_cv_search_lt_dlopen+set}" = set; then
24840 echo $ECHO_N "(cached) $ECHO_C" >&6
24842 ac_func_search_save_LIBS=$LIBS
24843 ac_cv_search_lt_dlopen=no
24844 cat >conftest.$ac_ext <<_ACEOF
24847 cat confdefs.h >>conftest.$ac_ext
24848 cat >>conftest.$ac_ext <<_ACEOF
24849 /* end confdefs.h. */
24851 /* Override any gcc2 internal prototype to avoid an error. */
24855 /* We use char because int might match the return type of a gcc2
24856 builtin and then its argument prototype would still apply. */
24866 rm -f conftest.$ac_objext conftest$ac_exeext
24867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24868 (eval $ac_link) 2>conftest.er1
24870 grep -v '^ *+' conftest.er1 >conftest.err
24872 cat conftest.err >&5
24873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24874 (exit $ac_status); } &&
24875 { ac_try='test -z "$ac_c_werror_flag"
24876 || test ! -s conftest.err'
24877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24878 (eval $ac_try) 2>&5
24880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24881 (exit $ac_status); }; } &&
24882 { ac_try='test -s conftest$ac_exeext'
24883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24884 (eval $ac_try) 2>&5
24886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24887 (exit $ac_status); }; }; then
24888 ac_cv_search_lt_dlopen="none required"
24890 echo "$as_me: failed program was:" >&5
24891 sed 's/^/| /' conftest.$ac_ext >&5
24894 rm -f conftest.err conftest.$ac_objext \
24895 conftest$ac_exeext conftest.$ac_ext
24896 if test "$ac_cv_search_lt_dlopen" = no; then
24897 for ac_lib in ltdl; do
24898 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24899 cat >conftest.$ac_ext <<_ACEOF
24902 cat confdefs.h >>conftest.$ac_ext
24903 cat >>conftest.$ac_ext <<_ACEOF
24904 /* end confdefs.h. */
24906 /* Override any gcc2 internal prototype to avoid an error. */
24910 /* We use char because int might match the return type of a gcc2
24911 builtin and then its argument prototype would still apply. */
24921 rm -f conftest.$ac_objext conftest$ac_exeext
24922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24923 (eval $ac_link) 2>conftest.er1
24925 grep -v '^ *+' conftest.er1 >conftest.err
24927 cat conftest.err >&5
24928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24929 (exit $ac_status); } &&
24930 { ac_try='test -z "$ac_c_werror_flag"
24931 || test ! -s conftest.err'
24932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24933 (eval $ac_try) 2>&5
24935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24936 (exit $ac_status); }; } &&
24937 { ac_try='test -s conftest$ac_exeext'
24938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24939 (eval $ac_try) 2>&5
24941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24942 (exit $ac_status); }; }; then
24943 ac_cv_search_lt_dlopen="-l$ac_lib"
24946 echo "$as_me: failed program was:" >&5
24947 sed 's/^/| /' conftest.$ac_ext >&5
24950 rm -f conftest.err conftest.$ac_objext \
24951 conftest$ac_exeext conftest.$ac_ext
24954 LIBS=$ac_func_search_save_LIBS
24956 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24957 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24958 if test "$ac_cv_search_lt_dlopen" != no; then
24959 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24961 cat >>confdefs.h <<\_ACEOF
24962 #define HAVE_LT_DLOPEN 1
24966 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24967 not be available" >&5
24968 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24969 not be available" >&2;}
24973 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24974 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24975 if test "${ac_cv_search_dlopen+set}" = set; then
24976 echo $ECHO_N "(cached) $ECHO_C" >&6
24978 ac_func_search_save_LIBS=$LIBS
24979 ac_cv_search_dlopen=no
24980 cat >conftest.$ac_ext <<_ACEOF
24983 cat confdefs.h >>conftest.$ac_ext
24984 cat >>conftest.$ac_ext <<_ACEOF
24985 /* end confdefs.h. */
24987 /* Override any gcc2 internal prototype to avoid an error. */
24991 /* We use char because int might match the return type of a gcc2
24992 builtin and then its argument prototype would still apply. */
25002 rm -f conftest.$ac_objext conftest$ac_exeext
25003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25004 (eval $ac_link) 2>conftest.er1
25006 grep -v '^ *+' conftest.er1 >conftest.err
25008 cat conftest.err >&5
25009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25010 (exit $ac_status); } &&
25011 { ac_try='test -z "$ac_c_werror_flag"
25012 || test ! -s conftest.err'
25013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25014 (eval $ac_try) 2>&5
25016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25017 (exit $ac_status); }; } &&
25018 { ac_try='test -s conftest$ac_exeext'
25019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25020 (eval $ac_try) 2>&5
25022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25023 (exit $ac_status); }; }; then
25024 ac_cv_search_dlopen="none required"
25026 echo "$as_me: failed program was:" >&5
25027 sed 's/^/| /' conftest.$ac_ext >&5
25030 rm -f conftest.err conftest.$ac_objext \
25031 conftest$ac_exeext conftest.$ac_ext
25032 if test "$ac_cv_search_dlopen" = no; then
25033 for ac_lib in dl; do
25034 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25035 cat >conftest.$ac_ext <<_ACEOF
25038 cat confdefs.h >>conftest.$ac_ext
25039 cat >>conftest.$ac_ext <<_ACEOF
25040 /* end confdefs.h. */
25042 /* Override any gcc2 internal prototype to avoid an error. */
25046 /* We use char because int might match the return type of a gcc2
25047 builtin and then its argument prototype would still apply. */
25057 rm -f conftest.$ac_objext conftest$ac_exeext
25058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25059 (eval $ac_link) 2>conftest.er1
25061 grep -v '^ *+' conftest.er1 >conftest.err
25063 cat conftest.err >&5
25064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25065 (exit $ac_status); } &&
25066 { ac_try='test -z "$ac_c_werror_flag"
25067 || test ! -s conftest.err'
25068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25069 (eval $ac_try) 2>&5
25071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25072 (exit $ac_status); }; } &&
25073 { ac_try='test -s conftest$ac_exeext'
25074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25075 (eval $ac_try) 2>&5
25077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25078 (exit $ac_status); }; }; then
25079 ac_cv_search_dlopen="-l$ac_lib"
25082 echo "$as_me: failed program was:" >&5
25083 sed 's/^/| /' conftest.$ac_ext >&5
25086 rm -f conftest.err conftest.$ac_objext \
25087 conftest$ac_exeext conftest.$ac_ext
25090 LIBS=$ac_func_search_save_LIBS
25092 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25093 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25094 if test "$ac_cv_search_dlopen" != no; then
25095 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25097 cat >>confdefs.h <<\_ACEOF
25098 #define HAVE_DLOPEN 1
25102 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25103 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25107 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25108 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25109 if test "${ac_cv_search_mallinfo+set}" = set; then
25110 echo $ECHO_N "(cached) $ECHO_C" >&6
25112 ac_func_search_save_LIBS=$LIBS
25113 ac_cv_search_mallinfo=no
25114 cat >conftest.$ac_ext <<_ACEOF
25117 cat confdefs.h >>conftest.$ac_ext
25118 cat >>conftest.$ac_ext <<_ACEOF
25119 /* end confdefs.h. */
25121 /* Override any gcc2 internal prototype to avoid an error. */
25125 /* We use char because int might match the return type of a gcc2
25126 builtin and then its argument prototype would still apply. */
25136 rm -f conftest.$ac_objext conftest$ac_exeext
25137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25138 (eval $ac_link) 2>conftest.er1
25140 grep -v '^ *+' conftest.er1 >conftest.err
25142 cat conftest.err >&5
25143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25144 (exit $ac_status); } &&
25145 { ac_try='test -z "$ac_c_werror_flag"
25146 || test ! -s conftest.err'
25147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25148 (eval $ac_try) 2>&5
25150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25151 (exit $ac_status); }; } &&
25152 { ac_try='test -s conftest$ac_exeext'
25153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25154 (eval $ac_try) 2>&5
25156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25157 (exit $ac_status); }; }; then
25158 ac_cv_search_mallinfo="none required"
25160 echo "$as_me: failed program was:" >&5
25161 sed 's/^/| /' conftest.$ac_ext >&5
25164 rm -f conftest.err conftest.$ac_objext \
25165 conftest$ac_exeext conftest.$ac_ext
25166 if test "$ac_cv_search_mallinfo" = no; then
25167 for ac_lib in malloc; do
25168 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25169 cat >conftest.$ac_ext <<_ACEOF
25172 cat confdefs.h >>conftest.$ac_ext
25173 cat >>conftest.$ac_ext <<_ACEOF
25174 /* end confdefs.h. */
25176 /* Override any gcc2 internal prototype to avoid an error. */
25180 /* We use char because int might match the return type of a gcc2
25181 builtin and then its argument prototype would still apply. */
25191 rm -f conftest.$ac_objext conftest$ac_exeext
25192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25193 (eval $ac_link) 2>conftest.er1
25195 grep -v '^ *+' conftest.er1 >conftest.err
25197 cat conftest.err >&5
25198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25199 (exit $ac_status); } &&
25200 { ac_try='test -z "$ac_c_werror_flag"
25201 || test ! -s conftest.err'
25202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25203 (eval $ac_try) 2>&5
25205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25206 (exit $ac_status); }; } &&
25207 { ac_try='test -s conftest$ac_exeext'
25208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25209 (eval $ac_try) 2>&5
25211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25212 (exit $ac_status); }; }; then
25213 ac_cv_search_mallinfo="-l$ac_lib"
25216 echo "$as_me: failed program was:" >&5
25217 sed 's/^/| /' conftest.$ac_ext >&5
25220 rm -f conftest.err conftest.$ac_objext \
25221 conftest$ac_exeext conftest.$ac_ext
25224 LIBS=$ac_func_search_save_LIBS
25226 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25227 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25228 if test "$ac_cv_search_mallinfo" != no; then
25229 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25231 cat >>confdefs.h <<\_ACEOF
25232 #define HAVE_MALLINFO 1
25239 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25240 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25241 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25242 echo $ECHO_N "(cached) $ECHO_C" >&6
25244 ac_check_lib_save_LIBS=$LIBS
25245 LIBS="-lpthread $LIBS"
25246 cat >conftest.$ac_ext <<_ACEOF
25249 cat confdefs.h >>conftest.$ac_ext
25250 cat >>conftest.$ac_ext <<_ACEOF
25251 /* end confdefs.h. */
25253 /* Override any gcc2 internal prototype to avoid an error. */
25257 /* We use char because int might match the return type of a gcc2
25258 builtin and then its argument prototype would still apply. */
25259 char pthread_mutex_init ();
25263 pthread_mutex_init ();
25268 rm -f conftest.$ac_objext conftest$ac_exeext
25269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25270 (eval $ac_link) 2>conftest.er1
25272 grep -v '^ *+' conftest.er1 >conftest.err
25274 cat conftest.err >&5
25275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25276 (exit $ac_status); } &&
25277 { ac_try='test -z "$ac_c_werror_flag"
25278 || test ! -s conftest.err'
25279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25280 (eval $ac_try) 2>&5
25282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25283 (exit $ac_status); }; } &&
25284 { ac_try='test -s conftest$ac_exeext'
25285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25286 (eval $ac_try) 2>&5
25288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25289 (exit $ac_status); }; }; then
25290 ac_cv_lib_pthread_pthread_mutex_init=yes
25292 echo "$as_me: failed program was:" >&5
25293 sed 's/^/| /' conftest.$ac_ext >&5
25295 ac_cv_lib_pthread_pthread_mutex_init=no
25297 rm -f conftest.err conftest.$ac_objext \
25298 conftest$ac_exeext conftest.$ac_ext
25299 LIBS=$ac_check_lib_save_LIBS
25301 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
25302 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
25303 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
25304 cat >>confdefs.h <<_ACEOF
25305 #define HAVE_LIBPTHREAD 1
25308 LIBS="-lpthread $LIBS"
25312 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25313 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25314 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25315 echo $ECHO_N "(cached) $ECHO_C" >&6
25317 ac_func_search_save_LIBS=$LIBS
25318 ac_cv_search_pthread_mutex_lock=no
25319 cat >conftest.$ac_ext <<_ACEOF
25322 cat confdefs.h >>conftest.$ac_ext
25323 cat >>conftest.$ac_ext <<_ACEOF
25324 /* end confdefs.h. */
25326 /* Override any gcc2 internal prototype to avoid an error. */
25330 /* We use char because int might match the return type of a gcc2
25331 builtin and then its argument prototype would still apply. */
25332 char pthread_mutex_lock ();
25336 pthread_mutex_lock ();
25341 rm -f conftest.$ac_objext conftest$ac_exeext
25342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25343 (eval $ac_link) 2>conftest.er1
25345 grep -v '^ *+' conftest.er1 >conftest.err
25347 cat conftest.err >&5
25348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25349 (exit $ac_status); } &&
25350 { ac_try='test -z "$ac_c_werror_flag"
25351 || test ! -s conftest.err'
25352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25353 (eval $ac_try) 2>&5
25355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25356 (exit $ac_status); }; } &&
25357 { ac_try='test -s conftest$ac_exeext'
25358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25359 (eval $ac_try) 2>&5
25361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25362 (exit $ac_status); }; }; then
25363 ac_cv_search_pthread_mutex_lock="none required"
25365 echo "$as_me: failed program was:" >&5
25366 sed 's/^/| /' conftest.$ac_ext >&5
25369 rm -f conftest.err conftest.$ac_objext \
25370 conftest$ac_exeext conftest.$ac_ext
25371 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25372 for ac_lib in pthread; do
25373 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25374 cat >conftest.$ac_ext <<_ACEOF
25377 cat confdefs.h >>conftest.$ac_ext
25378 cat >>conftest.$ac_ext <<_ACEOF
25379 /* end confdefs.h. */
25381 /* Override any gcc2 internal prototype to avoid an error. */
25385 /* We use char because int might match the return type of a gcc2
25386 builtin and then its argument prototype would still apply. */
25387 char pthread_mutex_lock ();
25391 pthread_mutex_lock ();
25396 rm -f conftest.$ac_objext conftest$ac_exeext
25397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25398 (eval $ac_link) 2>conftest.er1
25400 grep -v '^ *+' conftest.er1 >conftest.err
25402 cat conftest.err >&5
25403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25404 (exit $ac_status); } &&
25405 { ac_try='test -z "$ac_c_werror_flag"
25406 || test ! -s conftest.err'
25407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25408 (eval $ac_try) 2>&5
25410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25411 (exit $ac_status); }; } &&
25412 { ac_try='test -s conftest$ac_exeext'
25413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25414 (eval $ac_try) 2>&5
25416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25417 (exit $ac_status); }; }; then
25418 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25421 echo "$as_me: failed program was:" >&5
25422 sed 's/^/| /' conftest.$ac_ext >&5
25425 rm -f conftest.err conftest.$ac_objext \
25426 conftest$ac_exeext conftest.$ac_ext
25429 LIBS=$ac_func_search_save_LIBS
25431 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25432 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25433 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25434 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25436 cat >>confdefs.h <<\_ACEOF
25437 #define HAVE_PTHREAD_MUTEX_LOCK 1
25449 ac_header_dirent=no
25450 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25451 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25452 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25453 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25455 echo $ECHO_N "(cached) $ECHO_C" >&6
25457 cat >conftest.$ac_ext <<_ACEOF
25460 cat confdefs.h >>conftest.$ac_ext
25461 cat >>conftest.$ac_ext <<_ACEOF
25462 /* end confdefs.h. */
25463 #include <sys/types.h>
25475 rm -f conftest.$ac_objext
25476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25477 (eval $ac_compile) 2>conftest.er1
25479 grep -v '^ *+' conftest.er1 >conftest.err
25481 cat conftest.err >&5
25482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25483 (exit $ac_status); } &&
25484 { ac_try='test -z "$ac_c_werror_flag"
25485 || test ! -s conftest.err'
25486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25487 (eval $ac_try) 2>&5
25489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25490 (exit $ac_status); }; } &&
25491 { ac_try='test -s conftest.$ac_objext'
25492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25493 (eval $ac_try) 2>&5
25495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25496 (exit $ac_status); }; }; then
25497 eval "$as_ac_Header=yes"
25499 echo "$as_me: failed program was:" >&5
25500 sed 's/^/| /' conftest.$ac_ext >&5
25502 eval "$as_ac_Header=no"
25504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25507 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25509 cat >>confdefs.h <<_ACEOF
25510 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25513 ac_header_dirent=$ac_hdr; break
25517 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25518 if test $ac_header_dirent = dirent.h; then
25519 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25520 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25521 if test "${ac_cv_search_opendir+set}" = set; then
25522 echo $ECHO_N "(cached) $ECHO_C" >&6
25524 ac_func_search_save_LIBS=$LIBS
25525 ac_cv_search_opendir=no
25526 cat >conftest.$ac_ext <<_ACEOF
25529 cat confdefs.h >>conftest.$ac_ext
25530 cat >>conftest.$ac_ext <<_ACEOF
25531 /* end confdefs.h. */
25533 /* Override any gcc2 internal prototype to avoid an error. */
25537 /* We use char because int might match the return type of a gcc2
25538 builtin and then its argument prototype would still apply. */
25548 rm -f conftest.$ac_objext conftest$ac_exeext
25549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25550 (eval $ac_link) 2>conftest.er1
25552 grep -v '^ *+' conftest.er1 >conftest.err
25554 cat conftest.err >&5
25555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25556 (exit $ac_status); } &&
25557 { ac_try='test -z "$ac_c_werror_flag"
25558 || test ! -s conftest.err'
25559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25560 (eval $ac_try) 2>&5
25562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25563 (exit $ac_status); }; } &&
25564 { ac_try='test -s conftest$ac_exeext'
25565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25566 (eval $ac_try) 2>&5
25568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25569 (exit $ac_status); }; }; then
25570 ac_cv_search_opendir="none required"
25572 echo "$as_me: failed program was:" >&5
25573 sed 's/^/| /' conftest.$ac_ext >&5
25576 rm -f conftest.err conftest.$ac_objext \
25577 conftest$ac_exeext conftest.$ac_ext
25578 if test "$ac_cv_search_opendir" = no; then
25579 for ac_lib in dir; do
25580 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25581 cat >conftest.$ac_ext <<_ACEOF
25584 cat confdefs.h >>conftest.$ac_ext
25585 cat >>conftest.$ac_ext <<_ACEOF
25586 /* end confdefs.h. */
25588 /* Override any gcc2 internal prototype to avoid an error. */
25592 /* We use char because int might match the return type of a gcc2
25593 builtin and then its argument prototype would still apply. */
25603 rm -f conftest.$ac_objext conftest$ac_exeext
25604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25605 (eval $ac_link) 2>conftest.er1
25607 grep -v '^ *+' conftest.er1 >conftest.err
25609 cat conftest.err >&5
25610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25611 (exit $ac_status); } &&
25612 { ac_try='test -z "$ac_c_werror_flag"
25613 || test ! -s conftest.err'
25614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25615 (eval $ac_try) 2>&5
25617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25618 (exit $ac_status); }; } &&
25619 { ac_try='test -s conftest$ac_exeext'
25620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25621 (eval $ac_try) 2>&5
25623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25624 (exit $ac_status); }; }; then
25625 ac_cv_search_opendir="-l$ac_lib"
25628 echo "$as_me: failed program was:" >&5
25629 sed 's/^/| /' conftest.$ac_ext >&5
25632 rm -f conftest.err conftest.$ac_objext \
25633 conftest$ac_exeext conftest.$ac_ext
25636 LIBS=$ac_func_search_save_LIBS
25638 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25639 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25640 if test "$ac_cv_search_opendir" != no; then
25641 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25646 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25647 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25648 if test "${ac_cv_search_opendir+set}" = set; then
25649 echo $ECHO_N "(cached) $ECHO_C" >&6
25651 ac_func_search_save_LIBS=$LIBS
25652 ac_cv_search_opendir=no
25653 cat >conftest.$ac_ext <<_ACEOF
25656 cat confdefs.h >>conftest.$ac_ext
25657 cat >>conftest.$ac_ext <<_ACEOF
25658 /* end confdefs.h. */
25660 /* Override any gcc2 internal prototype to avoid an error. */
25664 /* We use char because int might match the return type of a gcc2
25665 builtin and then its argument prototype would still apply. */
25675 rm -f conftest.$ac_objext conftest$ac_exeext
25676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25677 (eval $ac_link) 2>conftest.er1
25679 grep -v '^ *+' conftest.er1 >conftest.err
25681 cat conftest.err >&5
25682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25683 (exit $ac_status); } &&
25684 { ac_try='test -z "$ac_c_werror_flag"
25685 || test ! -s conftest.err'
25686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25687 (eval $ac_try) 2>&5
25689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25690 (exit $ac_status); }; } &&
25691 { ac_try='test -s conftest$ac_exeext'
25692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25693 (eval $ac_try) 2>&5
25695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25696 (exit $ac_status); }; }; then
25697 ac_cv_search_opendir="none required"
25699 echo "$as_me: failed program was:" >&5
25700 sed 's/^/| /' conftest.$ac_ext >&5
25703 rm -f conftest.err conftest.$ac_objext \
25704 conftest$ac_exeext conftest.$ac_ext
25705 if test "$ac_cv_search_opendir" = no; then
25706 for ac_lib in x; do
25707 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25708 cat >conftest.$ac_ext <<_ACEOF
25711 cat confdefs.h >>conftest.$ac_ext
25712 cat >>conftest.$ac_ext <<_ACEOF
25713 /* end confdefs.h. */
25715 /* Override any gcc2 internal prototype to avoid an error. */
25719 /* We use char because int might match the return type of a gcc2
25720 builtin and then its argument prototype would still apply. */
25730 rm -f conftest.$ac_objext conftest$ac_exeext
25731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25732 (eval $ac_link) 2>conftest.er1
25734 grep -v '^ *+' conftest.er1 >conftest.err
25736 cat conftest.err >&5
25737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25738 (exit $ac_status); } &&
25739 { ac_try='test -z "$ac_c_werror_flag"
25740 || test ! -s conftest.err'
25741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25742 (eval $ac_try) 2>&5
25744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25745 (exit $ac_status); }; } &&
25746 { ac_try='test -s conftest$ac_exeext'
25747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25748 (eval $ac_try) 2>&5
25750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25751 (exit $ac_status); }; }; then
25752 ac_cv_search_opendir="-l$ac_lib"
25755 echo "$as_me: failed program was:" >&5
25756 sed 's/^/| /' conftest.$ac_ext >&5
25759 rm -f conftest.err conftest.$ac_objext \
25760 conftest$ac_exeext conftest.$ac_ext
25763 LIBS=$ac_func_search_save_LIBS
25765 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25766 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25767 if test "$ac_cv_search_opendir" != no; then
25768 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25774 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25775 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25776 if test "${ac_cv_header_mmap_anon+set}" = set; then
25777 echo $ECHO_N "(cached) $ECHO_C" >&6
25780 ac_cpp='$CPP $CPPFLAGS'
25781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25785 cat >conftest.$ac_ext <<_ACEOF
25788 cat confdefs.h >>conftest.$ac_ext
25789 cat >>conftest.$ac_ext <<_ACEOF
25790 /* end confdefs.h. */
25791 #include <sys/mman.h>
25792 #include <unistd.h>
25797 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25802 rm -f conftest.$ac_objext
25803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25804 (eval $ac_compile) 2>conftest.er1
25806 grep -v '^ *+' conftest.er1 >conftest.err
25808 cat conftest.err >&5
25809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25810 (exit $ac_status); } &&
25811 { ac_try='test -z "$ac_c_werror_flag"
25812 || test ! -s conftest.err'
25813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25814 (eval $ac_try) 2>&5
25816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25817 (exit $ac_status); }; } &&
25818 { ac_try='test -s conftest.$ac_objext'
25819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25820 (eval $ac_try) 2>&5
25822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25823 (exit $ac_status); }; }; then
25824 ac_cv_header_mmap_anon=yes
25826 echo "$as_me: failed program was:" >&5
25827 sed 's/^/| /' conftest.$ac_ext >&5
25829 ac_cv_header_mmap_anon=no
25831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25833 ac_cpp='$CPP $CPPFLAGS'
25834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25840 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25841 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25842 if test "$ac_cv_header_mmap_anon" = yes; then
25844 cat >>confdefs.h <<\_ACEOF
25845 #define HAVE_MMAP_ANONYMOUS 1
25850 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25851 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
25852 if test "${ac_cv_header_stat_broken+set}" = set; then
25853 echo $ECHO_N "(cached) $ECHO_C" >&6
25855 cat >conftest.$ac_ext <<_ACEOF
25858 cat confdefs.h >>conftest.$ac_ext
25859 cat >>conftest.$ac_ext <<_ACEOF
25860 /* end confdefs.h. */
25861 #include <sys/types.h>
25862 #include <sys/stat.h>
25864 #if defined(S_ISBLK) && defined(S_IFDIR)
25865 # if S_ISBLK (S_IFDIR)
25870 #if defined(S_ISBLK) && defined(S_IFCHR)
25871 # if S_ISBLK (S_IFCHR)
25876 #if defined(S_ISLNK) && defined(S_IFREG)
25877 # if S_ISLNK (S_IFREG)
25882 #if defined(S_ISSOCK) && defined(S_IFREG)
25883 # if S_ISSOCK (S_IFREG)
25889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25890 $EGREP "You lose" >/dev/null 2>&1; then
25891 ac_cv_header_stat_broken=yes
25893 ac_cv_header_stat_broken=no
25898 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25899 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
25900 if test $ac_cv_header_stat_broken = yes; then
25902 cat >>confdefs.h <<\_ACEOF
25903 #define STAT_MACROS_BROKEN 1
25908 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25909 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25910 if test "${ac_cv_header_stdc+set}" = set; then
25911 echo $ECHO_N "(cached) $ECHO_C" >&6
25913 cat >conftest.$ac_ext <<_ACEOF
25916 cat confdefs.h >>conftest.$ac_ext
25917 cat >>conftest.$ac_ext <<_ACEOF
25918 /* end confdefs.h. */
25919 #include <stdlib.h>
25920 #include <stdarg.h>
25921 #include <string.h>
25932 rm -f conftest.$ac_objext
25933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25934 (eval $ac_compile) 2>conftest.er1
25936 grep -v '^ *+' conftest.er1 >conftest.err
25938 cat conftest.err >&5
25939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25940 (exit $ac_status); } &&
25941 { ac_try='test -z "$ac_c_werror_flag"
25942 || test ! -s conftest.err'
25943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25944 (eval $ac_try) 2>&5
25946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25947 (exit $ac_status); }; } &&
25948 { ac_try='test -s conftest.$ac_objext'
25949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25950 (eval $ac_try) 2>&5
25952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25953 (exit $ac_status); }; }; then
25954 ac_cv_header_stdc=yes
25956 echo "$as_me: failed program was:" >&5
25957 sed 's/^/| /' conftest.$ac_ext >&5
25959 ac_cv_header_stdc=no
25961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25963 if test $ac_cv_header_stdc = yes; then
25964 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25965 cat >conftest.$ac_ext <<_ACEOF
25968 cat confdefs.h >>conftest.$ac_ext
25969 cat >>conftest.$ac_ext <<_ACEOF
25970 /* end confdefs.h. */
25971 #include <string.h>
25974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25975 $EGREP "memchr" >/dev/null 2>&1; then
25978 ac_cv_header_stdc=no
25984 if test $ac_cv_header_stdc = yes; then
25985 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25986 cat >conftest.$ac_ext <<_ACEOF
25989 cat confdefs.h >>conftest.$ac_ext
25990 cat >>conftest.$ac_ext <<_ACEOF
25991 /* end confdefs.h. */
25992 #include <stdlib.h>
25995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25996 $EGREP "free" >/dev/null 2>&1; then
25999 ac_cv_header_stdc=no
26005 if test $ac_cv_header_stdc = yes; then
26006 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26007 if test "$cross_compiling" = yes; then
26010 cat >conftest.$ac_ext <<_ACEOF
26013 cat confdefs.h >>conftest.$ac_ext
26014 cat >>conftest.$ac_ext <<_ACEOF
26015 /* end confdefs.h. */
26017 #if ((' ' & 0x0FF) == 0x020)
26018 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26019 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26021 # define ISLOWER(c) \
26022 (('a' <= (c) && (c) <= 'i') \
26023 || ('j' <= (c) && (c) <= 'r') \
26024 || ('s' <= (c) && (c) <= 'z'))
26025 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26028 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26033 for (i = 0; i < 256; i++)
26034 if (XOR (islower (i), ISLOWER (i))
26035 || toupper (i) != TOUPPER (i))
26040 rm -f conftest$ac_exeext
26041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26042 (eval $ac_link) 2>&5
26044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26045 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26047 (eval $ac_try) 2>&5
26049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26050 (exit $ac_status); }; }; then
26053 echo "$as_me: program exited with status $ac_status" >&5
26054 echo "$as_me: failed program was:" >&5
26055 sed 's/^/| /' conftest.$ac_ext >&5
26057 ( exit $ac_status )
26058 ac_cv_header_stdc=no
26060 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26064 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26065 echo "${ECHO_T}$ac_cv_header_stdc" >&6
26066 if test $ac_cv_header_stdc = yes; then
26068 cat >>confdefs.h <<\_ACEOF
26069 #define STDC_HEADERS 1
26074 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26075 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26076 if test "${ac_cv_header_sys_wait_h+set}" = set; then
26077 echo $ECHO_N "(cached) $ECHO_C" >&6
26079 cat >conftest.$ac_ext <<_ACEOF
26082 cat confdefs.h >>conftest.$ac_ext
26083 cat >>conftest.$ac_ext <<_ACEOF
26084 /* end confdefs.h. */
26085 #include <sys/types.h>
26086 #include <sys/wait.h>
26087 #ifndef WEXITSTATUS
26088 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26091 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26099 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26104 rm -f conftest.$ac_objext
26105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26106 (eval $ac_compile) 2>conftest.er1
26108 grep -v '^ *+' conftest.er1 >conftest.err
26110 cat conftest.err >&5
26111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26112 (exit $ac_status); } &&
26113 { ac_try='test -z "$ac_c_werror_flag"
26114 || test ! -s conftest.err'
26115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26116 (eval $ac_try) 2>&5
26118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26119 (exit $ac_status); }; } &&
26120 { ac_try='test -s conftest.$ac_objext'
26121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26122 (eval $ac_try) 2>&5
26124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26125 (exit $ac_status); }; }; then
26126 ac_cv_header_sys_wait_h=yes
26128 echo "$as_me: failed program was:" >&5
26129 sed 's/^/| /' conftest.$ac_ext >&5
26131 ac_cv_header_sys_wait_h=no
26133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26135 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26136 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26137 if test $ac_cv_header_sys_wait_h = yes; then
26139 cat >>confdefs.h <<\_ACEOF
26140 #define HAVE_SYS_WAIT_H 1
26145 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26146 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26147 if test "${ac_cv_header_time+set}" = set; then
26148 echo $ECHO_N "(cached) $ECHO_C" >&6
26150 cat >conftest.$ac_ext <<_ACEOF
26153 cat confdefs.h >>conftest.$ac_ext
26154 cat >>conftest.$ac_ext <<_ACEOF
26155 /* end confdefs.h. */
26156 #include <sys/types.h>
26157 #include <sys/time.h>
26163 if ((struct tm *) 0)
26169 rm -f conftest.$ac_objext
26170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26171 (eval $ac_compile) 2>conftest.er1
26173 grep -v '^ *+' conftest.er1 >conftest.err
26175 cat conftest.err >&5
26176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26177 (exit $ac_status); } &&
26178 { ac_try='test -z "$ac_c_werror_flag"
26179 || test ! -s conftest.err'
26180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26181 (eval $ac_try) 2>&5
26183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26184 (exit $ac_status); }; } &&
26185 { ac_try='test -s conftest.$ac_objext'
26186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26187 (eval $ac_try) 2>&5
26189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26190 (exit $ac_status); }; }; then
26191 ac_cv_header_time=yes
26193 echo "$as_me: failed program was:" >&5
26194 sed 's/^/| /' conftest.$ac_ext >&5
26196 ac_cv_header_time=no
26198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26200 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26201 echo "${ECHO_T}$ac_cv_header_time" >&6
26202 if test $ac_cv_header_time = yes; then
26204 cat >>confdefs.h <<\_ACEOF
26205 #define TIME_WITH_SYS_TIME 1
26217 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26219 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26221 echo "$as_me:$LINENO: checking for $ac_header" >&5
26222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26224 echo $ECHO_N "(cached) $ECHO_C" >&6
26226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26227 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26229 # Is the header compilable?
26230 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26231 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26232 cat >conftest.$ac_ext <<_ACEOF
26235 cat confdefs.h >>conftest.$ac_ext
26236 cat >>conftest.$ac_ext <<_ACEOF
26237 /* end confdefs.h. */
26238 $ac_includes_default
26239 #include <$ac_header>
26241 rm -f conftest.$ac_objext
26242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26243 (eval $ac_compile) 2>conftest.er1
26245 grep -v '^ *+' conftest.er1 >conftest.err
26247 cat conftest.err >&5
26248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26249 (exit $ac_status); } &&
26250 { ac_try='test -z "$ac_c_werror_flag"
26251 || test ! -s conftest.err'
26252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26253 (eval $ac_try) 2>&5
26255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26256 (exit $ac_status); }; } &&
26257 { ac_try='test -s conftest.$ac_objext'
26258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26259 (eval $ac_try) 2>&5
26261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26262 (exit $ac_status); }; }; then
26263 ac_header_compiler=yes
26265 echo "$as_me: failed program was:" >&5
26266 sed 's/^/| /' conftest.$ac_ext >&5
26268 ac_header_compiler=no
26270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26271 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26272 echo "${ECHO_T}$ac_header_compiler" >&6
26274 # Is the header present?
26275 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26276 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26277 cat >conftest.$ac_ext <<_ACEOF
26280 cat confdefs.h >>conftest.$ac_ext
26281 cat >>conftest.$ac_ext <<_ACEOF
26282 /* end confdefs.h. */
26283 #include <$ac_header>
26285 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26286 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26288 grep -v '^ *+' conftest.er1 >conftest.err
26290 cat conftest.err >&5
26291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26292 (exit $ac_status); } >/dev/null; then
26293 if test -s conftest.err; then
26294 ac_cpp_err=$ac_c_preproc_warn_flag
26295 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26302 if test -z "$ac_cpp_err"; then
26303 ac_header_preproc=yes
26305 echo "$as_me: failed program was:" >&5
26306 sed 's/^/| /' conftest.$ac_ext >&5
26308 ac_header_preproc=no
26310 rm -f conftest.err conftest.$ac_ext
26311 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26312 echo "${ECHO_T}$ac_header_preproc" >&6
26314 # So? What about this header?
26315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26317 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26318 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26320 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26321 ac_header_preproc=yes
26324 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26325 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26326 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26327 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26328 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26329 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26330 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26331 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26333 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26334 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26335 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26338 ## ----------------------------------- ##
26339 ## Report this to llvmbugs@cs.uiuc.edu ##
26340 ## ----------------------------------- ##
26343 sed "s/^/$as_me: WARNING: /" >&2
26346 echo "$as_me:$LINENO: checking for $ac_header" >&5
26347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26349 echo $ECHO_N "(cached) $ECHO_C" >&6
26351 eval "$as_ac_Header=\$ac_header_preproc"
26353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26354 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26357 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26358 cat >>confdefs.h <<_ACEOF
26359 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26372 for ac_header in malloc.h pthread.h signal.h stdint.h unistd.h utime.h
26374 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26376 echo "$as_me:$LINENO: checking for $ac_header" >&5
26377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26379 echo $ECHO_N "(cached) $ECHO_C" >&6
26381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26382 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26384 # Is the header compilable?
26385 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26386 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26387 cat >conftest.$ac_ext <<_ACEOF
26390 cat confdefs.h >>conftest.$ac_ext
26391 cat >>conftest.$ac_ext <<_ACEOF
26392 /* end confdefs.h. */
26393 $ac_includes_default
26394 #include <$ac_header>
26396 rm -f conftest.$ac_objext
26397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26398 (eval $ac_compile) 2>conftest.er1
26400 grep -v '^ *+' conftest.er1 >conftest.err
26402 cat conftest.err >&5
26403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26404 (exit $ac_status); } &&
26405 { ac_try='test -z "$ac_c_werror_flag"
26406 || test ! -s conftest.err'
26407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26408 (eval $ac_try) 2>&5
26410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26411 (exit $ac_status); }; } &&
26412 { ac_try='test -s conftest.$ac_objext'
26413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26414 (eval $ac_try) 2>&5
26416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26417 (exit $ac_status); }; }; then
26418 ac_header_compiler=yes
26420 echo "$as_me: failed program was:" >&5
26421 sed 's/^/| /' conftest.$ac_ext >&5
26423 ac_header_compiler=no
26425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26426 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26427 echo "${ECHO_T}$ac_header_compiler" >&6
26429 # Is the header present?
26430 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26431 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26432 cat >conftest.$ac_ext <<_ACEOF
26435 cat confdefs.h >>conftest.$ac_ext
26436 cat >>conftest.$ac_ext <<_ACEOF
26437 /* end confdefs.h. */
26438 #include <$ac_header>
26440 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26441 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26443 grep -v '^ *+' conftest.er1 >conftest.err
26445 cat conftest.err >&5
26446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26447 (exit $ac_status); } >/dev/null; then
26448 if test -s conftest.err; then
26449 ac_cpp_err=$ac_c_preproc_warn_flag
26450 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26457 if test -z "$ac_cpp_err"; then
26458 ac_header_preproc=yes
26460 echo "$as_me: failed program was:" >&5
26461 sed 's/^/| /' conftest.$ac_ext >&5
26463 ac_header_preproc=no
26465 rm -f conftest.err conftest.$ac_ext
26466 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26467 echo "${ECHO_T}$ac_header_preproc" >&6
26469 # So? What about this header?
26470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26472 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26473 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26475 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26476 ac_header_preproc=yes
26479 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26480 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26481 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26482 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26483 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26484 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26485 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26486 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26488 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26489 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26490 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26493 ## ----------------------------------- ##
26494 ## Report this to llvmbugs@cs.uiuc.edu ##
26495 ## ----------------------------------- ##
26498 sed "s/^/$as_me: WARNING: /" >&2
26501 echo "$as_me:$LINENO: checking for $ac_header" >&5
26502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26503 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26504 echo $ECHO_N "(cached) $ECHO_C" >&6
26506 eval "$as_ac_Header=\$ac_header_preproc"
26508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26509 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26512 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26513 cat >>confdefs.h <<_ACEOF
26514 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26522 for ac_header in windows.h
26524 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26526 echo "$as_me:$LINENO: checking for $ac_header" >&5
26527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26529 echo $ECHO_N "(cached) $ECHO_C" >&6
26531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26532 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26534 # Is the header compilable?
26535 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26536 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26537 cat >conftest.$ac_ext <<_ACEOF
26540 cat confdefs.h >>conftest.$ac_ext
26541 cat >>conftest.$ac_ext <<_ACEOF
26542 /* end confdefs.h. */
26543 $ac_includes_default
26544 #include <$ac_header>
26546 rm -f conftest.$ac_objext
26547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26548 (eval $ac_compile) 2>conftest.er1
26550 grep -v '^ *+' conftest.er1 >conftest.err
26552 cat conftest.err >&5
26553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26554 (exit $ac_status); } &&
26555 { ac_try='test -z "$ac_c_werror_flag"
26556 || test ! -s conftest.err'
26557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26558 (eval $ac_try) 2>&5
26560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26561 (exit $ac_status); }; } &&
26562 { ac_try='test -s conftest.$ac_objext'
26563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26564 (eval $ac_try) 2>&5
26566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26567 (exit $ac_status); }; }; then
26568 ac_header_compiler=yes
26570 echo "$as_me: failed program was:" >&5
26571 sed 's/^/| /' conftest.$ac_ext >&5
26573 ac_header_compiler=no
26575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26576 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26577 echo "${ECHO_T}$ac_header_compiler" >&6
26579 # Is the header present?
26580 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26581 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26582 cat >conftest.$ac_ext <<_ACEOF
26585 cat confdefs.h >>conftest.$ac_ext
26586 cat >>conftest.$ac_ext <<_ACEOF
26587 /* end confdefs.h. */
26588 #include <$ac_header>
26590 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26591 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26593 grep -v '^ *+' conftest.er1 >conftest.err
26595 cat conftest.err >&5
26596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26597 (exit $ac_status); } >/dev/null; then
26598 if test -s conftest.err; then
26599 ac_cpp_err=$ac_c_preproc_warn_flag
26600 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26607 if test -z "$ac_cpp_err"; then
26608 ac_header_preproc=yes
26610 echo "$as_me: failed program was:" >&5
26611 sed 's/^/| /' conftest.$ac_ext >&5
26613 ac_header_preproc=no
26615 rm -f conftest.err conftest.$ac_ext
26616 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26617 echo "${ECHO_T}$ac_header_preproc" >&6
26619 # So? What about this header?
26620 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26622 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26623 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26625 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26626 ac_header_preproc=yes
26629 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26630 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26631 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26632 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26633 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26634 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26635 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26636 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26638 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26639 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26640 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26643 ## ----------------------------------- ##
26644 ## Report this to llvmbugs@cs.uiuc.edu ##
26645 ## ----------------------------------- ##
26648 sed "s/^/$as_me: WARNING: /" >&2
26651 echo "$as_me:$LINENO: checking for $ac_header" >&5
26652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26654 echo $ECHO_N "(cached) $ECHO_C" >&6
26656 eval "$as_ac_Header=\$ac_header_preproc"
26658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26659 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26662 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26663 cat >>confdefs.h <<_ACEOF
26664 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26676 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
26678 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26679 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26680 echo "$as_me:$LINENO: checking for $ac_header" >&5
26681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26682 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26683 echo $ECHO_N "(cached) $ECHO_C" >&6
26685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26686 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26688 # Is the header compilable?
26689 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26690 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26691 cat >conftest.$ac_ext <<_ACEOF
26694 cat confdefs.h >>conftest.$ac_ext
26695 cat >>conftest.$ac_ext <<_ACEOF
26696 /* end confdefs.h. */
26697 $ac_includes_default
26698 #include <$ac_header>
26700 rm -f conftest.$ac_objext
26701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26702 (eval $ac_compile) 2>conftest.er1
26704 grep -v '^ *+' conftest.er1 >conftest.err
26706 cat conftest.err >&5
26707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26708 (exit $ac_status); } &&
26709 { ac_try='test -z "$ac_c_werror_flag"
26710 || test ! -s conftest.err'
26711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26712 (eval $ac_try) 2>&5
26714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26715 (exit $ac_status); }; } &&
26716 { ac_try='test -s conftest.$ac_objext'
26717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26718 (eval $ac_try) 2>&5
26720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26721 (exit $ac_status); }; }; then
26722 ac_header_compiler=yes
26724 echo "$as_me: failed program was:" >&5
26725 sed 's/^/| /' conftest.$ac_ext >&5
26727 ac_header_compiler=no
26729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26730 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26731 echo "${ECHO_T}$ac_header_compiler" >&6
26733 # Is the header present?
26734 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26735 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26736 cat >conftest.$ac_ext <<_ACEOF
26739 cat confdefs.h >>conftest.$ac_ext
26740 cat >>conftest.$ac_ext <<_ACEOF
26741 /* end confdefs.h. */
26742 #include <$ac_header>
26744 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26745 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26747 grep -v '^ *+' conftest.er1 >conftest.err
26749 cat conftest.err >&5
26750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26751 (exit $ac_status); } >/dev/null; then
26752 if test -s conftest.err; then
26753 ac_cpp_err=$ac_c_preproc_warn_flag
26754 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26761 if test -z "$ac_cpp_err"; then
26762 ac_header_preproc=yes
26764 echo "$as_me: failed program was:" >&5
26765 sed 's/^/| /' conftest.$ac_ext >&5
26767 ac_header_preproc=no
26769 rm -f conftest.err conftest.$ac_ext
26770 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26771 echo "${ECHO_T}$ac_header_preproc" >&6
26773 # So? What about this header?
26774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26776 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26777 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26779 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26780 ac_header_preproc=yes
26783 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26784 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26785 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26786 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26787 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26788 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26789 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26790 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26791 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26792 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26793 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26794 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26797 ## ----------------------------------- ##
26798 ## Report this to llvmbugs@cs.uiuc.edu ##
26799 ## ----------------------------------- ##
26802 sed "s/^/$as_me: WARNING: /" >&2
26805 echo "$as_me:$LINENO: checking for $ac_header" >&5
26806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26808 echo $ECHO_N "(cached) $ECHO_C" >&6
26810 eval "$as_ac_Header=\$ac_header_preproc"
26812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26813 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26816 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26817 cat >>confdefs.h <<_ACEOF
26818 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26827 for ac_header in rw/stdex/hash_map.h rw/stdex/hash_set.h
26829 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26831 echo "$as_me:$LINENO: checking for $ac_header" >&5
26832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26834 echo $ECHO_N "(cached) $ECHO_C" >&6
26836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26837 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26839 # Is the header compilable?
26840 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26841 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26842 cat >conftest.$ac_ext <<_ACEOF
26845 cat confdefs.h >>conftest.$ac_ext
26846 cat >>conftest.$ac_ext <<_ACEOF
26847 /* end confdefs.h. */
26848 $ac_includes_default
26849 #include <$ac_header>
26851 rm -f conftest.$ac_objext
26852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26853 (eval $ac_compile) 2>conftest.er1
26855 grep -v '^ *+' conftest.er1 >conftest.err
26857 cat conftest.err >&5
26858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26859 (exit $ac_status); } &&
26860 { ac_try='test -z "$ac_c_werror_flag"
26861 || test ! -s conftest.err'
26862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26863 (eval $ac_try) 2>&5
26865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26866 (exit $ac_status); }; } &&
26867 { ac_try='test -s conftest.$ac_objext'
26868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26869 (eval $ac_try) 2>&5
26871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26872 (exit $ac_status); }; }; then
26873 ac_header_compiler=yes
26875 echo "$as_me: failed program was:" >&5
26876 sed 's/^/| /' conftest.$ac_ext >&5
26878 ac_header_compiler=no
26880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26881 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26882 echo "${ECHO_T}$ac_header_compiler" >&6
26884 # Is the header present?
26885 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26886 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26887 cat >conftest.$ac_ext <<_ACEOF
26890 cat confdefs.h >>conftest.$ac_ext
26891 cat >>conftest.$ac_ext <<_ACEOF
26892 /* end confdefs.h. */
26893 #include <$ac_header>
26895 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26896 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26898 grep -v '^ *+' conftest.er1 >conftest.err
26900 cat conftest.err >&5
26901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26902 (exit $ac_status); } >/dev/null; then
26903 if test -s conftest.err; then
26904 ac_cpp_err=$ac_c_preproc_warn_flag
26905 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26912 if test -z "$ac_cpp_err"; then
26913 ac_header_preproc=yes
26915 echo "$as_me: failed program was:" >&5
26916 sed 's/^/| /' conftest.$ac_ext >&5
26918 ac_header_preproc=no
26920 rm -f conftest.err conftest.$ac_ext
26921 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26922 echo "${ECHO_T}$ac_header_preproc" >&6
26924 # So? What about this header?
26925 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26927 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26928 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26930 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26931 ac_header_preproc=yes
26934 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26935 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26936 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26937 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26938 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26939 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26940 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26941 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26942 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26943 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26944 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26945 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26948 ## ----------------------------------- ##
26949 ## Report this to llvmbugs@cs.uiuc.edu ##
26950 ## ----------------------------------- ##
26953 sed "s/^/$as_me: WARNING: /" >&2
26956 echo "$as_me:$LINENO: checking for $ac_header" >&5
26957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26959 echo $ECHO_N "(cached) $ECHO_C" >&6
26961 eval "$as_ac_Header=\$ac_header_preproc"
26963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26964 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26967 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26968 cat >>confdefs.h <<_ACEOF
26969 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26978 echo "$as_me:$LINENO: checking for pid_t" >&5
26979 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26980 if test "${ac_cv_type_pid_t+set}" = set; then
26981 echo $ECHO_N "(cached) $ECHO_C" >&6
26983 cat >conftest.$ac_ext <<_ACEOF
26986 cat confdefs.h >>conftest.$ac_ext
26987 cat >>conftest.$ac_ext <<_ACEOF
26988 /* end confdefs.h. */
26989 $ac_includes_default
26995 if (sizeof (pid_t))
27001 rm -f conftest.$ac_objext
27002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27003 (eval $ac_compile) 2>conftest.er1
27005 grep -v '^ *+' conftest.er1 >conftest.err
27007 cat conftest.err >&5
27008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27009 (exit $ac_status); } &&
27010 { ac_try='test -z "$ac_c_werror_flag"
27011 || test ! -s conftest.err'
27012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27013 (eval $ac_try) 2>&5
27015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27016 (exit $ac_status); }; } &&
27017 { ac_try='test -s conftest.$ac_objext'
27018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27019 (eval $ac_try) 2>&5
27021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27022 (exit $ac_status); }; }; then
27023 ac_cv_type_pid_t=yes
27025 echo "$as_me: failed program was:" >&5
27026 sed 's/^/| /' conftest.$ac_ext >&5
27028 ac_cv_type_pid_t=no
27030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27032 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27033 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27034 if test $ac_cv_type_pid_t = yes; then
27038 cat >>confdefs.h <<_ACEOF
27044 echo "$as_me:$LINENO: checking for size_t" >&5
27045 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27046 if test "${ac_cv_type_size_t+set}" = set; then
27047 echo $ECHO_N "(cached) $ECHO_C" >&6
27049 cat >conftest.$ac_ext <<_ACEOF
27052 cat confdefs.h >>conftest.$ac_ext
27053 cat >>conftest.$ac_ext <<_ACEOF
27054 /* end confdefs.h. */
27055 $ac_includes_default
27061 if (sizeof (size_t))
27067 rm -f conftest.$ac_objext
27068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27069 (eval $ac_compile) 2>conftest.er1
27071 grep -v '^ *+' conftest.er1 >conftest.err
27073 cat conftest.err >&5
27074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27075 (exit $ac_status); } &&
27076 { ac_try='test -z "$ac_c_werror_flag"
27077 || test ! -s conftest.err'
27078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27079 (eval $ac_try) 2>&5
27081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27082 (exit $ac_status); }; } &&
27083 { ac_try='test -s conftest.$ac_objext'
27084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27085 (eval $ac_try) 2>&5
27087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27088 (exit $ac_status); }; }; then
27089 ac_cv_type_size_t=yes
27091 echo "$as_me: failed program was:" >&5
27092 sed 's/^/| /' conftest.$ac_ext >&5
27094 ac_cv_type_size_t=no
27096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27098 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27099 echo "${ECHO_T}$ac_cv_type_size_t" >&6
27100 if test $ac_cv_type_size_t = yes; then
27104 cat >>confdefs.h <<_ACEOF
27105 #define size_t unsigned
27110 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27111 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27112 if test "${ac_cv_type_signal+set}" = set; then
27113 echo $ECHO_N "(cached) $ECHO_C" >&6
27115 cat >conftest.$ac_ext <<_ACEOF
27118 cat confdefs.h >>conftest.$ac_ext
27119 cat >>conftest.$ac_ext <<_ACEOF
27120 /* end confdefs.h. */
27121 #include <sys/types.h>
27122 #include <signal.h>
27127 extern "C" void (*signal (int, void (*)(int)))(int);
27129 void (*signal ()) ();
27140 rm -f conftest.$ac_objext
27141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27142 (eval $ac_compile) 2>conftest.er1
27144 grep -v '^ *+' conftest.er1 >conftest.err
27146 cat conftest.err >&5
27147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27148 (exit $ac_status); } &&
27149 { ac_try='test -z "$ac_c_werror_flag"
27150 || test ! -s conftest.err'
27151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27152 (eval $ac_try) 2>&5
27154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27155 (exit $ac_status); }; } &&
27156 { ac_try='test -s conftest.$ac_objext'
27157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27158 (eval $ac_try) 2>&5
27160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27161 (exit $ac_status); }; }; then
27162 ac_cv_type_signal=void
27164 echo "$as_me: failed program was:" >&5
27165 sed 's/^/| /' conftest.$ac_ext >&5
27167 ac_cv_type_signal=int
27169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27171 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27172 echo "${ECHO_T}$ac_cv_type_signal" >&6
27174 cat >>confdefs.h <<_ACEOF
27175 #define RETSIGTYPE $ac_cv_type_signal
27179 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27180 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27181 if test "${ac_cv_struct_tm+set}" = set; then
27182 echo $ECHO_N "(cached) $ECHO_C" >&6
27184 cat >conftest.$ac_ext <<_ACEOF
27187 cat confdefs.h >>conftest.$ac_ext
27188 cat >>conftest.$ac_ext <<_ACEOF
27189 /* end confdefs.h. */
27190 #include <sys/types.h>
27196 struct tm *tp; tp->tm_sec;
27201 rm -f conftest.$ac_objext
27202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27203 (eval $ac_compile) 2>conftest.er1
27205 grep -v '^ *+' conftest.er1 >conftest.err
27207 cat conftest.err >&5
27208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27209 (exit $ac_status); } &&
27210 { ac_try='test -z "$ac_c_werror_flag"
27211 || test ! -s conftest.err'
27212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27213 (eval $ac_try) 2>&5
27215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27216 (exit $ac_status); }; } &&
27217 { ac_try='test -s conftest.$ac_objext'
27218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27219 (eval $ac_try) 2>&5
27221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27222 (exit $ac_status); }; }; then
27223 ac_cv_struct_tm=time.h
27225 echo "$as_me: failed program was:" >&5
27226 sed 's/^/| /' conftest.$ac_ext >&5
27228 ac_cv_struct_tm=sys/time.h
27230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27232 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27233 echo "${ECHO_T}$ac_cv_struct_tm" >&6
27234 if test $ac_cv_struct_tm = sys/time.h; then
27236 cat >>confdefs.h <<\_ACEOF
27237 #define TM_IN_SYS_TIME 1
27242 echo "$as_me:$LINENO: checking for int64_t" >&5
27243 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27244 if test "${ac_cv_type_int64_t+set}" = set; then
27245 echo $ECHO_N "(cached) $ECHO_C" >&6
27247 cat >conftest.$ac_ext <<_ACEOF
27250 cat confdefs.h >>conftest.$ac_ext
27251 cat >>conftest.$ac_ext <<_ACEOF
27252 /* end confdefs.h. */
27253 $ac_includes_default
27259 if (sizeof (int64_t))
27265 rm -f conftest.$ac_objext
27266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27267 (eval $ac_compile) 2>conftest.er1
27269 grep -v '^ *+' conftest.er1 >conftest.err
27271 cat conftest.err >&5
27272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27273 (exit $ac_status); } &&
27274 { ac_try='test -z "$ac_c_werror_flag"
27275 || test ! -s conftest.err'
27276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27277 (eval $ac_try) 2>&5
27279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27280 (exit $ac_status); }; } &&
27281 { ac_try='test -s conftest.$ac_objext'
27282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27283 (eval $ac_try) 2>&5
27285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27286 (exit $ac_status); }; }; then
27287 ac_cv_type_int64_t=yes
27289 echo "$as_me: failed program was:" >&5
27290 sed 's/^/| /' conftest.$ac_ext >&5
27292 ac_cv_type_int64_t=no
27294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27296 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27297 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27298 if test $ac_cv_type_int64_t = yes; then
27300 cat >>confdefs.h <<_ACEOF
27301 #define HAVE_INT64_T 1
27306 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27307 echo "$as_me: error: Type int64_t required but not found" >&2;}
27308 { (exit 1); exit 1; }; }
27311 echo "$as_me:$LINENO: checking for uint64_t" >&5
27312 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27313 if test "${ac_cv_type_uint64_t+set}" = set; then
27314 echo $ECHO_N "(cached) $ECHO_C" >&6
27316 cat >conftest.$ac_ext <<_ACEOF
27319 cat confdefs.h >>conftest.$ac_ext
27320 cat >>conftest.$ac_ext <<_ACEOF
27321 /* end confdefs.h. */
27322 $ac_includes_default
27326 if ((uint64_t *) 0)
27328 if (sizeof (uint64_t))
27334 rm -f conftest.$ac_objext
27335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27336 (eval $ac_compile) 2>conftest.er1
27338 grep -v '^ *+' conftest.er1 >conftest.err
27340 cat conftest.err >&5
27341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27342 (exit $ac_status); } &&
27343 { ac_try='test -z "$ac_c_werror_flag"
27344 || test ! -s conftest.err'
27345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27346 (eval $ac_try) 2>&5
27348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27349 (exit $ac_status); }; } &&
27350 { ac_try='test -s conftest.$ac_objext'
27351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27352 (eval $ac_try) 2>&5
27354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27355 (exit $ac_status); }; }; then
27356 ac_cv_type_uint64_t=yes
27358 echo "$as_me: failed program was:" >&5
27359 sed 's/^/| /' conftest.$ac_ext >&5
27361 ac_cv_type_uint64_t=no
27363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27365 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27366 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27367 if test $ac_cv_type_uint64_t = yes; then
27369 cat >>confdefs.h <<_ACEOF
27370 #define HAVE_UINT64_T 1
27375 echo "$as_me:$LINENO: checking for u_int64_t" >&5
27376 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27377 if test "${ac_cv_type_u_int64_t+set}" = set; then
27378 echo $ECHO_N "(cached) $ECHO_C" >&6
27380 cat >conftest.$ac_ext <<_ACEOF
27383 cat confdefs.h >>conftest.$ac_ext
27384 cat >>conftest.$ac_ext <<_ACEOF
27385 /* end confdefs.h. */
27386 $ac_includes_default
27390 if ((u_int64_t *) 0)
27392 if (sizeof (u_int64_t))
27398 rm -f conftest.$ac_objext
27399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27400 (eval $ac_compile) 2>conftest.er1
27402 grep -v '^ *+' conftest.er1 >conftest.err
27404 cat conftest.err >&5
27405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27406 (exit $ac_status); } &&
27407 { ac_try='test -z "$ac_c_werror_flag"
27408 || test ! -s conftest.err'
27409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27410 (eval $ac_try) 2>&5
27412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27413 (exit $ac_status); }; } &&
27414 { ac_try='test -s conftest.$ac_objext'
27415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27416 (eval $ac_try) 2>&5
27418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27419 (exit $ac_status); }; }; then
27420 ac_cv_type_u_int64_t=yes
27422 echo "$as_me: failed program was:" >&5
27423 sed 's/^/| /' conftest.$ac_ext >&5
27425 ac_cv_type_u_int64_t=no
27427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27429 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27430 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27431 if test $ac_cv_type_u_int64_t = yes; then
27433 cat >>confdefs.h <<_ACEOF
27434 #define HAVE_U_INT64_T 1
27439 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27440 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27441 { (exit 1); exit 1; }; }
27453 for ac_func in backtrace getcwd getpagesize getrusage gettimeofday
27455 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27456 echo "$as_me:$LINENO: checking for $ac_func" >&5
27457 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27458 if eval "test \"\${$as_ac_var+set}\" = set"; then
27459 echo $ECHO_N "(cached) $ECHO_C" >&6
27461 cat >conftest.$ac_ext <<_ACEOF
27464 cat confdefs.h >>conftest.$ac_ext
27465 cat >>conftest.$ac_ext <<_ACEOF
27466 /* end confdefs.h. */
27467 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27468 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27469 #define $ac_func innocuous_$ac_func
27471 /* System header to define __stub macros and hopefully few prototypes,
27472 which can conflict with char $ac_func (); below.
27473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27474 <limits.h> exists even on freestanding compilers. */
27477 # include <limits.h>
27479 # include <assert.h>
27484 /* Override any gcc2 internal prototype to avoid an error. */
27489 /* We use char because int might match the return type of a gcc2
27490 builtin and then its argument prototype would still apply. */
27492 /* The GNU C library defines this for functions which it implements
27493 to always fail with ENOSYS. Some functions are actually named
27494 something starting with __ and the normal name is an alias. */
27495 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27498 char (*f) () = $ac_func;
27507 return f != $ac_func;
27512 rm -f conftest.$ac_objext conftest$ac_exeext
27513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27514 (eval $ac_link) 2>conftest.er1
27516 grep -v '^ *+' conftest.er1 >conftest.err
27518 cat conftest.err >&5
27519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27520 (exit $ac_status); } &&
27521 { ac_try='test -z "$ac_c_werror_flag"
27522 || test ! -s conftest.err'
27523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27524 (eval $ac_try) 2>&5
27526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27527 (exit $ac_status); }; } &&
27528 { ac_try='test -s conftest$ac_exeext'
27529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27530 (eval $ac_try) 2>&5
27532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27533 (exit $ac_status); }; }; then
27534 eval "$as_ac_var=yes"
27536 echo "$as_me: failed program was:" >&5
27537 sed 's/^/| /' conftest.$ac_ext >&5
27539 eval "$as_ac_var=no"
27541 rm -f conftest.err conftest.$ac_objext \
27542 conftest$ac_exeext conftest.$ac_ext
27544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27545 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27546 if test `eval echo '${'$as_ac_var'}'` = yes; then
27547 cat >>confdefs.h <<_ACEOF
27548 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27558 for ac_func in isatty mkdtemp mkstemp mktemp
27560 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27561 echo "$as_me:$LINENO: checking for $ac_func" >&5
27562 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27563 if eval "test \"\${$as_ac_var+set}\" = set"; then
27564 echo $ECHO_N "(cached) $ECHO_C" >&6
27566 cat >conftest.$ac_ext <<_ACEOF
27569 cat confdefs.h >>conftest.$ac_ext
27570 cat >>conftest.$ac_ext <<_ACEOF
27571 /* end confdefs.h. */
27572 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27574 #define $ac_func innocuous_$ac_func
27576 /* System header to define __stub macros and hopefully few prototypes,
27577 which can conflict with char $ac_func (); below.
27578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27579 <limits.h> exists even on freestanding compilers. */
27582 # include <limits.h>
27584 # include <assert.h>
27589 /* Override any gcc2 internal prototype to avoid an error. */
27594 /* We use char because int might match the return type of a gcc2
27595 builtin and then its argument prototype would still apply. */
27597 /* The GNU C library defines this for functions which it implements
27598 to always fail with ENOSYS. Some functions are actually named
27599 something starting with __ and the normal name is an alias. */
27600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27603 char (*f) () = $ac_func;
27612 return f != $ac_func;
27617 rm -f conftest.$ac_objext conftest$ac_exeext
27618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27619 (eval $ac_link) 2>conftest.er1
27621 grep -v '^ *+' conftest.er1 >conftest.err
27623 cat conftest.err >&5
27624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27625 (exit $ac_status); } &&
27626 { ac_try='test -z "$ac_c_werror_flag"
27627 || test ! -s conftest.err'
27628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27629 (eval $ac_try) 2>&5
27631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27632 (exit $ac_status); }; } &&
27633 { ac_try='test -s conftest$ac_exeext'
27634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27635 (eval $ac_try) 2>&5
27637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27638 (exit $ac_status); }; }; then
27639 eval "$as_ac_var=yes"
27641 echo "$as_me: failed program was:" >&5
27642 sed 's/^/| /' conftest.$ac_ext >&5
27644 eval "$as_ac_var=no"
27646 rm -f conftest.err conftest.$ac_objext \
27647 conftest$ac_exeext conftest.$ac_ext
27649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27650 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27651 if test `eval echo '${'$as_ac_var'}'` = yes; then
27652 cat >>confdefs.h <<_ACEOF
27653 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27665 for ac_func in realpath sbrk setrlimit strdup strerror strerror_r
27667 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27668 echo "$as_me:$LINENO: checking for $ac_func" >&5
27669 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27670 if eval "test \"\${$as_ac_var+set}\" = set"; then
27671 echo $ECHO_N "(cached) $ECHO_C" >&6
27673 cat >conftest.$ac_ext <<_ACEOF
27676 cat confdefs.h >>conftest.$ac_ext
27677 cat >>conftest.$ac_ext <<_ACEOF
27678 /* end confdefs.h. */
27679 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27681 #define $ac_func innocuous_$ac_func
27683 /* System header to define __stub macros and hopefully few prototypes,
27684 which can conflict with char $ac_func (); below.
27685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27686 <limits.h> exists even on freestanding compilers. */
27689 # include <limits.h>
27691 # include <assert.h>
27696 /* Override any gcc2 internal prototype to avoid an error. */
27701 /* We use char because int might match the return type of a gcc2
27702 builtin and then its argument prototype would still apply. */
27704 /* The GNU C library defines this for functions which it implements
27705 to always fail with ENOSYS. Some functions are actually named
27706 something starting with __ and the normal name is an alias. */
27707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27710 char (*f) () = $ac_func;
27719 return f != $ac_func;
27724 rm -f conftest.$ac_objext conftest$ac_exeext
27725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27726 (eval $ac_link) 2>conftest.er1
27728 grep -v '^ *+' conftest.er1 >conftest.err
27730 cat conftest.err >&5
27731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27732 (exit $ac_status); } &&
27733 { ac_try='test -z "$ac_c_werror_flag"
27734 || test ! -s conftest.err'
27735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27736 (eval $ac_try) 2>&5
27738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27739 (exit $ac_status); }; } &&
27740 { ac_try='test -s conftest$ac_exeext'
27741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27742 (eval $ac_try) 2>&5
27744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27745 (exit $ac_status); }; }; then
27746 eval "$as_ac_var=yes"
27748 echo "$as_me: failed program was:" >&5
27749 sed 's/^/| /' conftest.$ac_ext >&5
27751 eval "$as_ac_var=no"
27753 rm -f conftest.err conftest.$ac_objext \
27754 conftest$ac_exeext conftest.$ac_ext
27756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27757 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27758 if test `eval echo '${'$as_ac_var'}'` = yes; then
27759 cat >>confdefs.h <<_ACEOF
27760 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27769 for ac_func in strtoll strtoq sysconf
27771 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27772 echo "$as_me:$LINENO: checking for $ac_func" >&5
27773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27774 if eval "test \"\${$as_ac_var+set}\" = set"; then
27775 echo $ECHO_N "(cached) $ECHO_C" >&6
27777 cat >conftest.$ac_ext <<_ACEOF
27780 cat confdefs.h >>conftest.$ac_ext
27781 cat >>conftest.$ac_ext <<_ACEOF
27782 /* end confdefs.h. */
27783 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27785 #define $ac_func innocuous_$ac_func
27787 /* System header to define __stub macros and hopefully few prototypes,
27788 which can conflict with char $ac_func (); below.
27789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27790 <limits.h> exists even on freestanding compilers. */
27793 # include <limits.h>
27795 # include <assert.h>
27800 /* Override any gcc2 internal prototype to avoid an error. */
27805 /* We use char because int might match the return type of a gcc2
27806 builtin and then its argument prototype would still apply. */
27808 /* The GNU C library defines this for functions which it implements
27809 to always fail with ENOSYS. Some functions are actually named
27810 something starting with __ and the normal name is an alias. */
27811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27814 char (*f) () = $ac_func;
27823 return f != $ac_func;
27828 rm -f conftest.$ac_objext conftest$ac_exeext
27829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27830 (eval $ac_link) 2>conftest.er1
27832 grep -v '^ *+' conftest.er1 >conftest.err
27834 cat conftest.err >&5
27835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27836 (exit $ac_status); } &&
27837 { ac_try='test -z "$ac_c_werror_flag"
27838 || test ! -s conftest.err'
27839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27840 (eval $ac_try) 2>&5
27842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27843 (exit $ac_status); }; } &&
27844 { ac_try='test -s conftest$ac_exeext'
27845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27846 (eval $ac_try) 2>&5
27848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27849 (exit $ac_status); }; }; then
27850 eval "$as_ac_var=yes"
27852 echo "$as_me: failed program was:" >&5
27853 sed 's/^/| /' conftest.$ac_ext >&5
27855 eval "$as_ac_var=no"
27857 rm -f conftest.err conftest.$ac_objext \
27858 conftest$ac_exeext conftest.$ac_ext
27860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27861 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27862 if test `eval echo '${'$as_ac_var'}'` = yes; then
27863 cat >>confdefs.h <<_ACEOF
27864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27870 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
27871 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
27872 if test "${llvm_cv_c_printf_a+set}" = set; then
27873 echo $ECHO_N "(cached) $ECHO_C" >&6
27876 ac_cpp='$CPP $CPPFLAGS'
27877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27881 if test "$cross_compiling" = yes; then
27882 llvmac_cv_c_printf_a=no
27884 cat >conftest.$ac_ext <<_ACEOF
27888 cat confdefs.h >>conftest.$ac_ext
27889 cat >>conftest.$ac_ext <<_ACEOF
27890 /* end confdefs.h. */
27893 #include <stdlib.h>
27899 volatile double A, B;
27903 sprintf(Buffer, "%a", A);
27907 if (A != 0x1.999999999999ap-4)
27914 rm -f conftest$ac_exeext
27915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27916 (eval $ac_link) 2>&5
27918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27919 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27921 (eval $ac_try) 2>&5
27923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27924 (exit $ac_status); }; }; then
27925 llvm_cv_c_printf_a=yes
27927 echo "$as_me: program exited with status $ac_status" >&5
27928 echo "$as_me: failed program was:" >&5
27929 sed 's/^/| /' conftest.$ac_ext >&5
27931 ( exit $ac_status )
27932 llvmac_cv_c_printf_a=no
27934 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27937 ac_cpp='$CPP $CPPFLAGS'
27938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27943 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
27944 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
27945 if test "$llvm_cv_c_printf_a" = "yes"; then
27947 cat >>confdefs.h <<\_ACEOF
27948 #define HAVE_PRINTF_A 1
27953 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27954 # for constant arguments. Useless!
27955 echo "$as_me:$LINENO: checking for working alloca.h" >&5
27956 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27957 if test "${ac_cv_working_alloca_h+set}" = set; then
27958 echo $ECHO_N "(cached) $ECHO_C" >&6
27960 cat >conftest.$ac_ext <<_ACEOF
27963 cat confdefs.h >>conftest.$ac_ext
27964 cat >>conftest.$ac_ext <<_ACEOF
27965 /* end confdefs.h. */
27966 #include <alloca.h>
27970 char *p = (char *) alloca (2 * sizeof (int));
27975 rm -f conftest.$ac_objext conftest$ac_exeext
27976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27977 (eval $ac_link) 2>conftest.er1
27979 grep -v '^ *+' conftest.er1 >conftest.err
27981 cat conftest.err >&5
27982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27983 (exit $ac_status); } &&
27984 { ac_try='test -z "$ac_c_werror_flag"
27985 || test ! -s conftest.err'
27986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27987 (eval $ac_try) 2>&5
27989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27990 (exit $ac_status); }; } &&
27991 { ac_try='test -s conftest$ac_exeext'
27992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27993 (eval $ac_try) 2>&5
27995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27996 (exit $ac_status); }; }; then
27997 ac_cv_working_alloca_h=yes
27999 echo "$as_me: failed program was:" >&5
28000 sed 's/^/| /' conftest.$ac_ext >&5
28002 ac_cv_working_alloca_h=no
28004 rm -f conftest.err conftest.$ac_objext \
28005 conftest$ac_exeext conftest.$ac_ext
28007 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28008 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28009 if test $ac_cv_working_alloca_h = yes; then
28011 cat >>confdefs.h <<\_ACEOF
28012 #define HAVE_ALLOCA_H 1
28017 echo "$as_me:$LINENO: checking for alloca" >&5
28018 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28019 if test "${ac_cv_func_alloca_works+set}" = set; then
28020 echo $ECHO_N "(cached) $ECHO_C" >&6
28022 cat >conftest.$ac_ext <<_ACEOF
28025 cat confdefs.h >>conftest.$ac_ext
28026 cat >>conftest.$ac_ext <<_ACEOF
28027 /* end confdefs.h. */
28029 # define alloca __builtin_alloca
28032 # include <malloc.h>
28033 # define alloca _alloca
28036 # include <alloca.h>
28041 # ifndef alloca /* predefined by HP cc +Olibcalls */
28052 char *p = (char *) alloca (1);
28057 rm -f conftest.$ac_objext conftest$ac_exeext
28058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28059 (eval $ac_link) 2>conftest.er1
28061 grep -v '^ *+' conftest.er1 >conftest.err
28063 cat conftest.err >&5
28064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28065 (exit $ac_status); } &&
28066 { ac_try='test -z "$ac_c_werror_flag"
28067 || test ! -s conftest.err'
28068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28069 (eval $ac_try) 2>&5
28071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28072 (exit $ac_status); }; } &&
28073 { ac_try='test -s conftest$ac_exeext'
28074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28075 (eval $ac_try) 2>&5
28077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28078 (exit $ac_status); }; }; then
28079 ac_cv_func_alloca_works=yes
28081 echo "$as_me: failed program was:" >&5
28082 sed 's/^/| /' conftest.$ac_ext >&5
28084 ac_cv_func_alloca_works=no
28086 rm -f conftest.err conftest.$ac_objext \
28087 conftest$ac_exeext conftest.$ac_ext
28089 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28090 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28092 if test $ac_cv_func_alloca_works = yes; then
28094 cat >>confdefs.h <<\_ACEOF
28095 #define HAVE_ALLOCA 1
28099 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28100 # that cause trouble. Some versions do not even contain alloca or
28101 # contain a buggy version. If you still want to use their alloca,
28102 # use ar to extract alloca.o from them instead of compiling alloca.c.
28104 ALLOCA=alloca.$ac_objext
28106 cat >>confdefs.h <<\_ACEOF
28111 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28112 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28113 if test "${ac_cv_os_cray+set}" = set; then
28114 echo $ECHO_N "(cached) $ECHO_C" >&6
28116 cat >conftest.$ac_ext <<_ACEOF
28119 cat confdefs.h >>conftest.$ac_ext
28120 cat >>conftest.$ac_ext <<_ACEOF
28121 /* end confdefs.h. */
28122 #if defined(CRAY) && ! defined(CRAY2)
28129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28130 $EGREP "webecray" >/dev/null 2>&1; then
28138 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28139 echo "${ECHO_T}$ac_cv_os_cray" >&6
28140 if test $ac_cv_os_cray = yes; then
28141 for ac_func in _getb67 GETB67 getb67; do
28142 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28143 echo "$as_me:$LINENO: checking for $ac_func" >&5
28144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28145 if eval "test \"\${$as_ac_var+set}\" = set"; then
28146 echo $ECHO_N "(cached) $ECHO_C" >&6
28148 cat >conftest.$ac_ext <<_ACEOF
28151 cat confdefs.h >>conftest.$ac_ext
28152 cat >>conftest.$ac_ext <<_ACEOF
28153 /* end confdefs.h. */
28154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28156 #define $ac_func innocuous_$ac_func
28158 /* System header to define __stub macros and hopefully few prototypes,
28159 which can conflict with char $ac_func (); below.
28160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28161 <limits.h> exists even on freestanding compilers. */
28164 # include <limits.h>
28166 # include <assert.h>
28171 /* Override any gcc2 internal prototype to avoid an error. */
28176 /* We use char because int might match the return type of a gcc2
28177 builtin and then its argument prototype would still apply. */
28179 /* The GNU C library defines this for functions which it implements
28180 to always fail with ENOSYS. Some functions are actually named
28181 something starting with __ and the normal name is an alias. */
28182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28185 char (*f) () = $ac_func;
28194 return f != $ac_func;
28199 rm -f conftest.$ac_objext conftest$ac_exeext
28200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28201 (eval $ac_link) 2>conftest.er1
28203 grep -v '^ *+' conftest.er1 >conftest.err
28205 cat conftest.err >&5
28206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28207 (exit $ac_status); } &&
28208 { ac_try='test -z "$ac_c_werror_flag"
28209 || test ! -s conftest.err'
28210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28211 (eval $ac_try) 2>&5
28213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28214 (exit $ac_status); }; } &&
28215 { ac_try='test -s conftest$ac_exeext'
28216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28217 (eval $ac_try) 2>&5
28219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28220 (exit $ac_status); }; }; then
28221 eval "$as_ac_var=yes"
28223 echo "$as_me: failed program was:" >&5
28224 sed 's/^/| /' conftest.$ac_ext >&5
28226 eval "$as_ac_var=no"
28228 rm -f conftest.err conftest.$ac_objext \
28229 conftest$ac_exeext conftest.$ac_ext
28231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28232 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28233 if test `eval echo '${'$as_ac_var'}'` = yes; then
28235 cat >>confdefs.h <<_ACEOF
28236 #define CRAY_STACKSEG_END $ac_func
28245 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28246 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28247 if test "${ac_cv_c_stack_direction+set}" = set; then
28248 echo $ECHO_N "(cached) $ECHO_C" >&6
28250 if test "$cross_compiling" = yes; then
28251 ac_cv_c_stack_direction=0
28253 cat >conftest.$ac_ext <<_ACEOF
28256 cat confdefs.h >>conftest.$ac_ext
28257 cat >>conftest.$ac_ext <<_ACEOF
28258 /* end confdefs.h. */
28260 find_stack_direction ()
28262 static char *addr = 0;
28267 return find_stack_direction ();
28270 return (&dummy > addr) ? 1 : -1;
28276 exit (find_stack_direction () < 0);
28279 rm -f conftest$ac_exeext
28280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28281 (eval $ac_link) 2>&5
28283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28286 (eval $ac_try) 2>&5
28288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28289 (exit $ac_status); }; }; then
28290 ac_cv_c_stack_direction=1
28292 echo "$as_me: program exited with status $ac_status" >&5
28293 echo "$as_me: failed program was:" >&5
28294 sed 's/^/| /' conftest.$ac_ext >&5
28296 ( exit $ac_status )
28297 ac_cv_c_stack_direction=-1
28299 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28302 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28303 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28305 cat >>confdefs.h <<_ACEOF
28306 #define STACK_DIRECTION $ac_cv_c_stack_direction
28313 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28314 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28315 if test "${ac_cv_func_rand48+set}" = set; then
28316 echo $ECHO_N "(cached) $ECHO_C" >&6
28319 ac_cpp='$CXXCPP $CPPFLAGS'
28320 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28321 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28322 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28324 cat >conftest.$ac_ext <<_ACEOF
28327 cat confdefs.h >>conftest.$ac_ext
28328 cat >>conftest.$ac_ext <<_ACEOF
28329 /* end confdefs.h. */
28330 #include <stdlib.h>
28334 srand48(0);lrand48();drand48();
28339 rm -f conftest.$ac_objext
28340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28341 (eval $ac_compile) 2>conftest.er1
28343 grep -v '^ *+' conftest.er1 >conftest.err
28345 cat conftest.err >&5
28346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28347 (exit $ac_status); } &&
28348 { ac_try='test -z "$ac_cxx_werror_flag"
28349 || test ! -s conftest.err'
28350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28351 (eval $ac_try) 2>&5
28353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28354 (exit $ac_status); }; } &&
28355 { ac_try='test -s conftest.$ac_objext'
28356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28357 (eval $ac_try) 2>&5
28359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28360 (exit $ac_status); }; }; then
28361 ac_cv_func_rand48=yes
28363 echo "$as_me: failed program was:" >&5
28364 sed 's/^/| /' conftest.$ac_ext >&5
28366 ac_cv_func_rand48=no
28368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28370 ac_cpp='$CPP $CPPFLAGS'
28371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28376 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28377 echo "${ECHO_T}$ac_cv_func_rand48" >&6
28379 if test "$ac_cv_func_rand48" = "yes" ; then
28381 cat >>confdefs.h <<\_ACEOF
28382 #define HAVE_RAND48 1
28388 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28389 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28390 if test "${ac_cv_cxx_namespaces+set}" = set; then
28391 echo $ECHO_N "(cached) $ECHO_C" >&6
28394 ac_cpp='$CXXCPP $CPPFLAGS'
28395 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28396 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28397 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28399 cat >conftest.$ac_ext <<_ACEOF
28402 cat confdefs.h >>conftest.$ac_ext
28403 cat >>conftest.$ac_ext <<_ACEOF
28404 /* end confdefs.h. */
28405 namespace Outer { namespace Inner { int i = 0; }}
28409 using namespace Outer::Inner; return i;
28414 rm -f conftest.$ac_objext
28415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28416 (eval $ac_compile) 2>conftest.er1
28418 grep -v '^ *+' conftest.er1 >conftest.err
28420 cat conftest.err >&5
28421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28422 (exit $ac_status); } &&
28423 { ac_try='test -z "$ac_cxx_werror_flag"
28424 || test ! -s conftest.err'
28425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28426 (eval $ac_try) 2>&5
28428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28429 (exit $ac_status); }; } &&
28430 { ac_try='test -s conftest.$ac_objext'
28431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28432 (eval $ac_try) 2>&5
28434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28435 (exit $ac_status); }; }; then
28436 ac_cv_cxx_namespaces=yes
28438 echo "$as_me: failed program was:" >&5
28439 sed 's/^/| /' conftest.$ac_ext >&5
28441 ac_cv_cxx_namespaces=no
28443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28445 ac_cpp='$CPP $CPPFLAGS'
28446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28452 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28453 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28454 if test "$ac_cv_cxx_namespaces" = yes; then
28456 cat >>confdefs.h <<\_ACEOF
28457 #define HAVE_NAMESPACES
28462 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28463 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28464 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
28465 echo $ECHO_N "(cached) $ECHO_C" >&6
28469 ac_cpp='$CXXCPP $CPPFLAGS'
28470 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28471 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28472 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28474 cat >conftest.$ac_ext <<_ACEOF
28477 cat confdefs.h >>conftest.$ac_ext
28478 cat >>conftest.$ac_ext <<_ACEOF
28479 /* end confdefs.h. */
28480 #include <ext/hash_map>
28481 #ifdef HAVE_NAMESPACES
28482 using namespace std;
28487 hash_map<int, int> t;
28492 rm -f conftest.$ac_objext
28493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28494 (eval $ac_compile) 2>conftest.er1
28496 grep -v '^ *+' conftest.er1 >conftest.err
28498 cat conftest.err >&5
28499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28500 (exit $ac_status); } &&
28501 { ac_try='test -z "$ac_cxx_werror_flag"
28502 || test ! -s conftest.err'
28503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28504 (eval $ac_try) 2>&5
28506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28507 (exit $ac_status); }; } &&
28508 { ac_try='test -s conftest.$ac_objext'
28509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28510 (eval $ac_try) 2>&5
28512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28513 (exit $ac_status); }; }; then
28514 ac_cv_cxx_have_std_ext_hash_map=yes
28516 echo "$as_me: failed program was:" >&5
28517 sed 's/^/| /' conftest.$ac_ext >&5
28519 ac_cv_cxx_have_std_ext_hash_map=no
28521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28523 ac_cpp='$CPP $CPPFLAGS'
28524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28529 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28530 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
28531 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28534 cat >>confdefs.h <<\_ACEOF
28535 #define HAVE_STD_EXT_HASH_MAP 1
28540 cat >>confdefs.h <<\_ACEOF
28541 #define HAVE_STD_EXT_HASH_MAP 0
28546 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28547 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28548 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28549 echo $ECHO_N "(cached) $ECHO_C" >&6
28553 ac_cpp='$CXXCPP $CPPFLAGS'
28554 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28555 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28556 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28558 cat >conftest.$ac_ext <<_ACEOF
28561 cat confdefs.h >>conftest.$ac_ext
28562 cat >>conftest.$ac_ext <<_ACEOF
28563 /* end confdefs.h. */
28564 #include <ext/hash_map>
28565 #ifdef HAVE_NAMESPACES
28566 using namespace __gnu_cxx;
28571 hash_map<int,int> t;
28576 rm -f conftest.$ac_objext
28577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28578 (eval $ac_compile) 2>conftest.er1
28580 grep -v '^ *+' conftest.er1 >conftest.err
28582 cat conftest.err >&5
28583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28584 (exit $ac_status); } &&
28585 { ac_try='test -z "$ac_cxx_werror_flag"
28586 || test ! -s conftest.err'
28587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28588 (eval $ac_try) 2>&5
28590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28591 (exit $ac_status); }; } &&
28592 { ac_try='test -s conftest.$ac_objext'
28593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28594 (eval $ac_try) 2>&5
28596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28597 (exit $ac_status); }; }; then
28598 ac_cv_cxx_have_gnu_ext_hash_map=yes
28600 echo "$as_me: failed program was:" >&5
28601 sed 's/^/| /' conftest.$ac_ext >&5
28603 ac_cv_cxx_have_gnu_ext_hash_map=no
28605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28607 ac_cpp='$CPP $CPPFLAGS'
28608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28613 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28614 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
28615 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28618 cat >>confdefs.h <<\_ACEOF
28619 #define HAVE_GNU_EXT_HASH_MAP 1
28624 cat >>confdefs.h <<\_ACEOF
28625 #define HAVE_GNU_EXT_HASH_MAP 0
28630 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28631 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28632 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28633 echo $ECHO_N "(cached) $ECHO_C" >&6
28637 ac_cpp='$CXXCPP $CPPFLAGS'
28638 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28639 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28640 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28642 cat >conftest.$ac_ext <<_ACEOF
28645 cat confdefs.h >>conftest.$ac_ext
28646 cat >>conftest.$ac_ext <<_ACEOF
28647 /* end confdefs.h. */
28648 #include <hash_map>
28652 hash_map<int,int> t;
28657 rm -f conftest.$ac_objext
28658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28659 (eval $ac_compile) 2>conftest.er1
28661 grep -v '^ *+' conftest.er1 >conftest.err
28663 cat conftest.err >&5
28664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28665 (exit $ac_status); } &&
28666 { ac_try='test -z "$ac_cxx_werror_flag"
28667 || test ! -s conftest.err'
28668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28669 (eval $ac_try) 2>&5
28671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28672 (exit $ac_status); }; } &&
28673 { ac_try='test -s conftest.$ac_objext'
28674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28675 (eval $ac_try) 2>&5
28677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28678 (exit $ac_status); }; }; then
28679 ac_cv_cxx_have_global_hash_map=yes
28681 echo "$as_me: failed program was:" >&5
28682 sed 's/^/| /' conftest.$ac_ext >&5
28684 ac_cv_cxx_have_global_hash_map=no
28686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28688 ac_cpp='$CPP $CPPFLAGS'
28689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28694 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28695 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
28696 if test "$ac_cv_cxx_have_global_hash_map" = yes
28699 cat >>confdefs.h <<\_ACEOF
28700 #define HAVE_GLOBAL_HASH_MAP 1
28705 cat >>confdefs.h <<\_ACEOF
28706 #define HAVE_GLOBAL_HASH_MAP 0
28711 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
28712 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
28713 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
28714 echo $ECHO_N "(cached) $ECHO_C" >&6
28718 ac_cpp='$CXXCPP $CPPFLAGS'
28719 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28720 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28721 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28723 cat >conftest.$ac_ext <<_ACEOF
28726 cat confdefs.h >>conftest.$ac_ext
28727 cat >>conftest.$ac_ext <<_ACEOF
28728 /* end confdefs.h. */
28729 #include <ext/hash_set>
28730 #ifdef HAVE_NAMESPACES
28731 using namespace std;
28741 rm -f conftest.$ac_objext
28742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28743 (eval $ac_compile) 2>conftest.er1
28745 grep -v '^ *+' conftest.er1 >conftest.err
28747 cat conftest.err >&5
28748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28749 (exit $ac_status); } &&
28750 { ac_try='test -z "$ac_cxx_werror_flag"
28751 || test ! -s conftest.err'
28752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28753 (eval $ac_try) 2>&5
28755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28756 (exit $ac_status); }; } &&
28757 { ac_try='test -s conftest.$ac_objext'
28758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28759 (eval $ac_try) 2>&5
28761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28762 (exit $ac_status); }; }; then
28763 ac_cv_cxx_have_std_ext_hash_set=yes
28765 echo "$as_me: failed program was:" >&5
28766 sed 's/^/| /' conftest.$ac_ext >&5
28768 ac_cv_cxx_have_std_ext_hash_set=no
28770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28772 ac_cpp='$CPP $CPPFLAGS'
28773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28778 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
28779 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
28780 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
28783 cat >>confdefs.h <<\_ACEOF
28784 #define HAVE_STD_EXT_HASH_SET 1
28789 cat >>confdefs.h <<\_ACEOF
28790 #define HAVE_STD_EXT_HASH_SET 0
28795 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
28796 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
28797 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
28798 echo $ECHO_N "(cached) $ECHO_C" >&6
28802 ac_cpp='$CXXCPP $CPPFLAGS'
28803 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28804 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28805 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28807 cat >conftest.$ac_ext <<_ACEOF
28810 cat confdefs.h >>conftest.$ac_ext
28811 cat >>conftest.$ac_ext <<_ACEOF
28812 /* end confdefs.h. */
28813 #include <ext/hash_set>
28814 #ifdef HAVE_NAMESPACES
28815 using namespace __gnu_cxx;
28825 rm -f conftest.$ac_objext
28826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28827 (eval $ac_compile) 2>conftest.er1
28829 grep -v '^ *+' conftest.er1 >conftest.err
28831 cat conftest.err >&5
28832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28833 (exit $ac_status); } &&
28834 { ac_try='test -z "$ac_cxx_werror_flag"
28835 || test ! -s conftest.err'
28836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28837 (eval $ac_try) 2>&5
28839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28840 (exit $ac_status); }; } &&
28841 { ac_try='test -s conftest.$ac_objext'
28842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28843 (eval $ac_try) 2>&5
28845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28846 (exit $ac_status); }; }; then
28847 ac_cv_cxx_have_gnu_ext_hash_set=yes
28849 echo "$as_me: failed program was:" >&5
28850 sed 's/^/| /' conftest.$ac_ext >&5
28852 ac_cv_cxx_have_gnu_ext_hash_set=no
28854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28856 ac_cpp='$CPP $CPPFLAGS'
28857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28862 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28863 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
28864 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28867 cat >>confdefs.h <<\_ACEOF
28868 #define HAVE_GNU_EXT_HASH_SET 1
28873 cat >>confdefs.h <<\_ACEOF
28874 #define HAVE_GNU_EXT_HASH_SET 0
28879 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
28880 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
28881 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
28882 echo $ECHO_N "(cached) $ECHO_C" >&6
28886 ac_cpp='$CXXCPP $CPPFLAGS'
28887 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28888 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28889 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28891 cat >conftest.$ac_ext <<_ACEOF
28894 cat confdefs.h >>conftest.$ac_ext
28895 cat >>conftest.$ac_ext <<_ACEOF
28896 /* end confdefs.h. */
28897 #include <hash_set>
28901 hash_set<int> t; return 0;
28906 rm -f conftest.$ac_objext
28907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28908 (eval $ac_compile) 2>conftest.er1
28910 grep -v '^ *+' conftest.er1 >conftest.err
28912 cat conftest.err >&5
28913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28914 (exit $ac_status); } &&
28915 { ac_try='test -z "$ac_cxx_werror_flag"
28916 || test ! -s conftest.err'
28917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28918 (eval $ac_try) 2>&5
28920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28921 (exit $ac_status); }; } &&
28922 { ac_try='test -s conftest.$ac_objext'
28923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28924 (eval $ac_try) 2>&5
28926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28927 (exit $ac_status); }; }; then
28928 ac_cv_cxx_have_global_hash_set=yes
28930 echo "$as_me: failed program was:" >&5
28931 sed 's/^/| /' conftest.$ac_ext >&5
28933 ac_cv_cxx_have_global_hash_set=no
28935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28937 ac_cpp='$CPP $CPPFLAGS'
28938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28943 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
28944 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
28945 if test "$ac_cv_cxx_have_global_hash_set" = yes
28948 cat >>confdefs.h <<\_ACEOF
28949 #define HAVE_GLOBAL_HASH_SET 1
28954 cat >>confdefs.h <<\_ACEOF
28955 #define HAVE_GLOBAL_HASH_SET 0
28960 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
28961 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
28962 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
28963 echo $ECHO_N "(cached) $ECHO_C" >&6
28967 ac_cpp='$CXXCPP $CPPFLAGS'
28968 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28969 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28970 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28972 cat >conftest.$ac_ext <<_ACEOF
28975 cat confdefs.h >>conftest.$ac_ext
28976 cat >>conftest.$ac_ext <<_ACEOF
28977 /* end confdefs.h. */
28978 #include <iterator>
28979 #ifdef HAVE_NAMESPACES
28980 using namespace std;
28985 iterator<int,int,int> t; return 0;
28990 rm -f conftest.$ac_objext
28991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28992 (eval $ac_compile) 2>conftest.er1
28994 grep -v '^ *+' conftest.er1 >conftest.err
28996 cat conftest.err >&5
28997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28998 (exit $ac_status); } &&
28999 { ac_try='test -z "$ac_cxx_werror_flag"
29000 || test ! -s conftest.err'
29001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29002 (eval $ac_try) 2>&5
29004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29005 (exit $ac_status); }; } &&
29006 { ac_try='test -s conftest.$ac_objext'
29007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29008 (eval $ac_try) 2>&5
29010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29011 (exit $ac_status); }; }; then
29012 ac_cv_cxx_have_std_iterator=yes
29014 echo "$as_me: failed program was:" >&5
29015 sed 's/^/| /' conftest.$ac_ext >&5
29017 ac_cv_cxx_have_std_iterator=no
29019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29021 ac_cpp='$CPP $CPPFLAGS'
29022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29028 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29029 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
29030 if test "$ac_cv_cxx_have_std_iterator" = yes
29033 cat >>confdefs.h <<\_ACEOF
29034 #define HAVE_STD_ITERATOR 1
29039 cat >>confdefs.h <<\_ACEOF
29040 #define HAVE_STD_ITERATOR 0
29045 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29046 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29047 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29048 echo $ECHO_N "(cached) $ECHO_C" >&6
29052 ac_cpp='$CXXCPP $CPPFLAGS'
29053 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29054 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29055 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29057 cat >conftest.$ac_ext <<_ACEOF
29060 cat confdefs.h >>conftest.$ac_ext
29061 cat >>conftest.$ac_ext <<_ACEOF
29062 /* end confdefs.h. */
29063 #include <iterator>
29064 #ifdef HAVE_NAMESPACES
29065 using namespace std;
29070 bidirectional_iterator<int,int> t; return 0;
29075 rm -f conftest.$ac_objext
29076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29077 (eval $ac_compile) 2>conftest.er1
29079 grep -v '^ *+' conftest.er1 >conftest.err
29081 cat conftest.err >&5
29082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29083 (exit $ac_status); } &&
29084 { ac_try='test -z "$ac_cxx_werror_flag"
29085 || test ! -s conftest.err'
29086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29087 (eval $ac_try) 2>&5
29089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29090 (exit $ac_status); }; } &&
29091 { ac_try='test -s conftest.$ac_objext'
29092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29093 (eval $ac_try) 2>&5
29095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29096 (exit $ac_status); }; }; then
29097 ac_cv_cxx_have_bi_iterator=yes
29099 echo "$as_me: failed program was:" >&5
29100 sed 's/^/| /' conftest.$ac_ext >&5
29102 ac_cv_cxx_have_bi_iterator=no
29104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29106 ac_cpp='$CPP $CPPFLAGS'
29107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29113 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29114 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
29115 if test "$ac_cv_cxx_have_bi_iterator" = yes
29118 cat >>confdefs.h <<\_ACEOF
29119 #define HAVE_BI_ITERATOR 1
29124 cat >>confdefs.h <<\_ACEOF
29125 #define HAVE_BI_ITERATOR 0
29130 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29131 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29132 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29133 echo $ECHO_N "(cached) $ECHO_C" >&6
29137 ac_cpp='$CXXCPP $CPPFLAGS'
29138 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29139 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29140 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29142 cat >conftest.$ac_ext <<_ACEOF
29145 cat confdefs.h >>conftest.$ac_ext
29146 cat >>conftest.$ac_ext <<_ACEOF
29147 /* end confdefs.h. */
29148 #include <iterator>
29149 #ifdef HAVE_NAMESPACES
29150 using namespace std;
29155 forward_iterator<int,int> t; return 0;
29160 rm -f conftest.$ac_objext
29161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29162 (eval $ac_compile) 2>conftest.er1
29164 grep -v '^ *+' conftest.er1 >conftest.err
29166 cat conftest.err >&5
29167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29168 (exit $ac_status); } &&
29169 { ac_try='test -z "$ac_cxx_werror_flag"
29170 || test ! -s conftest.err'
29171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29172 (eval $ac_try) 2>&5
29174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29175 (exit $ac_status); }; } &&
29176 { ac_try='test -s conftest.$ac_objext'
29177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29178 (eval $ac_try) 2>&5
29180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29181 (exit $ac_status); }; }; then
29182 ac_cv_cxx_have_fwd_iterator=yes
29184 echo "$as_me: failed program was:" >&5
29185 sed 's/^/| /' conftest.$ac_ext >&5
29187 ac_cv_cxx_have_fwd_iterator=no
29189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29191 ac_cpp='$CPP $CPPFLAGS'
29192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29198 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
29199 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
29200 if test "$ac_cv_cxx_have_fwd_iterator" = yes
29203 cat >>confdefs.h <<\_ACEOF
29204 #define HAVE_FWD_ITERATOR 1
29209 cat >>confdefs.h <<\_ACEOF
29210 #define HAVE_FWD_ITERATOR 0
29216 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29217 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29218 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29219 echo $ECHO_N "(cached) $ECHO_C" >&6
29222 ac_cpp='$CXXCPP $CPPFLAGS'
29223 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29224 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29225 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29227 cat >conftest.$ac_ext <<_ACEOF
29230 cat confdefs.h >>conftest.$ac_ext
29231 cat >>conftest.$ac_ext <<_ACEOF
29232 /* end confdefs.h. */
29242 rm -f conftest.$ac_objext
29243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29244 (eval $ac_compile) 2>conftest.er1
29246 grep -v '^ *+' conftest.er1 >conftest.err
29248 cat conftest.err >&5
29249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29250 (exit $ac_status); } &&
29251 { ac_try='test -z "$ac_cxx_werror_flag"
29252 || test ! -s conftest.err'
29253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29254 (eval $ac_try) 2>&5
29256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29257 (exit $ac_status); }; } &&
29258 { ac_try='test -s conftest.$ac_objext'
29259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29260 (eval $ac_try) 2>&5
29262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29263 (exit $ac_status); }; }; then
29264 ac_cv_func_isnan_in_math_h=yes
29266 echo "$as_me: failed program was:" >&5
29267 sed 's/^/| /' conftest.$ac_ext >&5
29269 ac_cv_func_isnan_in_math_h=no
29271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29273 ac_cpp='$CPP $CPPFLAGS'
29274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29279 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29280 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
29283 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
29285 cat >>confdefs.h <<\_ACEOF
29286 #define HAVE_ISNAN_IN_MATH_H 1
29291 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29292 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29293 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29294 echo $ECHO_N "(cached) $ECHO_C" >&6
29297 ac_cpp='$CXXCPP $CPPFLAGS'
29298 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29299 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29300 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29302 cat >conftest.$ac_ext <<_ACEOF
29305 cat confdefs.h >>conftest.$ac_ext
29306 cat >>conftest.$ac_ext <<_ACEOF
29307 /* end confdefs.h. */
29317 rm -f conftest.$ac_objext
29318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29319 (eval $ac_compile) 2>conftest.er1
29321 grep -v '^ *+' conftest.er1 >conftest.err
29323 cat conftest.err >&5
29324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29325 (exit $ac_status); } &&
29326 { ac_try='test -z "$ac_cxx_werror_flag"
29327 || test ! -s conftest.err'
29328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29329 (eval $ac_try) 2>&5
29331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29332 (exit $ac_status); }; } &&
29333 { ac_try='test -s conftest.$ac_objext'
29334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29335 (eval $ac_try) 2>&5
29337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29338 (exit $ac_status); }; }; then
29339 ac_cv_func_isnan_in_cmath=yes
29341 echo "$as_me: failed program was:" >&5
29342 sed 's/^/| /' conftest.$ac_ext >&5
29344 ac_cv_func_isnan_in_cmath=no
29346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29348 ac_cpp='$CPP $CPPFLAGS'
29349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29354 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29355 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
29357 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
29359 cat >>confdefs.h <<\_ACEOF
29360 #define HAVE_ISNAN_IN_CMATH 1
29365 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29366 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29367 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29368 echo $ECHO_N "(cached) $ECHO_C" >&6
29371 ac_cpp='$CXXCPP $CPPFLAGS'
29372 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29373 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29374 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29376 cat >conftest.$ac_ext <<_ACEOF
29379 cat confdefs.h >>conftest.$ac_ext
29380 cat >>conftest.$ac_ext <<_ACEOF
29381 /* end confdefs.h. */
29386 float f; std::isnan(f);
29391 rm -f conftest.$ac_objext
29392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29393 (eval $ac_compile) 2>conftest.er1
29395 grep -v '^ *+' conftest.er1 >conftest.err
29397 cat conftest.err >&5
29398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29399 (exit $ac_status); } &&
29400 { ac_try='test -z "$ac_cxx_werror_flag"
29401 || test ! -s conftest.err'
29402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29403 (eval $ac_try) 2>&5
29405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29406 (exit $ac_status); }; } &&
29407 { ac_try='test -s conftest.$ac_objext'
29408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29409 (eval $ac_try) 2>&5
29411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29412 (exit $ac_status); }; }; then
29413 ac_cv_func_std_isnan_in_cmath=yes
29415 echo "$as_me: failed program was:" >&5
29416 sed 's/^/| /' conftest.$ac_ext >&5
29418 ac_cv_func_std_isnan_in_cmath=no
29420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29422 ac_cpp='$CPP $CPPFLAGS'
29423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29428 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29429 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
29431 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
29433 cat >>confdefs.h <<\_ACEOF
29434 #define HAVE_STD_ISNAN_IN_CMATH 1
29440 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29441 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29442 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29443 echo $ECHO_N "(cached) $ECHO_C" >&6
29446 ac_cpp='$CXXCPP $CPPFLAGS'
29447 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29448 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29449 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29451 cat >conftest.$ac_ext <<_ACEOF
29454 cat confdefs.h >>conftest.$ac_ext
29455 cat >>conftest.$ac_ext <<_ACEOF
29456 /* end confdefs.h. */
29466 rm -f conftest.$ac_objext
29467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29468 (eval $ac_compile) 2>conftest.er1
29470 grep -v '^ *+' conftest.er1 >conftest.err
29472 cat conftest.err >&5
29473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29474 (exit $ac_status); } &&
29475 { ac_try='test -z "$ac_cxx_werror_flag"
29476 || test ! -s conftest.err'
29477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29478 (eval $ac_try) 2>&5
29480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29481 (exit $ac_status); }; } &&
29482 { ac_try='test -s conftest.$ac_objext'
29483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29484 (eval $ac_try) 2>&5
29486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29487 (exit $ac_status); }; }; then
29488 ac_cv_func_isinf_in_math_h=yes
29490 echo "$as_me: failed program was:" >&5
29491 sed 's/^/| /' conftest.$ac_ext >&5
29493 ac_cv_func_isinf_in_math_h=no
29495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29497 ac_cpp='$CPP $CPPFLAGS'
29498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29503 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29504 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
29506 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
29508 cat >>confdefs.h <<\_ACEOF
29509 #define HAVE_ISINF_IN_MATH_H 1
29514 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29515 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29516 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29517 echo $ECHO_N "(cached) $ECHO_C" >&6
29520 ac_cpp='$CXXCPP $CPPFLAGS'
29521 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29522 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29523 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29525 cat >conftest.$ac_ext <<_ACEOF
29528 cat confdefs.h >>conftest.$ac_ext
29529 cat >>conftest.$ac_ext <<_ACEOF
29530 /* end confdefs.h. */
29540 rm -f conftest.$ac_objext
29541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29542 (eval $ac_compile) 2>conftest.er1
29544 grep -v '^ *+' conftest.er1 >conftest.err
29546 cat conftest.err >&5
29547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29548 (exit $ac_status); } &&
29549 { ac_try='test -z "$ac_cxx_werror_flag"
29550 || test ! -s conftest.err'
29551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29552 (eval $ac_try) 2>&5
29554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29555 (exit $ac_status); }; } &&
29556 { ac_try='test -s conftest.$ac_objext'
29557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29558 (eval $ac_try) 2>&5
29560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29561 (exit $ac_status); }; }; then
29562 ac_cv_func_isinf_in_cmath=yes
29564 echo "$as_me: failed program was:" >&5
29565 sed 's/^/| /' conftest.$ac_ext >&5
29567 ac_cv_func_isinf_in_cmath=no
29569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29571 ac_cpp='$CPP $CPPFLAGS'
29572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29577 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29578 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
29580 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
29582 cat >>confdefs.h <<\_ACEOF
29583 #define HAVE_ISINF_IN_CMATH 1
29588 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29589 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29590 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29591 echo $ECHO_N "(cached) $ECHO_C" >&6
29594 ac_cpp='$CXXCPP $CPPFLAGS'
29595 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29596 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29597 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29599 cat >conftest.$ac_ext <<_ACEOF
29602 cat confdefs.h >>conftest.$ac_ext
29603 cat >>conftest.$ac_ext <<_ACEOF
29604 /* end confdefs.h. */
29609 float f; std::isinf(f)}
29614 rm -f conftest.$ac_objext
29615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29616 (eval $ac_compile) 2>conftest.er1
29618 grep -v '^ *+' conftest.er1 >conftest.err
29620 cat conftest.err >&5
29621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29622 (exit $ac_status); } &&
29623 { ac_try='test -z "$ac_cxx_werror_flag"
29624 || test ! -s conftest.err'
29625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29626 (eval $ac_try) 2>&5
29628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29629 (exit $ac_status); }; } &&
29630 { ac_try='test -s conftest.$ac_objext'
29631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29632 (eval $ac_try) 2>&5
29634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29635 (exit $ac_status); }; }; then
29636 ac_cv_func_std_isinf_in_cmath=yes
29638 echo "$as_me: failed program was:" >&5
29639 sed 's/^/| /' conftest.$ac_ext >&5
29641 ac_cv_func_std_isinf_in_cmath=no
29643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29645 ac_cpp='$CPP $CPPFLAGS'
29646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29651 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29652 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
29654 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
29656 cat >>confdefs.h <<\_ACEOF
29657 #define HAVE_STD_ISINF_IN_CMATH 1
29662 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29663 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29664 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29665 echo $ECHO_N "(cached) $ECHO_C" >&6
29668 ac_cpp='$CXXCPP $CPPFLAGS'
29669 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29670 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29671 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29673 cat >conftest.$ac_ext <<_ACEOF
29676 cat confdefs.h >>conftest.$ac_ext
29677 cat >>conftest.$ac_ext <<_ACEOF
29678 /* end confdefs.h. */
29679 #include <ieeefp.h>
29683 float f; finite(f);
29688 rm -f conftest.$ac_objext
29689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29690 (eval $ac_compile) 2>conftest.er1
29692 grep -v '^ *+' conftest.er1 >conftest.err
29694 cat conftest.err >&5
29695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29696 (exit $ac_status); } &&
29697 { ac_try='test -z "$ac_cxx_werror_flag"
29698 || test ! -s conftest.err'
29699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29700 (eval $ac_try) 2>&5
29702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29703 (exit $ac_status); }; } &&
29704 { ac_try='test -s conftest.$ac_objext'
29705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29706 (eval $ac_try) 2>&5
29708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29709 (exit $ac_status); }; }; then
29710 ac_cv_func_finite_in_ieeefp_h=yes
29712 echo "$as_me: failed program was:" >&5
29713 sed 's/^/| /' conftest.$ac_ext >&5
29715 ac_cv_func_finite_in_ieeefp_h=no
29717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29719 ac_cpp='$CPP $CPPFLAGS'
29720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29725 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
29726 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
29728 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
29730 cat >>confdefs.h <<\_ACEOF
29731 #define HAVE_FINITE_IN_IEEEFP_H 1
29740 for ac_header in stdlib.h unistd.h
29742 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29744 echo "$as_me:$LINENO: checking for $ac_header" >&5
29745 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29747 echo $ECHO_N "(cached) $ECHO_C" >&6
29749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29750 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29752 # Is the header compilable?
29753 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29754 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29755 cat >conftest.$ac_ext <<_ACEOF
29758 cat confdefs.h >>conftest.$ac_ext
29759 cat >>conftest.$ac_ext <<_ACEOF
29760 /* end confdefs.h. */
29761 $ac_includes_default
29762 #include <$ac_header>
29764 rm -f conftest.$ac_objext
29765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29766 (eval $ac_compile) 2>conftest.er1
29768 grep -v '^ *+' conftest.er1 >conftest.err
29770 cat conftest.err >&5
29771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29772 (exit $ac_status); } &&
29773 { ac_try='test -z "$ac_c_werror_flag"
29774 || test ! -s conftest.err'
29775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29776 (eval $ac_try) 2>&5
29778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29779 (exit $ac_status); }; } &&
29780 { ac_try='test -s conftest.$ac_objext'
29781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29782 (eval $ac_try) 2>&5
29784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29785 (exit $ac_status); }; }; then
29786 ac_header_compiler=yes
29788 echo "$as_me: failed program was:" >&5
29789 sed 's/^/| /' conftest.$ac_ext >&5
29791 ac_header_compiler=no
29793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29794 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29795 echo "${ECHO_T}$ac_header_compiler" >&6
29797 # Is the header present?
29798 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29799 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29800 cat >conftest.$ac_ext <<_ACEOF
29803 cat confdefs.h >>conftest.$ac_ext
29804 cat >>conftest.$ac_ext <<_ACEOF
29805 /* end confdefs.h. */
29806 #include <$ac_header>
29808 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29809 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29811 grep -v '^ *+' conftest.er1 >conftest.err
29813 cat conftest.err >&5
29814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29815 (exit $ac_status); } >/dev/null; then
29816 if test -s conftest.err; then
29817 ac_cpp_err=$ac_c_preproc_warn_flag
29818 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29825 if test -z "$ac_cpp_err"; then
29826 ac_header_preproc=yes
29828 echo "$as_me: failed program was:" >&5
29829 sed 's/^/| /' conftest.$ac_ext >&5
29831 ac_header_preproc=no
29833 rm -f conftest.err conftest.$ac_ext
29834 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29835 echo "${ECHO_T}$ac_header_preproc" >&6
29837 # So? What about this header?
29838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29840 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29841 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29843 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29844 ac_header_preproc=yes
29847 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29848 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29849 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29850 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29851 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29852 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29853 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29854 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29856 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29857 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29858 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29861 ## ----------------------------------- ##
29862 ## Report this to llvmbugs@cs.uiuc.edu ##
29863 ## ----------------------------------- ##
29866 sed "s/^/$as_me: WARNING: /" >&2
29869 echo "$as_me:$LINENO: checking for $ac_header" >&5
29870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29872 echo $ECHO_N "(cached) $ECHO_C" >&6
29874 eval "$as_ac_Header=\$ac_header_preproc"
29876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29877 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29880 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29881 cat >>confdefs.h <<_ACEOF
29882 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29890 for ac_func in getpagesize
29892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29893 echo "$as_me:$LINENO: checking for $ac_func" >&5
29894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29895 if eval "test \"\${$as_ac_var+set}\" = set"; then
29896 echo $ECHO_N "(cached) $ECHO_C" >&6
29898 cat >conftest.$ac_ext <<_ACEOF
29901 cat confdefs.h >>conftest.$ac_ext
29902 cat >>conftest.$ac_ext <<_ACEOF
29903 /* end confdefs.h. */
29904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29906 #define $ac_func innocuous_$ac_func
29908 /* System header to define __stub macros and hopefully few prototypes,
29909 which can conflict with char $ac_func (); below.
29910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29911 <limits.h> exists even on freestanding compilers. */
29914 # include <limits.h>
29916 # include <assert.h>
29921 /* Override any gcc2 internal prototype to avoid an error. */
29926 /* We use char because int might match the return type of a gcc2
29927 builtin and then its argument prototype would still apply. */
29929 /* The GNU C library defines this for functions which it implements
29930 to always fail with ENOSYS. Some functions are actually named
29931 something starting with __ and the normal name is an alias. */
29932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29935 char (*f) () = $ac_func;
29944 return f != $ac_func;
29949 rm -f conftest.$ac_objext conftest$ac_exeext
29950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29951 (eval $ac_link) 2>conftest.er1
29953 grep -v '^ *+' conftest.er1 >conftest.err
29955 cat conftest.err >&5
29956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29957 (exit $ac_status); } &&
29958 { ac_try='test -z "$ac_c_werror_flag"
29959 || test ! -s conftest.err'
29960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29961 (eval $ac_try) 2>&5
29963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29964 (exit $ac_status); }; } &&
29965 { ac_try='test -s conftest$ac_exeext'
29966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29967 (eval $ac_try) 2>&5
29969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29970 (exit $ac_status); }; }; then
29971 eval "$as_ac_var=yes"
29973 echo "$as_me: failed program was:" >&5
29974 sed 's/^/| /' conftest.$ac_ext >&5
29976 eval "$as_ac_var=no"
29978 rm -f conftest.err conftest.$ac_objext \
29979 conftest$ac_exeext conftest.$ac_ext
29981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29982 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29983 if test `eval echo '${'$as_ac_var'}'` = yes; then
29984 cat >>confdefs.h <<_ACEOF
29985 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29991 echo "$as_me:$LINENO: checking for working mmap" >&5
29992 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
29993 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
29994 echo $ECHO_N "(cached) $ECHO_C" >&6
29996 if test "$cross_compiling" = yes; then
29997 ac_cv_func_mmap_fixed_mapped=no
29999 cat >conftest.$ac_ext <<_ACEOF
30002 cat confdefs.h >>conftest.$ac_ext
30003 cat >>conftest.$ac_ext <<_ACEOF
30004 /* end confdefs.h. */
30005 $ac_includes_default
30006 /* malloc might have been renamed as rpl_malloc. */
30009 /* Thanks to Mike Haertel and Jim Avera for this test.
30010 Here is a matrix of mmap possibilities:
30011 mmap private not fixed
30012 mmap private fixed at somewhere currently unmapped
30013 mmap private fixed at somewhere already mapped
30014 mmap shared not fixed
30015 mmap shared fixed at somewhere currently unmapped
30016 mmap shared fixed at somewhere already mapped
30017 For private mappings, we should verify that changes cannot be read()
30018 back from the file, nor mmap's back from the file at a different
30019 address. (There have been systems where private was not correctly
30020 implemented like the infamous i386 svr4.0, and systems where the
30021 VM page cache was not coherent with the file system buffer cache
30022 like early versions of FreeBSD and possibly contemporary NetBSD.)
30023 For shared mappings, we should conversely verify that changes get
30024 propagated back to all the places they're supposed to be.
30026 Grep wants private fixed already mapped.
30027 The main things grep needs to know about mmap are:
30028 * does it exist and is it safe to write into the mmap'd area
30029 * how to use it (BSD variants) */
30032 #include <sys/mman.h>
30034 #if !STDC_HEADERS && !HAVE_STDLIB_H
30038 /* This mess was copied from the GNU getpagesize.h. */
30039 #if !HAVE_GETPAGESIZE
30040 /* Assume that all systems that can run configure have sys/param.h. */
30041 # if !HAVE_SYS_PARAM_H
30042 # define HAVE_SYS_PARAM_H 1
30045 # ifdef _SC_PAGESIZE
30046 # define getpagesize() sysconf(_SC_PAGESIZE)
30047 # else /* no _SC_PAGESIZE */
30048 # if HAVE_SYS_PARAM_H
30049 # include <sys/param.h>
30050 # ifdef EXEC_PAGESIZE
30051 # define getpagesize() EXEC_PAGESIZE
30052 # else /* no EXEC_PAGESIZE */
30054 # define getpagesize() NBPG * CLSIZE
30057 # endif /* no CLSIZE */
30058 # else /* no NBPG */
30060 # define getpagesize() NBPC
30061 # else /* no NBPC */
30063 # define getpagesize() PAGESIZE
30064 # endif /* PAGESIZE */
30065 # endif /* no NBPC */
30066 # endif /* no NBPG */
30067 # endif /* no EXEC_PAGESIZE */
30068 # else /* no HAVE_SYS_PARAM_H */
30069 # define getpagesize() 8192 /* punt totally */
30070 # endif /* no HAVE_SYS_PARAM_H */
30071 # endif /* no _SC_PAGESIZE */
30073 #endif /* no HAVE_GETPAGESIZE */
30078 char *data, *data2, *data3;
30082 pagesize = getpagesize ();
30084 /* First, make a file with some known garbage in it. */
30085 data = (char *) malloc (pagesize);
30088 for (i = 0; i < pagesize; ++i)
30089 *(data + i) = rand ();
30091 fd = creat ("conftest.mmap", 0600);
30094 if (write (fd, data, pagesize) != pagesize)
30098 /* Next, try to mmap the file at a fixed address which already has
30099 something else allocated at it. If we can, also make sure that
30100 we see the same garbage. */
30101 fd = open ("conftest.mmap", O_RDWR);
30104 data2 = (char *) malloc (2 * pagesize);
30107 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
30108 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
30109 MAP_PRIVATE | MAP_FIXED, fd, 0L))
30111 for (i = 0; i < pagesize; ++i)
30112 if (*(data + i) != *(data2 + i))
30115 /* Finally, make sure that changes to the mapped area do not
30116 percolate back to the file as seen by read(). (This is a bug on
30117 some variants of i386 svr4.0.) */
30118 for (i = 0; i < pagesize; ++i)
30119 *(data2 + i) = *(data2 + i) + 1;
30120 data3 = (char *) malloc (pagesize);
30123 if (read (fd, data3, pagesize) != pagesize)
30125 for (i = 0; i < pagesize; ++i)
30126 if (*(data + i) != *(data3 + i))
30132 rm -f conftest$ac_exeext
30133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30134 (eval $ac_link) 2>&5
30136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30139 (eval $ac_try) 2>&5
30141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30142 (exit $ac_status); }; }; then
30143 ac_cv_func_mmap_fixed_mapped=yes
30145 echo "$as_me: program exited with status $ac_status" >&5
30146 echo "$as_me: failed program was:" >&5
30147 sed 's/^/| /' conftest.$ac_ext >&5
30149 ( exit $ac_status )
30150 ac_cv_func_mmap_fixed_mapped=no
30152 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30155 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
30156 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
30157 if test $ac_cv_func_mmap_fixed_mapped = yes; then
30159 cat >>confdefs.h <<\_ACEOF
30160 #define HAVE_MMAP 1
30164 rm -f conftest.mmap
30166 echo "$as_me:$LINENO: checking for mmap of files" >&5
30167 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
30168 if test "${ac_cv_func_mmap_file+set}" = set; then
30169 echo $ECHO_N "(cached) $ECHO_C" >&6
30172 ac_cpp='$CPP $CPPFLAGS'
30173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30177 if test "$cross_compiling" = yes; then
30178 ac_cv_func_mmap_file=no
30180 cat >conftest.$ac_ext <<_ACEOF
30184 cat confdefs.h >>conftest.$ac_ext
30185 cat >>conftest.$ac_ext <<_ACEOF
30186 /* end confdefs.h. */
30188 #include <sys/types.h>
30189 #include <sys/mman.h>
30197 fd = creat ("foo",0777);
30198 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
30200 return (fd != (int) MAP_FAILED);
30205 rm -f conftest$ac_exeext
30206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30207 (eval $ac_link) 2>&5
30209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30210 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30212 (eval $ac_try) 2>&5
30214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30215 (exit $ac_status); }; }; then
30216 ac_cv_func_mmap_file=yes
30218 echo "$as_me: program exited with status $ac_status" >&5
30219 echo "$as_me: failed program was:" >&5
30220 sed 's/^/| /' conftest.$ac_ext >&5
30222 ( exit $ac_status )
30223 ac_cv_func_mmap_file=no
30225 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30228 ac_cpp='$CPP $CPPFLAGS'
30229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30235 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30236 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30237 if test "$ac_cv_func_mmap_file" = yes; then
30239 cat >>confdefs.h <<\_ACEOF
30240 #define HAVE_MMAP_FILE
30247 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30248 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30249 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30250 echo $ECHO_N "(cached) $ECHO_C" >&6
30252 if test "$llvm_cv_os_type" = "Interix" ; then
30253 ac_cv_need_dev_zero_for_mmap=yes
30255 ac_cv_need_dev_zero_for_mmap=no
30259 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30260 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30261 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30263 cat >>confdefs.h <<\_ACEOF
30264 #define NEED_DEV_ZERO_FOR_MMAP 1
30268 echo "$as_me:$LINENO: checking for mprotect" >&5
30269 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30270 if test "${ac_cv_func_mprotect+set}" = set; then
30271 echo $ECHO_N "(cached) $ECHO_C" >&6
30273 cat >conftest.$ac_ext <<_ACEOF
30276 cat confdefs.h >>conftest.$ac_ext
30277 cat >>conftest.$ac_ext <<_ACEOF
30278 /* end confdefs.h. */
30279 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30281 #define mprotect innocuous_mprotect
30283 /* System header to define __stub macros and hopefully few prototypes,
30284 which can conflict with char mprotect (); below.
30285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30286 <limits.h> exists even on freestanding compilers. */
30289 # include <limits.h>
30291 # include <assert.h>
30296 /* Override any gcc2 internal prototype to avoid an error. */
30301 /* We use char because int might match the return type of a gcc2
30302 builtin and then its argument prototype would still apply. */
30304 /* The GNU C library defines this for functions which it implements
30305 to always fail with ENOSYS. Some functions are actually named
30306 something starting with __ and the normal name is an alias. */
30307 #if defined (__stub_mprotect) || defined (__stub___mprotect)
30310 char (*f) () = mprotect;
30319 return f != mprotect;
30324 rm -f conftest.$ac_objext conftest$ac_exeext
30325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30326 (eval $ac_link) 2>conftest.er1
30328 grep -v '^ *+' conftest.er1 >conftest.err
30330 cat conftest.err >&5
30331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30332 (exit $ac_status); } &&
30333 { ac_try='test -z "$ac_c_werror_flag"
30334 || test ! -s conftest.err'
30335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30336 (eval $ac_try) 2>&5
30338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30339 (exit $ac_status); }; } &&
30340 { ac_try='test -s conftest$ac_exeext'
30341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30342 (eval $ac_try) 2>&5
30344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30345 (exit $ac_status); }; }; then
30346 ac_cv_func_mprotect=yes
30348 echo "$as_me: failed program was:" >&5
30349 sed 's/^/| /' conftest.$ac_ext >&5
30351 ac_cv_func_mprotect=no
30353 rm -f conftest.err conftest.$ac_objext \
30354 conftest$ac_exeext conftest.$ac_ext
30356 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30357 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30358 if test $ac_cv_func_mprotect = yes; then
30361 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30362 echo "$as_me: error: Function mprotect() required but not found" >&2;}
30363 { (exit 1); exit 1; }; }
30367 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
30369 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30370 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
30372 if test "$ac_cv_func_mmap_file" = "no"
30374 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30375 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
30379 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30380 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
30381 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30382 echo $ECHO_N "(cached) $ECHO_C" >&6
30384 llvm_cv_llvmgcc_sanity="no"
30385 if test -x "$LLVMGCC" ; then
30386 cp /dev/null conftest.c
30387 "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
30388 if test $? -eq 0 ; then
30389 llvm_cv_llvmgcc_sanity="yes"
30394 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30395 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30397 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
30398 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
30399 LLVMCC1=$llvmcc1path
30401 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
30402 LLVMCC1PLUS=$llvmcc1pluspath
30404 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30405 LLVMGCCDIR=$llvmgccdir
30409 SHLIBEXT=$libltdl_cv_shlibext
30412 # Translate the various configuration directories and other basic
30413 # information into substitutions that will end up in Makefile.config.in
30414 # that these configured values can be used by the makefiles
30415 eval LLVM_PREFIX="${prefix}";
30416 eval LLVM_BINDIR="${prefix}/bin";
30417 eval LLVM_LIBDIR="${prefix}/lib";
30418 eval LLVM_DATADIR="${prefix}/share/llvm";
30419 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30420 eval LLVM_ETCDIR="${prefix}/etc/llvm";
30421 eval LLVM_INCLUDEDIR="${prefix}/include";
30422 eval LLVM_INFODIR="${prefix}/info";
30423 eval LLVM_MANDIR="${prefix}/man";
30424 LLVM_CONFIGTIME=`date`
30436 # Place the various directores into the config.h file as #defines so that we
30437 # can know about the installation paths within LLVM.
30439 cat >>confdefs.h <<_ACEOF
30440 #define LLVM_PREFIX "$LLVM_PREFIX"
30444 cat >>confdefs.h <<_ACEOF
30445 #define LLVM_BINDIR "$LLVM_BINDIR"
30449 cat >>confdefs.h <<_ACEOF
30450 #define LLVM_LIBDIR "$LLVM_LIBDIR"
30454 cat >>confdefs.h <<_ACEOF
30455 #define LLVM_DATADIR "$LLVM_DATADIR"
30459 cat >>confdefs.h <<_ACEOF
30460 #define LLVM_DATADIR "$LLVM_DOCSDIR"
30464 cat >>confdefs.h <<_ACEOF
30465 #define LLVM_ETCDIR "$LLVM_ETCDIR"
30469 cat >>confdefs.h <<_ACEOF
30470 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30474 cat >>confdefs.h <<_ACEOF
30475 #define LLVM_INFODIR "$LLVM_INFODIR"
30479 cat >>confdefs.h <<_ACEOF
30480 #define LLVM_MANDIR "$LLVM_MANDIR"
30484 cat >>confdefs.h <<_ACEOF
30485 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30490 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30493 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30495 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30497 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30499 ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
30501 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30504 ac_config_files="$ac_config_files Makefile.config"
30507 ac_config_files="$ac_config_files docs/doxygen.cfg"
30510 ac_config_commands="$ac_config_commands setup"
30512 ac_config_commands="$ac_config_commands Makefile"
30515 ac_config_commands="$ac_config_commands Makefile.common"
30518 ac_config_commands="$ac_config_commands examples/Makefile"
30521 ac_config_commands="$ac_config_commands lib/Makefile"
30524 ac_config_commands="$ac_config_commands runtime/Makefile"
30527 ac_config_commands="$ac_config_commands test/Makefile"
30530 ac_config_commands="$ac_config_commands test/Makefile.tests"
30533 ac_config_commands="$ac_config_commands tools/Makefile"
30536 ac_config_commands="$ac_config_commands utils/Makefile"
30539 ac_config_commands="$ac_config_commands projects/Makefile"
30543 cat >confcache <<\_ACEOF
30544 # This file is a shell script that caches the results of configure
30545 # tests run on this system so they can be shared between configure
30546 # scripts and configure runs, see configure's option --config-cache.
30547 # It is not useful on other systems. If it contains results you don't
30548 # want to keep, you may remove or edit it.
30550 # config.status only pays attention to the cache file if you give it
30551 # the --recheck option to rerun configure.
30553 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30554 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30555 # following values.
30559 # The following way of writing the cache mishandles newlines in values,
30560 # but we know of no workaround that is simple, portable, and efficient.
30561 # So, don't put newlines in cache variables' values.
30562 # Ultrix sh set writes to stderr and can't be redirected directly,
30563 # and sets the high bit in the cache file unless we assign to the vars.
30566 case `(ac_space=' '; set | grep ac_space) 2>&1` in
30568 # `set' does not quote correctly, so add quotes (double-quote
30569 # substitution turns \\\\ into \\, and sed turns \\ into \).
30572 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30575 # `set' quotes correctly as required by POSIX, so do not add quotes.
30577 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30584 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30586 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30588 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30589 if test -w $cache_file; then
30590 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30591 cat confcache >$cache_file
30593 echo "not updating unwritable cache $cache_file"
30598 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30599 # Let make expand exec_prefix.
30600 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30602 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30603 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30604 # trailing colons and then remove the whole line if VPATH becomes empty
30605 # (actually we leave an empty line to preserve line numbers).
30606 if test "x$srcdir" = x.; then
30607 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30608 s/:*\$(srcdir):*/:/;
30609 s/:*\${srcdir}:*/:/;
30611 s/^\([^=]*=[ ]*\):*/\1/;
30617 DEFS=-DHAVE_CONFIG_H
30621 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30622 # 1. Remove the extension, and $U if already installed.
30623 ac_i=`echo "$ac_i" |
30624 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30626 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30627 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30629 LIBOBJS=$ac_libobjs
30631 LTLIBOBJS=$ac_ltlibobjs
30634 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30635 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30636 Usually this means the macro was only invoked conditionally." >&5
30637 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30638 Usually this means the macro was only invoked conditionally." >&2;}
30639 { (exit 1); exit 1; }; }
30641 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30642 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30643 Usually this means the macro was only invoked conditionally." >&5
30644 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30645 Usually this means the macro was only invoked conditionally." >&2;}
30646 { (exit 1); exit 1; }; }
30649 : ${CONFIG_STATUS=./config.status}
30650 ac_clean_files_save=$ac_clean_files
30651 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30652 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30653 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30654 cat >$CONFIG_STATUS <<_ACEOF
30656 # Generated by $as_me.
30657 # Run this file to recreate the current configuration.
30658 # Compiler output produced by configure, useful for debugging
30659 # configure, is in config.log if it exists.
30662 ac_cs_recheck=false
30664 SHELL=\${CONFIG_SHELL-$SHELL}
30667 cat >>$CONFIG_STATUS <<\_ACEOF
30668 ## --------------------- ##
30669 ## M4sh Initialization. ##
30670 ## --------------------- ##
30672 # Be Bourne compatible
30673 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30676 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30677 # is contrary to our usage. Disable this feature.
30678 alias -g '${1+"$@"}'='"$@"'
30679 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30682 DUALCASE=1; export DUALCASE # for MKS sh
30684 # Support unset when possible.
30685 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30692 # Work around bugs in pre-3.0 UWIN ksh.
30693 $as_unset ENV MAIL MAILPATH
30700 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30701 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30702 LC_TELEPHONE LC_TIME
30704 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30705 eval $as_var=C; export $as_var
30711 # Required to use basename.
30712 if expr a : '\(a\)' >/dev/null 2>&1; then
30718 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30719 as_basename=basename
30725 # Name of the executable.
30726 as_me=`$as_basename "$0" ||
30727 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30728 X"$0" : 'X\(//\)$' \| \
30729 X"$0" : 'X\(/\)$' \| \
30730 . : '\(.\)' 2>/dev/null ||
30732 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30733 /^X\/\(\/\/\)$/{ s//\1/; q; }
30734 /^X\/\(\/\).*/{ s//\1/; q; }
30738 # PATH needs CR, and LINENO needs CR and PATH.
30739 # Avoid depending upon Character Ranges.
30740 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30741 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30742 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30743 as_cr_digits='0123456789'
30744 as_cr_alnum=$as_cr_Letters$as_cr_digits
30746 # The user is always right.
30747 if test "${PATH_SEPARATOR+set}" != set; then
30748 echo "#! /bin/sh" >conf$$.sh
30749 echo "exit 0" >>conf$$.sh
30751 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30760 as_lineno_1=$LINENO
30761 as_lineno_2=$LINENO
30762 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30763 test "x$as_lineno_1" != "x$as_lineno_2" &&
30764 test "x$as_lineno_3" = "x$as_lineno_2" || {
30765 # Find who we are. Look in the path if we contain no path at all
30768 *[\\/]* ) as_myself=$0 ;;
30769 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30770 for as_dir in $PATH
30773 test -z "$as_dir" && as_dir=.
30774 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30779 # We did not find ourselves, most probably we were run as `sh COMMAND'
30780 # in which case we are not to be found in the path.
30781 if test "x$as_myself" = x; then
30784 if test ! -f "$as_myself"; then
30785 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30786 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30787 { (exit 1); exit 1; }; }
30789 case $CONFIG_SHELL in
30791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30792 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30795 test -z "$as_dir" && as_dir=.
30796 for as_base in sh bash ksh sh5; do
30799 if ("$as_dir/$as_base" -c '
30800 as_lineno_1=$LINENO
30801 as_lineno_2=$LINENO
30802 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30803 test "x$as_lineno_1" != "x$as_lineno_2" &&
30804 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
30805 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30806 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30807 CONFIG_SHELL=$as_dir/$as_base
30808 export CONFIG_SHELL
30809 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30817 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30818 # uniformly replaced by the line number. The first 'sed' inserts a
30819 # line-number line before each line; the second 'sed' does the real
30820 # work. The second script uses 'N' to pair each line-number line
30821 # with the numbered line, and appends trailing '-' during
30822 # substitution so that $LINENO is not a special case at line end.
30823 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30824 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
30825 sed '=' <$as_myself |
30830 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30833 s,^['$as_cr_digits']*\n,,
30834 ' >$as_me.lineno &&
30835 chmod +x $as_me.lineno ||
30836 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30837 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30838 { (exit 1); exit 1; }; }
30840 # Don't try to exec as it changes $[0], causing all sort of problems
30841 # (the dirname of $[0] is not the place where we might find the
30842 # original and so on. Autoconf is especially sensible to this).
30844 # Exit status is that of the last command.
30849 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30850 *c*,-n*) ECHO_N= ECHO_C='
30852 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30853 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30856 if expr a : '\(a\)' >/dev/null 2>&1; then
30862 rm -f conf$$ conf$$.exe conf$$.file
30864 if ln -s conf$$.file conf$$ 2>/dev/null; then
30865 # We could just check for DJGPP; but this test a) works b) is more generic
30866 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30867 if test -f conf$$.exe; then
30868 # Don't use ln at all; we don't have any links
30873 elif ln conf$$.file conf$$ 2>/dev/null; then
30878 rm -f conf$$ conf$$.exe conf$$.file
30880 if mkdir -p . 2>/dev/null; then
30883 test -d ./-p && rmdir ./-p
30887 as_executable_p="test -f"
30889 # Sed expression to map a string onto a valid CPP name.
30890 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30892 # Sed expression to map a string onto a valid variable name.
30893 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30897 # We need space, tab and new line, in precisely that order.
30907 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30908 # report actual input values of CONFIG_FILES etc. instead of their
30909 # values after options handling. Logging --version etc. is OK.
30913 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30914 ## Running $as_me. ##
30919 This file was extended by llvm $as_me 1.6cvs, which was
30920 generated by GNU Autoconf 2.59. Invocation command line was
30922 CONFIG_FILES = $CONFIG_FILES
30923 CONFIG_HEADERS = $CONFIG_HEADERS
30924 CONFIG_LINKS = $CONFIG_LINKS
30925 CONFIG_COMMANDS = $CONFIG_COMMANDS
30929 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30933 # Files that config.status was made for.
30934 if test -n "$ac_config_files"; then
30935 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30938 if test -n "$ac_config_headers"; then
30939 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30942 if test -n "$ac_config_links"; then
30943 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30946 if test -n "$ac_config_commands"; then
30947 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30950 cat >>$CONFIG_STATUS <<\_ACEOF
30953 \`$as_me' instantiates files from templates according to the
30954 current configuration.
30956 Usage: $0 [OPTIONS] [FILE]...
30958 -h, --help print this help, then exit
30959 -V, --version print version number, then exit
30960 -q, --quiet do not print progress messages
30961 -d, --debug don't remove temporary files
30962 --recheck update $as_me by reconfiguring in the same conditions
30963 --file=FILE[:TEMPLATE]
30964 instantiate the configuration file FILE
30965 --header=FILE[:TEMPLATE]
30966 instantiate the configuration header FILE
30968 Configuration files:
30971 Configuration headers:
30974 Configuration commands:
30977 Report bugs to <bug-autoconf@gnu.org>."
30980 cat >>$CONFIG_STATUS <<_ACEOF
30982 llvm config.status 1.6cvs
30983 configured by $0, generated by GNU Autoconf 2.59,
30984 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30986 Copyright (C) 2003 Free Software Foundation, Inc.
30987 This config.status script is free software; the Free Software Foundation
30988 gives unlimited permission to copy, distribute and modify it."
30993 cat >>$CONFIG_STATUS <<\_ACEOF
30994 # If no file are specified by the user, then we need to provide default
30995 # value. By we need to know if files were specified by the user.
31001 ac_option=`expr "x$1" : 'x\([^=]*\)='`
31002 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
31010 *) # This is not an option, so the user has probably given explicit
31013 ac_need_defaults=false;;
31017 # Handling of the options.
31019 cat >>$CONFIG_STATUS <<\_ACEOF
31020 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31022 --version | --vers* | -V )
31023 echo "$ac_cs_version"; exit 0 ;;
31025 # Conflict between --help and --header
31026 { { echo "$as_me:$LINENO: error: ambiguous option: $1
31027 Try \`$0 --help' for more information." >&5
31028 echo "$as_me: error: ambiguous option: $1
31029 Try \`$0 --help' for more information." >&2;}
31030 { (exit 1); exit 1; }; };;
31031 --help | --hel | -h )
31032 echo "$ac_cs_usage"; exit 0 ;;
31033 --debug | --d* | -d )
31035 --file | --fil | --fi | --f )
31037 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31038 ac_need_defaults=false;;
31039 --header | --heade | --head | --hea )
31041 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31042 ac_need_defaults=false;;
31043 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31044 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31047 # This is an error.
31048 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31049 Try \`$0 --help' for more information." >&5
31050 echo "$as_me: error: unrecognized option: $1
31051 Try \`$0 --help' for more information." >&2;}
31052 { (exit 1); exit 1; }; } ;;
31054 *) ac_config_targets="$ac_config_targets $1" ;;
31060 ac_configure_extra_args=
31062 if $ac_cs_silent; then
31064 ac_configure_extra_args="$ac_configure_extra_args --silent"
31068 cat >>$CONFIG_STATUS <<_ACEOF
31069 if \$ac_cs_recheck; then
31070 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31071 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31076 cat >>$CONFIG_STATUS <<_ACEOF
31078 # INIT-COMMANDS section.
31081 llvm_src="${srcdir}"
31087 cat >>$CONFIG_STATUS <<\_ACEOF
31088 for ac_config_target in $ac_config_targets
31090 case "$ac_config_target" in
31091 # Handling of arguments.
31092 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
31093 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
31094 "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
31095 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31096 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
31097 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
31098 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
31099 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
31100 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31101 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
31102 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
31103 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
31104 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
31105 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
31106 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
31107 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31108 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
31109 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
31110 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
31111 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31112 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31113 { (exit 1); exit 1; }; };;
31117 # If the user did not use the arguments to specify the items to instantiate,
31118 # then the envvar interface is used. Set only those that are not.
31119 # We use the long form for the default assignment because of an extremely
31120 # bizarre bug on SunOS 4.1.3.
31121 if $ac_need_defaults; then
31122 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31123 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31124 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31127 # Have a temporary directory for convenience. Make it in the build tree
31128 # simply because there is no reason to put it here, and in addition,
31129 # creating and moving files from /tmp can sometimes cause problems.
31130 # Create a temporary directory, and hook for its removal unless debugging.
31133 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31134 trap '{ (exit 1); exit 1; }' 1 2 13 15
31137 # Create a (secure) tmp directory for tmp files.
31140 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31141 test -n "$tmp" && test -d "$tmp"
31144 tmp=./confstat$$-$RANDOM
31145 (umask 077 && mkdir $tmp)
31148 echo "$me: cannot create a temporary directory in ." >&2
31149 { (exit 1); exit 1; }
31154 cat >>$CONFIG_STATUS <<_ACEOF
31157 # CONFIG_FILES section.
31160 # No need to generate the scripts if there are no CONFIG_FILES.
31161 # This happens for instance when ./config.status config.h
31162 if test -n "\$CONFIG_FILES"; then
31163 # Protect against being on the right side of a sed subst in config.status.
31164 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31165 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31166 s,@SHELL@,$SHELL,;t t
31167 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31168 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31169 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31170 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31171 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31172 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31173 s,@exec_prefix@,$exec_prefix,;t t
31174 s,@prefix@,$prefix,;t t
31175 s,@program_transform_name@,$program_transform_name,;t t
31176 s,@bindir@,$bindir,;t t
31177 s,@sbindir@,$sbindir,;t t
31178 s,@libexecdir@,$libexecdir,;t t
31179 s,@datadir@,$datadir,;t t
31180 s,@sysconfdir@,$sysconfdir,;t t
31181 s,@sharedstatedir@,$sharedstatedir,;t t
31182 s,@localstatedir@,$localstatedir,;t t
31183 s,@libdir@,$libdir,;t t
31184 s,@includedir@,$includedir,;t t
31185 s,@oldincludedir@,$oldincludedir,;t t
31186 s,@infodir@,$infodir,;t t
31187 s,@mandir@,$mandir,;t t
31188 s,@build_alias@,$build_alias,;t t
31189 s,@host_alias@,$host_alias,;t t
31190 s,@target_alias@,$target_alias,;t t
31191 s,@DEFS@,$DEFS,;t t
31192 s,@ECHO_C@,$ECHO_C,;t t
31193 s,@ECHO_N@,$ECHO_N,;t t
31194 s,@ECHO_T@,$ECHO_T,;t t
31195 s,@LIBS@,$LIBS,;t t
31196 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
31197 s,@subdirs@,$subdirs,;t t
31198 s,@build@,$build,;t t
31199 s,@build_cpu@,$build_cpu,;t t
31200 s,@build_vendor@,$build_vendor,;t t
31201 s,@build_os@,$build_os,;t t
31202 s,@host@,$host,;t t
31203 s,@host_cpu@,$host_cpu,;t t
31204 s,@host_vendor@,$host_vendor,;t t
31205 s,@host_os@,$host_os,;t t
31206 s,@target@,$target,;t t
31207 s,@target_cpu@,$target_cpu,;t t
31208 s,@target_vendor@,$target_vendor,;t t
31209 s,@target_os@,$target_os,;t t
31211 s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31212 s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
31213 s,@ARCH@,$ARCH,;t t
31214 s,@ENDIAN@,$ENDIAN,;t t
31216 s,@CFLAGS@,$CFLAGS,;t t
31217 s,@LDFLAGS@,$LDFLAGS,;t t
31218 s,@CPPFLAGS@,$CPPFLAGS,;t t
31219 s,@ac_ct_CC@,$ac_ct_CC,;t t
31220 s,@EXEEXT@,$EXEEXT,;t t
31221 s,@OBJEXT@,$OBJEXT,;t t
31222 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31224 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
31225 s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
31228 s,@CXXFLAGS@,$CXXFLAGS,;t t
31229 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31231 s,@LEXLIB@,$LEXLIB,;t t
31232 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
31233 s,@FLEX@,$FLEX,;t t
31234 s,@YACC@,$YACC,;t t
31235 s,@BISON@,$BISON,;t t
31236 s,@ifGNUmake@,$ifGNUmake,;t t
31237 s,@LN_S@,$LN_S,;t t
31240 s,@DATE@,$DATE,;t t
31241 s,@FIND@,$FIND,;t t
31242 s,@GREP@,$GREP,;t t
31243 s,@MKDIR@,$MKDIR,;t t
31245 s,@RANLIB@,$RANLIB,;t t
31246 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31250 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31251 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31252 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31253 s,@BZIP2@,$BZIP2,;t t
31255 s,@DOXYGEN@,$DOXYGEN,;t t
31256 s,@ETAGS@,$ETAGS,;t t
31257 s,@GROFF@,$GROFF,;t t
31258 s,@GZIP@,$GZIP,;t t
31259 s,@POD2HTML@,$POD2HTML,;t t
31260 s,@POD2MAN@,$POD2MAN,;t t
31261 s,@RUNTEST@,$RUNTEST,;t t
31262 s,@TCLSH@,$TCLSH,;t t
31264 s,@EGREP@,$EGREP,;t t
31265 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31266 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31267 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31268 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31269 s,@LIBADD_DL@,$LIBADD_DL,;t t
31270 s,@ECHO@,$ECHO,;t t
31272 s,@ac_ct_AR@,$ac_ct_AR,;t t
31273 s,@STRIP@,$STRIP,;t t
31274 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31275 s,@CXXCPP@,$CXXCPP,;t t
31277 s,@FFLAGS@,$FFLAGS,;t t
31278 s,@ac_ct_F77@,$ac_ct_F77,;t t
31279 s,@LIBTOOL@,$LIBTOOL,;t t
31280 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
31281 s,@LLVMGCC@,$LLVMGCC,;t t
31282 s,@LLVMGXX@,$LLVMGXX,;t t
31283 s,@ALLOCA@,$ALLOCA,;t t
31284 s,@MMAP_FILE@,$MMAP_FILE,;t t
31285 s,@LLVMCC1@,$LLVMCC1,;t t
31286 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
31287 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
31288 s,@SHLIBEXT@,$SHLIBEXT,;t t
31289 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31290 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31291 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31292 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31293 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31294 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31295 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31296 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31297 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31298 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
31299 s,@LIBOBJS@,$LIBOBJS,;t t
31300 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31305 cat >>$CONFIG_STATUS <<\_ACEOF
31306 # Split the substitutions into bite-sized pieces for seds with
31307 # small command number limits, like on Digital OSF/1 and HP-UX.
31308 ac_max_sed_lines=48
31309 ac_sed_frag=1 # Number of current file.
31310 ac_beg=1 # First line for current file.
31311 ac_end=$ac_max_sed_lines # Line after last line for current file.
31314 while $ac_more_lines; do
31315 if test $ac_beg -gt 1; then
31316 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31318 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31320 if test ! -s $tmp/subs.frag; then
31321 ac_more_lines=false
31323 # The purpose of the label and of the branching condition is to
31324 # speed up the sed processing (if there are no `@' at all, there
31325 # is no need to browse any of the substitutions).
31326 # These are the two extra sed commands mentioned above.
31328 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31329 if test -z "$ac_sed_cmds"; then
31330 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31332 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31334 ac_sed_frag=`expr $ac_sed_frag + 1`
31336 ac_end=`expr $ac_end + $ac_max_sed_lines`
31339 if test -z "$ac_sed_cmds"; then
31342 fi # test -n "$CONFIG_FILES"
31345 cat >>$CONFIG_STATUS <<\_ACEOF
31346 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31347 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31349 - | *:- | *:-:* ) # input from stdin
31351 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31352 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31353 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31354 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31355 * ) ac_file_in=$ac_file.in ;;
31358 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31359 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31360 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31361 X"$ac_file" : 'X\(//\)[^/]' \| \
31362 X"$ac_file" : 'X\(//\)$' \| \
31363 X"$ac_file" : 'X\(/\)' \| \
31364 . : '\(.\)' 2>/dev/null ||
31366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31367 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31368 /^X\(\/\/\)$/{ s//\1/; q; }
31369 /^X\(\/\).*/{ s//\1/; q; }
31371 { if $as_mkdir_p; then
31376 while test ! -d "$as_dir"; do
31377 as_dirs="$as_dir $as_dirs"
31378 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31379 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31380 X"$as_dir" : 'X\(//\)[^/]' \| \
31381 X"$as_dir" : 'X\(//\)$' \| \
31382 X"$as_dir" : 'X\(/\)' \| \
31383 . : '\(.\)' 2>/dev/null ||
31385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31386 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31387 /^X\(\/\/\)$/{ s//\1/; q; }
31388 /^X\(\/\).*/{ s//\1/; q; }
31391 test ! -n "$as_dirs" || mkdir $as_dirs
31392 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31393 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31394 { (exit 1); exit 1; }; }; }
31398 if test "$ac_dir" != .; then
31399 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31400 # A "../" for each directory in $ac_dir_suffix.
31401 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31403 ac_dir_suffix= ac_top_builddir=
31407 .) # No --srcdir option. We are building in place.
31409 if test -z "$ac_top_builddir"; then
31412 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31414 [\\/]* | ?:[\\/]* ) # Absolute path.
31415 ac_srcdir=$srcdir$ac_dir_suffix;
31416 ac_top_srcdir=$srcdir ;;
31417 *) # Relative path.
31418 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31419 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31422 # Do not use `cd foo && pwd` to compute absolute paths, because
31423 # the directories may not exist.
31425 .) ac_abs_builddir="$ac_dir";;
31428 .) ac_abs_builddir=`pwd`;;
31429 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31430 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31433 case $ac_abs_builddir in
31434 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31436 case ${ac_top_builddir}. in
31437 .) ac_abs_top_builddir=$ac_abs_builddir;;
31438 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31439 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31442 case $ac_abs_builddir in
31443 .) ac_abs_srcdir=$ac_srcdir;;
31446 .) ac_abs_srcdir=$ac_abs_builddir;;
31447 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31448 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31451 case $ac_abs_builddir in
31452 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31454 case $ac_top_srcdir in
31455 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31456 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31457 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31463 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31464 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31467 if test x"$ac_file" != x-; then
31468 { echo "$as_me:$LINENO: creating $ac_file" >&5
31469 echo "$as_me: creating $ac_file" >&6;}
31472 # Let's still pretend it is `configure' which instantiates (i.e., don't
31473 # use $as_me), people would be surprised to read:
31474 # /* config.h. Generated by config.status. */
31475 if test x"$ac_file" = x-; then
31478 configure_input="$ac_file. "
31480 configure_input=$configure_input"Generated from `echo $ac_file_in |
31481 sed 's,.*/,,'` by configure."
31483 # First look for the input files in the build tree, otherwise in the
31485 ac_file_inputs=`IFS=:
31486 for f in $ac_file_in; do
31488 -) echo $tmp/stdin ;;
31490 # Absolute (can't be DOS-style, as IFS=:)
31491 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31492 echo "$as_me: error: cannot find input file: $f" >&2;}
31493 { (exit 1); exit 1; }; }
31496 if test -f "$f"; then
31499 elif test -f "$srcdir/$f"; then
31504 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31505 echo "$as_me: error: cannot find input file: $f" >&2;}
31506 { (exit 1); exit 1; }; }
31509 done` || { (exit 1); exit 1; }
31511 cat >>$CONFIG_STATUS <<_ACEOF
31515 cat >>$CONFIG_STATUS <<\_ACEOF
31517 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31518 s,@configure_input@,$configure_input,;t t
31519 s,@srcdir@,$ac_srcdir,;t t
31520 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31521 s,@top_srcdir@,$ac_top_srcdir,;t t
31522 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31523 s,@builddir@,$ac_builddir,;t t
31524 s,@abs_builddir@,$ac_abs_builddir,;t t
31525 s,@top_builddir@,$ac_top_builddir,;t t
31526 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31527 s,@INSTALL@,$ac_INSTALL,;t t
31528 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31530 if test x"$ac_file" != x-; then
31531 mv $tmp/out $ac_file
31539 cat >>$CONFIG_STATUS <<\_ACEOF
31542 # CONFIG_HEADER section.
31545 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31546 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31548 # ac_d sets the value in "#define NAME VALUE" lines.
31549 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31550 ac_dB='[ ].*$,\1#\2'
31553 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31554 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
31555 ac_uB='$,\1#\2define\3'
31559 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31560 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31562 - | *:- | *:-:* ) # input from stdin
31564 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31565 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31566 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31567 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31568 * ) ac_file_in=$ac_file.in ;;
31571 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31572 echo "$as_me: creating $ac_file" >&6;}
31574 # First look for the input files in the build tree, otherwise in the
31576 ac_file_inputs=`IFS=:
31577 for f in $ac_file_in; do
31579 -) echo $tmp/stdin ;;
31581 # Absolute (can't be DOS-style, as IFS=:)
31582 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31583 echo "$as_me: error: cannot find input file: $f" >&2;}
31584 { (exit 1); exit 1; }; }
31585 # Do quote $f, to prevent DOS paths from being IFS'd.
31588 if test -f "$f"; then
31591 elif test -f "$srcdir/$f"; then
31596 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31597 echo "$as_me: error: cannot find input file: $f" >&2;}
31598 { (exit 1); exit 1; }; }
31601 done` || { (exit 1); exit 1; }
31602 # Remove the trailing spaces.
31603 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
31607 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31608 # `conftest.undefs', that substitutes the proper values into
31609 # config.h.in to produce config.h. The first handles `#define'
31610 # templates, and the second `#undef' templates.
31611 # And first: Protect against being on the right side of a sed subst in
31612 # config.status. Protect against being in an unquoted here document
31613 # in config.status.
31614 rm -f conftest.defines conftest.undefs
31615 # Using a here document instead of a string reduces the quoting nightmare.
31616 # Putting comments in sed scripts is not portable.
31618 # `end' is used to avoid that the second main sed command (meant for
31619 # 0-ary CPP macros) applies to n-ary macro definitions.
31620 # See the Autoconf documentation for `clear'.
31621 cat >confdef2sed.sed <<\_ACEOF
31626 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31628 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31631 # If some macros were called several times there might be several times
31632 # the same #defines, which is useless. Nevertheless, we may not want to
31633 # sort them, since we want the *last* AC-DEFINE to be honored.
31634 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31635 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31636 rm -f confdef2sed.sed
31638 # This sed command replaces #undef with comments. This is necessary, for
31639 # example, in the case of _POSIX_SOURCE, which is predefined and required
31640 # on some systems where configure will not decide to define it.
31641 cat >>conftest.undefs <<\_ACEOF
31642 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31645 # Break up conftest.defines because some shells have a limit on the size
31646 # of here documents, and old seds have small limits too (100 cmds).
31647 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31648 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31649 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31650 echo ' :' >>$CONFIG_STATUS
31651 rm -f conftest.tail
31652 while grep . conftest.defines >/dev/null
31654 # Write a limited-size here document to $tmp/defines.sed.
31655 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31656 # Speed up: don't consider the non `#define' lines.
31657 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
31658 # Work around the forget-to-reset-the-flag bug.
31659 echo 't clr' >>$CONFIG_STATUS
31660 echo ': clr' >>$CONFIG_STATUS
31661 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31663 sed -f $tmp/defines.sed $tmp/in >$tmp/out
31665 mv $tmp/out $tmp/in
31667 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31668 rm -f conftest.defines
31669 mv conftest.tail conftest.defines
31671 rm -f conftest.defines
31672 echo ' fi # grep' >>$CONFIG_STATUS
31673 echo >>$CONFIG_STATUS
31675 # Break up conftest.undefs because some shells have a limit on the size
31676 # of here documents, and old seds have small limits too (100 cmds).
31677 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
31678 rm -f conftest.tail
31679 while grep . conftest.undefs >/dev/null
31681 # Write a limited-size here document to $tmp/undefs.sed.
31682 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31683 # Speed up: don't consider the non `#undef'
31684 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
31685 # Work around the forget-to-reset-the-flag bug.
31686 echo 't clr' >>$CONFIG_STATUS
31687 echo ': clr' >>$CONFIG_STATUS
31688 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31690 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31692 mv $tmp/out $tmp/in
31694 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31695 rm -f conftest.undefs
31696 mv conftest.tail conftest.undefs
31698 rm -f conftest.undefs
31700 cat >>$CONFIG_STATUS <<\_ACEOF
31701 # Let's still pretend it is `configure' which instantiates (i.e., don't
31702 # use $as_me), people would be surprised to read:
31703 # /* config.h. Generated by config.status. */
31704 if test x"$ac_file" = x-; then
31705 echo "/* Generated by configure. */" >$tmp/config.h
31707 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
31709 cat $tmp/in >>$tmp/config.h
31711 if test x"$ac_file" != x-; then
31712 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31713 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31714 echo "$as_me: $ac_file is unchanged" >&6;}
31716 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31717 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31718 X"$ac_file" : 'X\(//\)[^/]' \| \
31719 X"$ac_file" : 'X\(//\)$' \| \
31720 X"$ac_file" : 'X\(/\)' \| \
31721 . : '\(.\)' 2>/dev/null ||
31723 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31724 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31725 /^X\(\/\/\)$/{ s//\1/; q; }
31726 /^X\(\/\).*/{ s//\1/; q; }
31728 { if $as_mkdir_p; then
31733 while test ! -d "$as_dir"; do
31734 as_dirs="$as_dir $as_dirs"
31735 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31736 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31737 X"$as_dir" : 'X\(//\)[^/]' \| \
31738 X"$as_dir" : 'X\(//\)$' \| \
31739 X"$as_dir" : 'X\(/\)' \| \
31740 . : '\(.\)' 2>/dev/null ||
31742 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31743 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31744 /^X\(\/\/\)$/{ s//\1/; q; }
31745 /^X\(\/\).*/{ s//\1/; q; }
31748 test ! -n "$as_dirs" || mkdir $as_dirs
31749 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31750 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31751 { (exit 1); exit 1; }; }; }
31754 mv $tmp/config.h $ac_file
31758 rm -f $tmp/config.h
31762 cat >>$CONFIG_STATUS <<\_ACEOF
31765 # CONFIG_COMMANDS section.
31767 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31768 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31769 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31770 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31771 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31772 X"$ac_dest" : 'X\(//\)[^/]' \| \
31773 X"$ac_dest" : 'X\(//\)$' \| \
31774 X"$ac_dest" : 'X\(/\)' \| \
31775 . : '\(.\)' 2>/dev/null ||
31777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31778 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31779 /^X\(\/\/\)$/{ s//\1/; q; }
31780 /^X\(\/\).*/{ s//\1/; q; }
31782 { if $as_mkdir_p; then
31787 while test ! -d "$as_dir"; do
31788 as_dirs="$as_dir $as_dirs"
31789 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31790 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31791 X"$as_dir" : 'X\(//\)[^/]' \| \
31792 X"$as_dir" : 'X\(//\)$' \| \
31793 X"$as_dir" : 'X\(/\)' \| \
31794 . : '\(.\)' 2>/dev/null ||
31796 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31797 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31798 /^X\(\/\/\)$/{ s//\1/; q; }
31799 /^X\(\/\).*/{ s//\1/; q; }
31802 test ! -n "$as_dirs" || mkdir $as_dirs
31803 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31804 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31805 { (exit 1); exit 1; }; }; }
31809 if test "$ac_dir" != .; then
31810 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31811 # A "../" for each directory in $ac_dir_suffix.
31812 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31814 ac_dir_suffix= ac_top_builddir=
31818 .) # No --srcdir option. We are building in place.
31820 if test -z "$ac_top_builddir"; then
31823 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31825 [\\/]* | ?:[\\/]* ) # Absolute path.
31826 ac_srcdir=$srcdir$ac_dir_suffix;
31827 ac_top_srcdir=$srcdir ;;
31828 *) # Relative path.
31829 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31830 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31833 # Do not use `cd foo && pwd` to compute absolute paths, because
31834 # the directories may not exist.
31836 .) ac_abs_builddir="$ac_dir";;
31839 .) ac_abs_builddir=`pwd`;;
31840 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31841 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31844 case $ac_abs_builddir in
31845 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31847 case ${ac_top_builddir}. in
31848 .) ac_abs_top_builddir=$ac_abs_builddir;;
31849 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31850 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31853 case $ac_abs_builddir in
31854 .) ac_abs_srcdir=$ac_srcdir;;
31857 .) ac_abs_srcdir=$ac_abs_builddir;;
31858 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31859 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31862 case $ac_abs_builddir in
31863 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31865 case $ac_top_srcdir in
31866 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31867 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31868 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31873 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31874 echo "$as_me: executing $ac_dest commands" >&6;}
31876 Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
31877 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31878 Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
31879 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
31880 examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
31881 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
31882 lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
31883 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
31884 runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
31885 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
31886 test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
31887 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31888 test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
31889 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
31890 tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
31891 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
31892 utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
31893 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
31894 projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
31895 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
31900 cat >>$CONFIG_STATUS <<\_ACEOF
31902 { (exit 0); exit 0; }
31904 chmod +x $CONFIG_STATUS
31905 ac_clean_files=$ac_clean_files_save
31908 # configure is writing to config.log, and then calls config.status.
31909 # config.status does its own redirection, appending to config.log.
31910 # Unfortunately, on DOS this fails, as config.log is still kept open
31911 # by configure, so config.status won't be able to write to it; its
31912 # output is simply discarded. So we exec the FD to /dev/null,
31913 # effectively closing config.log, so it can be properly (re)opened and
31914 # appended to by config.status. When coming back to configure, we
31915 # need to make the FD available again.
31916 if test "$no_create" != yes; then
31918 ac_config_status_args=
31919 test "$silent" = yes &&
31920 ac_config_status_args="$ac_config_status_args --quiet"
31922 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31924 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31925 # would make configure fail if this is the last instruction.
31926 $ac_cs_success || { (exit 1); exit 1; }
31930 # CONFIG_SUBDIRS section.
31932 if test "$no_recursion" != yes; then
31934 # Remove --cache-file and --srcdir arguments so they do not pile up.
31935 ac_sub_configure_args=
31937 for ac_arg in $ac_configure_args; do
31938 if test -n "$ac_prev"; then
31943 -cache-file | --cache-file | --cache-fil | --cache-fi \
31944 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31945 ac_prev=cache_file ;;
31946 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31947 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31950 --config-cache | -C)
31952 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31954 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31956 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31958 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31960 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31964 # Always prepend --prefix to ensure using the same prefix
31965 # in subdir configurations.
31966 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31969 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31971 # Do not complain, so a configure script can configure whichever
31972 # parts of a large source tree are present.
31973 test -d $srcdir/$ac_dir || continue
31975 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31976 echo "$as_me: configuring in $ac_dir" >&6;}
31977 { if $as_mkdir_p; then
31982 while test ! -d "$as_dir"; do
31983 as_dirs="$as_dir $as_dirs"
31984 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31985 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31986 X"$as_dir" : 'X\(//\)[^/]' \| \
31987 X"$as_dir" : 'X\(//\)$' \| \
31988 X"$as_dir" : 'X\(/\)' \| \
31989 . : '\(.\)' 2>/dev/null ||
31991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31992 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31993 /^X\(\/\/\)$/{ s//\1/; q; }
31994 /^X\(\/\).*/{ s//\1/; q; }
31997 test ! -n "$as_dirs" || mkdir $as_dirs
31998 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31999 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32000 { (exit 1); exit 1; }; }; }
32004 if test "$ac_dir" != .; then
32005 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32006 # A "../" for each directory in $ac_dir_suffix.
32007 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32009 ac_dir_suffix= ac_top_builddir=
32013 .) # No --srcdir option. We are building in place.
32015 if test -z "$ac_top_builddir"; then
32018 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32020 [\\/]* | ?:[\\/]* ) # Absolute path.
32021 ac_srcdir=$srcdir$ac_dir_suffix;
32022 ac_top_srcdir=$srcdir ;;
32023 *) # Relative path.
32024 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32025 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32028 # Do not use `cd foo && pwd` to compute absolute paths, because
32029 # the directories may not exist.
32031 .) ac_abs_builddir="$ac_dir";;
32034 .) ac_abs_builddir=`pwd`;;
32035 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32036 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32039 case $ac_abs_builddir in
32040 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32042 case ${ac_top_builddir}. in
32043 .) ac_abs_top_builddir=$ac_abs_builddir;;
32044 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32045 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32048 case $ac_abs_builddir in
32049 .) ac_abs_srcdir=$ac_srcdir;;
32052 .) ac_abs_srcdir=$ac_abs_builddir;;
32053 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32054 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32057 case $ac_abs_builddir in
32058 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32060 case $ac_top_srcdir in
32061 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32062 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32063 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32070 # Check for guested configure; otherwise get Cygnus style configure.
32071 if test -f $ac_srcdir/configure.gnu; then
32072 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32073 elif test -f $ac_srcdir/configure; then
32074 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32075 elif test -f $ac_srcdir/configure.in; then
32076 ac_sub_configure=$ac_configure
32078 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32079 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32083 # The recursion is here.
32084 if test -n "$ac_sub_configure"; then
32085 # Make the cache file name correct relative to the subdirectory.
32086 case $cache_file in
32087 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32088 *) # Relative path.
32089 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
32092 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32093 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32094 # The eval makes quoting arguments work.
32095 eval $ac_sub_configure $ac_sub_configure_args \
32096 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32097 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
32098 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32099 { (exit 1); exit 1; }; }
32107 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
32108 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32109 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
32110 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32111 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32112 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32113 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32114 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32115 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32116 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32117 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}